/* ==========================================================================
   Centre de formation 11 Beauty — feuille de style (refonte épurée, 17/09/2026)
   Palette tirée du logo : bleu canard #078291, rouge #AE0D0E, or #D6B241.
   Règles : crème + bleu canard dominent ; l'or n'est qu'un filet ;
   le rouge est réservé au bouton « Réserver ». Contrastes en commentaire.
   ========================================================================== */

:root {
  --cream: #FBF6EE;
  --cream-2: #F3ECE0;
  --paper: #FFFDF9;
  --ink: #1F2A2C;          /* 13.6:1 sur crème */
  --ink-soft: #505B5D;     /* 6.6:1 sur crème */
  --night: #0A3F45;        /* titres + sections sombres (11:1) */
  --night-2: #083338;
  --teal: #078291;         /* décor uniquement */
  --teal-deep: #06666F;    /* texte d'accent (6.2:1) */
  --red: #AE0D0E;          /* bouton principal (6.8:1 avec blanc) */
  --red-2: #8F0A0B;
  --gold: #D6B241;         /* filets, et texte sur fond nuit (5.7:1) */
  --wa: #0E7A6D;           /* WhatsApp assombri (5.2:1 avec blanc) */
  --line: rgba(10, 63, 69, .12);
  --line-strong: rgba(10, 63, 69, .22);

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --f-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --measure: 40rem;
  --space: clamp(48px, 6vw, 88px);
  --shadow: 0 1px 2px rgba(10, 63, 69, .05), 0 24px 48px -28px rgba(10, 63, 69, .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(96px + env(safe-area-inset-top, 0px)); -webkit-tap-highlight-color: rgba(10, 63, 69, .12); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.menu-open, html.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--night); color: var(--cream); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; color: var(--night); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 em, h2 em, .display em { font-style: italic; color: var(--teal-deep); }
.display { font-size: clamp(2.6rem, 1.2rem + 7vw, 7rem); line-height: .96; letter-spacing: -.025em; }
h2 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.02em; }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.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; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 1040px; }

.section { padding-block: var(--space); position: relative; }
.section--tight { padding-top: 0; }
.section--soft { background: var(--cream-2); }
.section--night { background: var(--night); color: rgba(251, 246, 238, .78); }
.section--night h2, .section--night h3 { color: var(--cream); }
.section--night a:not(.btn) { color: var(--gold); }
.section--legal { padding-top: 0; }
.section-head { max-width: var(--measure); margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 + .lead, .section-head h2 + .muted { margin-top: 24px; }

.eyebrow { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; font-weight: 500; letter-spacing: .01em; color: var(--teal-deep); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; margin-top: .8em; background: var(--gold); flex: none; }
.hero .display { font-size: clamp(2.6rem, 1rem + 6.4vw, 6.4rem); }
.section--night .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 36rem; }
.section--night .lead { color: rgba(251, 246, 238, .78); }
.muted { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Boutons : la flèche glisse ---------- */
.btn { --bg: var(--night); --fg: #fff; --bd: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--bd); font-weight: 500; font-size: 1rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap; touch-action: manipulation; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--red); box-shadow: 0 10px 24px -14px rgba(174, 13, 14, .9); }
.btn--dark { --bg: var(--night); }
.btn--ghost { --bg: transparent; --fg: var(--night); --bd: var(--line-strong); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); --bd: rgba(251, 246, 238, .3); }
.section--night .btn--ghost-light { color: var(--cream); }
.btn--wa { --bg: var(--wa); }
.btn--link { --bg: transparent; --fg: var(--night); padding-inline: 4px; min-height: 48px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; gap: 8px; }
.btn--block { width: 100%; }
.arr { position: relative; width: 1em; height: 1em; overflow: hidden; flex: none; }
.arr::before, .arr::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; transition: transform .45s var(--ease-out); }
.arr::after { transform: translateX(-120%); }
.arr--down::before, .arr--down::after { content: "↓"; }
.arr--down::after { transform: translateY(-120%); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --bg: var(--red-2); }
  .btn--dark:hover { --bg: var(--teal-deep); }
  .btn--ghost:hover { --bd: var(--night); }
  .btn--ghost-light:hover { --bd: var(--cream); }
  .btn--wa:hover { --bg: #0B6559; }
  .btn:hover .arr::before { transform: translateX(120%); }
  .btn:hover .arr::after { transform: none; }
  .btn:hover .arr--down::before { transform: translateY(120%); }
  a:hover { text-decoration-thickness: 2px; }
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- En-tête : pilule flottante qui se compacte ---------- */
.header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.header-pill { pointer-events: auto; position: relative; margin-inline: auto; max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 14px; border-radius: 999px; border: 1px solid transparent; transition: max-width .6s var(--ease), background-color .4s, border-color .4s, box-shadow .4s, padding .4s var(--ease); }
.header-pill::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(251, 246, 238, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); opacity: 0; transition: opacity .4s; }
.header.is-scrolled .header-pill { max-width: 860px; border-color: var(--line); box-shadow: 0 12px 30px -18px rgba(10, 63, 69, .35); }
.header.is-scrolled .header-pill::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--night); text-decoration: none; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color .3s; }
.nav a[aria-current="page"] { color: var(--teal-deep); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { background: rgba(10, 63, 69, .06); } }
.nav .btn { margin-left: 6px; }
.burger { display: none; }

