/*
Theme Name: Sens Habitat Native
Theme URI: https://sens-habitat.fr/
Author: Keenest / Codex
Description: Thème autonome de Sens Habitat, sans constructeur de pages.
Version: 0.1.2
Text Domain: sens-native
*/

:root {
  --sh-ink: #24211f;
  --sh-muted: #66615d;
  --sh-soft: #f7f7f5;
  --sh-white: #fff;
  --sh-width: 1180px;
  --kubio-color-1: 255, 255, 255;
  --kubio-color-2: 239, 239, 239;
  --kubio-color-3: 218, 218, 210;
  --kubio-color-4: 112, 108, 103;
  --kubio-color-5: 255, 255, 255;
  --kubio-color-5-variant-2: 218, 218, 210;
  --kubio-color-6: 36, 33, 31;
  --kubio-color-6-variant-2: 102, 97, 93;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; color: var(--sh-ink); background: #fff; font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.sh-wrap { width: min(calc(100% - 40px), var(--sh-width)); margin-inline: auto; }

.sh-header { position: absolute; z-index: 100; top: 0; left: 0; width: 100%; color: #fff; }
body.admin-bar .sh-header { top: 32px; }
.sh-header__inner { display: flex; min-height: 126px; align-items: center; gap: 38px; }
.sh-brand { display: block; flex: 0 0 auto; }
.sh-brand img { display: block; width: 82px; height: 82px; object-fit: contain; }
.sh-nav { margin-left: auto; }
.sh-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.sh-nav a { display: block; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; text-shadow: 0 1px 7px rgba(0,0,0,.45); text-transform: uppercase; }
.sh-nav a:hover, .sh-nav a:focus-visible { text-decoration: underline; text-underline-offset: 8px; }
.sh-menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 9px; border: 1px solid rgba(255,255,255,.65); background: rgba(0,0,0,.22); color: #fff; }
.sh-menu-toggle span { display: block; height: 2px; margin: 6px 0; background: currentColor; }

.sh-hero { position: relative; display: grid; min-height: 610px; align-items: center; overflow: hidden; background: #51463d center / cover no-repeat; color: #fff; }
.sh-hero::before { position: absolute; inset: 0; background: rgba(20,18,16,.35); content: ""; }
.sh-hero__inner { position: relative; z-index: 1; padding-top: 125px; padding-bottom: 50px; }
.sh-hero__copy { max-width: 610px; }
.sh-hero h1 { margin: 0 0 28px; font-size: clamp(2.7rem, 5vw, 4.9rem); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; }
.sh-hero p { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.65; }
.home .sh-hero { min-height: 920px; background-image: url('/wp-content/uploads/2026/01/WhatsApp-Image-2025-12-27-at-11.05.26.jpeg'); }
.home .sh-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); align-items: center; gap: 60px; }
.home .sh-hero h1 { max-width: 590px; }
.sh-hero__search { padding: 25px; border: 6px solid rgba(255,255,255,.9); background: rgba(224,232,237,.94); color: #24211f; }
.sh-page-hero { min-height: 500px; text-align: center; }
.sh-page-hero .sh-hero__inner { width: min(calc(100% - 40px), 1050px); padding-top: 145px; text-align: center; }
.sh-page-hero .sh-hero__copy { max-width: 1000px; margin-inline: auto; }
.sh-page-hero h1 { margin-inline: auto; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 600; }

.sh-main { min-height: 55vh; }
.sh-content { width: min(calc(100% - 40px), var(--sh-width)); margin-inline: auto; padding: 85px 0; }
.sh-content--wide { width: 100%; padding: 0; }
.sh-content > .wp-block-kubio-section__outer { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-block-kubio-section__outer { width: 100%; padding: 72px 0; }
.wp-block-kubio-section__inner { width: min(calc(100% - 40px), var(--sh-width)); margin-inline: auto; }
.wp-block-kubio-row__inner { display: flex; flex-wrap: wrap; align-items: stretch; margin: -20px; }
.wp-block-kubio-column__container { flex: 0 0 var(--sh-col-desktop, 100%); width: var(--sh-col-desktop, 100%); max-width: var(--sh-col-desktop, 100%); min-width: 0; padding: 20px; }
.wp-block-kubio-column__inner { height: 100%; }
.wp-block-kubio-heading__text { margin-top: 0; font-weight: 400; line-height: 1.15; }
h2.wp-block-kubio-heading__text { font-size: clamp(2.1rem, 4vw, 3.7rem); }
h3.wp-block-kubio-heading__text { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.wp-block-kubio-text__text { line-height: 1.7; }
.wp-block-kubio-image__image { display: block; width: 100%; object-fit: cover; }
.wp-block-kubio-button__link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid currentColor; border-radius: 4px; background: var(--sh-ink); color: #fff; text-decoration: none; }

.sh-page-title { padding: 170px 20px 70px; background: var(--sh-ink); color: #fff; text-align: center; }
.sh-page-title h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 300; }
.sh-page-cta { padding: clamp(75px,9vw,120px) 20px; background: #24211f; color: #fff; text-align: center; }
.sh-page-cta__inner { width: min(850px,100%); margin: auto; }
.sh-page-cta__kicker { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sh-page-cta h2 { margin: 0; color: #fff; font-size: clamp(38px,5vw,68px); font-weight: 300; line-height: 1.05; letter-spacing: -.035em; }
.sh-page-cta p { max-width: 650px; margin: 24px auto 0; color: #e1ddd8; font-size: 19px; line-height: 1.6; }
.sh-page-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sh-page-cta__button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid #fff; border-radius: 99px; color: #fff; font-weight: 700; text-decoration: none; }
.sh-page-cta__button--light { background: #fff; color: #24211f; }

.sh-footer { padding: 70px 0 60px; background: #fff; color: #24211f; }
.sh-footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr .45fr; gap: 48px; align-items: start; }
.sh-footer h2, .sh-footer h3 { margin: 0 0 24px; font-size: 17px; }
.sh-footer p, .sh-footer a { font-size: 13px; line-height: 1.7; }
.sh-footer a { display: block; margin: 0 0 12px; text-decoration: none; }
.sh-footer__logo { width: 86px; }
.sh-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.sh-footer__social a { display: grid; width: 34px; height: 34px; margin: 0; place-items: center; border-radius: 50%; box-shadow: 0 5px 18px rgba(0,0,0,.1); }
.sh-footer__fineprint { margin: 55px 0 0; color: #a5a19e; font-size: 11px; }

@media (max-width: 1050px) {
  .sh-nav ul { gap: 18px; }
  .sh-nav a { font-size: 11px; }
  .home .sh-hero__inner { grid-template-columns: 1fr 390px; gap: 30px; }
  .wp-block-kubio-column__container { flex-basis: var(--sh-col-tablet, var(--sh-col-desktop, 100%)); width: var(--sh-col-tablet, var(--sh-col-desktop, 100%)); max-width: var(--sh-col-tablet, var(--sh-col-desktop, 100%)); }
}

@media (max-width: 820px) {
  body.admin-bar .sh-header { top: 46px; }
  .sh-header__inner { min-height: 100px; }
  .sh-brand img { width: 68px; height: 68px; }
  .sh-menu-toggle { display: block; }
  .sh-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 12px; background: #24211f; box-shadow: 0 16px 35px rgba(0,0,0,.25); }
  .sh-nav.is-open { display: block; }
  .sh-nav ul { display: block; }
  .sh-nav a { padding: 12px 10px; font-size: 13px; }
  .home .sh-hero { min-height: auto; }
  .home .sh-hero__inner { grid-template-columns: 1fr; padding-top: 150px; padding-bottom: 60px; }
  .sh-hero__copy, .sh-hero__search { width: 100%; max-width: 100%; min-width: 0; }
  .sh-main, .sh-content, .wp-block-kubio-section__outer, .wp-block-kubio-section__inner,
  .wp-block-kubio-row__container, .wp-block-kubio-row__inner,
  .wp-block-kubio-column__container, .wp-block-kubio-column__inner,
  .wp-block-kubio-column__align { max-width: 100% !important; min-width: 0 !important; }
  .wp-block-kubio-column__container { width: var(--sh-col-mobile, 100%) !important; max-width: var(--sh-col-mobile, 100%) !important; flex-basis: var(--sh-col-mobile, 100%) !important; }
  .wp-block-kubio-column__inner, .wp-block-kubio-column__align { margin-right: 0 !important; margin-left: 0 !important; transform: none !important; }
  .wp-block-kubio-text__text, .wp-block-kubio-heading__text { overflow-wrap: anywhere; }
  .sh-hero__search .es-search, .sh-hero__search .es-search__wrapper,
  .sh-hero__search .es-search__fields, .sh-hero__search .es-field,
  .sh-hero__search input, .sh-hero__search select { max-width: 100% !important; min-width: 0 !important; }
  .sh-hero__search .es-search { width: 100% !important; }
  .sh-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .sh-wrap, .sh-content, .wp-block-kubio-section__inner { width: min(calc(100% - 32px), var(--sh-width)); }
  .sh-hero { min-height: 520px; }
  .sh-hero h1 { font-size: 2.65rem; }
  .sh-page-hero { min-height: 390px; }
  .sh-page-hero .sh-hero__inner { padding-top: 120px; }
  .home .sh-hero__inner { padding-top: 130px; }
  .sh-hero__search { padding: 14px; border-width: 4px; }
  .sh-hero__search .es-search__wrapper { padding: 18px !important; }
  .sh-hero__search .es-field__content, .sh-hero__search .es-field__range,
  .sh-hero__search .es-search__buttons { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  .sh-hero__search .es-search__buttons > * { width: 100% !important; min-width: 0 !important; }
  .wp-block-kubio-section__outer { padding: 55px 0; }
  .wp-block-kubio-row__inner { display: block; margin: 0; }
  .wp-block-kubio-column__container { padding: 14px 0; }
  .sh-page-cta__actions { align-items: stretch; flex-direction: column; }
  .sh-page-cta__button { width: 100%; }
  .sh-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .home img[src*="Capture-decran-2025-08-11"],
  .home img[src*="SENS-HABITAT"],
  .home img[src*="OPTIVIM"] { width: auto !important; max-width: 110px !important; max-height: 110px !important; margin-inline: auto; }
}
