/* Imani Academy — « Le cahier d'atelier » · feuille unique organisée en @layer */
@layer reset, tokens, base, layout, components, utilities, pages, helpers;

/* Polices de repli calées sur les métriques de Zilla Slab et Lexend (mesurées) :
   le texte occupe la même place avant et après le chargement des polices, donc pas de décalage de mise en page. */
@font-face { font-family: 'Zilla Repli Rockwell'; src: local('Rockwell Bold'), local('Rockwell-Bold'); font-weight: 700; size-adjust: 86%; ascent-override: 109%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Zilla Repli Georgia'; src: local('Georgia Bold'), local('Georgia-Bold'); font-weight: 700; size-adjust: 85%; ascent-override: 110%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: 'Lexend Repli Segoe'; src: local('Segoe UI'), local('SegoeUI'); size-adjust: 109.5%; ascent-override: 91.5%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: 'Lexend Repli Roboto'; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 119.5%; ascent-override: 84%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: 'Lexend Repli Arial'; src: local('Arial'), local('ArialMT'); size-adjust: 108.5%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }

@layer tokens {
  :root {
    --c-blanc: #fff; --c-craie: #f5f7fc; --c-encre: #121a33; --c-encre-2: #3d4663; --c-gris: #5b6480;
    --c-trait: #dce1ee; --c-champ: #7a839e; --c-roi: #2343c3; --c-roi-profond: #1b3399; --c-roi-nuit: #14256e;
    --c-ciel: #e9eeff; --c-corail: #ff5e5b; --c-corail-texte: #b3312d; --c-rose: #ffe8e5; --c-soleil: #ffc845;
    --c-creme: #fff5d9; --c-vert: #16a34a; --c-vert-texte: #157a3c;
    --font-text: 'Lexend', 'Lexend Repli Segoe', 'Lexend Repli Roboto', 'Lexend Repli Arial', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-slab: 'Zilla Slab', 'Zilla Repli Rockwell', 'Zilla Repli Georgia', 'Roboto Slab', Rockwell, Georgia, serif;
    --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem); --fs-sm: .875rem; --fs-xs: .8125rem;
    --fs-h4: clamp(1.125rem, 1.08rem + .2vw, 1.25rem); --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
    --fs-h2: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem); --fs-h1: clamp(2.25rem, 1.35rem + 4.2vw, 4.25rem);
    --fs-big: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
    --space-7: 3rem; --space-8: 4rem; --space-section: clamp(3.5rem, 8vw, 7rem);
    --gutter: clamp(1rem, 4vw, 2.5rem); --wrap: 76rem;
    --radius-card: 1.25rem; --radius-field: .75rem; --radius-tag: .375rem; --radius-pill: 999px;
    --shadow-1: 0 1px 2px oklch(.225 .05 268.8 / .08), 0 8px 24px oklch(.451 .2 266.6 / .08);
    --shadow-2: 0 2px 4px oklch(.225 .05 268.8 / .1), 0 18px 40px oklch(.451 .2 266.6 / .16);
    --ease-out: cubic-bezier(.2, .8, .2, 1); --dur-1: 100ms; --dur-2: 150ms; --dur-3: 250ms; --dur-4: 450ms;
    --header-h: 4.25rem;
    --seyes: repeating-linear-gradient(to bottom, transparent 0 7px, oklch(.95 .023 272.8 / .8) 7px 8px);
    --seyes-strong: repeating-linear-gradient(to bottom, transparent 0 31px, oklch(.9 .04 270 / .7) 31px 32px);
    --ndop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3 21 14 12 25 3 14Z'/%3E%3Cpath d='M12 9 16 14 12 19 8 14Z' fill='%23fff'/%3E%3Cpath d='M30 20 36 8 42 20 48 8 54 20'/%3E%3Cpath d='M30 25 54 25' stroke-dasharray='1 4'/%3E%3Ccircle cx='66' cy='14' r='7'/%3E%3Ccircle cx='66' cy='14' r='2.2' fill='%23fff'/%3E%3Cpath d='M78 14h14M85 7v14' stroke-dasharray='1 3.5'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: light;
  }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.25rem); }
  body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
  dialog { color: inherit; }
}

@layer base {
  body { font-family: var(--font-text); font-size: var(--fs-body); color: var(--c-encre); background: var(--c-blanc); font-variant-numeric: tabular-nums; }
  h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; }
  h1, h2, .h-slab { font-family: var(--font-slab); font-weight: 700; letter-spacing: -.01em; }
  h1 { font-size: var(--fs-h1); line-height: 1.02; }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.2; }
  h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
  p, li, dd { text-wrap: pretty; }
  p { max-width: 41.3em; } /* ≈ 68 caractères ; en em pour que la police de repli garde les mêmes retours à la ligne */
  strong, b { font-weight: 600; }
  a { color: var(--c-roi); text-decoration-line: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; transition: color var(--dur-2); }
  a:hover { color: var(--c-roi-profond); }
  a:visited:not([class]) { color: var(--c-roi-profond); }
  :focus-visible { outline: 3px solid var(--c-roi); outline-offset: 3px; border-radius: 4px; }
  .on-dark :focus-visible, .nuit :focus-visible, .utility :focus-visible, .site-footer :focus-visible { outline-color: var(--c-soleil); }
  ::selection { background: var(--c-soleil); color: var(--c-encre); }
  small { font-size: var(--fs-sm); }
  hr { border: 0; border-top: 1px solid var(--c-trait); margin-block: var(--space-6); }
  table { width: 100%; font-size: var(--fs-sm); }
  th { text-align: left; font-weight: 600; }
  .skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 200; background: var(--c-encre); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-field); transition: top var(--dur-2); }
  .skip-link:focus { top: .75rem; color: #fff; }
  .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  mark.hl, .hl { background: none; color: inherit; background-image: linear-gradient(176deg, transparent 8%, var(--c-soleil) 8% 92%, transparent 92%); background-repeat: no-repeat; background-size: 100% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .12em; margin: 0 -.12em; }
  .icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .wrap--narrow { width: min(100% - 2 * var(--gutter), 52rem); }
  .section { padding-block: var(--space-section); position: relative; }
  /* Rendu différé des sections hors écran : la première mise en page d’une longue page coûte 4 fois moins sur mobile. */
  main > .section { content-visibility: auto; contain-intrinsic-size: auto 760px; }
  @media print { main > .section { content-visibility: visible; } }
  .section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
  .section--craie { background: var(--c-craie); }
  .section--ciel { background: var(--c-ciel); }
  .nuit { background: var(--c-roi-nuit); color: #fff; }
  .nuit a:not(.btn) { color: #fff; }
  .section-head { display: grid; gap: var(--space-3); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
  .section-head p { color: var(--c-encre-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
  .nuit .section-head p { color: #d9e0ff; }
  @media (min-width: 64em) {
    .section-head { grid-template-columns: 6fr 5fr; align-items: end; column-gap: var(--space-8); }
    .section-head--solo { grid-template-columns: 1fr; max-width: 48rem; }
  }
  .eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-roi); display: inline-flex; align-items: center; gap: .5rem; }
  .nuit .eyebrow { color: var(--c-soleil); }
  .eyebrow::before { content: ""; width: 1.5rem; height: 3px; background: var(--c-corail); border-radius: 2px; }
  .grid { display: grid; gap: var(--space-5); }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .stack > * + * { margin-top: var(--stack, var(--space-4)); }
  .cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--space-3)); align-items: center; }
  .split { display: grid; gap: var(--space-6); }
  @media (min-width: 64em) { .split { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-6); } .split > :first-child { grid-column: 1 / span 7; } .split > :last-child { grid-column: 8 / span 5; } .split--even > :first-child { grid-column: 1 / span 6; } .split--even > :last-child { grid-column: 7 / span 6; } }
  main { display: block; }
  .page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem); background: var(--c-craie); border-bottom: 1px solid var(--c-trait); }
  .page-head h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); max-width: 12.7em; }
  .page-head .lead { margin-top: var(--space-4); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--c-encre-2); max-width: 36.4em; }
  .page-head--seyes { background: var(--seyes), var(--c-blanc); position: relative; }
  .page-head--seyes::after { content: ""; position: absolute; inset: 0 auto 0 clamp(1rem, 4vw, 2.5rem); width: 2px; background: color-mix(in oklab, var(--c-corail) 45%, transparent); pointer-events: none; }
  .page-head--photo { display: grid; gap: var(--space-5); }
  @media (min-width: 64em) { .page-head--photo { grid-template-columns: 7fr 5fr; align-items: center; } }
}

