/* ═══════════════════════════════════════════════════════════════
   DAVID NOTAIRES - style.css
   Étape 1 : Variables globales + styles du Hero
   Les autres sections seront ajoutées au fil des étapes.
═══════════════════════════════════════════════════════════════ */

/* Polices Cormorant Garamond et Montserrat hebergees sur le site (fichiers dans fonts/), sans appel a Google Fonts */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────────────────────────────────────────────────────────────
   1. VARIABLES CSS
──────────────────────────────────────────────────────────────── */
:root {
  /* Palette identitaire (extraite du logo) */
  --olive:        #7B764F;   /* vert olive principal */
  --olive-dark:   #5A5638;   /* olive foncé (hover) */
  --olive-mid:    #9A9465;   /* olive intermédiaire */
  --olive-light:  #C4BC8A;   /* olive clair */
  --olive-subtle: rgba(123,118,79,.08); /* fond très léger */

  --cream:        #F4F0E6;   /* ivoire clair */
  --cream-dark:   #E6E0CC;   /* ivoire moyen */
  --cream-mid:    #EDE8D8;   /* ivoire intermédiaire */

  --gold:         #B8943F;   /* or accent */
  --gold-light:   #D4AF6A;   /* or clair */

  --dark:         #1A1A18;   /* texte principal / fond sombre */
  --mid:          #3E3E38;   /* texte secondaire */
  --muted:        #7A7A6E;   /* texte atténué */
  --white:        #FFFFFF;

  /* Typographies */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Tailles de police (clamp = responsive) */
  --fs-hero:     clamp(44px, 5.5vw, 68px);
  --fs-h2:       clamp(32px, 4vw, 48px);
  --fs-h3:       clamp(20px, 2.5vw, 28px);
  --fs-body:     13px;
  --fs-small:    11px;
  --fs-xs:       9.5px;

  /* Espacements */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    32px;
  --space-lg:    56px;
  --space-xl:    96px;
  --space-2xl:   140px;

  /* Hauteur navigation */
  --nav-height:  74px;

  /* Ombres */
  --shadow-sm:   0 2px 12px rgba(0,0,0,.06);
  --shadow-md:   0 4px 28px rgba(0,0,0,.09);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.14);

  /* Transitions */
  --transition:  .22s ease;

  /* Largeur max du contenu */
  --max-w:       1200px;
  --max-w-narrow: 900px;
}


/* ───────────────────────────────────────────────────────────────
   2. RESET & BASE
──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Pas de scroll-behavior: smooth global : le défilement doux est géré par le script
     (scrollToSection), qui l'interrompt dès que le visiteur touche l'écran. */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, video {
  display: block;
  max-width: 100%;
}

ul, ol { list-style: none; }

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}


/* ───────────────────────────────────────────────────────────────
   3. UTILITAIRES GLOBAUX
──────────────────────────────────────────────────────────────── */

/* Conteneur centré */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 52px;
}

/* Eyebrow / surtitre */
.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

/* Séparateur horizontal fin */
.divider {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin-block: var(--space-lg);
}

/* Animations d'apparition au scroll (activées par JS) */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up.delay-1 { transition-delay: .10s; }
.fade-up.delay-2 { transition-delay: .20s; }
.fade-up.delay-3 { transition-delay: .30s; }
.fade-up.delay-4 { transition-delay: .40s; }


/* ───────────────────────────────────────────────────────────────
   4. BOUTONS (système complet, utilisé partout)
──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

/* Olive plein */
.btn-olive {
  background: var(--olive);
  color: var(--white);
}
.btn-olive:hover { background: var(--olive-dark); }

/* Or / gold */
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9A7A30; }

/* Contour olive */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--olive);
  color: var(--olive);
}
.btn-outline:hover {
  background: var(--olive);
  color: var(--white);
}

/* Fantôme blanc (sur fond sombre) */
.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* Petit bouton */
.btn-sm {
  padding: 9px 20px;
  font-size: 9px;
}


/* ───────────────────────────────────────────────────────────────
   5. NAVIGATION
──────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 900;
  height: var(--nav-height);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(123,118,79,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

#nav.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--olive);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.nav-logo:hover .nav-mark {
  background: var(--olive);
  color: var(--white);
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  display: block;
  line-height: 1.1;
}
.nav-sub {
  font-size: 8.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-top: 2px;
}

/* Liens */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--olive);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--olive); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Droite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 5px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.lang-btn.active { color: var(--olive); font-weight: 600; }
.lang-btn:hover { color: var(--dark); }
.lang-sep { font-size: 10px; color: var(--cream-dark); }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--cream-dark);
}

.btn-connexion {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 0;
}
.btn-connexion:hover { color: var(--olive); }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mid);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ───────────────────────────────────────────────────────────────
   6. MENU MOBILE
──────────────────────────────────────────────────────────────── */
#mobile-menu {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 899;
  padding: 36px 28px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility .32s;
}
#mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
#mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: block;
}
#mobile-menu a:last-child {
  margin-top: 16px;
  border-bottom: none;
}


/* ───────────────────────────────────────────────────────────────
   7. HERO
──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* ── Côté gauche ── */
.hero-left {
  background: var(--olive);
  display: flex;
  align-items: center;
  padding: 80px 72px;
  position: relative;
  /* Grain subtil */
  background-image:
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(0,0,0,.08) 0%, transparent 40%);
}

/* Ligne déco verticale */
.hero-left::before {
  content: '';
  position: absolute;
  top: 80px; bottom: 80px;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
  opacity: .4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

/* Eyebrow blanc */
.hero-content .eyebrow {
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-content .eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}

/* Titre principal */
.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.5px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* Description */
.hero-desc {
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255,255,255,.62);
  max-width: 400px;
  margin-bottom: 44px;
}

/* Boutons */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Séparateur stats */
.hero-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.13);
  margin-bottom: 36px;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 44px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-top: 5px;
  line-height: 1.3;
}

/* ── Côté droit ── */
.hero-right {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #6B674A 0%,
    #4A4730 35%,
    #3A3820 65%,
    #2E2C1A 100%
  );
}

/* Wrapper photo + fallback */
.hero-photo-wrap {
  position: absolute;
  inset: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: opacity .7s ease;
}

/* Quand une vraie image est insérée (rétro-compatibilité) */
.hero-right > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder en attendant la photo */
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-photo-monogram {
  font-family: var(--font-serif);
  font-size: 180px;
  font-weight: 300;
  color: rgba(255,255,255,.07);
  line-height: 1;
  user-select: none;
}

.hero-photo-caption {
  font-size: 9.5px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

/* Léger dégradé de fondu à gauche */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(123,118,79,.25) 0%,
    transparent 50%
  );
  z-index: 1;
  pointer-events: none;
}

/* Badge flottant */
.hero-badge {
  position: absolute;
  bottom: 44px;
  right: 44px;
  z-index: 2;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 22px;
  text-align: center;
  min-width: 160px;
}
.hero-badge-logo {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  display: block;
  object-fit: contain;
}
.hero-badge-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  display: block;
  margin-bottom: 5px;
}
.hero-badge-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
  display: block;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-badge-seal {
  font-size: 18px;
  color: var(--gold-light);
  opacity: .7;
}

/* Motif déco en fond droit */
.hero-right::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(184,148,63,.06);
  z-index: 0;
  pointer-events: none;
}


/* ───────────────────────────────────────────────────────────────
   8. HOOKS SECTIONS (placeholders visuels pour les étapes à venir)
   → Ils seront remplacés section par section
──────────────────────────────────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────
   PLACEHOLDERS - sections à venir (retirés au fur et à mesure)
──────────────────────────────────────────────────────────────── */
#search,
#espace-client,
#simulateur,
#equipe,
#blog,
#contact {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* #search - styles réels ajoutés plus bas */
/* #expertises - styles réels ci-dessous */
#espace-client { background: var(--olive); }
/* #simulateur - styles réels ci-dessous */
#equipe        { background: var(--white); }
#blog          { background: var(--cream); }
#contact       { background: var(--white); }

/* #search::before - retiré (section réelle) */
/* #expertises::before - retiré */
#espace-client::before { content: '✦  Espace Client / Upload - Étape 4'; color: rgba(255,255,255,.3); }
/* #simulateur::before - retiré */
#equipe::before        { content: '✦  Équipe - Étape 6';                }
#blog::before          { content: '✦  Blog & Newsletter - Étape 6';     }
#contact::before       { content: '✦  Contact & Footer - Étape 7';      }

#simulateur::before, #equipe::before, #blog::before, #contact::before {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Offset scroll pour le header fixe ── */
#search, #expertises, #simulateur, #equipe, #galerie, #blog, #contact {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}


