/* =========================================================
   pages/home.css — REDESIGN "Maison éditoriale"
   Cohérent avec 20_navbar.css + 90_footer.css + 10_global.css
   - Cormorant Garamond (titres, italiques) + Inter (corps, labels)
   - Or B8924D (filets, accents, soulignements)
   - Light : parchemin uniforme du global + section alt ivoire
   - Dark  : surfaces transparentes pour laisser passer le starfield
   Dépendances : 00_tokens.css, 10_global.css, 30_buttons.css
   ========================================================= */


/* =========================================================
   TOKENS LOCAUX (fallbacks défensifs)
   ========================================================= */
body.page-home{
  --home-rule: var(--mmx-gold, #B8924D);
  --home-rule-soft: rgba(184, 146, 77, 0.30);
  --home-eyebrow: var(--mmx-gold-hover, #C8A86B);
}


/* =========================================================
   STRUCTURE COMMUNE
   ========================================================= */
.home-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 767.98px){
  .home-container{ padding: 0 1.1rem; }
}

.home-section{
  padding: 4.5rem 0;
  position: relative;
}
@media (max-width: 767.98px){
  .home-section{ padding: 3rem 0; }
}

/* Plus d'air avant les charnières narratives (Mécanismes / Pour qui / Contact) */
#sec-5,
#sec-7,
#sec-8{
  padding-top: 7rem;
}
@media (max-width: 767.98px){
  #sec-5,
  #sec-7,
  #sec-8{
    padding-top: 4.5rem;
  }
}


/* =========================================================
   EYEBROW (sur-titre Inter uppercase + petit chiffre romain)
   ========================================================= */
.home-eyebrow{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--home-eyebrow);
  margin: 0 0 1.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  line-height: 1;
}

.home-eyebrow-roman{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--home-rule);
  text-transform: none;
  display: inline-block;
  padding-left: 0.9rem;
  border-left: 1px solid var(--home-rule-soft);
  line-height: 1;
}


/* =========================================================
   FILET OR — utilitaires (statique + animé)
   ========================================================= */
.home-rule{
  display: block;
  height: 1px;
  width: 80px;
  background: var(--home-rule);
  margin: 1.4rem 0;
  border: 0;
  padding: 0;
}

.home-rule-anim{
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}
.home-rule-anim.is-visible{ width: 80px; }


/* =========================================================
   TYPOGRAPHIE
   ========================================================= */
.home-h1{
  font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0 0;
  color: var(--heading, var(--text-main));
}

.home-h2{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--heading, var(--text-main));
}

.home-h3{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.7rem 0;
  color: var(--heading, var(--text-main));
}

.home-lead{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  margin: 0 0 1.4rem 0;
  color: var(--text-main);
  max-width: 720px;
}

.home-paragraph{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0 0 1rem 0;
  color: var(--text-muted);
  max-width: 640px;
}

.home-paragraph-strong{
  color: var(--text-main);
  font-weight: 500;
}


/* =========================================================
   H1 SPLIT EN MOTS — animation fade séquentielle
   ========================================================= */
.home-word{
  display: inline-block;
  vertical-align: top;
}

