/* Mes Finances Zen — feuille de style commune
   Mise en page : une colonne de 1080 px, héros sur fond lagune, sections alternées brume / sauge / lagune,
   bouton WhatsApp fixe en bas sur mobile. */
:root {
  --lagune: #0E5B53;
  --lagune-2: #17706A;
  --nuit: #102421;
  --brume: #F1F5F2;
  --sauge: #DCEAE3;
  --mangue: #F3A833;
  --mangue-clair: #F7BD5C; /* petit texte sur fond lagune : contraste 4,7:1 */
  --galet: #4B5F59;
  --sur-lagune: #BFD8CF;
  --ligne: #CFDDD6;
  --blanc: #FFFFFF;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--brume); color: var(--nuit); font-family: var(--texte); font-size: 17px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--titre); font-optical-sizing: auto; margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 76px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.muted { color: var(--galet); }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 600; font-size: 21px; letter-spacing: 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand em { font-style: normal; color: var(--mangue-clair); }
.brand.on-light em { color: var(--lagune); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; text-align: center; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--mangue); outline-offset: 3px; }
.btn-mangue { background: var(--mangue); color: var(--nuit); }
.btn-ligne { border-color: rgba(241, 245, 242, .5); color: var(--brume); }
.btn-lagune { background: var(--lagune); color: var(--brume); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Héros */
.hero { background: var(--lagune); color: var(--brume); padding-block: 22px 84px; }
.hero nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 68px; flex-wrap: wrap; }
.hero nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.hero nav ul a { text-decoration: none; color: var(--sur-lagune); }
.hero nav ul a:hover, .hero nav ul a[aria-current="page"] { color: var(--brume); }
.hero .eyebrow { color: var(--mangue-clair); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 78px); line-height: 1.02; max-width: 16ch; }
.hero h1 span { color: var(--mangue); }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 21px); max-width: 60ch; color: #E3EEE9; }
.hero .ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .reassure { margin-top: 16px; font-size: 14px; color: var(--sur-lagune); }

/* Parcours en 3 étapes */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.step { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--texte); font-weight: 700; font-size: 15px; color: var(--lagune); display: flex; align-items: center; gap: 10px; }
.step .num b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lagune); color: var(--brume); font-size: 16px; }
.step h3 { font-size: 24px; }
.step p { color: var(--galet); font-size: 16px; }
.step a.more { margin-top: auto; font-weight: 700; color: var(--lagune); text-decoration: none; }
.step a.more:hover { text-decoration: underline; }
.section-title { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; }
.section-intro { margin-top: 14px; color: var(--galet); max-width: 62ch; }