@media (max-width: 900px) {
  .header-pill, .header.is-scrolled .header-pill { max-width: none; }
  .header-pill::before { opacity: 1; background: rgba(251, 246, 238, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-pill { border-color: var(--line); }
  .burger { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--night); position: relative; z-index: 2; }
  .burger span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 1; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: calc(96px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px)); background: var(--cream); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; padding: 8px 0; min-height: 52px; color: var(--night); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 24px 0 0; min-height: 52px; font-size: 1rem; }
  .header-pill { z-index: 2; }
  .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(clamp(120px, 16vw, 180px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(56px, 8vw, 96px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero-lead { margin-top: clamp(24px, 3vw, 36px); }
.hero-cta { margin-top: clamp(28px, 4vw, 44px); }
.hero-media { display: grid; place-items: center; }
.hero-logo { width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; position: relative; will-change: transform; }
.hero-logo::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(214, 178, 65, .55); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 63, 69, .18)); }
.hero-logo picture { display: block; width: 100%; }
.js .hero-logo picture, .js .hero-logo::before { animation: logoIn 1.4s var(--ease-out) .2s both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.92); } }

.facts-row { margin: clamp(56px, 8vw, 104px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.facts-row div { padding: 22px 24px 0 0; }
.facts-row div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-row dt { font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.facts-row dd { margin: 0; font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); line-height: 1.2; color: var(--night); }
.js .hero .facts-row { animation: fadeUp .9s var(--ease-out) .9s both; }
.js .hero .eyebrow { animation: fadeUp .8s var(--ease-out) .05s both; }
.js .hero-lead, .js .page-hero .lead { animation: fadeUp .9s var(--ease-out) .55s both; }
.js .hero-cta, .js .page-hero .btn-row { animation: fadeUp .9s var(--ease-out) .7s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Titre découpé : ligne par ligne, avec un flou qui s'efface */
.display .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.display .line > span { display: inline-block; }
.js [data-split] .line > span { animation: lineIn 1.1s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * .11s); }
.js [data-split] .line:nth-child(2) > span { --i: 1; }
.js [data-split] .line:nth-child(3) > span { --i: 2; }
@keyframes lineIn { from { transform: translateY(60%); opacity: 0; filter: blur(12px); } }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; justify-items: start; }
  .hero-logo { width: min(28vw, 18svh, 128px); }
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .facts-row { margin-top: 32px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row div, .facts-row div + div { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts-row div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-media { order: 0; }
  .hero-logo { width: min(26vw, 180px); }
}

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease-out), transform .5s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Virginie : texte qui s'éclaire mot par mot ---------- */
.statement { font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.02em; color: var(--night); margin: 0; text-wrap: pretty; }
.statement .w { transition: opacity .25s linear; }
.js .statement.is-scrub .w { opacity: .16; }
.js .statement.is-scrub .w.on { opacity: 1; }
.story-foot { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; padding-top: 32px; border-top: 1px solid var(--line); }
.story-foot p:first-child { max-width: 34rem; color: var(--ink-soft); margin: 0; }
.signature { font-family: var(--f-script); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--teal-deep); margin: 0; }
@media (max-width: 700px) { .story-foot { grid-template-columns: 1fr; } }