.home-word-inner{
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-word-inner.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   1. HERO
   ========================================================= */
.home-hero{
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 767.98px){
  .home-hero{ padding-top: 3rem; padding-bottom: 2.5rem; }
}

.home-hero-paragraphs{
  max-width: 720px;
}

/* lead + paragraphes du hero invisibles par défaut, révélés par JS */
.home-hero .home-lead,
.home-hero .home-paragraph{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.home-hero .home-lead.is-visible,
.home-hero .home-paragraph.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   3. SPLIT (texte + image)
   ========================================================= */
.home-split{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.2rem;
  align-items: center;
}
.home-split-reverse{ grid-template-columns: 0.95fr 1.05fr; }

@media (max-width: 991.98px){
  .home-split,
  .home-split-reverse{
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

.home-split-text{ max-width: 580px; }

.home-section-head{ margin-bottom: 1.6rem; }


/* Image dans cadre éditorial sobre */
.home-media-card{
  margin: 0;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
  background: var(--surface, rgba(248, 240, 220, 0.06));
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-media-card::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--home-rule);
  transform: translateX(-50%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-media-card:hover::after{ width: 60%; }

.home-media-img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.home-media-card:hover .home-media-img{
  transform: scale(1.012);
}


/* =========================================================
   4. MÉCANISMES — chiffres romains + filet or
   ========================================================= */
.home-mechanisms{
  margin-top: 2.4rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--home-rule-soft);
}

.home-mechanism{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--home-rule-soft);
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}
@media (max-width: 600px){
  .home-mechanism{
    grid-template-columns: 64px 1fr;
    gap: 1.1rem;
    padding: 1.5rem 0.3rem;
  }
}

.home-mechanism:hover{
  background: rgba(184, 146, 77, 0.04);
}
.home-mechanism:focus-visible{
  outline: 1px dotted var(--home-rule);
  outline-offset: 4px;
}

.home-mechanism-num{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--text-soft, var(--text-muted));
  opacity: 0.4;
  transition: color 0.3s ease, opacity 0.3s ease;
  text-align: right;
  padding-top: 0.05em;
  font-variant-numeric: tabular-nums;
}

.home-mechanism:hover .home-mechanism-num,
.home-mechanism.is-active .home-mechanism-num{
  color: var(--home-rule);
  opacity: 1;
}

.home-mechanism-body{ min-width: 0; }
.home-mechanism-details{ margin-top: 0.4rem; }

.home-mechanism.is-active .home-mechanism-body{
  padding-left: 1rem;
  border-left: 1px solid var(--home-rule);
  margin-left: -1rem;
}
@media (max-width: 600px){
  .home-mechanism.is-active .home-mechanism-body{
    padding-left: 0.7rem;
    margin-left: -0.7rem;
  }
}


/* Petits filets or aux 4 angles (signature maison) */


.home-cta-actions{
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}


/* =========================================================
   BOUTONS HOME — cohérent navbar (encre solide → or au hover)
   inline-flex + min-height pour centrage géométrique parfait
   ========================================================= */
.home-btn{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.9rem;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  text-decoration: none !important;
  border-radius: 0;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}
.home-btn:hover{ transform: translateY(-1px); }
.home-btn:active{ transform: translateY(0); }


/* =========================================================
   6. WHY — colonnes éditoriales sans cards
   ========================================================= */
.home-why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
  margin-top: 2.4rem;
}
@media (max-width: 991.98px){
  .home-why-grid{ grid-template-columns: 1fr; gap: 2rem; }
}

.home-why-card{
  position: relative;
}

.home-why-card .home-eyebrow{ margin-bottom: 0.9rem; }

.home-why-card .home-h3{
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.home-why-card .home-h3::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--home-rule);
}


/* =========================================================
   7. CONTACT
   ========================================================= */
.home-contact-form{
  max-width: 720px;
  margin: 2.2rem auto 0;
}

.home-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.4rem;
}
@media (max-width: 767.98px){
  .home-form-grid{ grid-template-columns: 1fr; }
}

.home-field-span2{ grid-column: span 2; }
@media (max-width: 767.98px){ .home-field-span2{ grid-column: auto; } }

.home-label{
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0 0 0.55rem 0;
}

