/* fiche.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/fiche.css ---- */
/* « Ta fiche de poche » — tout le kit sur une page. DA rose (accent du pôle ambassadeur), tokens depuis tokens.css.
   À l'écran : thème Junior sombre. À l'impression : clair, compact, sans la barre ni les boutons → un PDF propre. */
.fi { --acc: #f25cb0; margin: 0; background: var(--s0); color: var(--ink); font-family: var(--ui, 'Switzer', system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.fi * { box-sizing: border-box; }
.fi a { color: var(--acc); text-decoration: none; }
.fi :where(button, a):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 10px; }

.fi-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); }
.fi-top__in { max-width: 760px; margin-inline: auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fi-brand { font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--ink); white-space: nowrap; }
.fi-brand i { font-style: normal; color: var(--acc); font-weight: 600; }
.fi-print { background: var(--acc); border: 1px solid var(--acc); color: #0b0b0c; border-radius: 10px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; flex: none; }
.fi-print:active { transform: translateY(1px); }

.fi-main { max-width: 760px; margin-inline: auto; padding: 24px 20px 64px; }
.fi-kick { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--acc) 74%, #fff); margin: 0; }
.fi-h1 { font-family: var(--display, 'Anton', sans-serif); font-weight: 400; font-size: clamp(32px, 8vw, 50px); line-height: 1; margin: 10px 0 0; }
.fi-h1 em { font-style: normal; color: var(--acc); }
.fi-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 12px 0 0; max-width: 60ch; }
.fi-sub b { color: var(--ink); }

.fi-golden { margin: 20px 0 0; background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--rule)); border-radius: 13px; padding: 13px 15px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fi-golden b { color: var(--ink); }

.fi-sec { margin-top: 30px; }
.fi-h2 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.fi-grid { display: grid; gap: 12px; }

.fi-card { background: var(--s1, #15151b); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.fi-card--script h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 7px; color: var(--ink); }
.fi-card--script h3 i { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.fi-card--script p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

.fi-card--obj { border-color: color-mix(in srgb, var(--acc) 22%, var(--rule)); }
.fi-obj__q { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.fi-obj__r { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 7px; }
.fi-obj__meta { font-size: 12px; line-height: 1.5; color: var(--ink-3); margin: 0; border-top: 1px dashed var(--rule); padding-top: 7px; }
.fi-obj__meta b { color: color-mix(in srgb, var(--acc) 72%, var(--ink)); }

.fi-interdits { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fi-interdits li { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); padding-left: 24px; position: relative; }
.fi-interdits li::before { content: '✕'; position: absolute; left: 0; top: 0; color: var(--acc); font-weight: 700; }

.fi-foot { margin-top: 28px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

@media (min-width: 680px) { #fiObj { grid-template-columns: 1fr 1fr; } }

/* impression : un PDF propre, clair, compact — on cache la barre, les boutons et les aides d'écran */
@media print {
  .fi { background: #fff !important; color: #111 !important; }
  .fi-top, .fi-print, .fi-kick, .fi-sub { display: none !important; }
  .fi-main { max-width: 100%; padding: 0; }
  .fi-main::before { content: 'JUNIOR — FICHE DE POCHE AMBASSADEUR'; display: block; font-weight: 800; letter-spacing: .12em; color: #a01f5e; font-size: 15px; margin-bottom: 8px; }
  .fi-h1 { color: #111 !important; font-size: 22px; margin: 0 0 6px; }
  .fi-h1 em { color: #a01f5e !important; }
  .fi-golden { background: #fbeaf2 !important; border-color: #f0a9cd !important; color: #333 !important; margin-top: 6px; break-inside: avoid; }
  .fi-golden b { color: #a01f5e !important; }
  .fi-sec { margin-top: 16px; break-inside: avoid; }
  .fi-h2 { color: #a01f5e !important; font-size: 12px; }
  .fi-card { background: #fff !important; border-color: #ddd !important; break-inside: avoid; padding: 10px 12px; }
  .fi-card--script h3, .fi-obj__q { color: #111 !important; }
  .fi-card--script p, .fi-obj__r { color: #222 !important; }
  .fi-obj__meta { color: #555 !important; border-top-color: #ddd !important; }
  .fi-obj__meta b, .fi-interdits li::before { color: #a01f5e !important; }
  .fi-interdits li { color: #222 !important; }
  .fi-foot { color: #777 !important; margin-top: 14px; }
  #fiObj, #fiScripts { grid-template-columns: 1fr 1fr !important; gap: 8px; }
}
