/* formation.min.css — généré par assembler.py : NE PAS ÉDITER, modifier les sources. */
/* ---- prototype/src/styles/fonts.css ---- */
/* Polices auto-hébergées. Aucune requête tierce : le pied de page promet
   qu'aucune donnée n'est envoyée, et une requête vers fonts.gstatic.com ou
   api.fontshare.com transmet l'adresse IP du visiteur (LG München I,
   20.01.2022, sur Google Fonts). Fichiers dans prototype/fonts/.
   Licences : Switzer — ITF Free Font License ; Anton et IBM Plex Mono —
   SIL Open Font License 1.1. Les trois autorisent l'auto-hébergement.
   Les sous-ensembles latin / latin-ext sont ceux servis par Google Fonts ;
   le navigateur ne charge que ceux dont la page a besoin. */

/* — Switzer (interface), fichiers Fontshare, latin — */
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../prototype/fonts/switzer-400.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../prototype/fonts/switzer-500.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../prototype/fonts/switzer-600.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../prototype/fonts/switzer-700.woff2') format('woff2'); }

/* — Anton (display) — */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../prototype/fonts/anton-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../prototype/fonts/anton-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* — IBM Plex Mono (zone lisible en machine, légendes) — */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../prototype/fonts/plexmono-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../prototype/fonts/plexmono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../prototype/fonts/plexmono-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../prototype/fonts/plexmono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- prototype/src/styles/tokens.css ---- */
/* Jetons repris de la charte Junior, sans écart.
   Les dix teintes de volée ne sont PAS ici : elles sont posées par
   src/core/volees.js, qui en est la source unique. */

:root {
  /* substrats — jamais de noir pur, jamais de blanc pur */
  --s0: #0b0b0c;
  --s1: #141416;
  --s2: #1c1c1f;
  --s3: #232327;
  --s4: #2e2e34;

  /* encres */
  --ink: #edede7;
  --ink-2: #a3a39c;
  /* #6c6c67 dans la charte : 3,73:1 sur --s1, sous le seuil AA (4,5:1) pour
     du corps de texte. Porté à #868680 : 5,02 sur --s1, 4,64 sur --s2, même
     gris tiède. Écart à la charte assumé et mesuré — à reporter dans charte.html. */
  --ink-3: #868680;
  /* Le même gris tiède, mais pour l'écran clair du commerçant (fond --ink).
     #6c6c67 y donnait 4,49:1, sous le seuil de 0,01 ; #63635e donne 5,14. */
  --ink-3-clair: #63635e;
  --rule: #26262b;

  /* Une seule couleur d'accent dans l'interface, et elle est empruntée à la
     volée affichée. Aucun accent propre au produit : la couleur appartient au
     membre. Posée par le JS, valeur de départ ici pour éviter un flash. */
  --acc: #a87cff;

  /* Direction « Volée » (30.09.2026) : l'interface s'arrondit. Exception aux
     2 px du studio, validée par Max pour Junior seulement. La licence garde
     ses 6 px : c'est un document, pas un composant. */
  --r: 12px;     /* tout l'interface */
  --r-doc: 6px;  /* la licence seule — comme une vraie carte */

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-ecran: 160ms; /* transition d'écran : un fondu, rien d'autre */

  --ui: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --mrz: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Anton', var(--ui);

  --gut: clamp(20px, 4.4vw, 72px);
  --tel: 390px; /* largeur de référence de l'écran membre */
}

/* ---- ambassadeur/formation.css ---- */
/* Formation ambassadeur — PARCOURS GUIDÉ (un écran à la fois). DA rose, tokens depuis tokens.css. */
.fo { --acc: #f25cb0; margin: 0; background: var(--s0); color: var(--ink); font-family: var(--ui, 'Switzer', system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.fo * { box-sizing: border-box; }
.fo a { color: var(--acc); text-decoration: none; }
.fo :where(button, a, input):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 10px; }