.home-input,
.home-textarea{
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  background: transparent;
  color: var(--text-main);
  border: 0;
  border-bottom: 1px solid var(--border-subtle, rgba(184, 146, 77, 0.30));
  padding: 0.7rem 0;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.home-textarea{
  resize: vertical;
  min-height: 150px;
  border: 1px solid var(--border-subtle, rgba(184, 146, 77, 0.30));
  padding: 0.85rem 1rem;
}

.home-input:focus,
.home-textarea:focus{
  border-color: var(--home-rule);
  box-shadow: none;
}

.home-form-actions{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.home-form-hint{
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft, var(--text-muted));
  letter-spacing: 0.02em;
}
.home-form-hint.is-error{ color: var(--danger, #b91c1c); }
.home-form-hint.is-ok   { color: var(--success, #166534); }

.home-hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}


/* =========================================================
   9. ZOOM IMAGE FLIP — !important pour battre la cascade globale
   ========================================================= */
.home-zoom-backdrop{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.42s ease;
  cursor: zoom-out;
  pointer-events: auto;
}
.home-zoom-backdrop.is-open{ opacity: 1; }

.home-zoom-clone{
  position: fixed !important;
  z-index: 10000 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: contain;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition:
    top 0.42s cubic-bezier(0.2, 0.85, 0.3, 1),
    left 0.42s cubic-bezier(0.2, 0.85, 0.3, 1),
    width 0.42s cubic-bezier(0.2, 0.85, 0.3, 1),
    height 0.42s cubic-bezier(0.2, 0.85, 0.3, 1),
    border-radius 0.42s ease;
}

.home-zoom-close{
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 10001 !important;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, border-color 0.15s ease;
}
.home-zoom-close.is-open{
  opacity: 1;
  transform: scale(1);
}
.home-zoom-close:hover{
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
}

body.is-zoom-open{ overflow: hidden; }


/* =========================================================
   10. REVEAL ON SCROLL
   ========================================================= */
.home-reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.home-reveal[data-reveal="left"]{ transform: translateX(-12px); }
.home-reveal[data-reveal="right"]{ transform: translateX(12px); }

.home-reveal.is-visible{
  opacity: 1;
  transform: translate(0, 0);
}


/* =========================================================
   ============================================================
   LIGHT MODE — parchemin uniforme, encre, or
   ============================================================
   ========================================================= */

html[data-theme="light"] body.page-home{
  --home-rule: var(--mmx-gold, #B8924D);
  --home-rule-soft: rgba(184, 146, 77, 0.32);
  --home-eyebrow: #6B5320;
}

html[data-theme="light"] body.app-body.page-home{
  background: var(--app-bg) !important;
}

html[data-theme="light"] body.page-home .home-section{
  background: transparent !important;
}

/* Section "alt" → ivoire chaud + filets or top/bottom */

html[data-theme="light"] body.page-home .home-paragraph{
  color: var(--text-muted, #555);
}
html[data-theme="light"] body.page-home .home-paragraph-strong{
  color: var(--text-main, #1a1a1a);
}

html[data-theme="light"] body.page-home .home-media-card{
  background: var(--surface, #fff);
  border: 1px solid rgba(184, 146, 77, 0.22);
}

html[data-theme="light"] body.page-home .home-mechanism:hover{
  background: rgba(184, 146, 77, 0.05);
}

html[data-theme="light"] body.page-home .home-textarea{
  background: var(--surface, #fff);
}


/* Boutons primaire light : encre noire → or au hover */
html[data-theme="light"] body.page-home .home-btn-primary{
  background: #1a1a1a;
  color: #f7f1e3;
  border-color: #1a1a1a;
}
html[data-theme="light"] body.page-home .home-btn-primary:hover{
  background: var(--home-rule);
  border-color: var(--home-rule);
  color: #0A0E1A;
}

html[data-theme="light"] body.page-home .home-btn-ghost{
  color: #1a1a1a;
  border-color: #1a1a1a;
}
html[data-theme="light"] body.page-home .home-btn-ghost:hover{
  background: #1a1a1a;
  color: #f7f1e3;
}


/* =========================================================
   ============================================================
   DARK MODE — surfaces transparentes (laisse passer le starfield)
   ============================================================
   ========================================================= */

html[data-theme="dark"] body.page-home,
html:not([data-theme="light"]) body.page-home{
  --home-rule: var(--mmx-gold, #B8924D);
  --home-rule-soft: rgba(200, 168, 107, 0.30);
  --home-eyebrow: var(--mmx-gold-hover, #C8A86B);
}

html[data-theme="dark"] body.page-home .home-section,
html:not([data-theme="light"]) body.page-home .home-section{
  background: transparent !important;
}

/* Section "alt" dark : encre légèrement plus dense pour rythmer sans bloquer le ciel */
html[data-theme="dark"] body.page-home .home-section--alt,
html:not([data-theme="light"]) body.page-home .home-section--alt{
  background: rgba(7, 10, 20, 0.32) !important;
  border-top: 1px solid rgba(200, 168, 107, 0.18) !important;
  border-bottom: 1px solid rgba(200, 168, 107, 0.18) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Couleurs typo en dark — accord parchemin du footer/navbar */
html[data-theme="dark"] body.page-home .home-h1,
html[data-theme="dark"] body.page-home .home-h2,
html[data-theme="dark"] body.page-home .home-h3,
html:not([data-theme="light"]) body.page-home .home-h1,
html:not([data-theme="light"]) body.page-home .home-h2,
html:not([data-theme="light"]) body.page-home .home-h3{
  color: rgba(248, 240, 220, 0.96);
}

html[data-theme="dark"] body.page-home .home-lead,
html:not([data-theme="light"]) body.page-home .home-lead{
  color: rgba(232, 224, 200, 0.88);
}

html[data-theme="dark"] body.page-home .home-paragraph,
html:not([data-theme="light"]) body.page-home .home-paragraph{
  color: rgba(232, 224, 200, 0.72);
}

html[data-theme="dark"] body.page-home .home-paragraph-strong,
html:not([data-theme="light"]) body.page-home .home-paragraph-strong{
  color: rgba(248, 240, 220, 0.92);
}


html[data-theme="dark"] body.page-home .home-mechanism-num,
html:not([data-theme="light"]) body.page-home .home-mechanism-num{
  color: rgba(232, 224, 200, 0.40);
}

html[data-theme="dark"] body.page-home .home-media-card,
html:not([data-theme="light"]) body.page-home .home-media-card{
  background: rgba(7, 10, 20, 0.65);
  border: 1px solid rgba(200, 168, 107, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body.page-home .home-label,
html:not([data-theme="light"]) body.page-home .home-label{
  color: rgba(248, 240, 220, 0.92);
}

html[data-theme="dark"] body.page-home .home-input,
html[data-theme="dark"] body.page-home .home-textarea,
html:not([data-theme="light"]) body.page-home .home-input,
html:not([data-theme="light"]) body.page-home .home-textarea{
  color: rgba(248, 240, 220, 0.92);
}
html[data-theme="dark"] body.page-home .home-textarea,
html:not([data-theme="light"]) body.page-home .home-textarea{
  background: rgba(248, 240, 220, 0.04);
  border-color: rgba(200, 168, 107, 0.28);
}
html[data-theme="dark"] body.page-home .home-input,
html:not([data-theme="light"]) body.page-home .home-input{
  border-bottom-color: rgba(200, 168, 107, 0.28);
}


/* Boutons dark : ghost or → solide or au hover */
html[data-theme="dark"] body.page-home .home-btn-primary,
html:not([data-theme="light"]) body.page-home .home-btn-primary{
  background: transparent;
  color: var(--mmx-gold-hover, #C8A86B);
  border-color: var(--mmx-gold, #B8924D);
}
html[data-theme="dark"] body.page-home .home-btn-primary:hover,
html:not([data-theme="light"]) body.page-home .home-btn-primary:hover{
  background: var(--mmx-gold, #B8924D);
  color: #0A0E1A;
  border-color: var(--mmx-gold, #B8924D);
}

html[data-theme="dark"] body.page-home .home-btn-ghost,
html:not([data-theme="light"]) body.page-home .home-btn-ghost{
  color: rgba(232, 224, 200, 0.88);
  border-color: rgba(232, 224, 200, 0.55);
}
html[data-theme="dark"] body.page-home .home-btn-ghost:hover,
html:not([data-theme="light"]) body.page-home .home-btn-ghost:hover{
  background: rgba(248, 240, 220, 0.08);
  color: #fff;
  border-color: rgba(232, 224, 200, 0.85);
}


/* =========================================================
   REDUCED MOTION — accessibilité
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .home-reveal,
  .home-rule-anim,
  .home-word-inner,
  .home-zoom-clone{
    transition: none !important;
    animation: none !important;
  }
  .home-reveal{ opacity: 1; transform: none; }
  .home-rule-anim{ width: 80px; }
  .home-word-inner{ opacity: 1; transform: none; }
.home-hero .home-lead,
  .home-hero .home-paragraph{
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   FIX #sec-eu — image pleine hauteur alignée sur le texte
   (supprime les zones vides au-dessus/dessous de l'image)
   ========================================================= */
@media (min-width: 992px){
  #sec-eu .home-split{ align-items: stretch; }
  #sec-eu .home-split-media{ display: flex; }
  #sec-eu .home-media-card{ flex: 1; }
  #sec-eu .home-media-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* =========================================================
   HOME V3 — AJOUTS MINIMAUX
   On conserve les proportions et composants du design original.
   ========================================================= */

/* Hero : pas de min-height, pas de grille plein écran. */
.home-hero-kicker{
  margin-bottom: 1.25rem;
}

.home-hero-actions{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}


/* La nouvelle narration n'a pas besoin des gros espaces de l'ancienne sec-5/sec-7. */
body.page-home #sec-5,
body.page-home #sec-7,
body.page-home #sec-8{
  padding-top: 4.5rem;
}

@media (max-width: 767.98px){
  .home-hero-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .home-hero-actions .home-btn{
    width: 100%;
  }


  body.page-home #sec-5,
  body.page-home #sec-7,
  body.page-home #sec-8{
    padding-top: 3rem;
  }
}

/* =========================================================
   HOME V4 — SESSION MEMO
   Parcours pleine largeur sous le split texte / capture.
   ========================================================= */

/* L'ancien parcours V3 n'est plus utilisé dans le HTML. */
#sec-2 .home-session-flow{
  width: 100%;
  max-width: none;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0;
  margin: 2.7rem 0 0;
  padding: 1.55rem 0 0;
  border-top: 1px solid var(--home-rule-soft);
  box-sizing: border-box;
}

#sec-2 .home-session-step{
  position: relative;
  min-width: 0;
  padding: 0 1.45rem 0.15rem;
}

#sec-2 .home-session-step:first-child{
  padding-left: 0;
}

#sec-2 .home-session-step:last-child{
  padding-right: 0;
}

#sec-2 .home-session-step + .home-session-step{
  border-left: 1px solid var(--home-rule-soft);
}

#sec-2 .home-session-step::before{
  content: "";
  position: absolute;
  top: -1.83rem;
  left: 1.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-rule);
  box-shadow: 0 0 0 5px rgba(184, 146, 77, 0.10);
}

#sec-2 .home-session-step:first-child::before{
  left: 0;
}

#sec-2 .home-session-step-meta{
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

#sec-2 .home-session-step-num{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--home-rule);
}

#sec-2 .home-session-step-kicker{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-soft, var(--text-muted));
}

#sec-2 .home-session-step-title{
  margin: 0 0 0.42rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--heading, var(--text-main));
}

#sec-2 .home-session-step-text{
  margin: 0;
  max-width: 240px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--text-muted);
}

/* Tablette : 2 x 2, sans créer de colonne vide. */
@media (max-width: 991.98px){
  #sec-2 .home-session-flow{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 1.7rem;
  }

  #sec-2 .home-session-step{
    padding: 0 1.25rem 0.2rem;
  }

  #sec-2 .home-session-step:nth-child(odd){
    padding-left: 0;
    border-left: 0;
  }

  #sec-2 .home-session-step:nth-child(even){
    padding-right: 0;
    border-left: 1px solid var(--home-rule-soft);
  }

  #sec-2 .home-session-step:nth-child(odd)::before{
    left: 0;
  }

  #sec-2 .home-session-step:nth-child(even)::before{
    left: 1.25rem;
  }

  #sec-2 .home-session-step-text{
    max-width: 34rem;
  }
}