/* ───────────────────────────────────────────────────────────────
   9. WIZARD / QUESTIONNAIRE  (Étape 2)
──────────────────────────────────────────────────────────────── */
#wizard {
  /* Hidden from page flow - shown only as modal via .wiz-modal-open */
  display: none;
}

/* ── Wizard Modal Mode ── */
/* Triggered by JS adding .wiz-modal-open when hero "Commencer" is clicked */
#wizard.wiz-modal-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent;
  padding: 24px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
#wizard.wiz-modal-open .wiz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,20,18,.75);
  backdrop-filter: blur(4px);
}
#wizard.wiz-modal-open .wiz-wrap {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: 20px;
  padding: 48px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  animation: wizModalIn .3s ease;
  /* Single column - no intro text */
  display: block;
  width: 100%;
  max-width: 560px;
}
.wiz-card-wrap {
  width: 100%;
}
@keyframes wizModalIn {
  from { transform: translateY(20px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
/* Prevent page scroll while wizard modal is open */
body.wiz-modal-active { overflow: hidden; }

/* Close button (top-right corner of modal) */
.wiz-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2100;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
}
.wiz-modal-close:hover {
  background: var(--white);
  transform: scale(1.08);
}
.wiz-backdrop { display: none; }
#wizard.wiz-modal-open .wiz-backdrop { display: block; }

/* Layout split */
.wiz-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 52px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

/* ── Colonne intro gauche ── */
.wiz-intro {
  padding-top: 28px;
}
.wiz-intro .eyebrow {
  color: var(--olive);
}
.wiz-intro-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 18px;
}
.wiz-intro-title em {
  font-style: italic;
  color: var(--olive);
}
.wiz-intro-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 380px;
}

/* Features list */
.wiz-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wiz-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wf-ico {
  width: 36px;
  height: 36px;
  background: var(--olive-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.wf-t {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark);
  display: block;
  margin-bottom: 3px;
}
.wf-d {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Card wizard ── */
.wiz-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-lg);
}

/* En-tête */
.wiz-card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wiz-step-lbl {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Barre de progression */
.wiz-prog-track {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wiz-prog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.wiz-prog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
  transition: background .3s ease, transform .3s ease;
}
.wiz-prog-dot.active {
  background: var(--olive);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(123,118,79,.15);
}
.wiz-prog-dot.done {
  background: var(--gold);
}
.wiz-prog-name {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.wiz-prog-line {
  width: 32px;
  height: 1px;
  background: var(--cream-dark);
  flex-shrink: 0;
  /* Aligner avec les dots (pas avec les labels) */
  margin-bottom: 18px;
}

/* Corps */
.wiz-card-body {
  padding: 32px 28px;
  min-height: 340px;
}

.wiz-question {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}
.wiz-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

/* Grille d'options */
.wiz-opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wiz-opts-grid.single-col {
  grid-template-columns: 1fr;
}

/* Card option */
.wiz-opt-card {
  padding: 16px 16px;
  border: 1.5px solid var(--cream-dark);
  cursor: pointer;
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  outline: none;
  position: relative;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.wiz-opt-card:hover {
  border-color: var(--olive-mid);
  background: var(--cream);
}
.wiz-opt-card.selected {
  border-color: var(--olive);
  background: var(--cream);
  box-shadow: inset 3px 0 0 var(--olive);
}
.wiz-opt-card:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
/* Coche sur option sélectionnée */
.wiz-opt-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  color: var(--olive);
  font-weight: 700;
}
.wiz-opt-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.wiz-opt-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  display: block;
  margin-bottom: 3px;
  line-height: 1.2;
}
.wiz-opt-desc {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* Pied de card */
.wiz-card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wiz-back {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  visibility: hidden;
}
.wiz-back.visible {
  visibility: visible;
}
.wiz-back:hover { color: var(--dark); }

.wiz-next {
  /* hérite .btn .btn-olive */
  padding: 10px 22px;
}
.wiz-next:disabled {
  background: var(--cream-dark);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

/* ── Écran résultat ── */
.wiz-result {
  text-align: center;
  padding: 8px 0 12px;
}
.wiz-result-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
  animation: popIn .4s ease;
}
@keyframes popIn {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.wiz-result-tag {
  display: inline-block;
  font-size: 8.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-subtle);
  padding: 4px 12px;
  margin-bottom: 14px;
}
.wiz-result-titre {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}
.wiz-result-texte {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto 22px;
}

/* Carte notaire recommandé - now a <button> that opens the team modal */
.wiz-notaire-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: 14px 16px;
  margin: 0 0 22px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  border-radius: 6px;
}
.wiz-notaire-card:hover {
  border-color: var(--olive);
  background: rgba(123,118,79,.05);
}
.wiz-notaire-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: .5px;
}
.wiz-notaire-info {
  flex: 1;
  min-width: 0;
}
.wiz-notaire-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 3px;
}
.wiz-notaire-spec {
  font-size: 9.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--olive);
  line-height: 1.3;
}
.wiz-notaire-badge {
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--white);
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Boutons résultat */
.wiz-result-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.wiz-restart {
  font-size: 10.5px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.wiz-restart:hover { color: var(--olive); }

/* ───────────────────────────────────────────────────────────────
   10. SECTION RECHERCHE PAR MOT-CLÉ  (Étape 3)
──────────────────────────────────────────────────────────────── */
#search {
  background: var(--white);
  padding: 72px 52px;
  border-top: 1px solid var(--cream-dark);
}

.search-wrap {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.search-heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 10px;
}
.search-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ── Barre + dropdown : wrapper relatif pour le dropdown ── */
.search-bar-container {
  position: relative;
  margin-bottom: 22px;
}

/* Barre elle-même */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  box-shadow: var(--shadow-md);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--olive);
  box-shadow: 0 4px 24px rgba(123,118,79,.12);
}

/* Icône loupe */
.search-ico {
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  color: var(--muted);
  flex-shrink: 0;
  pointer-events: none;
}

/* Input */
.search-input {
  flex: 1;
  padding: 16px 8px;
  border: none;
  font-size: 13px;
  color: var(--dark);
  outline: none;
  background: transparent;
  min-width: 0;  /* flex shrink ok */
}
.search-input::placeholder { color: var(--muted); }
/* Masque le X natif du browser sur type="search" */
.search-input::-webkit-search-cancel-button { display: none; }

/* Bouton ✕ */
.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  flex-shrink: 0;
  background: var(--cream-dark);
  border: none;
  border-radius: 50%;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.search-clear:hover { background: var(--olive); color: var(--white); }

/* Bouton Rechercher */
.search-submit {
  padding: 16px 28px;
  font-size: 9.5px;
  letter-spacing: 2px;
  flex-shrink: 0;
  /* hérite .btn .btn-olive */
}

/* ── Dropdown suggestions ── */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-top: none;
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  /* Scrollbar fine */
  scrollbar-width: thin;
  scrollbar-color: var(--cream-dark) transparent;
}
.search-suggestions[hidden] { display: none; }

/* Item de suggestion */
.search-sug-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--cream);
  transition: background .15s;
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  font-family: inherit;
  outline: none;
}
.search-sug-item:last-child { border-bottom: none; }
.search-sug-item:hover,
.search-sug-item.focused {
  background: var(--cream);
  border-left: 3px solid var(--olive);
  padding-left: 15px;
}
.search-sug-item:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: -2px;
}

.sug-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1;
}
.sug-label {
  flex: 1;
  font-size: 13px;
  color: var(--dark);
  text-align: left;
  line-height: 1.3;
}
/* Portion correspondant à la frappe - mise en évidence */
.sug-label mark {
  background: transparent;
  color: var(--olive);
  font-weight: 600;
}
.sug-tag {
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive-mid);
  padding: 3px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Tag coloré selon catégorie */