/* Modèle de budget */
.modele { background: var(--sauge); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--lagune); }
.modele .btn { margin-top: 28px; }
.modele .privacy { margin-top: 12px; font-size: 14px; color: var(--galet); }
.sheet { background: var(--blanc); border-radius: 16px; box-shadow: 0 18px 40px rgba(16, 36, 33, .12); overflow: hidden; font-size: 14px; }
.sheet-top { background: var(--lagune); color: var(--brume); padding: 12px 16px; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.sheet-top span { font-weight: 500; color: var(--sur-lagune); }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 9px 14px; border-bottom: 1px solid #E5EEE9; text-align: right; white-space: nowrap; }
.sheet th:first-child, .sheet td:first-child { text-align: left; white-space: normal; }
.sheet th { font-size: 12px; color: var(--galet); text-transform: uppercase; letter-spacing: .05em; }
.sheet tr.grp td { background: var(--brume); font-weight: 700; color: var(--lagune); }
.sheet td.over { color: #B42318; font-weight: 700; }
.sheet .note { padding: 10px 14px; font-size: 12px; color: var(--galet); }

/* Pourquoi moi */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.why p + p { margin-top: 14px; }
.why blockquote { margin: 0; font-family: var(--titre); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; font-weight: 600; color: var(--lagune); }
.why .sig { margin-top: 14px; color: var(--galet); font-size: 15px; }

/* Bande bourse */
.band { background: var(--lagune); color: var(--brume); }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.band h2 { font-size: clamp(28px, 4vw, 40px); max-width: 20ch; }
.band p { color: var(--sur-lagune); margin-top: 10px; max-width: 54ch; }
.band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Bourse : 7 étapes */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.guide-grid .btn { margin-top: 26px; }
ol.seven { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ol.seven li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--ligne); }
ol.seven li:first-child { border-top: 1px solid var(--ligne); }
ol.seven .n { font-family: var(--titre); font-size: 30px; font-weight: 600; color: var(--lagune); line-height: 1; }
ol.seven b { display: block; font-size: 18px; }
ol.seven span { color: var(--galet); font-size: 15px; }
.callout { margin-top: 28px; background: var(--sauge); border-radius: 14px; padding: 18px 20px; font-size: 16px; }
.callout a { font-weight: 700; color: var(--lagune); }

/* Formation */
.formation { background: var(--lagune); color: var(--brume); }
.formation .eyebrow { color: var(--mangue-clair); margin-bottom: 14px; }
.formation h2 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.02; }
.formation .sub { margin-top: 14px; color: var(--sur-lagune); max-width: 58ch; }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.facts b { display: block; font-family: var(--titre); font-size: 42px; font-weight: 600; line-height: 1; }
.facts span { color: var(--sur-lagune); font-size: 15px; }
.prices { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price { border: 2px solid rgba(241, 245, 242, .25); border-radius: 16px; padding: 20px 22px; }
.price b { display: block; font-family: var(--titre); font-size: 32px; font-weight: 600; }
.price span { color: var(--sur-lagune); font-size: 15px; }
.formation .note { margin-top: 26px; background: var(--lagune-2); border-radius: 14px; padding: 18px 20px; max-width: 72ch; }
.formation .btn { margin-top: 26px; }

/* Pour qui */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.who-grid div { display: flex; flex-direction: column; gap: 6px; }
.who-grid b { font-family: var(--titre); font-size: 21px; font-weight: 600; }
.who-grid p { color: var(--galet); font-size: 16px; }

/* FAQ */
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--texte); font-size: 26px; line-height: 1; color: var(--lagune); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--galet); max-width: 72ch; }

/* Mentions légales */
.hero.court { padding-bottom: 56px; }
.hero.court h1 { font-size: clamp(34px, 6vw, 56px); max-width: 20ch; }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(22px, 3vw, 26px); margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--lagune); font-weight: 600; }

/* Pied de page */
footer { background: var(--nuit); color: var(--sur-lagune); font-size: 14px; padding-block: 40px 96px; }
body[data-page="mentions"] footer { padding-bottom: 40px; } /* pas de bouton fixe sur cette page */
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer .brand { color: var(--brume); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--brume); }

/* Bouton fixe (mobile) : masqué par site.js tant que les boutons du héros sont à l'écran */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 10; padding-inline: 16px; box-shadow: 0 10px 28px rgba(16, 36, 33, .35); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.sticky-cta.masque { opacity: 0; visibility: hidden; transform: translateY(16px); }
@media (min-width: 821px) { .sticky-cta { display: none; } footer { padding-bottom: 40px; } }
@media (max-width: 820px) {
  .section { padding-block: 56px; }
  .hero nav { margin-bottom: 44px; }
  .hero nav ul { display: none; }
  .steps3, .split, .why, .guide-grid, .facts, .prices, .who-grid { grid-template-columns: minmax(0, 1fr); }
  .split, .why, .guide-grid { gap: 30px; }
  .hero .btn, .modele .btn, .guide-grid .btn, .formation .btn, .band .btn { width: 100%; }
  .sheet { overflow-x: auto; }
  .sheet th, .sheet td { padding: 8px 7px; font-size: 12.5px; }
  .sheet th:first-child, .sheet td:first-child { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