/* Mobile : chemin vertical éditorial. */
@media (max-width: 600px){
  #sec-2 .home-session-flow{
    grid-template-columns: 1fr !important;
    margin-top: 2.1rem;
    padding-top: 0;
    border-top: 0;
    row-gap: 0;
  }

  #sec-2 .home-session-step,
  #sec-2 .home-session-step:first-child,
  #sec-2 .home-session-step:last-child,
  #sec-2 .home-session-step:nth-child(odd),
  #sec-2 .home-session-step:nth-child(even){
    padding: 1.15rem 0 1.15rem 1.35rem;
    border-left: 1px solid var(--home-rule-soft);
    border-top: 0;
  }

  #sec-2 .home-session-step::before,
  #sec-2 .home-session-step:first-child::before,
  #sec-2 .home-session-step:nth-child(odd)::before,
  #sec-2 .home-session-step:nth-child(even)::before{
    top: 1.55rem;
    left: -4px;
  }

  #sec-2 .home-session-step-text{
    max-width: none;
    font-size: 0.86rem;
  }
}


/* =========================================================
   HOME V5 — REPRISE COMPLETE DU MODE CLAIR
   ---------------------------------------------------------
   Objectifs :
   - ne modifier EN RIEN le rendu sombre ;
   - sections alternées réellement bord à bord ;
   - respiration verticale constante entre les chapitres ;
   - CTA sans « petite boîte dans une boîte » ;
   - formulaire clair, structuré et lisible.
   ========================================================= */