.sug-tag.tag-successions    { background: #8B6E45; }
.sug-tag.tag-famille        { background: #7B764F; }
.sug-tag.tag-immobilier     { background: #5c7a5c; }
.sug-tag.tag-transmission   { background: #B8943F; }
.sug-tag.tag-entreprise     { background: #4a6080; }
.sug-tag.tag-international  { background: #5a4a6e; }
.sug-tag.tag-tarifs         { background: #2e7d5e; }
.sug-tag.tag-equipe         { background: #5a5638; }
.sug-tag.tag-contact        { background: #7a5858; }
.sug-tag.tag-e-service      { background: #3a6060; }

/* Séparateur dans la liste */
.search-sug-divider {
  padding: 8px 18px 4px;
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  pointer-events: none;
  border-bottom: 1px solid var(--cream-dark);
}

/* Item "Aucun résultat" */
.search-sug-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}
.search-sug-empty a {
  color: var(--olive);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.search-sug-empty a:hover { color: var(--gold); }

/* ── Tags / Raccourcis rapides ── */
.search-shortcuts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.search-shortcuts-label {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.search-tag {
  padding: 6px 14px;
  font-size: 10.5px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  color: var(--mid);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  font-family: inherit;
}
.search-tag:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

/* ───────────────────────────────────────────────────────────────
   11. SECTION EXPERTISES  (Étape 4)
──────────────────────────────────────────────────────────────── */
#expertises {
  background: var(--white);
  padding: 96px 0 0;
  border-top: 1px solid var(--cream-dark);
}

/* ── En-tête section ── */
.exp-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 52px;
  max-width: 780px;
  margin-inline: auto;
}
.exp-head-left { width: 100%; }
.exp-head-right {
  text-align: center;
  max-width: 640px;
  margin-bottom: 0;
}

/* ── Grille 5 × 2 ── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0 40px 80px;
  max-width: 1380px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* ── Card ── */
.exp-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  padding: 26px 22px 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.exp-card:hover,
.exp-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-color: var(--olive);
}
.exp-card:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
/* Subtle gold stripe on left edge, reveals on hover */
.exp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--olive) 100%);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity .28s, transform .28s;
}
.exp-card:hover::before,
.exp-card:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Top row: icon + number side by side */
.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Numéro décoratif */
.exp-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: rgba(123,118,79,.12);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -1px;
}

/* Icône */
.exp-icon-wrap {
  width: 58px;
  height: 58px;
  background: var(--olive-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s, transform .25s;
}
.exp-card:hover .exp-icon-wrap,
.exp-card:focus-visible .exp-icon-wrap {
  background: rgba(123,118,79,.18);
  transform: scale(1.08);
}
.exp-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--olive);
  transition: color .25s;
}
.exp-card:hover .exp-icon-wrap svg {
  color: var(--olive-dark);
}

/* Titre */
.exp-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

/* Tagline (sous le titre) */
.exp-tagline {
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
  font-weight: 500;
}

/* Description courte */
.exp-short {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}

/* Bottom row: tags + "Découvrir" */
.exp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Tags */
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.exp-tag {
  font-size: 9px;
  letter-spacing: .4px;
  padding: 3px 10px;
  background: rgba(123,118,79,.08);
  color: var(--olive-dark);
  border-radius: 50px;
  border: 1px solid rgba(123,118,79,.15);
}

/* Lien "Découvrir" */
.exp-more {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap .2s, color .2s;
  flex-shrink: 0;
}
.exp-card:hover .exp-more,
.exp-card:focus-visible .exp-more {
  gap: 8px;
  color: var(--gold);
}


/* ───────────────────────────────────────────────────────────────
   12. MODALE EXPERTISE
──────────────────────────────────────────────────────────────── */

/* Animation d'entrée */
@keyframes modalIn {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-overlay.open .modal-box {
  animation: modalIn .28s ease;
}

/* En-tête de la modale */
.exp-modal-header {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.exp-modal-icon {
  width: 52px;
  height: 52px;
  background: var(--olive-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exp-modal-icon svg {
  width: 24px;
  height: 24px;
  color: var(--olive);
}
.exp-modal-meta { flex: 1; min-width: 0; }
.exp-modal-num {
  font-size: 8.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.exp-modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 5px;
}
.exp-modal-tagline {
  font-size: 10px;
  color: var(--olive-mid);
  letter-spacing: 1px;
}
.exp-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color .2s;
  margin-left: auto;
}
.exp-modal-close:hover { color: var(--dark); }

/* Corps de la modale */
.exp-modal-body {
  padding: 26px 32px 32px;
  overflow-y: auto;
}
.exp-modal-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 24px;
}

/* Liste des actes */
.exp-modal-actes-title {
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.exp-modal-actes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--cream-dark);
}
.exp-modal-acte {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 12px;
  color: var(--dark);
}
.exp-modal-acte::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Notaire référent */
.exp-modal-notaire-wrap {
  margin-bottom: 22px;
}
.exp-modal-notaire-title {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.exp-modal-notaires {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-modal-notaire-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: 12px 14px;
}
.exp-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: .5px;
}
.exp-modal-notaire-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 2px;
}
.exp-modal-notaire-spec {
  font-size: 9.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--olive);
  line-height: 1.3;
}

/* Bouton CTA dans la modale */
.exp-modal-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ───────────────────────────────────────────────────────────────
   13. SIMULATEUR TARIFAIRE  (Étape 6)
──────────────────────────────────────────────────────────────── */
#simulateur {
  background: var(--cream);
  padding: 96px 0;
  border-top: 1px solid var(--cream-dark);
}

.sim-header { margin-bottom: 48px; }
.sim-header .section-sub { margin-top: 14px; }

/* ── Card conteneur ── */
.sim-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── Onglets ── */
.sim-tabs {
  display: flex;
  border-bottom: 2px solid var(--cream-dark);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sim-tabs::-webkit-scrollbar { display: none; }

.sim-tab {
  padding: 16px 22px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.sim-tab:hover { color: var(--olive); }
.sim-tab.active {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

/* ── Body : 2 colonnes ── */
.sim-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 400px;
}

/* ── Colonne formulaire ── */
.sim-form-col {
  padding: 36px 36px 36px;
  border-right: 1px solid var(--cream-dark);
}
.sim-form-title {
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: block;
}

.sim-fields {
  display: flex;
  flex-direction: column;
}

/* Groupes champs */
.sf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.sf-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}

/* Input numérique avec unité € */
.sf-input-euro {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--cream-dark);
  background: var(--white);
  transition: border-color .2s;
}
.sf-input-euro:focus-within { border-color: var(--olive); }

.sf-input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  min-width: 0;
}
.sf-input::placeholder { color: var(--muted); font-size: 12px; }
/* Masque les flèches spin natives */
.sf-input[type="number"]::-webkit-inner-spin-button,
.sf-input[type="number"]::-webkit-outer-spin-button { opacity: .4; }

.sf-unit {
  padding: 0 14px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  border-left: 1px solid var(--cream-dark);
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* Select */
.sf-select {
  padding: 12px 36px 12px 14px;
  border: 1.5px solid var(--cream-dark);
  font-size: 12px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  cursor: pointer;
  font-family: var(--font-sans);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 5 4.5-5' stroke='%237a7a6e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: border-color .2s;
}
.sf-select:focus { border-color: var(--olive); }

/* Radio boutons */
.sf-radios {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.sf-radios-col {
  flex-direction: column;
  gap: 12px;
}
.sf-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--dark);
  line-height: 1.4;
}
.sf-radio input[type="radio"],
.sf-radio input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--olive);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.sf-radio small {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  line-height: 1.5;
}

/* ── Colonne résultat ── */
.sim-result-col {
  padding: 36px 32px;
  background: var(--cream);
  display: flex;
  align-items: flex-start;
}

/* État vide */
.sim-result-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
}
.sim-result-empty-ico {
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
  opacity: .45;
}
.sim-result-empty p {
  font-size: 12px;
  line-height: 1.65;
}

/* Boîte résultat */
.sim-result-box { width: 100%; }