/* ---------- La journée : panneau épinglé + étapes ---------- */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.journey-panel { position: sticky; top: calc(22vh + env(safe-area-inset-top, 0px)); }
.journey-sub { margin-top: 20px; }
.journey-meter { margin-top: clamp(40px, 6vw, 72px); }
.journey-count { display: flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--f-display); color: var(--cream); line-height: .9; }
.journey-count b { font-weight: 500; font-size: clamp(4.5rem, 3rem + 5vw, 8rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.journey-count span { font-size: 1.5rem; color: rgba(251, 246, 238, .5); }
.journey-name { margin: 14px 0 20px; font-size: 1.05rem; color: var(--gold); min-height: 1.6em; }
.journey-bar { height: 2px; background: rgba(251, 246, 238, .14); border-radius: 2px; overflow: hidden; max-width: 360px; }
.journey-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps { list-style: none; padding: 0; }
.step { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(251, 246, 238, .14); }
.step:last-child { border-bottom: 1px solid rgba(251, 246, 238, .14); }
.step-num { font-size: .85rem; color: var(--gold); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 12px; }
.step p:last-child { max-width: 32rem; }
.journey.pin-ready .step { min-height: 30vh; display: flex; flex-direction: column; justify-content: center; }
.journey.pin-ready .step > * { opacity: .28; transition: opacity .6s var(--ease); }
.journey.pin-ready .step.is-active > * { opacity: 1; }
@media (max-width: 899px) {
  .journey { grid-template-columns: 1fr; }
  .journey-panel { position: static; }
  .journey-meter { display: none; }
}

/* Journée en accordéon (toutes tailles) */
.journey.acc .step { padding-block: 16px; }
.journey.acc .step-num { margin-bottom: 2px; }
.journey.acc .step h3 { margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.journey.acc .step h3::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(251, 246, 238, .28); border-radius: 50%; font-family: var(--f-body, sans-serif); font-size: 1.1rem; color: var(--gold); transition: transform .4s var(--ease); }
.journey.acc .step.is-open h3::after { transform: rotate(45deg); }
.journey.acc .step > p:last-child { max-height: 0; opacity: 0; margin: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .3s var(--ease), margin .3s var(--ease); }
.journey.acc .step.is-open > p:last-child { max-height: 14em; opacity: 1; margin-top: 8px; }

/* ---------- Ce qui est inclus : grille bento ---------- */
.bento { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; min-height: 240px; }
.tile .ico { width: 36px; height: 36px; color: var(--teal-deep); margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--ink-soft); margin: 0; }
.tile--wide { grid-column: span 2; }
.tile--accent { background: var(--night); border-color: var(--night); color: rgba(251, 246, 238, .78); }
.tile--accent h3 { color: var(--cream); }
.tile--accent p { color: rgba(251, 246, 238, .78); }
.tile--accent .ico { color: var(--gold); }
.tile--accent a { color: var(--gold); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { gap: 10px; } .tile--wide { grid-column: 1 / -1; } .tile { min-height: 0; padding: 18px; } .tile .ico { width: 28px; height: 28px; padding-bottom: 14px; } .tile h3 { font-size: 1.1rem; } .tile p { font-size: .88rem; line-height: 1.45; } }
@media (max-width: 600px) { .step { padding-block: 18px; } .step h3 { font-size: 1.25rem; } .step p { font-size: .92rem; line-height: 1.5; } }

/* ---------- Sélecteur groupe / individuel ---------- */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(10, 63, 69, .06); border-radius: 999px; padding: 4px; margin-top: 32px; }
.seg button { position: relative; z-index: 2; border: 0; background: transparent; padding: 0 22px; min-height: 46px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); transition: color .4s var(--ease); white-space: nowrap; }
.seg button[aria-checked="true"] { color: #fff; }
.seg .pill { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--night); transition: transform .55s var(--ease-out); }
.seg[data-value="individuel"] .pill { transform: translateX(100%); }
.calc .seg { display: grid; width: 100%; margin-top: 0; }
.calc .seg button { padding: 0 12px; white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 480px) { .seg button { padding: 6px 12px; white-space: normal; line-height: 1.2; font-size: .95rem; } }
.swap { transition: opacity .25s, transform .4s var(--ease); }
.swap.out { opacity: 0; transform: translateY(8px); }