/* Le full-bleed en 100vw ne doit jamais créer de scroll horizontal. */
html[data-theme="light"] body.page-home{
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   1. RYTHME VERTICAL
   On force ici les espacements car d'autres règles globales du site
   peuvent prendre le dessus sur .home-section.
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home .home-section:not(.home-hero){
  padding-top: 5.75rem !important;
  padding-bottom: 5.75rem !important;
}

html[data-theme="light"] body.page-home #sec-2{
  padding-top: 5.25rem !important;
  padding-bottom: 5.75rem !important;
}

/* Les anciennes exceptions de sec-5/sec-7/sec-8 ne doivent plus
   créer un rythme différent en mode clair. */
html[data-theme="light"] body.page-home #sec-5,
html[data-theme="light"] body.page-home #sec-7,
html[data-theme="light"] body.page-home #sec-8{
  padding-top: 5.75rem !important;
}

/* ---------------------------------------------------------
   2. BANDES CLAIRES PLEINE LARGEUR
   La page peut être placée dans un <main> max-width : on fait sortir
   seulement les sections alternées de ce conteneur, tandis que leur
   .home-container reste centré à 1180px.
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home .home-section--alt{
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: rgba(255, 252, 245, 0.58) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Les contenus restent parfaitement alignés avec le reste de la page. */
html[data-theme="light"] body.page-home .home-section--alt > .home-container{
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------
   3. SESSION MEMO
   Un peu plus d'air sous le parcours afin que la section suivante
   ne donne jamais l'impression d'être collée à la ligne de progression.
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home #sec-2 .home-session-flow{
  margin-top: 3rem;
  margin-bottom: 0 !important;
}

