/* ==========================================================================
   romain.maths — feuille de style du site
   DA : design system romain.maths (encre marine · papier crème · bleu académique
   · ambre « surligneur » · sauge « validation ») — Bricolage Grotesque partout.
   Sommaire : 1. Jetons  2. Base  3. Mise en page  4. Typo  5. Composants
              6. En-tête / pied  7. Sections de pages  8. Utilitaires  9. Responsive
   ========================================================================== */

/* ---------- 1. JETONS ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink-900: #0E1A2C; --ink-800: #14233B; --ink-700: #1E3454; --ink-600: #2C4A73;
  --paper-50: #FBF8F1; --paper-100: #F6F0E4; --paper-200: #EDE4D2; --paper-300: #E0D3BB;
  --blue-600: #274A6E; --blue-500: #335C8A; --blue-400: #5480AD; --blue-300: #7FA8D4; --blue-100: #DCE6F1;
  --amber-500: #E6A95C; --amber-300: #F1CB97; --amber-100: #FBEFD9;
  --sage-600: #48604D; --sage-500: #6E8772; --sage-100: #DCE6DC;
  --slate-500: #8794A8;

  --bg: var(--paper-100); --bg-alt: var(--paper-50); --bg-sunken: var(--paper-200);
  --fg1: var(--ink-800); --fg2: #4A586D; --fg3: #5A6476;
  --fg-on-dark: var(--paper-100); --fg-on-dark-2: #B4C0D2;
  --accent: var(--blue-500); --accent-press: var(--blue-600);
  --line: var(--paper-300); --line-strong: #CDBC9E; --line-on-dark: rgba(246,240,228,.14);
  --grid-line: rgba(20,35,59,.055); --grid-line-dark: rgba(246,240,228,.06);

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-math: "STIX Two Math", "Cambria Math", "Latin Modern Math", Cambria, Georgia, serif;

  --fs-hero: clamp(2.55rem, 1.4rem + 4.6vw, 5.25rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.1rem, 1.02rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem; --fs-small: .9375rem; --fs-xs: .8125rem;

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem;
  --space-5: 3rem; --space-6: 4rem; --space-7: 6rem; --space-8: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 32px; --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(20,35,59,.07);
  --shadow-md: 0 10px 30px rgba(20,35,59,.09);
  --shadow-lg: 0 24px 60px rgba(20,35,59,.13);
  --shadow-photo: 0 30px 70px rgba(14,26,44,.28);

  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg1);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-press); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber-300); color: var(--ink-900); }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink-800); color: var(--paper-100); padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--paper-100); }

/* ---------- 3. MISE EN PAGE ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }
.section--dark { background: var(--ink-900); color: var(--fg-on-dark); }
.section--dark .lead, .section--dark p { color: var(--fg-on-dark-2); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper-50); }
.section--line { border-top: 1px solid var(--line); }

/* Quadrillage « cahier » — motif signature */
.grid-paper { position: relative; isolation: isolate; }
.grid-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.section--dark.grid-paper::before { background-image: linear-gradient(var(--grid-line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px); }

.section-head { display: grid; gap: var(--space-2); max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--compact { margin-bottom: 1.5rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-3) var(--space-5); }
.section-head--split > div { display: grid; gap: var(--space-2); max-width: 720px; }

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. TYPOGRAPHIE ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow__num { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .45rem; border-radius: var(--radius-pill); background: var(--ink-800); color: var(--paper-100); font-size: .72rem; letter-spacing: .04em; }
.eyebrow--light { color: var(--blue-300); }
.eyebrow--muted { color: var(--fg3); }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: var(--fs-h1); letter-spacing: -.032em; line-height: 1.02; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.028em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.2; font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg2); font-weight: 400; }
.small { font-size: var(--fs-small); }
.muted { color: var(--fg3); }
.dot { color: var(--amber-500); }
.mark { background-image: linear-gradient(transparent 60%, var(--amber-300) 60%, var(--amber-300) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--dark .mark { background-image: linear-gradient(transparent 62%, rgba(230,169,92,.55) 62%, rgba(230,169,92,.55) 92%, transparent 92%); color: var(--paper-50); }
.underline-pen { position: relative; white-space: nowrap; }
.underline-pen::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .14em; border-radius: 99px; background: var(--accent); transform: rotate(-1deg); opacity: .9; }
.section--dark .underline-pen::after { background: var(--blue-300); }
.math { font-family: var(--font-math); font-style: normal; letter-spacing: 0; }
.prose { display: grid; gap: 1.1rem; color: var(--fg2); }
.prose h2 { font-size: 1.6rem; color: var(--fg1); margin-top: 1.5rem; }
.prose h3 { font-size: 1.2rem; color: var(--fg1); margin-top: .75rem; letter-spacing: -.01em; }
.prose ul { padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose strong { color: var(--fg1); }

/* ---------- 5. COMPOSANTS ---------- */
/* Boutons */
.btn {
  --btn-bg: var(--ink-800); --btn-fg: var(--paper-50); --btn-bd: var(--ink-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { --btn-bg: var(--ink-800); --btn-fg: var(--paper-50); --btn-bd: var(--ink-800); }
.btn--primary:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-press); --btn-bd: var(--accent-press); }
.btn--light { --btn-bg: var(--paper-50); --btn-fg: var(--ink-900); --btn-bd: var(--paper-50); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-800); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--paper-50); --btn-bd: var(--ink-800); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--paper-50); --btn-bd: rgba(246,240,228,.35); }
.btn--ghost-light:hover { --btn-bg: rgba(246,240,228,.08); --btn-bd: var(--paper-50); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Pastilles */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--blue-100); color: var(--blue-600); }
.pill--amber { background: var(--amber-100); color: #8A5A1C; }
.pill--sage { background: var(--sage-100); color: var(--sage-600); }
.pill--ink { background: var(--ink-800); color: var(--paper-100); }
.pill--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--fg2); }
.pill--dark { background: rgba(246,240,228,.08); color: var(--paper-100); border: 1px solid var(--line-on-dark); }