/* ---------- Calculateur ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.calc-form { padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.field .label, .field label { font-weight: 500; }
.field .label { display: block; margin-bottom: 12px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.field output { font-family: var(--f-display); font-size: 1.6rem; color: var(--night); font-variant-numeric: tabular-nums; }
.field small { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
input[type=range] { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--night) var(--fill), rgba(10, 63, 69, .14) var(--fill)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(10, 63, 69, .14); }
input[type=range]::-moz-range-progress { height: 3px; background: var(--night); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--night); box-shadow: 0 4px 10px -4px rgba(10, 63, 69, .5); transition: transform .3s var(--ease); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--night); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-out { background: var(--night); color: rgba(251, 246, 238, .78); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.big-result { margin: 0; color: var(--cream); }
.big-result .v { display: block; font-family: var(--f-display); font-size: clamp(5rem, 3.5rem + 5vw, 8.5rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big-result .u { display: block; margin-top: 12px; font-size: 1.05rem; color: rgba(251, 246, 238, .78); }
.calc-lines { border-top: 1px solid rgba(251, 246, 238, .14); }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(251, 246, 238, .14); }
.calc-lines b { color: var(--cream); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.disclaimer { font-size: .85rem; color: rgba(251, 246, 238, .62); margin-top: auto; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(40px, 7vw, 120px); align-items: center; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.price-label { font-weight: 500; color: var(--teal-deep); margin: 0; }
.price { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 12px; font-family: var(--f-display); color: var(--night); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.price .amount { font-size: clamp(5rem, 4rem + 4vw, 7.5rem); letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.price .cur { font-size: 2.4rem; margin-top: .3em; }
.price-sub { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.checks { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 6px; border-left: 1.5px solid var(--teal-deep); border-bottom: 1.5px solid var(--teal-deep); transform: rotate(-45deg); }
@media (max-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.quiz-bar { height: 3px; background: rgba(10, 63, 69, .08); }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--night); transition: width .6s var(--ease); }
.quiz-body { padding: clamp(24px, 4vw, 48px); }
.quiz-body > .eyebrow { margin-bottom: 14px; }
.quiz-q { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 24px; outline: none; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; min-height: 64px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: transparent; font-weight: 500; color: var(--night); transition: border-color .3s, background-color .3s, color .3s; }
.option small { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.option[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--cream); }
.option[aria-pressed="true"] small { color: rgba(251, 246, 238, .78); }
@media (hover: hover) and (pointer: fine) { .option:hover { border-color: var(--night); } }
.quiz-nav { margin-top: 18px; min-height: 44px; }
.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--teal-deep); text-decoration: underline; text-underline-offset: .18em; }
.quiz-result h3 { margin-bottom: 14px; outline: none; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.quiz-result p { color: var(--ink-soft); max-width: 38rem; }
.quiz-result strong { color: var(--night); font-weight: 500; }
.quiz-result .fit { color: var(--teal-deep); font-weight: 500; margin-bottom: 10px; }
.quiz-result .btn-row { margin-top: 24px; }
@media (max-width: 560px) { .options { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Réservation ---------- */
.booking { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.booking-intro .lead { margin-top: 24px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--teal-deep); margin-top: .2em; }
.section--night .contact-list svg { color: var(--gold); }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 18px; margin: 0; }
.hours dd { margin: 0; }
.wizard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); scroll-margin-top: 96px; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.wz-count { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dots-steps { list-style: none; padding: 0; display: flex; gap: 6px; flex: 1; max-width: 220px; }
.dots-steps li { flex: 1; height: 3px; border-radius: 3px; background: rgba(10, 63, 69, .12); transition: background-color .5s var(--ease); }
.dots-steps li.done { background: var(--night); }
.wz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz-step legend { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 500; color: var(--night); line-height: 1.1; margin-bottom: 8px; padding: 0; outline: none; }
.hint { color: var(--ink-soft); margin-bottom: 20px; }
.wz-step.enter { animation: stepIn .6s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); transition: border-color .3s, background-color .3s, color .3s; }
.choice b { font-weight: 500; color: var(--night); line-height: 1.3; }
.choice small { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.choice em { font-style: normal; font-family: var(--f-display); font-size: 1.6rem; color: var(--night); white-space: nowrap; }
.choice input:checked + span { background: var(--night); border-color: var(--night); }
.choice input:checked + span b, .choice input:checked + span em { color: var(--cream); }
.choice input:checked + span small { color: rgba(251, 246, 238, .78); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover > span { border-color: var(--night); } }
.text-field { display: grid; gap: 8px; margin-top: 16px; }
.text-field label { font-weight: 500; }
.text-field small { color: var(--ink-soft); font-weight: 400; }
.text-field input, .text-field textarea { width: 100%; font-size: 16px; padding: 14px 16px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--cream); transition: border-color .3s, box-shadow .3s; }
.text-field input:focus, .text-field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(7, 130, 145, .25); }
.msg-preview { white-space: pre-line; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: .95rem; margin-bottom: 20px; overflow-wrap: anywhere; }
.wz-alt { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); }
.wizard p a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.wz-error { color: var(--red); font-weight: 500; margin: 14px 0 0; min-height: 0; }
.wz-error:empty { display: none; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.wz-nav [data-next] { margin-left: auto; }
@media (max-width: 860px) { .booking { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .choices.two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-aside { margin-top: 32px; padding: 28px; border-radius: 20px; background: var(--night); color: var(--cream); }
.faq-aside p { margin: 0 0 18px; color: rgba(251, 246, 238, .8); }
.faq-aside strong { display: block; margin-bottom: 8px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; color: var(--cream); }
.faq-aside .btn { width: 100%; justify-content: center; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 48px; cursor: pointer; font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.25; color: var(--night); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .5s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--night); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--night); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--cream); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer > div { padding: 0 52px 24px 0; color: var(--ink-soft); }
.faq .answer a { display: inline-block; padding-block: 11px; margin-block: -11px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid .section-head { position: static; } .faq-aside { display: none; } .faq .answer > div { padding-right: 0; } }

/* ---------- Venir ---------- */
.visit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: stretch; }
.visit h2 { margin-bottom: 20px; }
.open-now { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); margin: 0; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.open-now.is-open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(14, 122, 109, .15); }
.map { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); border: 1px solid var(--line); }
.map-facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 28px; text-align: center; }
.map-facade .pin { width: 36px; height: 36px; color: var(--teal-deep); }
.map-facade p { font-size: .85rem; color: var(--ink-soft); max-width: 22rem; margin: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } .map { min-height: 320px; } }