html[data-theme="light"] body.page-home #sec-2 .home-session-step-text{
  color: rgba(31, 41, 55, 0.76);
}


/* ---------------------------------------------------------
   5. FORMULAIRE — VERSION CLAIRE
   Deux vraies lignes de champs : Nom/Email puis Téléphone/Sujet,
   message pleine largeur. Pas de simples traits perdus sur le fond.
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home #sec-8 .home-contact-form{
  max-width: 860px;
  margin-top: 3rem;
}

html[data-theme="light"] body.page-home #sec-8 .home-form-grid{
  gap: 1.35rem 1.35rem;
}

/* Le champ Sujet partage la ligne avec Téléphone en desktop. */
html[data-theme="light"] body.page-home #sec-8 .home-field:nth-child(4){
  grid-column: auto !important;
}

html[data-theme="light"] body.page-home #sec-8 .home-field:nth-child(5){
  grid-column: span 2 !important;
}

html[data-theme="light"] body.page-home #sec-8 .home-label{
  margin-bottom: 0.5rem;
  color: #3e3528;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

html[data-theme="light"] body.page-home #sec-8 .home-input,
html[data-theme="light"] body.page-home #sec-8 .home-textarea{
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 253, 248, 0.88) !important;
  color: #182033 !important;
  border: 1px solid rgba(128, 101, 53, 0.28) !important;
  border-radius: 2px !important;
  padding: 0.88rem 1rem !important;
  box-shadow: 0 6px 18px rgba(70, 55, 30, 0.035) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

html[data-theme="light"] body.page-home #sec-8 .home-input{
  min-height: 50px;
}

html[data-theme="light"] body.page-home #sec-8 .home-textarea{
  min-height: 170px;
  resize: vertical;
}

html[data-theme="light"] body.page-home #sec-8 .home-input:hover,
html[data-theme="light"] body.page-home #sec-8 .home-textarea:hover{
  border-color: rgba(128, 101, 53, 0.48) !important;
}

html[data-theme="light"] body.page-home #sec-8 .home-input:focus,
html[data-theme="light"] body.page-home #sec-8 .home-textarea:focus{
  outline: none !important;
  background: #fffdf8 !important;
  border-color: var(--home-rule) !important;
  box-shadow: 0 0 0 3px rgba(184, 146, 77, 0.10) !important;
}

html[data-theme="light"] body.page-home #sec-8 .home-form-actions{
  margin-top: 1.75rem;
  align-items: center;
}

/* ---------------------------------------------------------
   6. PETITES FINITIONS DU MODE CLAIR
   Les médias gardent leur présence sans ressembler à des cartes lourdes.
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home .home-media-card{
  border-color: rgba(128, 101, 53, 0.18) !important;
  box-shadow: 0 12px 30px rgba(47, 38, 23, 0.07) !important;
}

html[data-theme="light"] body.page-home .home-why-card .home-h3::after{
  opacity: 0.8;
}

/* Tablette / mobile : même logique, avec des espacements raisonnables. */
@media (max-width: 991.98px){
  html[data-theme="light"] body.page-home .home-section:not(.home-hero),
  html[data-theme="light"] body.page-home #sec-2,
  html[data-theme="light"] body.page-home #sec-5,
  html[data-theme="light"] body.page-home #sec-7,
  html[data-theme="light"] body.page-home #sec-8{
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

}