.sim-res-eyebrow {
  font-size: 8.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sim-res-amount {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}
.sim-res-sub {
  font-size: 11px;
  color: var(--olive);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Tableau détail */
.sim-breakdown {
  border-top: 1px solid var(--cream-dark);
  padding-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-bk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.sim-bk-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}
.sim-bk-val {
  font-size: 12px;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Ligne totale */
.sim-bk-total {
  border-top: 1px solid var(--cream-dark);
  padding-top: 9px;
  margin-top: 4px;
}
.sim-bk-total .sim-bk-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 12px;
}
.sim-bk-total .sim-bk-val {
  color: var(--olive);
  font-size: 14px;
  font-weight: 600;
}

/* Info contextuelle */
.sim-res-info {
  font-size: 10.5px;
  color: var(--mid);
  line-height: 1.65;
  background: rgba(123,118,79,.07);
  border-left: 3px solid var(--olive-light);
  padding: 10px 13px;
  margin-bottom: 14px;
}

/* Disclaimer inline */
.sim-res-disclaimer {
  font-size: 9.5px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Bouton CTA dans résultat */
.sim-cta {
  width: 100%;
  justify-content: center;
}

/* Disclaimer global bas de section */
.sim-global-disclaimer {
  margin-top: 28px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
}

/* ── Responsive simulateur ── */
@media (max-width: 960px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-form-col  { border-right: none; border-bottom: 1px solid var(--cream-dark); }
  .sim-result-col { min-height: auto; }
}
@media (max-width: 640px) {
  #simulateur { padding: 64px 0; }
  .sim-tab   { padding: 13px 15px; font-size: 9px; letter-spacing: 1px; }
  .sim-form-col  { padding: 24px 20px; }
  .sim-result-col{ padding: 24px 20px; }
  .sim-res-amount{ font-size: 42px; }
}

/* ── Responsive Expertises ── */
@media (max-width: 1200px) {
  .exp-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 60px; }
}
@media (max-width: 640px) {
  #expertises { padding-top: 64px; }
  .exp-section-head { padding: 0 24px 44px; }
  .exp-grid { grid-template-columns: 1fr; gap: 14px; }
  .exp-card { padding: 30px 24px 26px; }
  .exp-modal-header { padding: 20px 20px 16px; }
  .exp-modal-body   { padding: 20px 20px 24px; }
}

/* ── Responsive search ── */
@media (max-width: 768px) {
  #search { padding: 56px 24px; }
  .search-submit { padding: 16px 18px; font-size: 9px; }
  .search-shortcuts { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .search-bar {
    flex-wrap: wrap;
  }
  .search-ico { padding: 12px 12px 0; }
  .search-input { padding: 12px 8px; }
  .search-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
  }
}

/* ── Responsive wizard ── */
@media (max-width: 960px) {
  .wiz-wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-inline: 40px;
  }
  .wiz-intro {
    padding-top: 0;
  }
  .wiz-intro-desc {
    max-width: 100%;
  }
}
@media (max-width: 680px) {
  #wizard { padding: 64px 0; }
  .wiz-wrap { padding-inline: 20px; gap: 32px; }
  .wiz-opts-grid { grid-template-columns: 1fr; }
  .wiz-card-header { padding: 16px 20px; }
  .wiz-card-body   { padding: 24px 20px; min-height: 280px; }
  .wiz-card-footer { padding: 14px 20px; }
}

/* ───────────────────────────────────────────────────────────────
   9-B. FOOTER PLACEHOLDER (sera remplacé à l'Étape 7)
──────────────────────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  padding: 24px 52px;
  text-align: center;
}
.footer-placeholder {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}


/* ───────────────────────────────────────────────────────────────
   10. MODALE (overlay global)
──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26,26,24,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
  animation: overlayIn .3s ease;
}
.modal-overlay.closing {
  display: flex !important;
  animation: overlayOut .28s ease both;
}
.modal-overlay.closing .modal-box {
  animation: panelOut .22s ease forwards;
}
.modal-box {
  background: var(--white);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}


/* ───────────────────────────────────────────────────────────────
   11. TOAST
──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9998;
  background: var(--dark);
  color: var(--white);
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: .3px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  max-width: 320px;
  line-height: 1.5;
}
#toast.visible {
  opacity: 1;
  transform: none;
}


/* ───────────────────────────────────────────────────────────────
   12. BOUTON SCROLL-TOP
──────────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 800;
  width: 44px;
  height: 44px;
  background: var(--olive);
  color: var(--white);
  border: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background var(--transition);
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
#scroll-top:hover { background: var(--olive-dark); }


/* ───────────────────────────────────────────────────────────────
   13. RESPONSIVE HERO
──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-left {
    padding: 70px 52px;
  }
}

@media (max-width: 900px) {
  /* Sur tablette : le côté droit passe en-dessous */
  #hero {
    grid-template-columns: 1fr;
  }
  .hero-right {
    min-height: 320px;
  }
  .hero-left {
    padding: 64px 40px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  /* Mobile */
  #nav {
    padding: 0;
  }
  .nav-inner {
    padding-inline: 20px;
  }
  .nav-links,
  .nav-divider,
  .btn-connexion {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-right .btn {
    display: none; /* Le bouton "Commencer" desktop est caché en mobile */
  }

  .hero-left {
    padding: 52px 24px;
  }
  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
  }
  .hero-stats {
    gap: 28px;
  }
  .stat-num {
    font-size: 28px;
  }
  .hero-right {
    min-height: 260px;
  }
  .hero-photo-monogram {
    font-size: 120px;
  }
  .hero-badge {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    justify-content: center;
  }
  .hero-stats {
    gap: 18px;
    flex-wrap: wrap;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SIMULATEUR TARIFAIRE - #simulateur
   Étape 6
═══════════════════════════════════════════════════════════════ */

#simulateur {
  padding: var(--space-2xl) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#simulateur::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%,  rgba(123,118,79,.14), transparent),
    radial-gradient(ellipse 40% 40% at 0%  100%, rgba(184,148,63,.08), transparent);
  pointer-events: none;
}

/* En-tête */
.sim-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.sim-header .section-title {
  color: var(--cream);
  margin-bottom: 14px;
}
.sim-header .section-sub {
  color: rgba(244,240,230,.55);
  max-width: 560px;
  margin-inline: auto;
}

/* Card principale */
.sim-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Onglets ───────────────────────────────────── */
.sim-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sim-tabs::-webkit-scrollbar { display: none; }

.sim-tab {
  flex: 0 0 auto;
  padding: 15px 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.sim-tab:hover  { color: var(--olive); }
.sim-tab.active { color: var(--olive-dark); border-bottom-color: var(--olive); }

/* ── Corps 2 colonnes ──────────────────────────── */
.sim-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

/* Colonne formulaire */
.sim-form-col {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
}
.sim-form-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.3;
}

/* Groupes de champs */
.sf-group { margin-bottom: 20px; }

.sf-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.sf-hint {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* Input texte / number standard */
.sf-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sf-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(123,118,79,.12);
}

/* Wrapper input + symbole € */
.sf-input-wrap { position: relative; }
.sf-input-euro {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sf-input-euro:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(123,118,79,.12);
}
.sf-euro-sym {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}

/* Select */
.sf-select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--dark);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A6E' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sf-select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(123,118,79,.12);
}

/* Radios en pastilles */
.sf-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
}
.sf-radio-label:has(input:checked) {
  background: var(--olive-subtle);
  border-color: var(--olive);
  color: var(--olive-dark);
}
.sf-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Checkboxes */
.sf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--mid);
  cursor: pointer;
  user-select: none;
}
.sf-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--olive);
  cursor: pointer;
  flex-shrink: 0;
}

/* Bouton Calculer */
.sf-submit { margin-top: auto; padding-top: 20px; }

/* ── Colonne résultat ──────────────────────────── */
.sim-result-col {
  background: var(--cream);
  border-left: 1px solid var(--cream-dark);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
}

/* État vide */
.sim-res-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  text-align: center;
}
.sim-res-empty-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.sim-res-empty-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--mid);
}
.sim-res-empty-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.6;
}

/* Résultat chiffré */
.sim-res-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sim-res-amount {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.sim-res-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.sim-res-divider {
  height: 1px;
  background: var(--cream-dark);
  margin-bottom: 16px;
}

/* Tableau de ventilation */
.sim-breakdown { display: flex; flex-direction: column; flex: 1; }
.sim-bk-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  gap: 12px;
}
.sim-bk-row:last-child { border-bottom: none; }
.sim-bk-name {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--mid);
  line-height: 1.4;
}
.sim-bk-note {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.sim-bk-val {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.sim-bk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--olive-light);
  gap: 12px;
}
.sim-bk-total-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dark);
}
.sim-bk-total-val {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--olive-dark);
}

/* Note légale inline résultat */
.sim-res-info {
  margin-top: 16px;
  padding: 11px 13px;
  background: var(--cream-mid);
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
}
/* CTA prendre RDV */
.sim-res-cta { margin-top: 14px; }
.sim-res-cta .btn { width: 100%; justify-content: center; }

/* Disclaimer global bas de section */
.sim-global-disclaimer {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: rgba(244,240,230,.32);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-result-col {
    border-left: none;
    border-top: 1px solid var(--cream-dark);
    min-height: 280px;
  }
}
@media (max-width: 640px) {
  .sim-form-col,
  .sim-result-col { padding: 28px 22px; }
  .sim-res-amount { font-size: 40px; }
  .sim-tab { padding: 13px 15px; font-size: 10px; }
  .sim-form-title { font-size: 19px; }
}


/* ═══════════════════════════════════════════════════════════════
   ÉQUIPE - #equipe
   Étape 7
═══════════════════════════════════════════════════════════════ */

#equipe {
  padding: var(--space-2xl) 0 0;
  background: var(--white);
  display: block; /* override placeholder flex */
}
#equipe::before { content: none; } /* suppress placeholder label */

/* ── En-tête ──────────────────────────────────────────────── */
.equipe-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: end;
  padding-bottom: var(--space-lg);
}
.equipe-head-left .section-title { margin-bottom: 0; }

/* ── Grille ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ─────────────────────────────────────────────────── */
.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,26,24,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
}
.team-card:hover {
  box-shadow: 0 12px 40px rgba(26,26,24,.18);
  transform: translateY(-4px);
}

/* Photo */
.tc-photo-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark);
}
.tc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1; /* au-dessus du fond gradient */
  object-position: top center;
  display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
/* Masque la photo si elle ne se charge pas (onerror) */
.tc-photo[data-error] { display: none; }

.team-card:hover .tc-photo { transform: scale(1.05); }