/* ---------- Appel final ---------- */
.final { text-align: left; }
.final h2 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6.5rem); line-height: .98; letter-spacing: -.03em; max-width: 14ch; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Pages internes ---------- */
.page-hero { padding-top: calc(clamp(128px, 15vw, 176px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(56px, 8vw, 104px); }
.page-hero .display { font-size: clamp(2.5rem, 1.2rem + 6vw, 6rem); }
.page-hero .lead { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.breadcrumb { font-size: .88rem; margin-bottom: 28px; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 112px); }
.two-col h2 { margin-bottom: 28px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.section--night .two-col p { max-width: 32rem; }
.section--night .btn-row { margin-top: 28px; }
.program { list-style: none; padding: 0; counter-reset: prog; border-top: 1px solid var(--line); margin-bottom: 28px; }
.program li { counter-increment: prog; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.program li::before { content: counter(prog, decimal-leading-zero); font-size: .85rem; color: var(--teal-deep); padding-top: .2em; font-variant-numeric: tabular-nums; }
.program strong { color: var(--night); font-weight: 500; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.4rem; }
.two-col .prose h3:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.persona { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.persona .tile { min-height: 200px; justify-content: flex-end; }
@media (max-width: 960px) { .persona { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .persona { grid-template-columns: minmax(0, 1fr); } .persona .tile { min-height: 0; } }
.notfound { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 80px; }
.notfound .lead { margin: 24px 0 32px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--night-2); color: rgba(251, 246, 238, .72); padding-top: clamp(72px, 9vw, 120px); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer a { color: rgba(251, 246, 238, .9); display: inline-block; padding-block: 11px; margin-block: -11px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(251, 246, 238, .12); }
.footer-title { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em; color: var(--cream); margin: 0; }
.footer-title em { color: var(--gold); }
.footer-top p:last-child { margin: 0; max-width: 26rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
.footer h2 { font-family: var(--f-body); font-size: .85rem; font-weight: 500; color: var(--gold); margin-bottom: 16px; letter-spacing: .01em; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(251, 246, 238, .12); font-size: .85rem; color: rgba(251, 246, 238, .6); }
@media (max-width: 860px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.footer { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* ---------- Bouton WhatsApp flottant ---------- */
.fab { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 16px 30px -14px rgba(8, 51, 56, .7); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.fab svg { width: 24px; height: 24px; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-visible.is-dodging, html.menu-open .fab { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
@media (max-width: 600px) { .fab { padding: 0; justify-content: center; } .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Transitions entre les pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .45s var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
html.page-leaving main { opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement.is-scrub .w { opacity: 1; }
  .journey.pin-ready .step > * { opacity: 1; }
}

/* ---------- Impression ---------- */
@media print { .header, .fab, .wizard, .quiz, .map { display: none; } body { background: #fff; } }

/* ===== Accueil sur téléphone (17/09) : un seul logo (celui de l'en-tête), moins de texte, 4 blocs animés ===== */
@media (max-width: 900px) {
  .hero-media, .hero .eyebrow, .hero-lead { display: none; }
  .hero { padding-top: calc(88px + env(safe-area-inset-top, 0px)); padding-bottom: 40px; }
  .hero .display { font-size: clamp(2.5rem, 1.2rem + 7vw, 3.6rem); }
  .hero-cta { margin-top: 24px; }
  .facts-row { margin-top: 28px; border-top: 0; gap: 10px; }
  .facts-row div, .facts-row div + div, .facts-row div:nth-child(even) {
    position: relative; overflow: hidden; padding: 16px 14px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--paper); box-shadow: 0 6px 18px rgba(10, 63, 69, .06);
  }
  .facts-row dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
  .facts-row dd { font-size: 1.12rem; }
  /* barre dorée qui passe d'un bloc à l'autre, en boucle */
  .facts-row div::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--gold, #D6B241); transform: scaleX(0); transform-origin: left; }
  .js .hero .facts-row { animation: none; }
  .js .facts-row div { animation: tileIn .7s var(--ease-out) both, tileGlow 6s ease-in-out infinite; animation-delay: calc(.55s + var(--k) * .12s), calc(1.6s + var(--k) * 1.5s); }
  .js .facts-row div::after { animation: tileBar 6s ease-in-out infinite; animation-delay: calc(1.6s + var(--k) * 1.5s); }
  .facts-row div:nth-child(1) { --k: 0; } .facts-row div:nth-child(2) { --k: 1; }
  .facts-row div:nth-child(3) { --k: 2; } .facts-row div:nth-child(4) { --k: 3; }
}
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes tileGlow { 0%, 30%, 100% { transform: none; border-color: var(--line); } 8%, 20% { transform: translateY(-3px); border-color: rgba(214, 178, 65, .8); box-shadow: 0 12px 26px rgba(10, 63, 69, .12); } }
@keyframes tileBar { 0%, 30%, 100% { transform: scaleX(0); } 20% { transform: scaleX(1); } 28% { transform: scaleX(1); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .js .facts-row div, .js .facts-row div::after { animation: none !important; } }

/* ===== Version « cahier d'école » (html.ecole) : accueil téléphone ===== */
.nb { display: none; }
@media (max-width: 900px) {
  .ecole .hero-grid, .ecole .hero .facts-row { display: none; }
  .ecole .hero { position: relative; min-height: 100svh; padding: calc(92px + env(safe-area-inset-top, 0px)) 0 32px; justify-content: center;
    background:
      linear-gradient(90deg, transparent 30px, rgba(214, 60, 70, .6) 30px 32px, transparent 32px),
      repeating-linear-gradient(0deg, rgba(80, 110, 200, .30) 0 1px, transparent 1px 32px),
      repeating-linear-gradient(0deg, rgba(150, 130, 210, .16) 0 1px, transparent 1px 8px),
      repeating-linear-gradient(90deg, rgba(150, 130, 210, .20) 0 1px, transparent 1px 32px),
      #FDFBF4; }
  .nb { --hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive; --pencil: #4a4f57; --pen: #C2272D;
    position: relative; padding: 0 20px 0 48px; }
  .ecole .nb { display: block; }
  .nb svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t, .8s) ease-out var(--d, 0s) forwards; }
  .nb-doodle { position: absolute; top: -8px; right: 14px; width: 74px; transform: rotate(8deg); }
  .nb-finger path { stroke: var(--pencil); stroke-width: 2.2; --t: 1.2s; --d: .2s; }
  .nb-finger path:nth-child(2) { --d: 1s; stroke: var(--pen); }
  .nb-finger path:nth-child(3) { --d: 1.6s; stroke-width: 1.6; }
  .nb-finger .nb-spark { stroke: #D6A21E; --d: 1.9s; --t: .5s; }
  .nb-kicker { margin: 0; font-family: var(--hand); font-size: 1.5rem; font-weight: 500; color: var(--pen); transform: rotate(-2deg); transform-origin: left; animation: pop .5s var(--ease-out) .1s both; }
  .nb-title { margin: 2px 0 0; max-width: 8.5ch; font-family: var(--hand); font-weight: 700; font-size: clamp(3.4rem, 1.4rem + 11vw, 4.8rem); line-height: .9; color: var(--night); animation: pop .6s var(--ease-out) .25s both; }
  .nb-hl { position: relative; white-space: nowrap; background: linear-gradient(100deg, rgba(255, 226, 64, 0) 0, rgba(255, 226, 64, .85) 3%, rgba(255, 214, 40, .75) 97%, rgba(255, 226, 64, 0) 100%) no-repeat 0 78% / 0% 46%; animation: marker .7s ease-out 1s forwards; padding: 0 4px; margin-left: -4px; }
  .nb-postit { position: relative; width: min(100%, 250px); margin: 26px 0 0 4px; padding: 16px 18px 14px; background: linear-gradient(170deg, #FFF3A6, #FFE56E); box-shadow: 0 14px 22px -14px rgba(60, 50, 10, .55), 0 1px 0 rgba(0,0,0,.04); transform: rotate(-3deg); animation: stick .6s var(--ease-out) .6s both; }
  .nb-postit::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(210, 225, 230, .7); transform: rotate(4deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .nb-postit-t { margin: 0 0 6px; font-family: var(--hand); font-size: 1.45rem; font-weight: 700; color: var(--night); line-height: 1; }
  .nb-postit ul { list-style: none; margin: 0; padding: 0; }
  .nb-postit li { display: flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 1.4rem; line-height: 1.25; color: #2b2f35; }
  .nb-postit li svg { flex: none; width: 20px; height: 20px; border: 1.5px solid #3a3f46; border-radius: 3px; overflow: visible; }
  .nb-postit li path { stroke: var(--pen); stroke-width: 3.2; --t: .35s; }
  .nb-postit li:nth-child(1) path { --d: 1.3s; } .nb-postit li:nth-child(2) path { --d: 1.6s; }
  .nb-postit li:nth-child(3) path { --d: 1.9s; } .nb-postit li:nth-child(4) path { --d: 2.2s; }
  .nb-note { position: relative; margin: 18px 0 0 auto; width: max-content; padding-right: 30px; font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--pen); transform: rotate(-4deg); animation: pop .5s var(--ease-out) 2.5s both; }
  .nb-note svg { position: absolute; right: -4px; top: 18px; width: 40px; height: 34px; }
  .nb-note path { stroke: var(--pen); stroke-width: 2.4; --d: 2.7s; --t: .5s; }
  .nb-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 6px 0 0; min-height: 60px; border-radius: 16px; background: var(--night); color: #fff; font-weight: 500; font-size: 1.08rem; text-decoration: none; box-shadow: 3px 4px 0 #1b2226; animation: pop .5s var(--ease-out) 2.2s both; transition: transform .15s, box-shadow .15s; }
  .nb-cta:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #1b2226; }
  .nb-wa { width: 22px; height: 22px; fill: #7BE0A5; }
  .nb-circle { position: absolute; max-width: none; top: -14px; left: -14px; width: calc(100% + 30px); height: calc(100% + 30px); overflow: visible; pointer-events: none; }
  .nb-circle path { stroke: var(--pen); stroke-width: 2.6; vector-effect: non-scaling-stroke; --d: 2.9s; --t: 1s; }
  .nb-call { position: relative; display: inline-flex; align-items: center; min-height: 44px; margin: 18px 0 0; font-family: var(--hand); font-size: 1.5rem; color: var(--night); text-decoration: none; animation: pop .5s var(--ease-out) 3.2s both; }
  .nb-call svg { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 10px; }
  .nb-call path { stroke: var(--pencil); stroke-width: 2; vector-effect: non-scaling-stroke; --d: 3.4s; --t: .6s; }
  .nb a:focus-visible { outline: 2px dashed var(--pen); outline-offset: 4px; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marker { to { background-size: 100% 46%; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) rotate(-2deg); } }
@keyframes stick { from { opacity: 0; transform: rotate(-9deg) scale(1.08) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .nb *, .nb { animation: none !important; }
  .nb svg path { stroke-dashoffset: 0; }
  .nb-hl { background-size: 100% 46%; }
}

/* ===== Version « cahier d'école » : tout le site ===== */
.ecole { --hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive; --pen: #C2272D; }
.ecole body, .ecole .section--soft {
  background:
    repeating-linear-gradient(0deg, rgba(80, 110, 200, .22) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(150, 130, 210, .12) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(150, 130, 210, .14) 0 1px, transparent 1px 32px),
    #FDFBF4; }
/* les sections sombres deviennent un tableau noir */
.ecole .section--night, .ecole .tile--accent, .ecole .calc-out {
  background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.06), transparent 60%), #1f3b36; }
.ecole .section--night { border-block: 10px solid #8a5a34; }
.ecole h2, .ecole h3, .ecole .statement { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.ecole h2 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.8rem); line-height: .98; }
.ecole .section--night h2, .ecole .section--night h3 { color: #F4F1E6; }
.ecole h2 em, .ecole .display em { font-style: normal; color: inherit; background: linear-gradient(100deg, transparent 0, rgba(255, 222, 60, .8) 3%, rgba(255, 214, 40, .7) 97%, transparent 100%) no-repeat 0 80% / 100% 42%; }
.ecole .section--night h2 em { background: none; text-decoration: underline wavy rgba(244, 241, 230, .6) 2px; text-underline-offset: 8px; }
.ecole .eyebrow { font-family: var(--hand); font-size: 1.45rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pen); }
.ecole .eyebrow::before { content: "✎"; width: auto; height: auto; margin: 0; background: none; font-size: 1.1rem; line-height: 1.6; }
.ecole .section--night .eyebrow { color: #F2D46A; }
.ecole .display { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
/* boutons entourés à la main */
.ecole .btn { border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; box-shadow: 3px 4px 0 #1b2226; }
.ecole .btn--primary { outline: 2px solid var(--pen); outline-offset: 5px; }
.ecole .btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #1b2226; }
/* cartes en fiches de cours */
.ecole .tile, .ecole .price-card, .ecole .quiz, .ecole .calc { border: 1.5px solid #3a3f46; border-radius: 6px 14px 8px 16px / 14px 6px 16px 8px; box-shadow: 4px 5px 0 rgba(31, 42, 44, .12); }
.ecole .tile:nth-child(odd) { transform: rotate(-.6deg); }
.ecole .tile:nth-child(even) { transform: rotate(.5deg); }
.ecole .signature { font-family: var(--hand); }

/* ===== Catalogue des formations (/formations) ===== */
.cat-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.cat-jump a { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; text-decoration: none; color: inherit; transition: background .2s, color .2s; }
.cat-jump a:hover { background: var(--night); border-color: var(--night); color: var(--cream); }
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.course h3 { margin: 0; }
.course > p { color: var(--ink-soft); margin: 0; }
.course-facts { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.course-facts li { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: rgba(6, 102, 111, .08); color: var(--teal-deep); }
.course-facts li b { font-weight: 600; }
.course-note { margin: 0 0 10px; font-size: .82rem; color: var(--ink-soft, #6b6b6b); }
.course .btn { margin-top: auto; align-self: flex-start; }
.course--star { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.course-tag { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep) !important; }

/* ===== Accueil généraliste (17/09) : hero court, familles, formation phare, réassurance, blocs repliables ===== */
.h-sm { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
.hh { min-height: auto; padding-bottom: clamp(32px, 5vw, 64px); }
.hh-lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 34rem; margin: 18px 0 0; }
.hh-pills { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hh-pills li { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: rgba(6, 102, 111, .08); color: var(--teal-deep); }
.hh-call { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }
.hh-call a { font-weight: 500; white-space: nowrap; }
.js .hh-lead, .js .hh-pills, .js .hh-call { animation: fadeUp .9s var(--ease-out) .5s both; }
@media (max-width: 900px) {
  .hh { padding-top: calc(84px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; }
  .hh .hh-where { display: flex; margin-bottom: 10px; font-size: .8rem; }
  .hh .display { font-size: clamp(2.3rem, 1.2rem + 5.6vw, 3.4rem); }
  .hh .hero-cta { margin-top: 18px; gap: 10px; }
  .hh .hero-cta .btn { flex: 1 1 100%; }
}

.fam { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fam a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: 100%; min-height: 96px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--night); text-decoration: none; transition: border-color .2s, transform .2s; }
.fam b { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.1; font-weight: 600; padding-right: 14px; }
.fam small { font-size: .8rem; color: var(--ink-soft); }
.fam a::after { content: "→"; position: absolute; right: 14px; bottom: 12px; color: var(--teal-deep); }
@media (hover: hover) and (pointer: fine) { .fam a:hover { border-color: var(--night); transform: translateY(-2px); } }
@media (max-width: 960px) { .fam { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fam { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .fam a { min-height: 76px; padding: 12px 14px; } .fam b { font-size: 1.12rem; } }

.course-tag { margin: 0; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); }
.phare { max-width: 760px; }
.phare h2 { margin: 0; }
.phare-price { margin: 0; color: var(--ink-soft); }
.phare-price b { font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--night); }
.phare .btn-row .btn { margin-top: 0; }

.assure { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.assure li { display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 0 0; }
.assure b { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--night); }
.assure span { font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 900px) {
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .assure li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .assure li:last-child { grid-column: 1 / -1; }
}

.section--tight.fold-section { padding-block: clamp(24px, 4vw, 48px); }
.fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 18px 0; border-block: 1px solid var(--line-strong); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .eyebrow, .fold > summary h2 { grid-column: 1; margin: 0; }
.fold > summary i { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-style: normal; }
.fold > summary i::before { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.fold[open] > summary { margin-bottom: 20px; }
.fold[open] > summary i::before { transform: rotate(45deg); }

/* 17/09 : chiffres alignés (les chiffres elzéviriens de la police titre descendent et chevauchent la ligne suivante) */
.price, .journey-count, .big-result .v, .field output, .display, .statement { font-variant-numeric: lining-nums tabular-nums; }
.journey-count { line-height: 1; }
.big-result .v { line-height: 1; }

/* ---------- 17/09 : finalisation (CPF, bandeau cookies, pages d'arrivée Ads) ---------- */
.cpf-note { margin-top: 16px; font-size: .92rem; }
.price-card .cpf-note { margin: 0 0 20px; }

.consent { position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)); max-width: 560px; margin-inline: auto; padding: 20px 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .95rem; line-height: 1.5; }
.consent p { margin: 0 0 14px; color: var(--ink-soft); }
.consent strong { color: var(--night); }
.consent .btn-row { gap: 10px; }
.consent .btn { flex: 1 1 140px; }
html.has-consent .fab, html.has-consent .lp-bar { visibility: hidden; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; font: inherit; }

.lp-top { position: absolute; inset: 0 0 auto; z-index: 30; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.lp-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.35rem; color: var(--night); }
.lp-brand img { width: 40px; height: 40px; }
.lp-hero .display { font-size: clamp(2.4rem, 1.2rem + 5.2vw, 5.2rem); max-width: 14em; }
.lp-hero .course-facts { margin-top: 28px; }
.lp-hero .btn-row { margin-top: 28px; }
.lp-hero .muted { margin-top: 14px; }
.lp-price { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--night); font-variant-numeric: lining-nums; line-height: 1.1; margin-top: 24px; }
.lp .checks { margin-top: 0; }
.lp .two-col h2 { margin-bottom: 20px; }
.lp-note { margin-top: 20px; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--cream-2); color: var(--ink-soft); font-size: .95rem; }
.lp-final { text-align: center; }
.lp-final h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 16px; }
.lp-final p { max-width: 34rem; margin-inline: auto; }
.lp-final .btn-row { justify-content: center; margin-top: 28px; }
.lp-foot { padding: 28px 0 calc(110px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--ink-soft); }
.lp-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.lp-foot a { color: inherit; }
.lp-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(251, 246, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease-out); }
.lp-bar.is-visible { transform: none; }
.lp-bar .btn { width: 100%; max-width: 520px; margin-inline: auto; display: flex; }
@media (max-width: 480px) { .lp-top .btn .lp-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .lp-top .btn { padding: 0 14px; } }
@media print { .consent, .lp-bar { display: none; } }
.nowrap { white-space: nowrap; }