@media (max-width: 767.98px){
  html[data-theme="light"] body.page-home .home-section:not(.home-hero),
  html[data-theme="light"] body.page-home #sec-2,
  html[data-theme="light"] body.page-home #sec-5,
  html[data-theme="light"] body.page-home #sec-7,
  html[data-theme="light"] body.page-home #sec-8{
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }


  html[data-theme="light"] body.page-home #sec-8 .home-form-grid{
    grid-template-columns: 1fr !important;
    gap: 1.05rem;
  }

  html[data-theme="light"] body.page-home #sec-8 .home-field,
  html[data-theme="light"] body.page-home #sec-8 .home-field:nth-child(4),
  html[data-theme="light"] body.page-home #sec-8 .home-field:nth-child(5){
    grid-column: auto !important;
  }

  html[data-theme="light"] body.page-home #sec-8 .home-form-actions{
    align-items: stretch;
  }

  html[data-theme="light"] body.page-home #sec-8 .home-form-actions .home-btn{
    width: 100%;
  }
}

/* =========================================================
   HOME V6 — RESPIRATION SOUS LES CTA DU HERO EN MODE CLAIR
   Le rendu sombre reste inchangé.
   ========================================================= */
html[data-theme="light"] body.page-home #sec-1.home-hero{
  padding-bottom: 4.75rem !important;
}

@media (max-width: 767.98px){
  html[data-theme="light"] body.page-home #sec-1.home-hero{
    padding-bottom: 3.5rem !important;
  }
}


/* =========================================================
   HOME V7 — CONVERSION : PREUVE, OFFRE, REASSURANCE, CTA FINAL
   Ajouts pensés pour rester éditoriaux : pas de grosses cartes,
   pas de blocs flottants inutiles, et compatibilité light/dark.
   ========================================================= */

/* ---------------------------------------------------------
   1. PREUVE QUANTITATIVE
   --------------------------------------------------------- */
.home-proof-head,
.home-offer-head{
  max-width: 790px;
  margin: 0 auto;
  text-align: center;
}

.home-proof-head .home-eyebrow,
.home-offer-head .home-eyebrow{
  justify-content: center;
}

.home-proof-head .home-h2,
.home-offer-head .home-h2{
  text-align: center;
}

.home-proof-head .home-paragraph,
.home-offer-head .home-paragraph{
  margin: 1rem auto 0;
  text-align: center;
  max-width: 690px;
}

.home-proof-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--home-rule-soft);
  border-bottom: 1px solid var(--home-rule-soft);
}

.home-proof-stat{
  position: relative;
  min-width: 0;
  padding: 2.25rem 1.5rem 2.1rem;
  text-align: center;
}

.home-proof-stat + .home-proof-stat{
  border-left: 1px solid var(--home-rule-soft);
}

.home-proof-value{
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--home-rule);
  white-space: nowrap;
}

.home-proof-value--text{
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.home-proof-plus{
  font-size: 0.58em;
  margin-left: 0.08em;
  vertical-align: 0.28em;
}

.home-proof-label{
  display: block;
  margin-top: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft, var(--text-muted));
}

.home-proof-next{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
  text-align: center;
}

.home-proof-next-label{
  flex: 0 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-eyebrow);
}

.home-proof-next p{
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.home-proof-next strong{
  color: var(--text-main);
  font-weight: 600;
}

/* ---------------------------------------------------------
   2. OFFRE GRATUIT / PREMIUM
   Deux colonnes éditoriales, sans effet "pricing cards" générique.
   --------------------------------------------------------- */
.home-offer-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--home-rule-soft);
  border-bottom: 1px solid var(--home-rule-soft);
}

.home-offer-plan{
  position: relative;
  min-width: 0;
  padding: 2.6rem 2.6rem 2.7rem 0;
}

.home-offer-plan + .home-offer-plan{
  padding-left: 2.6rem;
  padding-right: 0;
  border-left: 1px solid var(--home-rule-soft);
}

.home-offer-plan--premium::before{
  content: "";
  position: absolute;
  left: 2.6rem;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--home-rule);
}

.home-offer-plan-head .home-eyebrow{
  margin-bottom: 1rem;
}

.home-offer-plan-head .home-h3{
  max-width: 500px;
  margin-bottom: 0.9rem;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}

.home-offer-plan-copy{
  margin: 0;
  max-width: 500px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.home-offer-list{
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.home-offer-list li{
  position: relative;
  margin: 0;
  padding: 0.9rem 0 0.9rem 1.45rem;
  border-top: 1px solid var(--border-subtle, rgba(184, 146, 77, 0.18));
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-main);
}

.home-offer-list li:last-child{
  padding-bottom: 0;
}

.home-offer-list li::before{
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.38rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-rule);
  box-shadow: 0 0 0 4px rgba(184, 146, 77, 0.09);
}

.home-offer-action{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.25rem;
}