/* Fond de remplacement (gradient + initiales) */
.tc-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 300;
  letter-spacing: -4px;
  color: rgba(255,255,255,.15);
  user-select: none;
  /* background défini inline via JS (gradient unique par notaire) */
}
/* Quand la photo est en erreur, le bg devient visible */
.tc-photo[data-error] ~ .tc-photo-bg { z-index: 1; }

/* Overlay masqué - layout colonne, plus besoin */
.tc-overlay { display: none; }

/* ── Corps texte (toujours visible) ──────────────────────── */
.tc-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tc-titre {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 6px;
}
.tc-name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.tc-bio-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(26,26,24,.62);
  margin: 0 0 18px;
  flex: 1;
}
.tc-profil-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive-dark);
  background: rgba(123,118,79,.08);
  border: 1px solid rgba(123,118,79,.22);
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.tc-profil-btn:hover {
  background: rgba(123,118,79,.18);
  border-color: var(--olive);
  color: var(--olive-dark);
}

/* ── CTA bas de section ───────────────────────────────────── */
.equipe-cta {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Modal profil notaire ─────────────────────────────────── */
#team-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#team-modal.open { display: flex; }

.tm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,.75);
  backdrop-filter: blur(6px);
}
.tm-panel {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border: 1px solid rgba(196,188,138,.2);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 36px 32px 32px;
  max-height: 88vh;
  overflow-y: auto;
  animation: tmIn .28s cubic-bezier(.2,.8,.4,1) both;
}
@keyframes tmIn {
  from { opacity: 0; transform: scale(.96) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.tm-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(244,240,230,.2);
  background: none;
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.tm-close:hover { background: rgba(244,240,230,.1); border-color: rgba(244,240,230,.4); }
.tm-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.tm-photo-wrap {
  position: relative;
  width: 90px; height: 112px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.tm-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-photo-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 500;
  color: rgba(244,240,230,.45);
  z-index: 0;
}
.tm-header-info { padding-top: 6px; }
.tm-titre {
  font-family: var(--font-sans);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--olive-light);
  margin: 0 0 8px;
}
.tm-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.15;
  margin: 0;
}
.tm-bio {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244,240,230,.72);
  margin: 0;
}
@media (max-width: 500px) {
  .tm-panel { padding: 28px 18px 22px; }
  .tm-header { flex-direction: column; }
  .tm-photo-wrap { width: 100%; height: 180px; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .equipe-intro {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
  .equipe-cta { flex-direction: column; align-items: stretch; }
  .equipe-cta .btn { text-align: center; justify-content: center; }
  .tc-photo-wrap { height: 200px; }
}


/* ═══════════════════════════════════════════════════════════════
   GALERIE DE L'ÉTUDE - #galerie
═══════════════════════════════════════════════════════════════ */

#galerie {
  padding: var(--space-xxl) 0;
  background: var(--cream);
  overflow: hidden;
}

.galerie-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.galerie-header .eyebrow { margin-bottom: 10px; display: block; }
.galerie-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.2;
}
.galerie-title em { font-style: italic; color: var(--olive); }
.galerie-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grille 3 colonnes, première photo en tall (span 2 lignes) */
.galerie-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 4px;
}
.gal-photo {
  overflow: hidden;
  position: relative;
  background: var(--cream-dark);
}
.gal-tall {
  grid-row: span 2;
}
.gal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback si photo manquante */
.gal-photo.gal-error::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, var(--olive-subtle) 0%, var(--cream-dark) 100%);
}

/* Responsive galerie */
@media (max-width: 960px) {
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .gal-tall { grid-row: span 1; }
}
@media (max-width: 600px) {
  .galerie-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }
}


/* ═══════════════════════════════════════════════════════════════
   BLOG & NEWSLETTER - #blog
   Étape 8
═══════════════════════════════════════════════════════════════ */

/* Utilitaire accessibilité */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Section ──────────────────────────────────────────────── */
#blog {
  padding: var(--space-2xl) 0 0;
  background: var(--cream);
  display: block; /* override placeholder flex */
}
#blog::before { content: none; } /* suppress placeholder label */

/* ── En-tête ──────────────────────────────────────────────── */
.blog-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-lg);
}
.blog-head-left .section-title { margin-bottom: 0; }

/* ── Filtres ──────────────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.blog-filter-btn {
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 24px;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.blog-filter-btn:hover {
  color: var(--olive);
  border-color: var(--olive-light);
}
.blog-filter-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

/* ── Grille ───────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: var(--space-2xl);
}

/* ── Card ─────────────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  /* Scroll reveal - géré par IntersectionObserver + .visible */
  opacity: 0;
  transition: box-shadow .25s ease, transform .3s ease;
}

/* Reveal au scroll */
@keyframes blogReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.blog-card.visible {
  animation: blogReveal .55s ease calc(var(--bi, 0) * 70ms) both;
}

/* Hover lift (après reveal) */
.blog-card.visible:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.11);
}

/* Cachée par le filtre */
.blog-card.hidden { display: none; }

/* Image (vraie photo ou placeholder) */
.bc-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.bc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.blog-card:hover .bc-photo { transform: scale(1.05); }

.bc-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s ease;
}
.blog-card:hover .bc-img-placeholder { transform: scale(1.05); }

.bc-img-icon {
  font-size: 42px;
  opacity: .55;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}

