/* ════════════════════════════════════════════════════════════
   Ma Capsule Temporelle — Feuille de style des pages du cocon
   (pages enfants & petits-enfants). Reprend les tokens de la home.
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:  #E7BB8A;
  --secondary:#F8ECDC;
  --bg:       #FAF8F5;
  --bg-alt:   #F3ECE0;
  --ink:      #391A11;
  --ink-light:#726460;
  --white:    #FFFFFF;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Plus Jakarta Sans', sans-serif;

  --space-section-y: 88px;
  --space-section-x: 40px;
  --space-block:     48px;
  --space-stack:     16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  background-color: var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── ACCESSIBILITÉ ── */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
footer :focus-visible { outline-color: var(--primary); }
#main-content:focus { outline: none; }
.skip-link {
  position: absolute; left: 8px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51,27,20,0.10);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(57,26,17,0.08); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center; padding: 0; margin-left: 4px;
}
.nav-toggle-bars { position: relative; width: 22px; height: 14px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(51,27,20,0.10);
  box-shadow: 0 10px 24px rgba(57,26,17,0.08);
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 17px; font-weight: 500; color: var(--ink);
  padding: 12px 4px; border-bottom: 1px solid rgba(51,27,20,0.06);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-cta { margin-top: 14px; text-align: center; }
.mobile-menu .mobile-menu-cta a.btn-primary { color: var(--bg); border-bottom: none; padding: 12px 22px; }
body.menu-open { overflow: hidden; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 100px;
  min-height: 44px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #2a130c; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(57,26,17,0.2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(57,26,17,0.2); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ── COMING SOON BADGE ── */
.coming-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; background: rgba(57,26,17,0.06);
  border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 500;
}
.coming-soon strong { font-weight: 600; }
.coming-soon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(231,187,138,0.25); flex-shrink: 0;
}

/* ── FIL D'ARIANE ── */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 96px 40px 0;
  font-size: 13px; color: var(--ink-light);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--primary); }
.breadcrumb a { color: var(--ink-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ── HERO DE PAGE ── */
.page-hero {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: 40px 40px 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.page-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid rgba(231,187,138,0.45);
  border-radius: 100px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; color: #8F542B;
  box-shadow: 0 4px 14px rgba(57,26,17,0.05);
}
.page-tag::before { content: '✦'; color: var(--primary); }
.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--primary); }
.page-lead { font-size: 19px; color: var(--ink-light); max-width: 600px; line-height: 1.7; }

/* Entrée douce du hero (désactivée en reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .page-hero > * { animation: heroRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .page-hero > *:nth-child(1) { animation-delay: 0.02s; }
  .page-hero > *:nth-child(2) { animation-delay: 0.08s; }
  .page-hero > *:nth-child(3) { animation-delay: 0.14s; }
  .page-hero > *:nth-child(4) { animation-delay: 0.20s; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── SECTIONS & PROSE ── */
section { padding: var(--space-section-y) var(--space-section-x); }
.section-inner { max-width: 760px; margin: 0 auto; }
.section-inner.wide { max-width: 1100px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: #8F542B; margin-bottom: var(--space-stack);
}
.section-tag::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--primary); }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600; line-height: 1.2; color: var(--ink); text-wrap: balance;
  margin-bottom: 20px;
}
.prose p { color: var(--ink-light); font-size: 16.5px; line-height: 1.75; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
/* Lede : premier paragraphe d'intro, plus grand et plus présent */
main > section:first-of-type .prose > p:first-child {
  font-size: 19px; line-height: 1.7; color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: #8F542B; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(143,84,43,0.35);
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: #8F542B; }
.prose h2 {
  font-family: var(--font-title); font-size: clamp(25px, 3.4vw, 33px);
  font-weight: 600; line-height: 1.25; color: var(--ink);
  margin: 48px 0 18px;
}
.prose h2::before {
  content: ''; display: block;
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--primary); margin-bottom: 16px;
}
.prose ul {
  margin: 8px 0 24px; padding: 0; list-style: none;
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(57,26,17,0.08);
}
.prose li {
  position: relative;
  padding: 15px 8px 15px 52px;
  color: var(--ink-light); line-height: 1.6;
  border-bottom: 1px solid rgba(57,26,17,0.08);
}
.prose li::before {
  content: '✦';
  position: absolute; left: 12px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--secondary); color: #8F542B;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.prose li strong { color: var(--ink); }

.tinted { background: var(--secondary); }
.tinted-alt { background: var(--bg-alt); }

/* ── ÉTAPES ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 24px; background: var(--bg); border-radius: 16px;
  border: 1px solid rgba(51,27,20,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(57,26,17,0.10); border-color: rgba(231,187,138,0.6); }
.tinted .step { background: var(--white); }
.step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #d99f63); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 18px; font-weight: 700; color: var(--ink); flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(231,187,138,0.45);
}
.step-title { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--ink); }
.step-text { font-size: 14px; color: var(--ink-light); line-height: 1.6; }

/* ── POUR ALLER PLUS LOIN (maillage) ── */
.related { background: var(--bg-alt); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.related-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px; background: var(--white); border-radius: 16px;
  border: 1px solid rgba(51,27,20,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.related-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #d99f63);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.related-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(57,26,17,0.12); border-color: rgba(231,187,138,0.6); }
.related-card:hover::before { transform: scaleX(1); }
.related-kicker { font-size: 12px; font-weight: 600; color: #8F542B; }
.related-card h3 { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--ink); }
.related-card p { font-size: 14px; color: var(--ink-light); line-height: 1.55; }
.related-card .arrow { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink); transition: color 0.2s, transform 0.2s; }
.related-card:hover .arrow { color: #8F542B; transform: translateX(3px); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(51,27,20,0.10); }
.faq-item:first-child { border-top: 1px solid rgba(51,27,20,0.10); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; text-align: left;
  font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--ink);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 22px; font-weight: 300; color: var(--primary); flex-shrink: 0; transition: transform 0.3s ease; line-height: 1; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer > p { overflow: hidden; min-height: 0; color: var(--ink-light); font-size: 15px; line-height: 1.7; padding: 0 4px 20px; }

/* ── CTA FINALE ── */
.cta-section { position: relative; overflow: hidden; background: var(--secondary); text-align: center; }
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% 0%, rgba(231,187,138,0.30), rgba(231,187,138,0) 62%);
}
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-section .section-title { margin-bottom: 0; }
.cta-lead { font-size: 16px; color: var(--ink-light); max-width: 520px; line-height: 1.7; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 48px 40px 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-tagline { font-family: var(--font-title); font-style: italic; font-size: 18px; color: var(--secondary); text-align: center; margin: 8px 0 0; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col .footer-col-title { font-size: 13px; font-weight: 600; color: rgba(250,248,245,0.7); padding-top: 8px; border-top: 1px solid rgba(250,248,245,0.15); margin-bottom: 4px; }
.footer-links-col a { font-size: 14px; color: rgba(250,248,245,0.7); transition: color 0.2s; }
.footer-links-col a:hover { color: var(--bg); }
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(250,248,245,0.72);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--bg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --space-section-y: 72px; --space-section-x: 32px; --space-block: 40px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .breadcrumb { padding: 92px 32px 0; }
}
@media (max-width: 900px) {
  :root { --space-section-y: 56px; --space-section-x: 24px; }
  nav { padding: 0 16px; gap: 12px; }
  .nav-logo img { height: 44px; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .breadcrumb { padding: 88px 24px 0; }
  .page-hero { padding: 24px 24px 4px; }
  .steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-top > div:first-child { align-self: center; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}