/* Cartes */
.card { background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); box-shadow: var(--shadow-sm); position: relative; }
.card--hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card--dark { background: var(--ink-800); border-color: var(--ink-700); color: var(--fg-on-dark); }
.card--dark p { color: var(--fg-on-dark-2); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--blue-100); color: var(--blue-600); margin-bottom: 1.25rem; }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--fg2); }
.card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline-offset: 4px; }

/* Glyphes de correction */
.glyph { flex: none; }
.glyph--check { color: var(--sage-500); }
.glyph--cross { color: var(--slate-500); }
.glyph--circle { color: var(--accent); }
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .glyph { width: 22px; height: 22px; margin-top: .15rem; }
.checklist--light li { color: var(--fg-on-dark-2); }
.checklist--light .glyph--check { color: #9DB8A1; }

.circled { position: relative; display: inline-block; padding: 0 .1em; }
.circled .glyph--circle { position: absolute; left: -12%; top: -22%; width: 124%; height: 144%; pointer-events: none; }

/* Chiffres héros */
.stat { display: grid; gap: .25rem; }
.stat__value { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--fg1); }
.stat__label { font-size: var(--fs-small); color: var(--fg2); }
.section--dark .stat__value { color: var(--paper-50); }

/* Photo encadrée */
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-photo); background: var(--paper-200); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Accordéon FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__body { padding: 0 1.35rem 1.25rem; color: var(--fg2); }

/* Témoignages */
.quote-card { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.quote-card blockquote { margin: 0; font-size: 1.06rem; line-height: 1.6; color: var(--fg1); }
.quote-card blockquote::before { content: "«\00a0"; color: var(--amber-500); font-weight: 800; }
.quote-card blockquote::after { content: "\00a0»"; color: var(--amber-500); font-weight: 800; }
.quote-card footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); font-size: var(--fs-small); color: var(--fg2); }
.quote-card footer strong { color: var(--fg1); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--amber-500); }
.stars svg { width: 16px; height: 16px; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-md); background: var(--amber-100); border: 1px solid var(--amber-300); color: #6E4A17; font-size: var(--fs-small); }