/* Corps */
.bc-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Méta : catégorie + date */
.bc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-cat {
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* Couleurs par catégorie */
.cat-immo      { background: rgba(123,118,79,.11);  color: #5A5638; border-color: rgba(123,118,79,.22); }
.cat-famille   { background: rgba(184,148,63,.11);  color: #8B6320; border-color: rgba(184,148,63,.22); }
.cat-fiscalite { background: rgba(58, 74, 68,.11);  color: #2A4A3A; border-color: rgba(58, 74, 68,.22); }
.cat-succ      { background: rgba(139,107,70,.11);  color: #5A3A1A; border-color: rgba(139,107,70,.22); }
.cat-actu      { background: rgba(40, 80, 80,.11);  color: #1A5050; border-color: rgba(40, 80, 80,.22); }

.bc-date {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* Titre */
.bc-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Extrait */
.bc-excerpt {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Pied de carte */
.bc-footer {
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--cream-dark);
}

.bc-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color .2s, gap .2s;
}
.bc-read:hover { color: var(--olive-dark); gap: 11px; }

/* ── Load More ─────────────────────────────────────────────── */
.blog-load-more {
  display: block;
  margin: 2.5rem auto 0;
  padding: .75rem 2.25rem;
  background: transparent;
  border: 1.5px solid var(--olive);
  border-radius: 4px;
  color: var(--olive);
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.blog-load-more:hover {
  background: var(--olive);
  color: #fff;
}

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-block {
  background: var(--dark);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at  0% 50%, rgba(123,118,79,.14), transparent),
    radial-gradient(ellipse 35% 45% at 100% 0%,  rgba(184,148,63,.08), transparent);
  pointer-events: none;
}

.nl-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Gauche */
.nl-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(123,118,79,.2);
  border: 1px solid rgba(196,188,138,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive-light);
  margin-bottom: 20px;
}
.nl-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 14px;
}
.nl-sub {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(244,240,230,.52);
  line-height: 1.7;
}

/* Droite */
.nl-row {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(196,188,138,.2);
  margin-bottom: 12px;
  transition: border-color .2s;
}
.nl-row:focus-within { border-color: var(--olive-light); }

.nl-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream);
  background: rgba(255,255,255,.07);
  border: none;
  outline: none;
}
.nl-input::placeholder { color: rgba(244,240,230,.32); }

.nl-submit {
  flex-shrink: 0;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  font-size: 11.5px;
}

.nl-rgpd {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(244,240,230,.36);
  line-height: 1.65;
  margin-bottom: 20px;
}
.nl-link {
  color: rgba(196,188,138,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.nl-link:hover { color: var(--olive-light); }

/* Réassurance */
.nl-trust {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nl-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(244,240,230,.45);
}
.nl-trust-item svg { color: var(--olive-light); flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-header { grid-template-columns: 1fr; gap: var(--space-sm); }
  .blog-grid   { grid-template-columns: repeat(2, 1fr); }
  .nl-inner    { grid-template-columns: 1fr; gap: var(--space-lg); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-filters { gap: 6px; }
  .blog-filter-btn { padding: 8px 14px; font-size: 10px; }
  .nl-row { flex-direction: column; }
  .nl-input  { border-radius: 8px 8px 0 0; }
  .nl-submit { border-radius: 0 0 8px 8px; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════
   §9 - CONTACT
═══════════════════════════════════════════════════════════════════ */

/* Section wrapper */
#contact {
  padding: var(--space-xxl) 0;
  background: var(--white);
  display: block;
}
#contact::before { content: none; }

/* ── En-tête - même disposition que la section expertises ── */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 52px;
}
.contact-head-left { flex: 0 0 auto; }
.contact-head-right {
  flex: 0 1 460px;
  margin-bottom: 6px;
  text-align: right;
}

/* Corps : 2 colonnes */
.contact-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Colonne formulaire : même traitement visuel que les exp-card ── */
.contact-form-col {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 40px 36px 36px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--olive-dark);
}
.cf-label abbr {
  text-decoration: none;
  color: var(--gold);
  margin-left: 2px;
}
.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--dark);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.cf-input::placeholder,
.cf-textarea::placeholder { color: #aaa9a0; }
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(123,118,79,.12);
}
.cf-input.error,
.cf-select.error,
.cf-textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B764F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.cf-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Case RGPD */
.cf-check-group { margin-top: 2px; }
.cf-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #666;
  line-height: 1.55;
}
.cf-check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 4px;
  accent-color: var(--olive);
  cursor: pointer;
}
.cf-check-label .cf-link {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bouton envoi */
.cf-submit-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.cf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cf-mandatory {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #aaa;
  margin: 0;
}

/* ── Colonne coordonnées : card assortie ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 36px 32px 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contact-infos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--olive-subtle);
  border: 1px solid rgba(123,118,79,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}
.ci-label {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive-mid);
}
.ci-value {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--dark);
  line-height: 1.55;
}
.ci-value a {
  color: var(--dark);
  text-decoration: none;
  transition: color .2s ease;
}
.ci-value a:hover { color: var(--olive); }

/* Carte Google Maps */
.contact-map {
  border-radius: 14px;
  overflow: hidden;
  height: 260px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Responsive Contact ── */
@media (max-width: 960px) {
  .contact-header { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 32px; }
  .contact-head-right { text-align: left; flex: 1 1 auto; }
  .contact-body   { grid-template-columns: 1fr; }
  .contact-info-col { order: -1; }
}
@media (max-width: 600px) {
  .cf-row-2 { grid-template-columns: 1fr; }
  .cf-submit-wrap { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════════
   §10 - FOOTER
═══════════════════════════════════════════════════════════════════ */

#footer {
  background: var(--dark);
  color: rgba(244,240,230,.72);
}

/* ── Grille principale ── */
.footer-main {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(244,240,230,.09);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Colonne marque */
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: fit-content;
}
.footer-logo-link {
  /* Override the earlier display:flex + gap */
  display: block !important;
}
.footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Display logo in a frosted white pill so it stays readable on dark footer */
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 16px;
  /* Lighten to make readable (keeps logo colours visible) */
  filter: brightness(1.15) contrast(0.9);
  opacity: 0.88;
  transition: opacity var(--transition), background var(--transition);
}
.footer-logo-link:hover .footer-logo-img {
  opacity: 1;
  background: rgba(255,255,255,0.16);
}
.footer-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(148deg, var(--olive) 0%, var(--olive-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  flex-shrink: 0;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--cream);
  letter-spacing: .01em;
}
.footer-name strong { font-weight: 700; }
.footer-tagline {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(244,240,230,.5);
  max-width: 280px;
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(244,240,230,.14);
  color: rgba(244,240,230,.55);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.footer-social-link:hover {
  border-color: var(--olive-light);
  color: var(--olive-light);
  background: rgba(123,118,79,.10);
}

/* Titres de colonnes */
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin: 0 0 4px;
}

/* Liens de colonnes */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(244,240,230,.62);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
  display: block;
}
.footer-links a:hover {
  color: var(--cream);
  padding-left: 5px;
}

/* Colonne contact */
.footer-address {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: rgba(244,240,230,.62);
  line-height: 1.6;
}
.footer-info-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(244,240,230,.62);
  text-decoration: none;
  transition: color .2s ease;
  display: block;
}
.footer-info-link:hover { color: var(--cream); }
.footer-rdv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 12.5px;
  margin-top: 4px;
  align-self: flex-start;
}

/* ── Barre de bas de page ── */
.footer-bottom {
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(244,240,230,.35);
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(244,240,230,.35);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-legal a:hover { color: rgba(244,240,230,.72); }

/* ── Responsive Footer ── */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .footer-brand-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: var(--space-md); }
  .footer-tagline { max-width: 360px; }
}
@media (max-width: 600px) {
  .footer-main { padding: 48px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-brand-col { flex-direction: column; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { gap: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════
   §11 - UTILITAIRES GLOBAUX / COHÉRENCE
═══════════════════════════════════════════════════════════════════ */

/* Section Espace-Client masquée (étape 5 annulée) */
#espace-client { display: none !important; }
#espace-client::before { content: none; }


/* ═══════════════════════════════════════════════════════════════════
   §12 - MODALES BLOG, NEWSLETTER, LEGAL, CONNEXION
═══════════════════════════════════════════════════════════════════ */

/* ── Modal blog article ───────────────────────────────────── */
#blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#blog-modal.open { display: flex; }
.bm-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,8,.75);
  backdrop-filter: blur(6px);
}
.bm-panel {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 16px;
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: tmIn .28s cubic-bezier(.2,.8,.4,1) both;
}
.bm-img-wrap {
  width: 100%; aspect-ratio: 16/7;
  overflow: hidden; border-radius: 16px 16px 0 0; flex-shrink: 0;
}
.bm-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; background: var(--cream); }
.bm-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(26,26,24,.15);
  background: rgba(255,255,255,.9);
  color: var(--dark); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bm-close:hover { background: var(--cream-dark); }
.bm-body { padding: 28px 32px 32px; }
.bm-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.bm-date { font-family: var(--font-sans); font-size: 11px; color: var(--muted); }
.bm-title {
  font-family: var(--font-serif); font-size: clamp(20px,3vw,28px);
  font-weight: 500; color: var(--dark); line-height: 1.25; margin-bottom: 16px;
}
.bm-excerpt {
  font-family: var(--font-sans); font-size: 14px;
  line-height: 1.8; color: var(--mid); margin-bottom: 24px;
}
.bm-excerpt p { margin: 0 0 14px; }
.bm-excerpt p:last-child { margin-bottom: 0; }
.bm-section-heading {
  font-family: var(--font-serif); font-size: 16px; font-weight: 600;
  color: var(--olive-dark); margin: 22px 0 8px; line-height: 1.3;
}
.bm-section-heading:first-child { margin-top: 0; }
.bm-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bm-read-full {
  display: inline-flex; align-items: center; gap: 8px;
}
.bm-cancel {
  font-family: var(--font-sans); font-size: 11px; color: var(--muted);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s;
}
.bm-cancel:hover { color: var(--dark); }
@media (max-width: 600px) {
  .bm-body { padding: 20px 18px 24px; }
  .bm-panel { border-radius: 12px; }
  .bm-img-wrap { border-radius: 12px 12px 0 0; }
}

/* ── Modal newsletter ─────────────────────────────────────── */
#nl-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
#nl-modal.open { display: flex; }
.nlm-backdrop { position: absolute; inset: 0; background: rgba(10,10,8,.7); backdrop-filter: blur(5px); }
.nlm-panel {
  position: relative; z-index: 1;
  background: var(--dark); border: 1px solid rgba(196,188,138,.2);
  border-radius: 16px; max-width: 480px; width: 100%;
  padding: 40px 36px 36px;
  animation: tmIn .28s cubic-bezier(.2,.8,.4,1) both;
}
.nlm-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(244,240,230,.2); background: none;
  color: var(--cream); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nlm-close:hover { background: rgba(244,240,230,.1); }
.nlm-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(123,118,79,.2); border: 1px solid rgba(196,188,138,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-light); margin-bottom: 18px;
}
.nlm-title {
  font-family: var(--font-serif); font-size: clamp(22px,3vw,28px);
  font-weight: 500; color: var(--cream); line-height: 1.2; margin-bottom: 8px;
}
.nlm-sub {
  font-family: var(--font-sans); font-size: 12.5px;
  color: rgba(244,240,230,.52); line-height: 1.7; margin-bottom: 24px;
}
.nlm-row {
  display: flex; border-radius: 10px; overflow: hidden;
  border: 1.5px solid rgba(196,188,138,.2); margin-bottom: 12px;
  transition: border-color .2s;
}
.nlm-row:focus-within { border-color: var(--olive-light); }
.nlm-input {
  flex: 1; min-width: 0; padding: 13px 16px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--cream); background: rgba(255,255,255,.07); border: none; outline: none;
}
.nlm-input::placeholder { color: rgba(244,240,230,.32); }
.nlm-submit { flex-shrink: 0; border-radius: 0 8px 8px 0; padding: 13px 20px; font-size: 11px; }
.nlm-rgpd { font-family: var(--font-sans); font-size: 10px; color: rgba(244,240,230,.36); line-height: 1.65; }
.nlm-link { color: rgba(196,188,138,.55); text-decoration: underline; text-underline-offset: 2px; }