@layer utilities {
  .center { text-align: center; }
  .muted { color: var(--c-gris); }
  .text-sm { font-size: var(--fs-sm); }
  .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
  .nowrap { white-space: nowrap; }
  .num { font-variant-numeric: tabular-nums; font-family: var(--font-slab); font-weight: 700; }
  .only-js { display: none; } .js .only-js { display: revert-layer; }
  .js .no-js-only { display: none !important; }
  .scroll-x { overflow-x: auto; overscroll-behavior-x: contain; }
}

@layer components {
  /* ---------- barre utilitaire + en-tête ---------- */
  .utility { display: none; background: var(--c-roi-nuit); color: #fff; font-size: var(--fs-sm); }
  .utility__in { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); min-height: 2.5rem; }
  .utility a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
  .utility a:hover { color: var(--c-soleil); text-decoration: underline; }
  .utility p { max-width: none; }
  .utility .hot { color: var(--c-soleil); font-weight: 600; }
  .utility__links { display: flex; gap: var(--space-5); align-items: center; }
  @media (min-width: 48em) { .utility { display: block; } }
  .site-header { position: sticky; top: 0; z-index: 60; background: var(--c-blanc); border-bottom: 1px solid var(--c-trait); }
  .header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-encre); flex: none; }
  .brand:hover { color: var(--c-encre); }
  .brand svg { width: 2.5rem; height: 2.5rem; border-radius: .6rem; }
  .brand__txt { display: flex; flex-direction: column; line-height: 1; }
  .brand__txt b { font-family: var(--font-slab); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; }
  .brand__txt span { font-weight: 600; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-roi); margin-top: .2rem; }
  .nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
  .nav a { text-decoration: none; color: var(--c-encre); font-weight: 500; display: flex; align-items: center; min-height: 3rem; }
  .nav a { position: relative; isolation: isolate; }
  .nav li > a[aria-current="page"] { font-weight: 600; }
  .nav li > a[aria-current="page"]::after { content: ""; position: absolute; left: -.15rem; right: -.15rem; bottom: 1.3rem; height: .5rem; background: var(--c-soleil); z-index: -1; transform: rotate(-.8deg); }
  .nav a:hover { color: var(--c-roi); }
  .nav__extra { display: grid; gap: .25rem; padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--c-trait); }
  .header__actions { display: flex; align-items: center; gap: var(--space-3); }
  .header__actions .btn { display: none; }
  .menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--c-champ); background: var(--c-blanc); font-weight: 600; }
  .menu-toggle .bars { width: 1.1rem; height: 2px; background: currentColor; position: relative; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: box-shadow var(--dur-2), transform var(--dur-2); }
  .menu-toggle[aria-expanded="true"] .bars { box-shadow: none; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(-90deg); }
  .js .menu-toggle { display: inline-flex; }
  @media (max-width: 63.99em) {
    .nav { padding: var(--space-3) var(--gutter) var(--space-5); border-top: 1px solid var(--c-trait); }
    .header__in { flex-wrap: wrap; }
    .nav { order: 5; flex-basis: 100%; }
    .js .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-blanc); overflow-y: auto; z-index: 70; border: 0; flex-basis: auto; }
    .js .nav.is-open { display: block; }
    .nav li a { font-size: 1.25rem; font-family: var(--font-slab); font-weight: 700; border-bottom: 1px solid var(--c-trait); min-height: 3.5rem; }
    .nav li > a[aria-current="page"] { color: var(--c-roi); }
    .nav li > a[aria-current="page"]::after { display: none; }
  }
  @media (min-width: 64em) {
    .nav { display: block; position: static; }
    .nav ul { flex-direction: row; gap: clamp(.75rem, 1.6vw, 1.75rem); }
    .nav a { font-size: .95rem; min-height: var(--header-h); position: relative; padding-inline: .1rem; }
    .nav__extra { display: none; }
    .header__actions .btn { display: inline-flex; }
    .js .menu-toggle, .menu-toggle { display: none; }
  }

  /* barre d'actions mobile */
  .mbar { position: fixed; inset: auto 0 0 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .5rem; padding: .5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 1px solid var(--c-trait); }
  .mbar .btn { min-height: 3rem; padding-inline: .5rem; font-size: .9rem; }
  @media (min-width: 48em) { .mbar { display: none; } }
  @media (max-width: 47.99em) { body { padding-bottom: 4.5rem; } body.no-mbar { padding-bottom: 0; } body.no-mbar .mbar { display: none; } }
  .kb-open .mbar { display: none; }

  /* ---------- boutons ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; background: var(--c-roi); color: #fff; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2), transform var(--dur-1), box-shadow var(--dur-2); }
  .btn:hover { background: var(--c-roi-profond); color: #fff; }
  .btn:active { transform: scale(.97); }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
  .btn--primary { background: var(--c-corail); color: var(--c-encre); }
  .btn--primary:hover { background: color-mix(in oklab, var(--c-corail) 86%, var(--c-encre)); color: var(--c-encre); box-shadow: 0 6px 18px oklch(.693 .197 24.8 / .35); }
  .btn--ghost { background: transparent; color: var(--c-encre); border-color: var(--c-champ); }
  .btn--ghost:hover { background: var(--c-ciel); color: var(--c-encre); border-color: var(--c-roi); }
  .btn--light { background: #fff; color: var(--c-encre); }
  .btn--light:hover { background: var(--c-soleil); color: var(--c-encre); }
  .btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
  .btn--ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }
  .btn--sm { min-height: 2.75rem; padding: .5rem 1.15rem; font-size: .92rem; }
  .btn--block { width: 100%; }
  .btn .icon { width: 1.15em; height: 1.15em; }
  .btn .arr { transition: transform var(--dur-2); }
  .btn:hover .arr { transform: translateX(3px); }
  .btn[aria-pressed="true"] { background: var(--c-ciel); color: var(--c-roi-profond); border-color: var(--c-roi); }
  .btn[aria-pressed="true"]:hover { background: var(--c-ciel); }
  .link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
  .link-arrow .arr { transition: transform var(--dur-2); }
  .link-arrow:hover .arr { transform: translateX(3px); }

  .link-btn { background: none; border: 0; padding: .5rem 0; color: var(--c-roi); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; min-height: 2.75rem; }
  .link-btn:hover { color: var(--c-roi-profond); }

  /* ---------- étiquettes et badges ---------- */
  .dtag { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem .22rem .5rem; border-radius: var(--radius-tag); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; line-height: 1.3; background: var(--c-roi); color: #fff; }
  .dtag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-blanc); box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / .25); flex: none; }
  .dtag--encre { background: var(--c-encre); }
  .dtag--soleil { background: var(--c-soleil); color: var(--c-encre); }
  .dtag--corail { background: var(--c-corail); color: var(--c-encre); }
  .dtag .icon { width: .95rem; height: .95rem; stroke-width: 2; }
  .badges { display: flex; flex-wrap: wrap; gap: .35rem; }
  .badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--c-ciel); color: var(--c-roi-profond); font-size: .75rem; font-weight: 600; line-height: 1.5; }
  .badge--soleil { background: var(--c-creme); color: #6b4e00; box-shadow: inset 0 0 0 1px #f0d68a; }
  .badge--rose { background: var(--c-rose); color: var(--c-corail-texte); }
  .badge--vert { background: #e3f6ea; color: var(--c-vert-texte); }
  .badge--encre { background: var(--c-encre); color: #fff; }

  /* ---------- fil d'Ariane ---------- */
  .crumbs { padding-top: var(--space-4); font-size: var(--fs-sm); }
  .crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--c-gris); }
  .crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--c-champ); }
  .crumbs a { color: var(--c-encre-2); }
  .crumbs [aria-current] { color: var(--c-encre); font-weight: 500; }

  /* ---------- formulaires ---------- */
  .field { display: grid; gap: .4rem; align-content: start; }
  .field > label, .field > .lbl, legend.lbl { font-weight: 600; font-size: .95rem; }
  .req { color: var(--c-corail-texte); }
  .hint { font-size: var(--fs-sm); color: var(--c-gris); }
  .control, .field input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), .field select, .field textarea { width: 100%; min-height: 3rem; padding: .6rem .9rem; border: 1.5px solid var(--c-champ); border-radius: var(--radius-field); background: var(--c-blanc); color: var(--c-encre); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .field textarea { min-height: 7rem; resize: vertical; }
  .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233d4663' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; }
  .control:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-roi); }
  .control:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-roi); outline-offset: 2px; border-color: var(--c-roi); }
  [aria-invalid="true"] { border-color: var(--c-corail-texte) !important; background-color: #fffafa; }
  .err { display: none; color: var(--c-corail-texte); font-size: var(--fs-sm); font-weight: 500; align-items: flex-start; gap: .35rem; }
  .err.on { display: flex; }
  .err::before { content: "!"; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c-corail-texte); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; margin-top: .15rem; }
  .err-summary { border: 2px solid var(--c-corail-texte); background: var(--c-rose); border-radius: var(--radius-field); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
  .err-summary h3 { font-size: 1rem; font-family: var(--font-text); color: var(--c-corail-texte); }
  .err-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
  .err-summary a { color: var(--c-corail-texte); font-weight: 600; }
  .row { display: grid; gap: var(--space-4); }
  @media (min-width: 40em) { .row--2 { grid-template-columns: 1fr 1fr; } .row--3 { grid-template-columns: repeat(3, 1fr); } .row--phone { grid-template-columns: 11rem 1fr; } }
  fieldset { border: 0; padding: 0; min-width: 0; }
  fieldset > legend { padding: 0; }
  input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; accent-color: var(--c-roi); flex: none; margin: 0; }
  .choice { display: flex; align-items: flex-start; gap: .7rem; min-height: 2.75rem; padding-block: .35rem; cursor: pointer; line-height: 1.4; }
  .choice input { margin-top: .1rem; }
  .choices { display: grid; gap: .1rem; }
  .rcards { display: grid; gap: .75rem; }
  .rcard { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .85rem 1.1rem; border: 1.5px solid var(--c-champ); border-radius: 1rem; background: var(--c-blanc); cursor: pointer; transition: border-color var(--dur-2), background var(--dur-2), box-shadow var(--dur-2); }
  .rcard:hover { border-color: var(--c-roi); }
  .rcard input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .rcard::after { content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--c-champ); background: #fff center / 70% no-repeat; transition: all var(--dur-2); }
  .rcard:has(input:checked) { border-color: var(--c-roi); background: var(--c-ciel); box-shadow: inset 0 0 0 1px var(--c-roi); }
  .rcard:has(input:checked)::after { border-color: var(--c-roi); background-color: var(--c-roi); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
  .rcard:has(input:focus-visible) { outline: 3px solid var(--c-roi); outline-offset: 3px; }
  .rcard b { display: block; font-weight: 600; }
  .rcard small { color: var(--c-encre-2); display: block; }
  .rcard--off { opacity: .55; }
  .switch { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; cursor: pointer; font-weight: 500; }
  .switch input { appearance: none; width: 3rem; height: 1.75rem; border-radius: 1rem; background: var(--c-champ); position: relative; transition: background var(--dur-2); flex: none; }
  .switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px); border-radius: 50%; background: #fff; transition: transform var(--dur-2) var(--ease-out); }
  .switch input:checked { background: var(--c-roi); }
  .switch input:checked::after { transform: translateX(1.25rem); }
  input[type="range"] { width: 100%; height: 2.75rem; accent-color: var(--c-roi); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-ok { text-align: left; background: #e3f6ea; border: 2px solid var(--c-vert-texte); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); }
  .form-ok h3 { color: var(--c-vert-texte); }
  .notice { display: flex; gap: .75rem; padding: var(--space-4) var(--space-5); border-radius: var(--radius-field); background: var(--c-creme); border: 1px solid #f0d68a; font-size: var(--fs-sm); align-items: flex-start; }
  .notice .icon { margin-top: .1rem; color: #6b4e00; }
  .notice--ciel { background: var(--c-ciel); border-color: #c9d3fb; }
  .notice--ciel .icon { color: var(--c-roi); }
  .notice p { max-width: none; }

  /* ---------- règle graduée, jauge, bloc date ---------- */
  .ruler { position: relative; display: block; height: 1.1rem; border-bottom: 2px solid var(--c-encre-2); }
  .ruler::before { content: ""; position: absolute; left: 0; bottom: 0; height: .55rem; width: calc(var(--w, 4) / var(--max, 26) * 100%); background: var(--c-roi); border-radius: 2px 2px 0 0; }
  .ruler::after { content: ""; position: absolute; inset: auto 0 0 0; height: 100%; background: repeating-linear-gradient(90deg, var(--c-encre-2) 0 1px, transparent 1px calc(100% / var(--max, 26))) bottom / 100% 32% no-repeat, repeating-linear-gradient(90deg, var(--c-encre-2) 0 1px, transparent 1px calc(400% / var(--max, 26))) bottom / 100% 62% no-repeat; }
  .ruler-wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .75rem; font-size: var(--fs-sm); font-weight: 600; }
  .gauge { display: grid; gap: .3rem; font-size: var(--fs-sm); }
  .gauge meter { width: 100%; height: 6px; appearance: none; border: 0; background: var(--c-ciel); border-radius: 3px; display: block; }
  .gauge meter::-webkit-meter-bar { background: var(--c-ciel); border: 0; height: 6px; border-radius: 3px; }
  .gauge meter::-webkit-meter-optimum-value, .gauge meter::-webkit-meter-suboptimum-value, .gauge meter::-webkit-meter-even-less-good-value { background: var(--c-roi); border-radius: 3px; }
  .gauge meter::-moz-meter-bar { background: var(--c-roi); border-radius: 3px; }
  .gauge--low { color: var(--c-corail-texte); font-weight: 600; }
  .gauge--low meter::-webkit-meter-optimum-value, .gauge--low meter::-webkit-meter-suboptimum-value, .gauge--low meter::-webkit-meter-even-less-good-value { background: var(--c-corail-texte); }
  .gauge--low meter::-moz-meter-bar { background: var(--c-corail-texte); }
  .gauge--full { color: var(--c-gris); }
  .dblock { display: grid; place-items: center; align-content: center; min-width: 4.25rem; padding: .5rem .6rem; background: var(--c-ciel); border-left: 4px solid var(--c-corail); border-radius: .25rem .6rem .6rem .25rem; text-align: center; line-height: 1; flex: none; }
  .dblock b { font-family: var(--font-slab); font-weight: 700; font-size: 2rem; color: var(--c-encre); }
  .dblock span { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-roi-profond); margin-top: .25rem; }

  /* ---------- onglets, carrousel, FAQ ---------- */
  .tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-5); }
  .js .tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tab { min-height: 2.9rem; padding: .5rem 1.2rem; border-radius: var(--radius-pill); border: 1.5px solid var(--c-champ); background: var(--c-blanc); font-weight: 600; white-space: nowrap; transition: all var(--dur-2); }
  .tab:hover { border-color: var(--c-roi); }
  .tab[aria-selected="true"] { background: var(--c-roi); color: #fff; border-color: var(--c-roi); }
  .tabpanel + .tabpanel { margin-top: var(--space-6); }
  .js .tabpanel + .tabpanel { margin-top: 0; }
  .tabpanel > h3.tp-title { margin-bottom: var(--space-3); }
  .js .tabpanel > h3.tp-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .carousel { position: relative; }
  .carousel__track { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: .5rem var(--gutter) 1.25rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; }
  .carousel__track > * { scroll-snap-align: start; flex: 0 0 min(86%, 21rem); }
  .carousel__ctl { display: none; gap: .5rem; }
  .js .carousel__ctl { display: flex; }
  .iconbtn { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--c-champ); background: var(--c-blanc); display: inline-grid; place-items: center; transition: all var(--dur-2); color: var(--c-encre); }
  .iconbtn:hover { background: var(--c-roi); color: #fff; border-color: var(--c-roi); }
  .iconbtn[disabled] { opacity: .35; pointer-events: none; }
  .faq { display: grid; gap: .75rem; }
  details.qa { border: 1.5px solid var(--c-trait); border-radius: 1rem; background: var(--c-blanc); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  details.qa[open] { border-color: var(--c-roi); box-shadow: var(--shadow-1); }
  details.qa > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; min-height: 3.5rem; }
  details.qa > summary::-webkit-details-marker { display: none; }
  details.qa > summary::after { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232343c3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 65% no-repeat; transition: transform var(--dur-3) var(--ease-out); }
  details.qa[open] > summary::after { transform: rotate(45deg); }
  details.qa > :not(summary) { padding: 0 1.25rem 1.1rem; color: var(--c-encre-2); }
  details.qa p + p { margin-top: .6rem; }

  /* ---------- dialogues ---------- */
  dialog.dlg { border: 0; padding: 0; border-radius: var(--radius-card); width: min(100% - 2rem, 40rem); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow-2); background: var(--c-blanc); color: var(--c-encre); overflow: auto; opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), overlay var(--dur-3) allow-discrete, display var(--dur-3) allow-discrete; }
  dialog.dlg::backdrop { background: oklch(.225 .05 268.8 / .55); transition: background var(--dur-3); }
  @starting-style { dialog.dlg[open] { opacity: 0; transform: translateY(12px) scale(.98); } dialog.dlg[open]::backdrop { background: transparent; } }
  .dlg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-trait); position: sticky; top: 0; background: var(--c-blanc); z-index: 2; }
  .dlg__head h2 { font-size: var(--fs-h3); font-family: var(--font-text); font-weight: 650; }
  .dlg__body { padding: 1.5rem; display: grid; gap: var(--space-4); }
  .dlg__foot { padding: 1rem 1.5rem; border-top: 1px solid var(--c-trait); display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
  dialog.dlg--wide { width: min(100% - 2rem, 70rem); }
  @media (max-width: 47.99em) { dialog.dlg--full { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; } }

  /* ---------- bande Ndop, pied de page ---------- */
  .ndop { height: 28px; background: var(--c-roi-nuit) var(--ndop) repeat-x left center / auto 28px; opacity: 1; }
  .site-footer { background: var(--c-roi-nuit); color: #d9e0ff; font-size: var(--fs-sm); }
  .site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
  .site-footer a:hover { color: var(--c-soleil); }
  .footer__grid { display: grid; gap: var(--space-6) var(--space-5); padding-block: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  @media (min-width: 64em) { .footer__brand { grid-column: span 2; } .footer__grid { grid-template-columns: 2fr repeat(4, 1fr); } .footer__brand { grid-column: auto; } }
  .footer__brand .brand { color: #fff; }
  .footer__brand .brand__txt span { color: var(--c-soleil); }
  .footer__brand p { margin-top: var(--space-3); max-width: 17.0em; }
  .site-footer h2 { font-family: var(--font-text); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--c-soleil); margin-bottom: var(--space-3); }
  .site-footer ul { list-style: none; padding: 0; display: grid; gap: .1rem; }
  .site-footer li a { display: inline-flex; min-height: 2.25rem; align-items: center; }
  .footer__campus { display: grid; gap: var(--space-4); }
  .footer__campus p { max-width: none; }
  .status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; }
  .status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c-champ); }
  .status[data-open="1"]::before { background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .25); }
  .footer__legal { border-top: 1px solid rgb(255 255 255 / .15); padding-block: var(--space-5) var(--space-6); display: grid; gap: .5rem; }
  .footer__legal p { max-width: none; }
  .lang-link { display: inline-flex; align-items: center; gap: .4rem; }
}
@layer components {
  /* ---------- cartes formation ---------- */
  .results { list-style: none; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
  .cc { container-type: inline-size; display: grid; }
  .course-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--c-blanc); border: 1px solid var(--c-trait); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
  .course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .course-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--c-ciel); overflow: hidden; }
  .course-card__media img { width: 100%; height: 100%; object-fit: cover; }
  .course-card__media .dtag { position: absolute; left: .85rem; top: .85rem; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
  .course-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
  .course-card__title { font-size: 1.25rem; line-height: 1.2; }
  .course-card__title a { color: var(--c-encre); text-decoration: none; }
  .course-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
  .course-card__title a:hover { color: var(--c-roi); }
  .course-card__promise { color: var(--c-encre-2); font-size: .95rem; }
  .meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: var(--fs-sm); color: var(--c-encre-2); }
  .meta li { display: inline-flex; align-items: center; gap: .35rem; }
  .meta .icon { color: var(--c-roi); width: 1.1rem; height: 1.1rem; }
  .next { font-size: var(--fs-sm); display: grid; gap: .5rem; padding: .75rem; background: var(--c-craie); border-radius: .75rem; }
  .next b { font-weight: 600; }
  .price { display: grid; line-height: 1.25; }
  .price__main { font-family: var(--font-slab); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; }
  .price small { color: var(--c-encre-2); }
  .price .eq { color: var(--c-gris); }
  .course-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--c-trait); }
  .course-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
  .course-card__actions .btn { min-height: 2.75rem; padding-inline: 1rem; font-size: .9rem; }
  @container (min-width: 34rem) {
    .course-card { grid-template-rows: none; grid-template-columns: minmax(12rem, 38%) 1fr; }
    .course-card__media { aspect-ratio: auto; min-height: 100%; }
  }
  .cmp-btn[aria-pressed="true"] .tick { opacity: 1; transform: scale(1); }
  .cmp-btn .tick { opacity: 0; transform: scale(.4); width: 0; transition: all var(--dur-3) cubic-bezier(.3, 1.6, .5, 1); }
  .cmp-btn[aria-pressed="true"] .tick { width: 1.15em; }

  .mini { display: grid; grid-template-columns: 5rem 1fr; gap: .9rem; align-items: center; padding: .7rem; border-radius: 1rem; background: var(--c-blanc); border: 1px solid var(--c-trait); text-decoration: none; color: var(--c-encre); transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-3) var(--ease-out); }
  .mini:hover { border-color: var(--c-roi); box-shadow: var(--shadow-1); color: var(--c-encre); transform: translateY(-2px); }
  .mini img { width: 5rem; height: 5rem; object-fit: cover; border-radius: .75rem; }
  .mini b { display: block; font-weight: 600; line-height: 1.25; }
  .mini small { color: var(--c-encre-2); }

  /* ---------- héros ---------- */
  .hero { position: relative; background: var(--seyes), var(--c-blanc); overflow: clip; }
  .hero::before { content: ""; position: absolute; inset: 0 auto 0 clamp(.5rem, 3vw, 2rem); width: 2px; background: color-mix(in oklab, var(--c-corail) 45%, transparent); pointer-events: none; }
  .hero__grid { display: grid; gap: var(--space-6); padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); align-items: center; }
  .hero__copy { display: grid; gap: var(--space-5); justify-items: start; }
  .hero h1 { font-size: var(--fs-h1); max-width: 8.64em; }
  .hero__sub { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--c-encre-2); max-width: 36rem; }
  .tag-live { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .9rem .35rem .6rem; border-radius: var(--radius-pill); background: var(--c-blanc); border: 1.5px solid var(--c-trait); font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-1); }
  .tag-live::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c-corail); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-corail) 25%, transparent); }
  .proofs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--fs-sm); font-weight: 500; color: var(--c-encre-2); }
  .proofs li { display: inline-flex; align-items: center; gap: .4rem; }
  .proofs .icon { color: var(--c-vert-texte); width: 1.1rem; height: 1.1rem; stroke-width: 2.5; }
  .hero__visual { position: relative; padding: 0 0 1rem 0; }
  .hero__frame { position: relative; border-radius: 1.5rem; overflow: hidden; background: var(--c-roi-nuit); box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; isolation: isolate; }
  .hero__frame img { width: 100%; height: 100%; object-fit: cover; }
  .hero__frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgb(20 37 110 / .35), transparent); z-index: 1; pointer-events: none; }
  .hero__frame .ndop { position: absolute; inset: auto 0 0 0; z-index: 2; height: 24px; background-size: auto 24px; }
  .hero__visual::before { content: ""; position: absolute; inset: 1.5rem -.6rem auto 1.5rem; aspect-ratio: 4 / 3; background: var(--c-roi); border-radius: 1.5rem; z-index: -1; }
  .hero__visual { z-index: 0; }
  .next-card { position: relative; margin: -2rem 1rem 0 auto; width: min(100% - 2rem, 20.5rem); background: var(--c-blanc); border-radius: 1.25rem; box-shadow: var(--shadow-2); padding: 1rem 1.1rem; display: grid; gap: .75rem; z-index: 3; border: 1px solid var(--c-trait); }
  .next-card__top { display: flex; gap: .9rem; align-items: center; }
  .next-card .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--c-roi); }
  .next-card strong { display: block; line-height: 1.25; }
  @media (min-width: 64em) {
    .hero__grid { grid-template-columns: 6fr 6fr; column-gap: var(--space-7); }
    .hero__visual { padding-bottom: 0; margin-right: .9rem; }
    .hero__visual::before { inset: 1.5rem -.9rem -.9rem 1.5rem; aspect-ratio: auto; }
    .next-card { position: absolute; left: -2.5rem; bottom: -1.75rem; margin: 0; width: 20.5rem; }
  }
  .finder { position: relative; z-index: 4; background: var(--c-blanc); border: 1px solid var(--c-trait); border-radius: 1.5rem; box-shadow: var(--shadow-2); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: calc(var(--space-section) * -.4); }
  .finder form { display: grid; gap: var(--space-4); align-items: end; }
  .finder h2 { font-size: 1.25rem; font-family: var(--font-text); font-weight: 650; margin-bottom: var(--space-3); }
  @media (min-width: 48em) { .finder form { grid-template-columns: 1fr 1fr; } .finder .btn { grid-column: 1 / -1; } }
  @media (min-width: 64em) { .finder form { grid-template-columns: 1.1fr 1fr 1.3fr auto; } .finder .btn { grid-column: auto; } }
  .after-finder { padding-top: calc(var(--space-section) * .4 + 2rem); }

  /* ---------- bande de preuves ---------- */
  .proof { padding-block: clamp(2.5rem, 5vw, 4rem); }
  .hero + .proof { padding-top: clamp(4.5rem, 9vw, 7rem); }
  .proof__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .proof__n { display: block; font-family: var(--font-slab); font-weight: 700; font-size: var(--fs-big); line-height: 1; color: var(--c-soleil); letter-spacing: -.02em; }
  .proof__l { display: block; margin-top: .5rem; color: #e6ebff; font-size: var(--fs-sm); max-width: 12.1em; }
  .proof__note { margin-top: var(--space-5); font-size: var(--fs-sm); color: #d9e0ff; max-width: none; }
  .proof__note a { color: #fff; }
  @media (min-width: 48em) { .proof__list { grid-template-columns: repeat(4, 1fr); } }

  /* ---------- persona ---------- */
  .persona { display: grid; gap: var(--space-5); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--c-craie); border-radius: var(--radius-card); border: 1px solid var(--c-trait); }
  .persona h3 { font-family: var(--font-slab); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; }
  .persona__minis { display: grid; gap: .75rem; align-content: start; }
  @media (min-width: 64em) { .persona { grid-template-columns: 1fr 1fr; align-items: center; column-gap: var(--space-8); } }

  /* ---------- bento domaines ---------- */
  .bento { display: grid; gap: var(--space-4); }
  .tile { position: relative; display: grid; align-content: space-between; gap: var(--space-5); min-height: 15rem; padding: var(--space-5); border-radius: var(--radius-card); text-decoration: none; overflow: hidden; background: var(--tile-bg, var(--c-roi)); color: var(--tile-fg, #fff); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); isolation: isolate; }
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--tile-fg, #fff); }
  .tile--roi { --tile-bg: var(--c-roi); }
  .tile--encre { --tile-bg: var(--c-encre); }
  .tile--soleil { --tile-bg: var(--c-soleil); --tile-fg: var(--c-encre); }
  .tile--corail { --tile-bg: var(--c-corail); --tile-fg: var(--c-encre); }
  .tile h3 { font-family: var(--font-slab); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
  .tile__meta { display: flex; justify-content: space-between; align-items: end; gap: 1rem; font-weight: 500; }
  .tile__meta small { display: block; font-size: var(--fs-sm); opacity: .9; }
  .tile__go { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(255 255 255 / .18); display: grid; place-items: center; flex: none; transition: transform var(--dur-3) var(--ease-out), background var(--dur-2); }
  .tile--soleil .tile__go, .tile--corail .tile__go { background: rgb(18 26 51 / .12); }
  .tile:hover .tile__go { transform: translateX(4px); background: rgb(255 255 255 / .3); }
  .tile__art { position: absolute; right: -.5rem; top: -.5rem; width: 55%; max-width: 12rem; aspect-ratio: 1; z-index: -1; opacity: .95; }
  .tile__art svg { width: 100%; height: 100%; }
  @media (min-width: 48em) { .bento { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 64em) {
    .bento { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 16rem 16rem; }
    .tile--big { grid-row: span 2; }
    .tile--big .tile__art { width: 80%; max-width: 21rem; top: 2.5rem; right: -.5rem; }
    .tile--wide { grid-column: span 2; }
    .tile { min-height: 0; }
  }
  .code-art .ln { fill: currentColor; opacity: .85; }
  .led-art .led { fill: var(--c-soleil); }
  .sun-art .sun { fill: var(--c-corail); }
  @media (prefers-reduced-motion: no-preference) {
    .code-art .ln { transform-box: fill-box; transform-origin: left; animation: type 4.2s steps(12) infinite; }
    .code-art .ln:nth-child(2) { animation-delay: .6s; } .code-art .ln:nth-child(3) { animation-delay: 1.2s; } .code-art .ln:nth-child(4) { animation-delay: 1.8s; }
    @keyframes type { 0% { transform: scaleX(0); } 45%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
    .led-art .led { animation: blink 1.6s infinite; } .led-art .led:nth-child(2n) { animation-delay: .5s; } .led-art .led:nth-child(3n) { animation-delay: 1s; }
    @keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
    .sun-art .sun { animation: rise 4s ease-in-out infinite alternate; transform-box: fill-box; }
    @keyframes rise { from { transform: translateY(22px); } to { transform: translateY(0); } }
  }

  /* ---------- cartes session / événement ---------- */
  .scard { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--c-blanc); border: 1px solid var(--c-trait); border-radius: var(--radius-card); box-shadow: var(--shadow-1); container-type: inline-size; }
  .scard__top { display: flex; gap: .9rem; align-items: center; }
  .scard h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 650; line-height: 1.25; }
  .scard h3 a, .ecard h3 a { color: var(--c-encre); text-decoration: none; }
  .scard h3 a:hover { color: var(--c-roi); text-decoration: underline; }
  .scard .meta { flex-direction: column; gap: .3rem; }
  .scard__foot { display: grid; gap: .6rem; margin-top: .25rem; }
  .scard__price { font-family: var(--font-slab); font-weight: 700; font-size: 1.35rem; }
  .carousel__track > .scard, .carousel__track > .tcard { height: auto; }
  .tcard { display: grid; gap: var(--space-4); align-content: space-between; padding: var(--space-5); background: var(--c-blanc); border: 1px solid var(--c-trait); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
  .tcard blockquote { margin: 0; font-family: var(--font-slab); font-size: 1.2rem; line-height: 1.35; font-weight: 700; position: relative; }
  .tcard blockquote::before { content: "«"; font-size: 3rem; line-height: .6; color: var(--c-corail); display: block; height: 1.4rem; }
  .tcard .tcap { display: flex; gap: .8rem; align-items: center; font-size: var(--fs-sm); }
  .tcard .tcap b { display: block; font-weight: 600; font-size: .95rem; }
  .avatar { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--c-roi); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; flex: none; }
  .avatar--encre { background: var(--c-encre); } .avatar--soleil { background: var(--c-soleil); color: var(--c-encre); } .avatar--corail { background: var(--c-corail); color: var(--c-encre); }
  .fiction-note { font-size: var(--fs-sm); color: var(--c-gris); display: inline-flex; gap: .4rem; align-items: center; max-width: none; }
  .ecard { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5); background: var(--c-blanc); border: 1px solid var(--c-trait); border-radius: var(--radius-card); box-shadow: var(--shadow-1); align-items: start; }
  .ecard h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 650; }
  .ecard__body { display: grid; gap: .6rem; }
  .ecard__body p { font-size: var(--fs-sm); color: var(--c-encre-2); }
  .ecard__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
  .ecard__actions .btn { min-height: 2.75rem; padding: .4rem 1rem; font-size: .88rem; }

  /* ---------- pourquoi / quiz teaser / logos / cta ---------- */
  .why { display: grid; gap: var(--space-6); align-items: center; }
  .why__photo { border-radius: var(--radius-card); overflow: hidden; position: relative; aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); }
  .why__photo img { width: 100%; height: 100%; object-fit: cover; }
  .why__list { list-style: none; padding: 0; display: grid; gap: var(--space-5); counter-reset: w; }
  .why__list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
  .why__list li::before { counter-increment: w; content: counter(w); font-family: var(--font-slab); font-weight: 700; font-size: 1.5rem; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--c-soleil); display: grid; place-items: center; }
  .why__list h3 { font-family: var(--font-text); font-size: 1.15rem; margin-bottom: .2rem; }
  .why__list p { color: var(--c-encre-2); font-size: .95rem; }
  @media (min-width: 64em) { .why { grid-template-columns: 5fr 6fr; column-gap: var(--space-8); } }
  .teaser { background: var(--seyes), var(--c-blanc); border: 1px solid var(--c-trait); border-radius: 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: var(--space-5); position: relative; overflow: hidden; }
  .teaser::before { content: ""; position: absolute; inset: 0 auto 0 clamp(.75rem, 2.5vw, 1.75rem); width: 2px; background: color-mix(in oklab, var(--c-corail) 45%, transparent); }
  .teaser > * { position: relative; }
  .qchoices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  .qlink { display: grid; gap: .5rem; align-content: space-between; min-height: 6.5rem; padding: 1rem 1.1rem; border: 1.5px solid var(--c-champ); border-radius: 1rem; background: var(--c-blanc); text-decoration: none; color: var(--c-encre); font-weight: 600; line-height: 1.3; transition: all var(--dur-2); }
  .qlink:hover { border-color: var(--c-roi); background: var(--c-ciel); color: var(--c-encre); transform: translateY(-2px); }
  .qlink .icon { color: var(--c-roi); width: 1.6rem; height: 1.6rem; }
  .logos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .logos li { display: grid; place-items: center; min-height: 5rem; padding: 1rem; border: 1px solid var(--c-trait); border-radius: 1rem; background: var(--c-blanc); color: var(--c-encre-2); }
  .logos svg { width: 100%; max-width: 11rem; height: 2.4rem; }
  .logos--full li { place-items: start; gap: .5rem; padding: 1.25rem; align-content: start; }
  .logos--full .logo-meta { font-size: var(--fs-sm); display: grid; gap: .15rem; }
  .logos--full .logo-meta b { color: var(--c-encre); font-weight: 600; }
  @media (min-width: 48em) { .logos { grid-template-columns: repeat(4, 1fr); } .logos--full { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 64em) { .logos--full { grid-template-columns: repeat(5, 1fr); } }
  .cta-final { background: var(--c-ciel); border-radius: 2rem; padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: var(--space-5); position: relative; overflow: hidden; }
  .cta-final h2 { max-width: 10.4em; }
  .cta-final::after { content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem; border-radius: 50%; background: var(--c-soleil); opacity: .55; z-index: 0; }
  .cta-final > * { position: relative; z-index: 1; }
  .cta-final .cluster { gap: var(--space-3); }

  .reveal-off, .js [data-rv] { --rv: 1; }
  @media (prefers-reduced-motion: no-preference) {
    .js [data-rv]:not(.in) { opacity: 0; transform: translateY(14px); }
    .js [data-rv] { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
    .hl--draw { background-size: 0% 100%; animation: hl-draw 600ms .35s var(--ease-out) both; }
    @keyframes hl-draw { to { background-size: 100% 100%; } }
  }
  @media print { .js [data-rv] { opacity: 1 !important; transform: none !important; } }
}
@layer components {
  /* tiroir comparateur */
  .cmp-drawer { position: fixed; inset: auto 0 0 0; z-index: 56; background: var(--c-roi-nuit); color: #fff; box-shadow: 0 -8px 30px rgb(20 37 110 / .35); padding: .75rem var(--gutter); }
  .cmp-drawer__in { width: min(100%, var(--wrap)); margin-inline: auto; display: grid; gap: .6rem; }
  .cmp-drawer__items { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .cmp-drawer .cmp-item { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .25rem .15rem .8rem; background: rgb(255 255 255 / .12); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 500; }
  .cmp-drawer .cmp-item button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
  .cmp-drawer .cmp-item button:hover { background: rgb(255 255 255 / .2); }
  .cmp-drawer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: space-between; }
  .cmp-drawer__msg { font-size: var(--fs-sm); color: var(--c-soleil); font-weight: 500; max-width: none; }
  .cmp-drawer__t { font-weight: 600; font-size: var(--fs-sm); }
  .cmp-drawer .link-btn { color: #fff; }
  @media (max-width: 47.99em) { .cmp-drawer { bottom: 4.4rem; } body.no-mbar .cmp-drawer { bottom: 0; } }
  .cmp-scroll { overflow: auto; max-height: calc(100dvh - 15rem); border: 1px solid var(--c-trait); border-radius: 1rem; }
  .cmp-table { min-width: 44rem; font-size: .9rem; border-collapse: separate; border-spacing: 0; }
  .cmp-table th, .cmp-table td { padding: .75rem 1rem; vertical-align: top; border-bottom: 1px solid var(--c-trait); background: #fff; min-width: 12rem; }
  .cmp-table thead th { position: sticky; top: 0; z-index: 3; background: var(--c-craie); }
  .cmp-table tbody th { position: sticky; left: 0; z-index: 2; background: var(--c-craie); min-width: 9rem; font-weight: 600; }
  .cmp-table thead th:first-child { left: 0; z-index: 4; min-width: 9rem; }
  .cmp-table caption { text-align: left; padding: 0 0 .75rem; font-weight: 600; caption-side: top; }
  .cmp-head { display: grid; gap: .4rem; }
  .cmp-head a { font-weight: 650; }
  .cmp-table tr.same { opacity: .85; }
  .cmp-opts { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

  /* ---------- fiche formation ---------- */
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--c-trait); border: 1px solid var(--c-trait); border-radius: 1rem; overflow: hidden; width: 100%; }
  .facts > div { background: #fff; padding: .8rem 1rem; display: grid; gap: .1rem; }
  .facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--c-gris); }
  .facts dd { font-weight: 600; font-size: .95rem; }
  .tick-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
  .tick-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; }
  .tick-list li::before { content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-soleil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121a33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; margin-top: .15rem; }
  .legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--fs-sm); color: var(--c-encre-2); list-style: none; padding: 0; }
  .legend li::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; background: var(--c-roi); margin-right: .4rem; }
  .legend li:nth-child(3n+2)::before { background: var(--c-roi-nuit); }
  .legend li:nth-child(3n)::before { background: var(--c-encre); }
  .tbl-wrap { position: relative; border: 1px solid var(--c-trait); border-radius: 1rem; overflow-x: auto; background: #fff; }
  .tbl th, .tbl td { padding: .8rem 1rem; border-bottom: 1px solid var(--c-trait); vertical-align: top; }
  .tbl thead th { background: var(--c-craie); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-encre-2); white-space: nowrap; }
  .tbl tbody tr:last-child > * { border-bottom: 0; }
  .tbl .r { text-align: right; white-space: nowrap; }
  .tbl--sticky tbody th, .tbl--sticky thead th:first-child { position: sticky; left: 0; background: var(--c-craie); z-index: 1; }
  .tbl--sticky tbody th { background: #fff; box-shadow: 1px 0 0 var(--c-trait); }
  .tbl caption { text-align: left; padding: .75rem 1rem; font-weight: 600; caption-side: top; background: #fff; }
  .sess { display: grid; gap: .75rem 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--c-trait); border-radius: 1rem; align-items: center; }
  @media (min-width: 48em) { .sess { grid-template-columns: 1.6fr 10rem auto; } }
  .pay { padding: 1rem; border: 1.5px solid var(--c-trait); border-radius: 1rem; display: grid; gap: .2rem; background: #fff; }
  .pay b { font-family: var(--font-slab); font-size: 1.35rem; }
  .pay small { color: var(--c-encre-2); }
  .people { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .person { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem; border: 1px solid var(--c-trait); border-radius: 1rem; background: #fff; }
  .person .avatar { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
  .person b { display: block; font-weight: 600; }
  .person .role { font-size: var(--fs-sm); color: var(--c-roi-profond); font-weight: 500; }
  .person p { font-size: var(--fs-sm); color: var(--c-encre-2); margin-top: .35rem; }
  @media (max-width: 47.99em) { .cmp-drawer { bottom: 4.4rem; } }
}
@layer pages {
  .resume { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--c-creme); border: 1px solid #f0d68a; border-radius: 1rem; }
  .resume p { max-width: none; flex: 1 1 18rem; }
  .steps-line { list-style: none; padding: 0; display: grid; gap: var(--space-4); counter-reset: s; }
  .steps-line li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); align-items: start; counter-increment: s; }
  .steps-line li::before { content: counter(s); width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-roi); color: #fff; font-family: var(--font-slab); font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; }
  .steps-line h3 { font-family: var(--font-text); font-size: 1.1rem; margin-bottom: .2rem; }
  .steps-line p { color: var(--c-encre-2); font-size: .95rem; }
  @media (min-width: 64em) { .steps-line { grid-template-columns: repeat(5, 1fr); } .steps-line li { grid-template-columns: 1fr; position: relative; } .steps-line li:not(:last-child)::after { content: ""; position: absolute; left: 3.25rem; right: -1rem; top: 1.5rem; border-top: 2px dashed var(--c-champ); } }
  .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

  .print-only { display: none; }
}

/* Aides ponctuelles (anciens styles en ligne) : dernière couche, pour garder la priorité qu’avaient les attributs style. */
@layer helpers {
  .h-c-lilas { color:#c3cdff; }
  .h-footer-sep { padding-block:var(--space-6); border-top:1px solid rgb(255 255 255 / .15); }
  .h-pad-b4 { padding:0 0 1rem; }
  .h-fs-110 { font-size:1.1rem; }
  .h-pt-4 { padding-top:var(--space-4); }
  .h-grid-9 { grid-template-columns:repeat(auto-fit,minmax(9rem,1fr)); }
  .h-fs-105 { font-size:1.05rem; }
  .h-fs-160 { font-size:1.6rem; }
  .h-c-encre { color:var(--c-encre); }
  .h-lead-slab { font-size:1.4rem; font-weight:700; line-height:1.2; }
  .h-m-0 { margin:0; }
  .h-c-inherit { color:inherit; }
  .h-c-roi { color:var(--c-roi); }
  .h-c-encre2 { color:var(--c-encre-2); }
  .h-span-all { grid-column:1/-1; padding:0 0 .5rem; }
  .h-ar-169 { aspect-ratio:16/9; }
  .h-list-plain { list-style:none; padding:0; }
  .h-gap-4 { gap:1rem; }
  .h-mt-0 { margin-top:0; }
  .h-pt-6 { padding-top:var(--space-6); }
  .h-fs-150 { font-size:1.5rem; }
  .h-c-pale { color:#e6ebff; }
  .h-jc-between { justify-content:space-between; }
  .h-mt-5 { margin-top:var(--space-5); }
  .h-h-section { height:var(--space-section); }
  .h-center { text-align:center; }
  .h-grid-14 { grid-template-columns:repeat(auto-fit,minmax(14rem,1fr)); }
  .h-minw-46 { min-width:46rem; }
  .h-minw-44 { min-width:44rem; }
  .h-proofs-col { flex-direction:column; color:#e6ebff; font-size:1rem; }
  .h-cols-1 { grid-template-columns:1fr; }
}