/* Fil d'Ariane */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; color: var(--fg3); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--fg2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 6. EN-TÊTE & PIED ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,240,228,.9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20,35,59,.05); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink-800); flex: none; }
.brand:hover { color: var(--ink-800); }
.brand__mark { width: 38px; height: 38px; border-radius: 10px; }
.brand__word { font-weight: 800; font-size: 1.32rem; letter-spacing: -.04em; }
.brand__word span { color: var(--accent); }
.brand--light, .brand--light:hover { color: var(--paper-50); }
.brand--light .brand__word span { color: var(--blue-300); }
.brand--light .brand__mark rect { fill: var(--paper-100); }
.brand--light .brand__mark path:first-of-type { fill: var(--ink-800); }
.brand--light .brand__mark path:last-of-type { stroke: var(--blue-500); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .85rem; border-radius: var(--radius-pill); border: 0; background: none; color: var(--fg1); font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--paper-200); color: var(--ink-900); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--accent); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-500); margin-left: .3rem; }
.nav__chevron { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav__sub-toggle[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px; padding: .5rem; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__sub ul { list-style: none; display: grid; gap: .15rem; }
.nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub-link { display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 10px; text-decoration: none; color: var(--fg1); }
.nav__sub-link strong { font-weight: 600; }
.nav__sub-link span { font-size: .85rem; color: var(--fg3); }
.nav__sub-link:hover, .nav__sub-link[aria-current="page"] { background: var(--paper-200); color: var(--ink-900); }
.nav__sub-link[aria-current="page"] strong { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper-50); color: var(--ink-800); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.site-footer { background: var(--ink-900); color: var(--fg-on-dark-2); padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 2rem; font-size: var(--fs-small); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-on-dark); }
.site-footer__brand { display: grid; gap: 1.1rem; align-content: start; max-width: 340px; }
.site-footer__title { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: var(--fg-on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--paper-50); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; color: #8392A8; }
.socials { display: flex !important; gap: .5rem !important; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-on-dark); transition: background-color .2s, border-color .2s; }
.socials a:hover { background: rgba(246,240,228,.08); border-color: rgba(246,240,228,.4); }
.socials .icon { width: 19px; height: 19px; }

/* ---------- 7. SECTIONS ---------- */
/* Hero d'accueil */
.hero { background: var(--ink-900); color: var(--fg-on-dark); padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 7vw, 8rem); overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(closest-side, rgba(51,92,138,.38), transparent 70%); pointer-events: none; z-index: -1; }
.hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center; }
.hero__content { display: grid; gap: 1.6rem; }
.hero .hero-title { color: var(--paper-50); }
.hero .lead { color: var(--fg-on-dark-2); max-width: 36rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding-top: .5rem; font-size: var(--fs-small); color: var(--fg-on-dark-2); }
.hero__proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof .glyph { width: 20px; height: 20px; color: #9DB8A1; }
.hero__visual { position: relative; min-height: 520px; }
.hero__photo { position: relative; width: 74%; aspect-ratio: 4 / 5.6; margin-left: auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-photo); border: 6px solid rgba(246,240,228,.06); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__fiche { position: absolute; left: 0; bottom: -8%; width: 46%; transform: rotate(-6deg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.hero__badge { position: absolute; right: -2%; bottom: 9%; display: flex; gap: .75rem; align-items: center; background: var(--paper-50); color: var(--ink-800); padding: .85rem 1.1rem .85rem .85rem; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero__badge strong { display: block; font-size: 1rem; line-height: 1.2; }
.hero__badge small { color: var(--fg3); font-size: .8rem; }
.hero__badge .badge-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); }
.hero__badge .glyph { width: 26px; height: 26px; }
.hero__tag { position: absolute; left: 6%; top: 6%; background: var(--amber-500); color: var(--ink-900); font-weight: 700; padding: .55rem 1rem; border-radius: var(--radius-pill); font-size: .85rem; box-shadow: var(--shadow-md); transform: rotate(-3deg); }

/* Bandeau de confiance */
.trust { border-bottom: 1px solid var(--line); background: var(--paper-50); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 1.75rem 1.5rem; display: grid; gap: .2rem; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item strong { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.trust__item span { font-size: var(--fs-small); color: var(--fg2); }

/* Bloc « Vous vous reconnaissez ? » */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.versus__col { border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 1.25rem; align-content: start; }
.versus__col--before { background: var(--paper-200); border: 1px solid var(--line); }
.versus__col--after { background: var(--ink-800); color: var(--fg-on-dark); }
.versus__col--after h3 { color: var(--paper-50); }
.versus__col ul { list-style: none; display: grid; gap: 1rem; }
.versus__col li { display: flex; gap: .85rem; align-items: flex-start; }
.versus__col--before li { color: var(--fg2); }
.versus__col--after li { color: var(--fg-on-dark-2); }
.versus__col--after .glyph--check { color: #9DB8A1; }
.versus__col .glyph { width: 24px; height: 24px; margin-top: .1rem; }

/* Étapes de méthode */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--paper-50); border: 1px solid var(--line); display: grid; gap: .7rem; align-content: start; }
.step__num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--fg2); font-size: var(--fs-small); }
.steps--vertical { grid-template-columns: 1fr; gap: 0; }
.steps--vertical .step { grid-template-columns: 96px 1fr; column-gap: 2rem; border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 2.25rem 0; }
.steps--vertical .step:first-child { border-top-width: 1px; }
.steps--vertical .step__num { grid-row: span 3; font-size: 4.2rem; }
.steps--vertical .step h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.steps--vertical .step p { font-size: 1.02rem; max-width: 60ch; }
.step__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }

/* Cartes niveau / offre */
.level-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.level-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.level-card h3 { font-size: 1.6rem; letter-spacing: -.025em; }
.level-card .checklist { margin-top: .25rem; font-size: .98rem; color: var(--fg2); }
.level-card .link-arrow { margin-top: auto; padding-top: .75rem; }

/* Grille de fiches */
.fiche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(1rem, .6rem + 1vw, 1.5rem); }
.fiche-card { position: relative; display: flex; flex-direction: column; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.fiche-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.fiche-card__thumb { aspect-ratio: 4 / 5; background: #EDE4D2; overflow: hidden; border-bottom: 1px solid var(--line); }
.fiche-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.fiche-card:hover .fiche-card__thumb img { transform: scale(1.03); }
.fiche-card__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .35rem; }
.fiche-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fiche-card__meta .soon { color: var(--fg3); letter-spacing: .08em; }
.fiche-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.fiche-card h3 a { color: var(--fg1); text-decoration: none; }
.fiche-card h3 a::after { content: ""; position: absolute; inset: 0; }
.fiche-card p { font-size: .88rem; color: var(--fg2); line-height: 1.45; }
.fiche-card[hidden] { display: none; }

/* Aperçu typographique (fiche pas encore en ligne) — reprend la DA des fiches */
.fiche-proxy { position: relative; height: 100%; padding: 12% 10% 10% 14%; background-color: #FAF6EE; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 18px 18px; display: flex; flex-direction: column; gap: 6%; }
.fiche-proxy::before { content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 1px; background: rgba(20,35,59,.12); }
.fiche-proxy__eyebrow { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fiche-proxy__title { font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; color: var(--ink-800); }
.fiche-proxy__title::after { content: "."; color: var(--amber-500); }
.fiche-proxy__lines { display: grid; gap: 7px; margin-top: auto; }
.fiche-proxy__lines span { height: 7px; border-radius: 4px; background: rgba(20,35,59,.08); }
.fiche-proxy__lines span:nth-child(2) { width: 82%; }
.fiche-proxy__lines span:nth-child(3) { width: 64%; background: var(--blue-100); }
.fiche-proxy__box { height: 22%; border-radius: 6px; background: var(--ink-800); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; background: var(--paper-200); border-radius: var(--radius-pill); }
.tab { border: 0; background: transparent; padding: .55rem 1.05rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; color: var(--fg2); cursor: pointer; min-height: 40px; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink-900); }
.tab[aria-pressed="true"] { background: var(--paper-50); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.tab__count { font-weight: 500; color: var(--fg3); margin-left: .25rem; font-size: .85em; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--fg3); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.75rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--paper-50); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(51,92,138,.15); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--fg2); }