.fo-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--s0) 88%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--rule); }
.fo-top__in { max-width: 560px; margin-inline: auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; }
.fo-brand { font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--ink); }
.fo-brand i { font-style: normal; color: var(--acc); font-weight: 600; }
.fo-top__link { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fo-prog { height: 3px; background: #ffffff14; }
.fo-prog i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.fo-main { max-width: 560px; margin-inline: auto; padding: 22px 20px 56px; }
.fo-app.fo-in { animation: foIn .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes foIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- accueil : la carte du parcours ----- */
.fo-kick { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--acc) 74%, #fff); margin: 4px 0 0; }
.fo-home__h1 { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: clamp(38px, 11vw, 60px); line-height: 1; margin: 10px 0 0; }
.fo-home__h1 em { font-style: normal; color: var(--acc); }
.fo-home__sub { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 12px 0 0; }
.fo-home__sub b { color: var(--ink); }

.fo-path { position: relative; display: grid; gap: 10px; margin: 22px 0 0; }
.fo-path::before { content: ''; position: absolute; left: 32px; top: 24px; bottom: 24px; width: 2px; background: var(--rule); z-index: 0; }
.fo-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 15px; padding: 14px 16px; color: var(--ink); cursor: pointer; }
.fo-node:disabled { cursor: default; opacity: .72; }
.fo-node__p { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--s2, #1c1c24); border: 1px solid var(--rule); color: var(--ink-2); }
.fo-node--cur .fo-node__p { color: #0b0b0c; background: var(--acc); border-color: var(--acc); }
.fo-node--done .fo-node__p { color: #0b0b0c; background: #4bd37b; border-color: #4bd37b; }
.fo-node--cur { border-color: color-mix(in srgb, var(--acc) 50%, var(--rule)); }
.fo-node__txt { flex: 1; min-width: 0; display: grid; }
.fo-node__txt b { font-size: 15.5px; font-weight: 600; }
.fo-node__txt span { font-size: 12.5px; color: var(--ink-3); }
.fo-node__go { flex: none; font-size: 18px; color: var(--ink-3); }
.fo-node--cur .fo-node__go { color: var(--acc); }

.fo-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.fo-res__b { text-align: left; background: #ffffff0a; border: 1px solid var(--rule); border-radius: 13px; padding: 13px 14px; color: var(--ink); cursor: pointer; display: grid; gap: 2px; }
.fo-res__b b { font-size: 14px; font-weight: 600; } .fo-res__b span { font-size: 12px; color: var(--ink-3); }

/* ----- un écran de module ----- */
.fo-screen__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fo-back { background: none; border: 0; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.fo-screen__lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fo-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.fo-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); }
.fo-dots i.on { background: var(--acc); } .fo-dots i.cur { background: color-mix(in srgb, var(--acc) 55%, var(--rule)); }

.fo-card { background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.fo-card__n { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acc); } .fo-card__n span { color: var(--ink-3); font-weight: 600; }
.fo-card h2 { font-size: clamp(21px, 5vw, 26px); font-weight: 700; line-height: 1.2; margin: 8px 0 12px; }
.fo-card p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.fo-card p b { color: var(--ink); } .fo-card code { font-size: 13px; background: #ffffff12; padding: 1px 5px; border-radius: 5px; }
.fo-card .fo-btn--ghost { margin-top: 16px; }
.fo-ask { font-size: 13px; color: var(--ink-3); margin: 0 0 4px; }
.fo-obj__q { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: clamp(22px, 5.5vw, 30px); line-height: 1.12; margin: 2px 0 10px; }
.fo-hint { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }

.fo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.fo-foot--c { justify-content: center; flex-wrap: wrap; }
.fo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #ffffff0d; border: 1px solid var(--rule); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fo-btn--acc { background: var(--acc); border-color: var(--acc); color: #0b0b0c; }
.fo-btn--lg { padding: 14px 20px; font-size: 15.5px; flex: 1; }
.fo-btn:active { transform: translateY(1px); }

/* choix (entraînement + quiz) */
.fo-choices { display: grid; gap: 8px; margin-top: 14px; }
.fo-choice { text-align: left; background: #ffffff08; border: 1px solid var(--rule); color: var(--ink); border-radius: 12px; padding: 13px 14px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.fo-choice:not(:disabled):hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--rule)); }
.fo-choice--bon { border-color: #4bd37b; background: color-mix(in srgb, #4bd37b 13%, transparent); }
.fo-choice--mauvais { border-color: #ff6b8a; background: color-mix(in srgb, #ff6b8a 11%, transparent); }
.fo-choice__pq { display: block; font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.fo-apres { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 14px; }
.fo-apres__v { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.fo-apres dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.fo-apres dt { color: var(--ink-3); font-weight: 600; } .fo-apres dd { margin: 0; color: var(--ink-2); }
.fo-q__ex { font-size: 13.5px; color: color-mix(in srgb, var(--acc) 72%, var(--ink)); margin: 12px 0 0; }

/* résultat du quiz */
.fo-res__card { background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; text-align: center; }
.fo-res__card--ok { border-color: color-mix(in srgb, #4bd37b 45%, var(--rule)); }
.fo-res__score { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: 48px; line-height: 1; color: var(--acc); }
.fo-res__card--ok .fo-res__score { color: #4bd37b; }
.fo-res__card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 16px; }

/* le Permis (objet à la forme de la licence) */
.fo-permis { position: relative; border-radius: 18px; padding: 20px; text-align: left; margin: 18px auto 0; background: linear-gradient(150deg, #201822, #15121a); border: 1px solid var(--rule); filter: grayscale(.5) opacity(.72); }
.fo-permis--mini { padding: 16px 18px; margin-top: 20px; }
.fo-permis--on { filter: none; border-color: color-mix(in srgb, var(--acc) 55%, var(--rule)); box-shadow: 0 24px 60px -34px color-mix(in srgb, var(--acc) 85%, #000); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 26%, #1a1420), #141019); }
.fo-permis__top { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--ink-3); }
.fo-permis__top b { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: 18px; letter-spacing: .04em; color: var(--acc); }
.fo-permis__nom { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: clamp(26px, 7vw, 34px); line-height: 1.05; margin: 12px 0 14px; }
.fo-permis__etat { font-weight: 700; font-size: 14px; }
.fo-permis__note { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin: 16px 2px 0; }
.fo-permis__note b { color: var(--ink); }

/* scripts + interdits (ressources) */
.fo-scripts { display: grid; gap: 12px; }
.fo-script { background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 15px; padding: 16px; }
.fo-script__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fo-script__h h3 { font-size: 15px; font-weight: 600; margin: 0; } .fo-script__h span { font-size: 12px; color: var(--ink-3); }
.fo-script p { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0 0 12px; }
.fo-interdits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fo-interdits li { display: flex; gap: 11px; align-items: flex-start; background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 12px; padding: 13px 15px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.fo-interdits li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #ff6b8a; background: color-mix(in srgb, #ff6b8a 14%, transparent); }

.fo-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fo-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: foFall 2.2s var(--d, 0s) cubic-bezier(.3,.7,.5,1) forwards; }
@keyframes foFall { 0% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); } 100% { opacity: 0; transform: translateY(104vh) translateX(var(--x, 0)) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .fo-confetti { display: none; } .fo-app.fo-in { animation: none; } .fo-prog i { transition: none; } }
@media (max-width: 420px) { .fo-apres dl { grid-template-columns: 1fr; gap: 1px; } .fo-apres dt { margin-top: 6px; } .fo-res { grid-template-columns: 1fr; } }