.home-offer-action p{
  margin: 0;
  max-width: 660px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-offer-action .home-btn{
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   3. REASSURANCE PARENT + PASSERELLE PRO
   --------------------------------------------------------- */
.home-parent-professional{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--home-rule-soft);
}

.home-parent-professional p{
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.home-parent-professional strong{
  color: var(--text-main);
  font-weight: 600;
}

.home-parent-professional a{
  flex: 0 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--home-eyebrow);
  text-decoration: none;
  border-bottom: 1px solid var(--home-rule-soft);
  padding-bottom: 0.2rem;
}

.home-parent-professional a:hover{
  color: var(--home-rule);
  border-color: var(--home-rule);
}

/* ---------------------------------------------------------
   4. CTA FINAL
   Pas de carte : le dernier écran est une vraie conclusion commerciale.
   --------------------------------------------------------- */
.home-final-cta{
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.home-final-cta-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-final-cta .home-eyebrow{
  justify-content: center;
}

.home-final-cta .home-h2{
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.home-final-cta .home-paragraph{
  max-width: 680px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.home-final-proof{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem auto 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft, var(--text-muted));
}

.home-final-proof span{
  padding: 0.1rem 1rem;
}

.home-final-proof span + span{
  border-left: 1px solid var(--home-rule-soft);
}

.home-final-cta .home-cta-actions{
  margin-top: 2.25rem;
}

/* ---------------------------------------------------------
   5. MODE CLAIR : intégration des nouvelles sections
   --------------------------------------------------------- */
html[data-theme="light"] body.page-home .home-proof-value{
  color: #9b752e;
}

html[data-theme="light"] body.page-home .home-proof-grid,
html[data-theme="light"] body.page-home .home-offer-grid,
html[data-theme="light"] body.page-home .home-parent-professional{
  border-color: rgba(128, 101, 53, 0.24);
}

html[data-theme="light"] body.page-home .home-offer-list li{
  border-color: rgba(128, 101, 53, 0.16);
}

html[data-theme="light"] body.page-home .home-offer-plan--premium::before{
  background: #B8924D;
}

/* Le formulaire professionnel est désormais dans une bande alt pleine largeur. */
html[data-theme="light"] body.page-home #sec-8.home-professional-contact{
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Le CTA final doit respirer après le formulaire et rester sans rectangle. */
html[data-theme="light"] body.page-home #sec-final.home-final-cta{
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-top: 6.75rem !important;
  padding-bottom: 7rem !important;
  background: transparent !important;
}

/* ---------------------------------------------------------
   6. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991.98px){
  .home-proof-grid{
    grid-template-columns: 1fr;
  }

  .home-proof-stat{
    padding: 1.75rem 1rem;
  }

  .home-proof-stat + .home-proof-stat{
    border-left: 0;
    border-top: 1px solid var(--home-rule-soft);
  }

  .home-proof-next{
    align-items: center;
    flex-direction: column;
    gap: 0.45rem;
  }

  .home-offer-grid{
    grid-template-columns: 1fr;
  }

  .home-offer-plan,
  .home-offer-plan + .home-offer-plan{
    padding: 2.25rem 0;
    border-left: 0;
  }

  .home-offer-plan + .home-offer-plan{
    border-top: 1px solid var(--home-rule-soft);
  }

  .home-offer-plan--premium::before{
    left: 0;
    right: 0;
  }

  .home-offer-action{
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .home-parent-professional{
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 767.98px){
  .home-proof-head,
  .home-offer-head{
    text-align: left;
  }

  .home-proof-head .home-eyebrow,
  .home-offer-head .home-eyebrow{
    justify-content: flex-start;
  }

  .home-proof-head .home-h2,
  .home-offer-head .home-h2,
  .home-proof-head .home-paragraph,
  .home-offer-head .home-paragraph{
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .home-proof-grid,
  .home-offer-grid{
    margin-top: 2.2rem;
  }

  .home-proof-value{
    font-size: 3rem;
  }

  .home-proof-value--text{
    font-size: 2.2rem;
  }

  .home-offer-action .home-btn{
    width: 100%;
  }

  .home-final-cta{
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
  }

  .home-final-proof{
    flex-direction: column;
    gap: 0.55rem;
  }

  .home-final-proof span{
    padding: 0;
  }

  .home-final-proof span + span{
    border-left: 0;
  }

  .home-final-cta .home-cta-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .home-final-cta .home-cta-actions .home-btn{
    width: 100%;
  }

  html[data-theme="light"] body.page-home #sec-final.home-final-cta{
    padding-top: 5rem !important;
    padding-bottom: 5.25rem !important;
  }
}