/* Page d'une fiche */
.fiche-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.fiche-detail__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #EDE4D2; }
.fiche-detail__img .fiche-proxy { aspect-ratio: 4/5; }
.fiche-detail__img .fiche-proxy__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.fiche-detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.fiche-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fiche-nav a { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--fg1); background: var(--paper-50); font-size: .92rem; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.fiche-nav a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.fiche-nav a span { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }
.fiche-nav a:last-child { text-align: right; }

/* Hero des pages internes */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; gap: 1.4rem; max-width: 880px; }
.page-hero .lead { max-width: 44rem; }
.page-hero--split .page-hero__inner { max-width: none; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 2rem 4rem; }
.page-hero--dark { background: var(--ink-900); color: var(--fg-on-dark); border-bottom: 0; }
.page-hero--dark h1 { color: var(--paper-50); }
.page-hero--dark .lead { color: var(--fg-on-dark-2); }
.page-hero--dark .breadcrumb a { color: var(--fg-on-dark-2); }
.page-hero--dark .breadcrumb ol { color: #8392A8; }

/* Principes */
.principle { display: grid; gap: .75rem; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-50); }
.principle__big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.principle p { color: var(--fg2); }

/* Séance type (timeline) */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px dashed var(--line-strong); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 1.75rem 2rem; display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-100); border: 3px solid var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { font-size: 1.08rem; }
.timeline .t { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.timeline p { color: var(--fg2); font-size: var(--fs-small); }
.section--dark .timeline { border-left-color: rgba(246,240,228,.2); }
.section--dark .timeline li::before { background: var(--ink-900); border-color: var(--blue-300); }
.section--dark .timeline .t { color: var(--blue-300); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--paper-50); border: 1px solid var(--line); position: relative; }
.price-card--featured { background: var(--ink-800); border-color: var(--ink-800); color: var(--fg-on-dark); box-shadow: var(--shadow-lg); }
.price-card--featured h3, .price-card--featured .price__value { color: var(--paper-50); }
.price-card--featured .price-card__for, .price-card--featured .checklist li, .price-card--featured .price__unit { color: var(--fg-on-dark-2); }
.price-card--featured .glyph--check { color: #9DB8A1; }
.price-card__badge { position: absolute; top: -14px; left: 2rem; }
.price-card h3 { font-size: 1.35rem; }
.price-card__for { color: var(--fg2); font-size: var(--fs-small); margin-top: -.75rem; }
.price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; padding-block: .5rem 1rem; border-bottom: 1px dashed var(--line-strong); }
.price-card--featured .price { border-bottom-color: rgba(246,240,228,.2); }
.price__value { font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.price__unit { color: var(--fg2); font-size: var(--fs-small); }
.price-card .checklist { font-size: .97rem; color: var(--fg2); }
.price-card .btn { margin-top: auto; }
.stage-band { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: var(--amber-100); border: 1px solid var(--amber-300); }
.stage-band .price__value { font-size: 2.2rem; }

/* Formulaire */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--fg1); }
.field .req { color: var(--accent); }
.field .hint { font-size: .82rem; color: var(--fg3); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: #FFFDF8; color: var(--fg1); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23335C8A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(51,92,138,.15); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #B4534A; box-shadow: 0 0 0 4px rgba(180,83,74,.1); }
.field__error { font-size: .85rem; color: #A1453C; font-weight: 500; }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: .45rem; padding: 0; width: 100%; font-weight: 600; font-size: .95rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: .5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: #FFFDF8; font-weight: 500; font-size: .95rem; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--ink-800); color: var(--paper-50); border-color: var(--ink-800); }
.choice input:focus-visible + span { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--fg2); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-md); padding: 1rem 1.2rem; font-weight: 500; display: none; gap: .75rem; align-items: flex-start; }
.form-status.is-visible { display: flex; }
.form-status--ok { background: var(--sage-100); color: #2F4733; border: 1px solid #B9CDBA; }
.form-status--error { background: #F7E3DF; color: #7A2F27; border: 1px solid #E8BDB5; }
.form-status--info { background: var(--blue-100); color: var(--blue-600); border: 1px solid #BFD0E3; }
.form-status .glyph, .form-status .icon { width: 22px; height: 22px; flex: none; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.contact-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-line { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--fg1); font-weight: 600; word-break: break-word; }
.contact-line .card__icon { margin: 0; width: 46px; height: 46px; flex: none; }

/* Défi maths du jour */
.defi { display: grid; grid-template-columns: 1fr; gap: 1.5rem; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.defi::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.defi > * { position: relative; }
.defi__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.defi__enonce { font-family: var(--font-math); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.35; color: var(--ink-800); }
.defi__form { display: flex; gap: .75rem; flex-wrap: wrap; }
.defi__form .input { flex: 1 1 200px; max-width: 320px; font-size: 1.15rem; font-weight: 600; }
.defi__feedback { min-height: 1.5rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.defi__feedback.is-ok { color: var(--sage-600); }
.defi__feedback.is-ko { color: #A1453C; }
.defi__feedback .glyph { width: 26px; height: 26px; }
.defi__panel { border-radius: var(--radius-md); padding: 1.1rem 1.3rem; background: var(--blue-100); color: var(--ink-800); }
.defi__panel--solution { background: var(--ink-800); color: var(--paper-100); }
.defi__panel--solution ol { padding-left: 1.2rem; display: grid; gap: .3rem; font-family: var(--font-math); font-size: 1.1rem; }
.defi__panel .eyebrow { margin-bottom: .4rem; }
.defi__panel--solution .eyebrow { color: var(--amber-300); }
.defi__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line-strong); padding-top: 1.25rem; }
.defi__nav { display: flex; gap: .5rem; align-items: center; }
.defi__count { font-size: var(--fs-small); color: var(--fg3); font-weight: 500; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper-50); color: var(--ink-800); cursor: pointer; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { background: #fff; border-color: var(--ink-800); }
.icon-btn .icon { width: 20px; height: 20px; }

/* Documents (cours / exercices) */
.doc-list { display: grid; gap: .75rem; list-style: none; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-md); }
.doc__ico { display: grid; place-items: center; width: 48px; height: 56px; border-radius: 8px; background: var(--blue-100); color: var(--blue-600); }
.doc__ico .icon { width: 24px; height: 24px; }
.doc h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.doc p { font-size: .9rem; color: var(--fg2); }
.doc__type { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }
.doc__action { white-space: nowrap; }
.doc__locked { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--fg3); }
.doc__locked .icon { width: 16px; height: 16px; }

.level-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
.level-block:first-child { border-top: 0; padding-top: 0; }
.level-block__chapters { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.level-block__chapters li { padding: .4rem .85rem; border-radius: var(--radius-pill); background: var(--paper-50); border: 1px solid var(--line); font-size: .88rem; color: var(--fg2); }

/* À propos */
.about-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about-hero .photo { aspect-ratio: 4 / 5; }
.milestones { list-style: none; display: grid; gap: 0; }
.milestones li { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.milestones li:last-child { border-bottom: 1px solid var(--line); }
.milestones .when { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: .25rem; }
.milestones h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.milestones p { color: var(--fg2); font-size: .97rem; }
.signature-quote { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--paper-50); max-width: 22em; }

/* Bloc CTA final */
.cta-final__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem 4rem; align-items: center; }
.cta-final h2 { margin: .9rem 0 1rem; }
.cta-final__actions { display: grid; gap: 1.5rem; justify-items: start; }

/* Bande « fiches » de l'accueil */
.fiche-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fiche-strip .fiche-card:nth-child(odd) { transform: rotate(-1.2deg); }
.fiche-strip .fiche-card:nth-child(even) { transform: rotate(1deg) translateY(12px); }
.fiche-strip .fiche-card:hover { transform: rotate(0) translateY(-4px); }

/* Carte « split » visuel/texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media .photo { aspect-ratio: 3 / 2.1; }
.floating-note { position: absolute; right: -4%; bottom: -8%; max-width: 260px; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 1.15rem; box-shadow: var(--shadow-lg); display: grid; gap: .3rem; }
.floating-note strong { font-size: .95rem; }
.floating-note p { font-size: .85rem; color: var(--fg2); }

/* Page 404 / merci */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.center-page__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 560px; }
.big-num { font-size: clamp(6rem, 4rem + 8vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--ink-800); }

/* ---------- 8. UTILITAIRES ---------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.stack { display: grid; gap: 1rem; } .stack--lg { display: grid; gap: 1.75rem; }
.center { text-align: center; } .justify-center { justify-content: center; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: 520px; }
  .fiche-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.25rem 1.25rem 2rem; background: var(--paper-100); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1.05rem .25rem; font-size: 1.2rem; font-weight: 600; border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"]::after, .nav__link.is-active::after { margin-left: auto; }
  .nav__sub-toggle.is-active::after { margin-left: .5rem; }
  .nav__sub-toggle .nav__chevron { margin-left: auto; }
  .nav__sub { position: static; translate: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .75rem; display: none; }
  .nav__item--has-sub.is-open .nav__sub { display: block; }
  .nav__cta { min-height: 56px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }

  .hero__inner, .split, .about-hero, .contact-layout, .fiche-detail, .cta-final__inner, .page-hero--split .page-hero__inner, .level-block { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__photo { width: 78%; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-card--featured { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-aside, .fiche-detail__aside { position: static; }
  .about-hero .photo { max-width: 440px; }
  .section-head--split { grid-template-columns: 1fr; }
  .stage-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4, .versus, .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps--vertical .step { grid-template-columns: 1fr; }
  .steps--vertical .step__num { grid-row: auto; font-size: 3rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .hero__badge { right: 0; bottom: 4%; padding: .65rem .85rem .65rem .65rem; }
  .hero__badge .badge-ico { width: 36px; height: 36px; }
  .hero__tag { font-size: .78rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .doc { grid-template-columns: auto 1fr; }
  .doc__action { grid-column: 1 / -1; }
  .doc__action .btn { width: 100%; }
  .milestones li { grid-template-columns: 1fr; gap: .35rem; }
  .fiche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .fiche-card__body { padding: .8rem .85rem .9rem; }
  .fiche-card h3 { font-size: .95rem; }
  .fiche-card p { display: none; }
  .filters { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .tabs { border-radius: 18px; }
  .floating-note { position: static; margin-top: 1rem; max-width: none; }
  .fiche-nav { grid-template-columns: 1fr; }
  .fiche-nav a:last-child { text-align: left; }
  .defi__form .btn { flex: 1 1 100%; }
  .defi__form .input { max-width: none; }
}

@media print {
  .site-header, .site-footer, .cta-final, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Correctifs ---------- */
[hidden] { display: none !important; }
.section--dark .timeline p, .card--dark .timeline p { color: var(--fg-on-dark-2); }
.section--dark .timeline strong, .card--dark .timeline strong { color: var(--paper-50); }
.card.card--dark p, .card.card--dark li { color: var(--fg-on-dark-2); }
.card.card--dark h2, .card.card--dark h3 { color: var(--paper-50); }
.card--dark .timeline { border-left-color: rgba(246,240,228,.2); }
.card--dark .timeline li::before { background: var(--ink-800); border-color: var(--blue-300); }
.card--dark .timeline .t { color: var(--blue-300); }
.fiche-card__thumb, .fiche-detail__img { container-type: inline-size; }
.fiche-proxy__title { font-size: clamp(1rem, 11.5cqi, 3.2rem); overflow-wrap: anywhere; hyphens: auto; }
.fiche-detail__img .fiche-proxy__title { font-size: clamp(2rem, 10cqi, 3.6rem); }
.fiche-proxy__eyebrow { font-size: clamp(.5rem, 3.2cqi, .8rem); }

/* ---------- Cartes de documents (aperçu) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
.doc-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.doc-card { display: flex; flex-direction: column; background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc-card__visual { position: relative; aspect-ratio: 5 / 4; background: var(--paper-200); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; border-bottom: 1px solid var(--line); }
.doc-card__page { position: absolute; width: 50%; height: auto; left: 18%; top: 12%; border-radius: 4px; box-shadow: 0 14px 30px rgba(14,26,44,.22); transform: rotate(-3deg); transition: transform .4s var(--ease); background: #fff; }
.doc-card__page--back { left: 36%; top: 16%; transform: rotate(5deg); opacity: .96; }
.doc-card:hover .doc-card__page { transform: rotate(-4deg) translateY(-4px); }
.doc-card:hover .doc-card__page--back { transform: rotate(7deg) translateX(6px); }
.doc-card:not(.doc-card--locked) .doc-card__page { left: 25%; }
.doc-card__page--blank { aspect-ratio: 1 / 1.414; padding: 10%; display: flex; flex-direction: column; gap: 8%; background: var(--ink-800); color: var(--paper-50); }
.doc-card__page--blank .fiche-proxy__title { color: var(--paper-50); font-size: 1.05rem; }
.doc-card__page--blank .fiche-proxy__eyebrow { color: var(--blue-300); }
.doc-card__lock, .doc-card__free { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 600; letter-spacing: .04em; box-shadow: var(--shadow-sm); }
.doc-card__lock { background: var(--ink-800); color: var(--paper-50); }
.doc-card__lock .icon { width: 14px; height: 14px; }
.doc-card__free { background: var(--sage-100); color: var(--sage-600); }
.doc-card__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.doc-card__body h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.doc-card__body p { font-size: .9rem; color: var(--fg2); }
.doc-card__body .doc__type { color: var(--accent); }
.doc-card__action { margin-top: auto; padding-top: .75rem; }
.doc-card__page--blank { overflow: hidden; }
.doc-card__page--blank .fiche-proxy__eyebrow { font-size: .55rem; }
.doc-card__page--blank .fiche-proxy__title { font-size: .95rem; overflow-wrap: anywhere; }
.doc-card__visual { aspect-ratio: 1 / .9; }
.doc-card__page { width: 52%; top: 9%; }
.doc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-grid--3 .doc-card__visual { aspect-ratio: 16 / 10; }
.doc-grid--3 .doc-card__page { width: 40%; left: 20%; top: 8%; }
.doc-grid--3 .doc-card__page--back { left: 42%; top: 12%; }
.doc-card__action .link-arrow { font-size: .95rem; }
@media (max-width: 980px) { .doc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .doc-grid--3 { grid-template-columns: 1fr; } .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doc-card__body p:not(.doc__type) { font-size: .85rem; } }
@media (max-width: 380px) { .doc-grid { grid-template-columns: 1fr; } }

/* ---------- Photos au tableau ---------- */
.hero__photo { aspect-ratio: 3850 / 4212; width: 80%; margin-left: 0; margin-right: auto; }
.hero__photo img { object-position: 30% 40%; }
.hero__fiche { left: auto; right: -2%; bottom: -10%; width: 40%; transform: rotate(5deg); }
.hero__badge { right: auto; left: -4%; bottom: 6%; }
.hero__tag { left: auto; right: 4%; top: 5%; transform: rotate(3deg); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.gallery__item { margin: 0; display: grid; gap: .6rem; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.gallery__item:nth-child(even) { transform: translateY(18px); }
.gallery__item figcaption { font-size: .85rem; color: var(--fg2); line-height: 1.4; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery__item:nth-child(even) { transform: none; } .gallery__item:last-child:nth-child(odd) { grid-column: 1 / -1; } .gallery__item:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; object-position: 50% 30%; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero__badge { left: 0; } }

/* Avis Google */
.google-avis { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.google-avis__note { margin: 0; display: inline-flex; align-items: center; gap: .6rem; color: var(--fg2); }
.google-avis__note strong { color: var(--fg1); }
.google-avis__stars { color: var(--amber-500); letter-spacing: .1em; font-size: 1.15rem; }
a.pill { text-decoration: none; }
a.pill:hover { border-color: var(--fg2); }
.quote-card footer .pill { white-space: nowrap; flex-shrink: 0; }
