/* =========================================================================
   ZoKids — page Home (refonte design Claude Design, mai 2026)
   Sections : Hero / USPs / Structures preview / Steps / Zone IDF / Témoignages / Final CTA
   Palette : cream/ink/navy/gold — Fonts : Cormorant Garamond + Manrope + Cookie
   ========================================================================= */

/* ------- Em italic gold (signature du design dans h1/h2) ------- */
.page-home h1 em,
.page-home h2 em {
  font-style: italic;
  color: var(--gold);
  font-family: inherit;
  font-weight: inherit;
}
/* Exception sur fond sombre : gold-2 plus lumineux */
.page-home .block-dark h2 em,
.page-home .final h2 em {
  color: var(--gold-2);
}
.page-home .block-dark h2 {
  color: var(--cream);
}

/* ------- Section head 2-col (titre gauche, lead droite) ------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 {
  margin-top: 14px;
}
@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
}

/* ------- cta-row (boutons groupés sous une section) ------- */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}


/* =========================================================================
   1. HERO
   ========================================================================= */
.hero {
  padding: 32px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: end;
  padding: 48px 0 0;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 76px);
}
.hero h1 em {
  white-space: nowrap;
}
.hero .lead {
  margin-top: 24px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}
.hero-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream-2);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(16, 26, 59, .4));
  pointer-events: none;
}

.hero-review {
  position: absolute;
  left: -24px;
  bottom: 48px;
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  max-width: 300px;
  border: 1px solid var(--line-2);
}
.hero-review .stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}
.hero-review p {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  margin: 8px 0 10px;
  line-height: 1.35;
  color: var(--ink);
}
.hero-review .who {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-review {
    position: relative;
    left: 0;
    bottom: 0;
    margin: -24px auto 0;
    max-width: none;
  }
}


/* =========================================================================
   STATS strip 4-col (sous le hero)
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 24px 8px;
  border-right: 1px solid var(--line-2);
}
.stats > div:last-child {
  border-right: 0;
}
.stats .k {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stats .k em {
  font-style: normal;
  color: var(--gold);
}
.stats .v {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  letter-spacing: .02em;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div {
    min-width: 0;
    padding: 20px 12px;
  }
  .stats > div:nth-child(2) {
    border-right: 0;
  }
  .stats .k {
    font-size: 20px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .stats .v {
    font-size: 12px;
  }
}


/* =========================================================================
   2. USP grid (Pourquoi ZoKids)
   ========================================================================= */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}
.usp {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.usp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.usp .num {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--gold-soft);
  font-weight: 600;
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 28px;
}
.usp h3 {
  margin: 0 0 12px;
  padding-right: 60px;
}
.usp p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.usp-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.usp-ico svg {
  width: 22px;
  height: 22px;
}


/* =========================================================================
   3. STRUCTURES preview (sur fond cream-2)
   ========================================================================= */
.struct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .struct-grid {
    grid-template-columns: 1fr;
  }
}
.struct-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.struct-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.struct-photo {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}
.struct-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.struct-card:hover .struct-photo img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}
.badge.gold {
  background: var(--gold);
  color: var(--ink);
}
.badge.coral {
  background: var(--coral);
  color: #fff;
}

.struct-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.struct-tag {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}
.struct-card h3 {
  margin: 0;
}
.struct-card .desc {
  color: var(--ink-2);
  font-size: 15px;
}
.struct-specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  margin-top: auto;
}
.struct-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.struct-spec .lbl {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.struct-spec .val {
  font-weight: 600;
  font-size: 14px;
}
.struct-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}
.struct-card:hover .more .arrow {
  transform: translateX(3px);
}
.struct-card .more .arrow {
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================================
   4. STEPS (Comment ça marche, 4-col)
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: transparent;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  transition: background .3s, border-color .3s;
}
.step:hover {
  background: #fff;
  border-color: var(--gold-soft);
}
.step .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .2em;
  font-weight: 600;
}
.step h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}
.step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}


/* =========================================================================
   5. ZONE IDF — block-dark navy + map
   ========================================================================= */
.block-dark {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.block-dark .eyebrow {
  color: var(--gold-2);
}
.block-dark .lead {
  color: rgba(246, 239, 227, .78);
}

.zone-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.zone-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zone-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(246, 239, 227, .78);
}
.zone-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 154, 59, .18);
}
.zone-note {
  font-size: 14px;
  color: rgba(246, 239, 227, .5);
  margin-top: 24px;
  font-style: italic;
}

/* Map décorative droite */
.map-svg {
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #F1E6CC, #E9DAB6);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
}
.depts {
  position: absolute;
  inset: 0;
}
.dept {
  position: absolute;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  transition: all .3s;
  cursor: default;
}
.dept:hover {
  background: var(--gold);
  color: var(--cream);
  transform: scale(1.08);
}
.dept.dept-75 {
  width: 90px;
  height: 90px;
  left: 42%;
  top: 38%;
  background: var(--navy);
  color: var(--gold);
  font-size: 22px;
  border-color: var(--navy);
  box-shadow: 0 0 0 8px rgba(16, 26, 59, .06);
}
.dept.dept-92 { width: 68px; height: 68px; left: 24%; top: 38%; }
.dept.dept-93 { width: 68px; height: 68px; left: 56%; top: 22%; }
.dept.dept-94 { width: 68px; height: 68px; left: 50%; top: 58%; }
.dept.dept-95 { width: 68px; height: 68px; left: 36%; top: 14%; }
.dept.dept-78 { width: 68px; height: 68px; left: 8%;  top: 50%; }
.dept.dept-77 { width: 68px; height: 68px; left: 68%; top: 60%; }
.dept.dept-91 { width: 68px; height: 68px; left: 36%; top: 78%; }
.map-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  background: rgba(246, 239, 227, .7);
  padding: 6px 10px;
  border-radius: 999px;
}


/* =========================================================================
   6. TESTIMONIALS (3-col cream cards)
   ========================================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}
.testi {
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.testi .stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 14px;
}
.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testi .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testi .who div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.testi .who strong {
  font-size: 14px;
}
.testi .who small {
  font-size: 12px;
  color: var(--ink-2);
}


/* =========================================================================
   7. FINAL CTA — bouton ghost cream-border sur fond navy
   Le composant .final est défini dans components/final-cta.css.
   Ici on adapte juste le .btn-ghost pour qu'il soit lisible sur navy.
   ========================================================================= */
.page-home .final .btn-ghost {
  border-color: rgba(246, 239, 227, .3);
  color: var(--cream);
  background: transparent;
}
.page-home .final .btn-ghost:hover {
  background: rgba(246, 239, 227, .08);
  border-color: rgba(246, 239, 227, .5);
}