/* ── Modal légal (mentions / confidentialité) ─────────────── */
#legal-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: flex-start; justify-content: center; padding: 40px 20px;
  overflow-y: auto;
}
#legal-modal.open { display: flex; }
.lm-backdrop { position: fixed; inset: 0; background: rgba(10,10,8,.7); backdrop-filter: blur(5px); }
.lm-panel {
  position: relative; z-index: 1;
  background: var(--white); border-radius: 16px;
  max-width: 720px; width: 100%; padding: 40px 44px 44px;
  animation: tmIn .28s cubic-bezier(.2,.8,.4,1) both;
  margin: auto;
}
.lm-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--cream-dark); background: none;
  color: var(--dark); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lm-close:hover { background: var(--cream); }
.lm-eyebrow {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 10px; display: block;
}
.lm-title {
  font-family: var(--font-serif); font-size: clamp(22px,3vw,30px);
  font-weight: 400; color: var(--dark); margin-bottom: 24px; line-height: 1.2;
}
.lm-body { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.85; color: var(--mid); }
.lm-body h3 { font-family: var(--font-serif); font-size: 18px; color: var(--dark); margin: 22px 0 8px; }
.lm-body p { margin-bottom: 12px; }
.lm-body a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .lm-panel { padding: 28px 20px 32px; border-radius: 12px; }
}

/* ── Modal connexion (login / register) ───────────────────── */
#signin-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
#signin-modal.open { display: flex; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(10,10,8,.72); backdrop-filter: blur(5px); }
.sm-panel {
  position: relative; z-index: 1;
  background: var(--white); border-radius: 16px;
  max-width: 420px; width: 100%; padding: 40px 36px 36px;
  animation: tmIn .28s cubic-bezier(.2,.8,.4,1) both;
}
.sm-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--cream-dark); background: none;
  color: var(--dark); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.sm-close:hover { background: var(--cream); }
.sm-tabs {
  display: flex; border-bottom: 2px solid var(--cream-dark);
  margin-bottom: 28px;
}
.sm-tab {
  flex: 1; padding: 10px 0; font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: none; border: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.sm-tab:hover { color: var(--olive); }
.sm-tab.active { color: var(--olive-dark); border-bottom-color: var(--olive); }
.sm-title {
  font-family: var(--font-serif); font-size: 24px; font-weight: 400;
  color: var(--dark); margin-bottom: 6px;
}
.sm-sub { font-family: var(--font-sans); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.sm-form { display: flex; flex-direction: column; gap: 14px; }
.sm-group { display: flex; flex-direction: column; gap: 5px; }
.sm-label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--olive-dark); }
.sm-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--cream-dark);
  border-radius: 8px; font-family: var(--font-sans); font-size: 13.5px;
  color: var(--dark); outline: none; transition: border-color .2s, box-shadow .2s;
}
.sm-input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(123,118,79,.12); }
.sm-submit { margin-top: 6px; width: 100%; justify-content: center; }
.sm-footer { margin-top: 16px; font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); text-align: center; }
.sm-footer a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sm-divider { height: 1px; background: var(--cream-dark); margin: 4px 0 10px; }
.sm-forgot { font-family: var(--font-sans); font-size: 11px; color: var(--muted); text-align: right; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.sm-forgot:hover { color: var(--olive); }
/* ═══════════════════════════════════════════════════════════════════
   §MOBILE - 480px (iPhone 14 = 390px, couvre jusqu'à 480px)
   Breakpoint dédié ultra-étroit : complète les règles 640px/768px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Container global ── */
  .container { padding-inline: 18px; }

  /* ── Navigation ── */
  .nav-inner { padding-inline: 16px; }

  /* ── Hero ── */
  .hero-left { padding: 44px 18px; }
  .hero-desc { max-width: 100%; font-size: 12px; }
  .hero-btns { gap: 10px; }

  /* ── Recherche ── */
  #search { padding: 48px 18px; }

  /* ── Expertises ── */
  #expertises { padding-top: 52px; }
  .exp-section-head { padding: 0 18px 32px; }
  .exp-grid { padding: 0 18px 48px; gap: 12px; }
  .exp-card { padding: 24px 18px 20px; border-radius: 14px; }
  .exp-num { font-size: 32px; }
  .exp-title { font-size: 18px; }
  .exp-modal-header { padding: 16px 18px 14px; }
  .exp-modal-body   { padding: 16px 18px 22px; }

  /* ── Wizard ── */
  #wizard.wiz-modal-open { padding: 12px; }
  #wizard.wiz-modal-open .wiz-wrap { padding: 28px 20px; border-radius: 16px; }
  .wiz-opts-grid { gap: 8px; }
  .wiz-opt-card { padding: 14px 12px; }
  .wiz-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }

  /* ── Simulateur ── */
  .sim-form-col, .sim-result-col { padding: 24px 18px; }
  .sim-res-amount { font-size: 38px; }
  .sim-form-title { font-size: 18px; }
  .sim-tab { padding: 12px 14px; font-size: 9.5px; letter-spacing: .04em; }

  /* ── Équipe ── */
  .equipe-intro { gap: 12px; padding-bottom: 32px; }
  .tc-body { padding: 18px 16px 20px; }
  .tc-name { font-size: 17px; }

  /* ── Galerie ── */
  .galerie-header { margin-bottom: 32px; }
  .galerie-grid { grid-template-rows: repeat(5, 200px); }

  /* ── Blog ── */
  .blog-header { grid-template-columns: 1fr; gap: 12px; }
  .blog-grid { gap: 16px; margin-bottom: 48px; }
  .blog-filter-btn { padding: 8px 12px; font-size: 10px; }
  .bc-body { padding: 16px 18px 16px; }

  /* ── Newsletter ── */
  .newsletter-block { padding: 48px 0; }
  .nl-inner { gap: 28px; }

  /* ── Contact ── */
  .contact-header { padding-bottom: 28px; }
  .contact-form-col { padding: 28px 20px 24px; border-radius: 14px; }
  .contact-info-col { padding: 24px 20px 24px; border-radius: 14px; }
  .cf-label { font-size: 11px; }
  .cf-row-2 { gap: 12px; }
  .cf-input, .cf-select, .cf-textarea { font-size: 15px; } /* évite le zoom iOS */

  /* ── Footer ── */
  .footer-main { padding: 44px 0 36px; }
  .footer-bottom { padding: 16px 0; }
  .footer-rdv-btn { align-self: stretch; justify-content: center; }

  /* ── Modales - padding réduit sur petit écran ── */
  .modal-overlay { padding: 12px; }
  .modal-box { border-radius: 14px; }
  .bm-panel { padding: 20px 16px 24px; border-radius: 12px; }
  .bm-img-wrap { border-radius: 12px 12px 0 0; }
  .bm-body { padding: 20px 16px 22px; }
  .bm-title { font-size: 20px; }
  .tm-panel { padding: 24px 16px 20px; }
  .lm-panel { padding: 28px 18px 28px; border-radius: 12px; }
  .sm-panel { padding: 28px 18px 24px; }
  .nlm-panel { padding: 32px 18px 28px; }

  /* ── Boutons - taille tactile minimale 44px ── */
  .btn-sm { padding: 12px 22px; font-size: 9.5px; }

  /* ── Sections titre ── */
  .section-title em { display: inline; }

  /* ── Utilitaires ── */
  .hero-badge { bottom: 16px; right: 16px; padding: 14px 16px; min-width: 130px; }
  .hero-badge-text { font-size: 15px; }
  #scroll-top { bottom: 20px; left: 16px; }
  #toast { right: 16px; left: 16px; max-width: none; bottom: 20px; }
}


/* ═══════════════════════════════════════════════════════════════════
   §ANIMATIONS MODALES - fade in / out unifié pour toutes les modales
═══════════════════════════════════════════════════════════════════ */
@keyframes kbZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes overlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes panelOut {
  from { transform: none;             opacity: 1; }
  to   { transform: translateY(14px); opacity: 0; }
}

/* ── Entrée - overlay en fondu ── */
.modal-overlay.open,
#team-modal.open,
#blog-modal.open,
#nl-modal.open,
#legal-modal.open,
#signin-modal.open { animation: overlayIn .3s ease; }

/* ── Sortie - garder display + fondu sortant ── */
.modal-overlay.closing,
#team-modal.closing,
#blog-modal.closing,
#nl-modal.closing,
#legal-modal.closing,
#signin-modal.closing {
  display: flex !important;
  animation: overlayOut .28s ease both;
}
.modal-overlay.closing .modal-box { animation: panelOut .22s ease forwards; }
#team-modal.closing   .tm-panel   { animation: panelOut .22s ease forwards; }
#blog-modal.closing   .bm-panel   { animation: panelOut .22s ease forwards; }
#nl-modal.closing     .nlm-panel  { animation: panelOut .22s ease forwards; }
#legal-modal.closing  .lm-panel   { animation: panelOut .22s ease forwards; }
#signin-modal.closing .sm-panel   { animation: panelOut .22s ease forwards; }


/* ═══════════════════════════════════════════════════════════════════
   §EXPERTISE - Panneau inline (mobile ≤ 640px)
   Remplace la modale flottante par un expand en place sous la card
═══════════════════════════════════════════════════════════════════ */
.exp-inline-panel {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .42s ease, opacity .28s ease, padding .28s ease;
}
.exp-inline-panel.visible {
  max-height: 1400px;
  opacity: 1;
  padding: 24px 20px 28px;
}
.exp-card.active {
  border-color: var(--olive);
  box-shadow: 0 6px 24px rgba(123,118,79,.14);
}
.eip-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 8px 0;
  transition: color .2s;
  min-height: 44px;
}
.eip-close:hover { color: var(--dark); }


/* ═══════════════════════════════════════════════════════════════════
   §MOBILE RENFORCÉ - overflow-x hermétique + wizard pleine largeur
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  section, header { overflow-x: hidden; max-width: 100vw; }

  /* Wizard : boutons pleine largeur */
  .wiz-card-footer { flex-direction: column-reverse; gap: 10px; }
  .wiz-next { width: 100%; justify-content: center; min-height: 48px; }
  .wiz-back {
    text-align: center; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
  }

  /* Contact : inputs pleine largeur */
  .cf-input, .cf-select, .cf-textarea { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════
   §360px - Android étroit (Galaxy S, Pixel, etc.)
   Complète le bloc 480px pour les écrans 360–389px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 390px) {

  /* Container */
  .container { padding-inline: 14px; }
  .nav-inner  { padding-inline: 14px; }
  .nav-logo-img { height: 38px; }

  /* Hero */
  .hero-left  { padding: 36px 14px; }
  .hero-title { font-size: clamp(30px, 9vw, 40px); }
  .hero-desc  { font-size: 11.5px; }
  .hero-btns .btn { font-size: 8.5px; padding: 12px 16px; }
  .hero-stats { gap: 12px; }
  .stat-num   { font-size: 22px; }
  .hero-badge { display: none; }

  /* Recherche */
  #search { padding: 40px 14px; }
  .search-heading { font-size: clamp(17px, 5.5vw, 22px); }

  /* Expertises */
  .exp-section-head { padding: 0 14px 28px; }
  .exp-grid { padding: 0 14px 40px; gap: 10px; }
  .exp-card { padding: 20px 14px 18px; border-radius: 12px; }
  .exp-title { font-size: 16px; }
  .exp-inline-panel.visible { padding: 18px 14px 22px; }

  /* Wizard */
  #wizard.wiz-modal-open { padding: 8px; }
  #wizard.wiz-modal-open .wiz-wrap { padding: 20px 14px; border-radius: 14px; }
  .wiz-card-body    { padding: 20px 16px; min-height: 240px; }
  .wiz-question     { font-size: 20px; }
  .wiz-opt-card     { padding: 12px 10px; }
  .wiz-opt-label    { font-size: 14px; }

  /* Simulateur */
  .sim-form-col, .sim-result-col { padding: 20px 14px; }
  .sim-res-amount { font-size: 32px; }
  .sim-tab { padding: 10px 12px; font-size: 9px; }

  /* Équipe */
  .tc-body { padding: 14px 12px 16px; }
  .tc-name { font-size: 15px; }

  /* Blog */
  .bc-body { padding: 14px; }
  .bc-title { font-size: 15px; }
  .blog-filter-btn { padding: 6px 10px; font-size: 9.5px; }

  /* Contact */
  .contact-form-col { padding: 22px 14px 20px; }
  .contact-info-col { padding: 20px 14px; }
  .cf-input, .cf-select, .cf-textarea { font-size: 16px; }

  /* Footer */
  .footer-main { padding: 36px 0 28px; }

  /* Modales */
  .modal-overlay { padding: 8px; }
  .modal-box { border-radius: 12px; }
  .tm-panel  { padding: 20px 12px 18px; border-radius: 12px; }
  .bm-body   { padding: 16px 14px 18px; }
  .lm-panel  { padding: 22px 14px; }
  .sm-panel  { padding: 22px 14px 18px; }
  .nlm-panel { padding: 26px 14px 22px; }

  /* Boutons */
  .btn    { min-height: 48px; padding: 14px 20px; }
  .btn-sm { min-height: 48px; padding: 13px 18px; font-size: 9px; }
  .search-tag { padding: 8px 12px; min-height: 44px; }

  /* Utilitaires */
  #toast { right: 10px; left: 10px; bottom: 14px; }
  #scroll-top { bottom: 14px; left: 10px; width: 40px; height: 40px; }
}

/* ───────────────────────────────────────────────────────────────
   AJOUTS DU 5 OCTOBRE 2026
   Fenêtres superposées (profil et article au-dessus d'une fiche domaine
   ou du questionnaire), liens des fiches domaine, écran de résultat.
──────────────────────────────────────────────────────────────── */
#team-modal, #blog-modal { z-index: 10050; }

.tm-bio { white-space: pre-line; }
.tm-rdv { margin-top: 24px; width: 100%; justify-content: center; }

button.exp-modal-notaire-card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
button.exp-modal-notaire-card:hover,
button.exp-modal-notaire-card:focus-visible {
  border-color: var(--olive);
  background: rgba(123,118,79,.06);
}
.exp-modal-notaire-link {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .5px;
  color: var(--muted);
  transition: color .2s;
}
button.exp-modal-notaire-card:hover .exp-modal-notaire-link { color: var(--olive); }

.exp-modal-articles { margin-bottom: 22px; }
.exp-modal-art-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-modal-art {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  font: inherit;
  background: none;
  border: none;
  border-left: 2px solid var(--cream-dark);
  padding: 6px 0 6px 12px;
  cursor: pointer;
  transition: border-color .2s;
}
.exp-modal-art:hover,
.exp-modal-art:focus-visible { border-left-color: var(--olive); }
.exp-modal-art-date {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.exp-modal-art-title {
  font-size: 13px;
  line-height: 1.45;
  color: var(--dark);
  transition: color .2s;
}
.exp-modal-art:hover .exp-modal-art-title { color: var(--olive); }

/* Questionnaire : écran de résultat (rendez-vous, domaine, notaires) */
.wiz-result-sub {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 10px;
  text-align: left;
}
.wiz-result .wiz-notaire-card { margin-bottom: 10px; }
.wiz-domain-icon { background: var(--cream-dark); color: var(--olive); }
.wiz-domain-icon svg { width: 22px; height: 22px; }
.wiz-result .wiz-restart { margin-top: 12px; }
/* Fiche profil : la photo passe au-dessus du médaillon à initiales (affiché seulement si la photo manque) */
.tm-photo { position: relative; z-index: 1; }

/* Carte Google Maps chargée à la demande */
.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  text-align: center;
  background: var(--cream);
}
.map-consent-txt {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 340px;
  margin: 0;
}
.map-consent-link {
  font-size: 11px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bloc newsletter masqué tant qu'aucun outil d'inscription n'est branché */
.newsletter-block[hidden] { display: none !important; }

/* Fenêtres : le défilement à l'intérieur ne se propage pas à la page derrière */
.modal-box, .tm-panel, .bm-panel, .lm-panel, #wizard.wiz-modal-open {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Fiche domaine : bouton « Voir les autres articles » */
.exp-art-more {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 6px 0;
  font: inherit;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Mobile : fiche domaine en fenêtre et écran de résultat du questionnaire */
@media (max-width: 640px) {
  .modal-overlay { padding: 12px; }
  .modal-box { max-height: calc(100dvh - 24px); }
  .exp-modal-title { font-size: 21px; line-height: 1.2; }

  /* Cartes domaine / notaire : le bouton passe sous le texte au lieu de l'écraser */
  .wiz-notaire-card { flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .wiz-notaire-info { flex: 1 1 0; min-width: 0; }
  .wiz-notaire-name { font-size: 13px; line-height: 1.3; }
  .wiz-notaire-spec { font-size: 9px; line-height: 1.4; }
  .wiz-notaire-badge { flex: 1 0 100%; text-align: center; padding: 7px 9px; }
  .wiz-notaire-avatar { width: 42px; height: 42px; font-size: 13px; }
  .wiz-result-titre { font-size: 22px; line-height: 1.25; }
  .wiz-result-tag { line-height: 1.5; }
  .wiz-result-texte { margin-bottom: 18px; }
}
