/* Fiche thème, version G (19/10/2026) : LE SOCLE COMMUN.
   La construction de la page Gloss relevée au pixel (scratchpad refs/gloss-releve,
   tokens.json), avec la DA WOTG : fond blanc, violet seul accent (décisions de
   Théo du 19/10), ombre longue des panneaux noirs permise (D5). Les sections
   (g-1, g-2, g-3) consomment ces jetons et ces classes, elles n'en inventent pas. */
@font-face { font-family: 'Golos Text WOTG'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/v2/fiche/fonts/golos-text-var.woff2) format('woff2'); }
@font-face { font-family: 'Geist WOTG'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/v2/fiche/fonts/geist-var.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono WOTG'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/v2/fiche/fonts/geist-mono-var.woff2) format('woff2'); }
@font-face { font-family: 'Azeret Mono WOTG'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/v2/fiche/fonts/azeret-mono-var.woff2) format('woff2'); }

.fg {
  /* Polices : ?titres=golos (défaut) | geist ; ?mono=azeret (défaut) | geist */
  --fg-titre: 'Golos Text WOTG', 'Archivo', system-ui, sans-serif;
  --fg-corps: 'Golos Text WOTG', 'Archivo', system-ui, sans-serif;
  --fg-mono: 'Azeret Mono WOTG', ui-monospace, monospace;
  /* Couleurs : la rampe de Gloss, accent WOTG. ?fond=teinte essaie un blanc à peine chaud. */
  --fg-page: #FFFFFF;
  --fg-page-2: #F2F2F0;       /* cartes claires (Ship, pied de Gloss) */
  --fg-encre: #111111;
  --fg-texte: #333333;
  --fg-gris: #767676;         /* sur-titres mono, descriptions : le #8A8A85 de Gloss ne fait que 3,4:1 sur blanc, #767676 tient 4,54:1 (AA) */
  --fg-onglet-off: #C3C3BE;
  --fg-mot-off: #D3D3CE;
  --fg-panneau: #121212;
  --fg-panneau-in: #0A0A0A;
  --fg-carte: #1C1C1C;
  --fg-carte-on: #262626;
  --fg-ui: rgba(255,255,255,.60);
  --fg-ui-faible: rgba(255,255,255,.40);
  --fg-accent: var(--accent, #992CFF);
  --fg-accent-voile: rgba(153,44,255,.12);
  /* Géométrie */
  --fg-col: 1360px;
  --fg-goutte: 40px;
  --fg-bas: 140px;            /* padding bas de section, le haut est à 0 */
  --fg-r-panneau: 28px;
  --fg-r-carte: 16px;
  --fg-r-tuile: 22%;
  --fg-r-bouton: 12px;
  --fg-ombre: 0 40px 80px -30px rgba(0,0,0,.4);   /* D5 : permise sous les panneaux noirs */
  /* Mouvement */
  --fg-courbe: cubic-bezier(.16,1,.3,1);
  --fg-ressort: cubic-bezier(.3,.9,.3,1.2);
  background: var(--fg-page);
  color: var(--fg-encre);
  font-family: var(--fg-corps);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.fg[data-titres="geist"] { --fg-titre: 'Geist WOTG', system-ui, sans-serif; --fg-corps: 'Geist WOTG', system-ui, sans-serif; }
.fg[data-mono="geist"] { --fg-mono: 'Geist Mono WOTG', ui-monospace, monospace; }
.fg[data-fond="teinte"] { --fg-page: #FAF9F6; --fg-page-2: #EFEEEA; }
@media (max-width: 809px) { .fg { --fg-goutte: 16px; --fg-bas: 80px; --fg-r-panneau: 20px; --fg-r-carte: 12px; } }

/* Conteneur et rythme : padding porté en bas de section (Gloss). */
.fg-col { width: 100%; max-width: calc(var(--fg-col) + 2 * var(--fg-goutte)); margin: 0 auto; padding: 0 var(--fg-goutte); box-sizing: border-box; }
.fg-section { padding-bottom: var(--fg-bas); }

/* Typographie relevée (desktop / téléphone ≤ 809). */
.fg-d1 { font-family: var(--fg-titre); font-weight: 500; font-size: 110px; line-height: .98; letter-spacing: -.06em; margin: 0; }
.fg-h2 { font-family: var(--fg-titre); font-weight: 400; font-size: 64px; line-height: 1.02; letter-spacing: -.045em; margin: 0; max-width: 820px; text-wrap: balance; }
.fg-h3 { font-family: var(--fg-titre); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.fg-lead { font-size: 19px; line-height: 1.4; letter-spacing: -.01em; color: var(--fg-texte); margin: 0; max-width: 640px; }
.fg-desc { font-size: 15px; line-height: 1.45; color: var(--fg-gris); margin: 0; max-width: 300px; }
.fg-label { font-family: var(--fg-mono); font-weight: 400; font-size: 12px; line-height: 1.3; letter-spacing: .04em; color: var(--fg-gris); margin: 0; }
.fg-ui { font-family: var(--fg-mono); font-size: 11px; line-height: 1.2; letter-spacing: .04em; color: var(--fg-ui); }
@media (max-width: 809px) {
  .fg-d1 { font-size: 56px; }
  .fg-h2 { font-size: 38px; }
  .fg-h3 { font-size: 22px; }
  .fg-lead { font-size: 16px; }
}

/* En-tête de section type : sur-titre → 18 → h2 → 40 → composant ; bouton à droite, en bas. */
.fg-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.fg-tete .fg-label { margin-bottom: 18px; }
@media (max-width: 809px) { .fg-tete { margin-bottom: 28px; flex-wrap: wrap; } }

/* Boutons (Gloss : 500 15px, rayon 12). Le violet ne sert jamais à une action. */
.fg-bt { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--fg-r-bouton);
  font: 500 15px/1 var(--fg-corps); letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer;
  background: var(--fg-encre); color: #fff; transition: transform .35s var(--fg-ressort); }
.fg-bt:hover { transform: translateY(-1px); }
.fg-bt--clair { background: #fff; color: var(--fg-encre); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fg-bt:focus-visible, .fg button:focus-visible, .fg a:focus-visible { outline: 2px solid var(--fg-accent); outline-offset: 3px; }

/* Panneau noir type (Gloss) et ses cartes. */
.fg-panneau { background: var(--fg-panneau); border-radius: var(--fg-r-panneau); padding: 14px; box-shadow: var(--fg-ombre); color: #fff; }
.fg-carte { background: var(--fg-carte); border-radius: var(--fg-r-carte); }

/* Tuile d'effet en squircle : tailles internes en cqw. */
.fg-tuile { aspect-ratio: 1; border-radius: var(--fg-r-tuile); overflow: hidden; container-type: inline-size; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 6cqw 1cqw rgba(0,0,0,.55); }

/* Emplacement d'un média à venir (Théo génère les images, MEDIAS.md) : une case
   grise qui porte le nom du fichier attendu. Remplacée par <img>/<video> à l'arrivée. */
.fg-attente { position: relative; background: repeating-linear-gradient(135deg, #E9E9E6 0 10px, #E3E3E0 10px 20px); display: grid; place-items: center; overflow: hidden; }
.fg-attente::after { content: attr(data-fichier); font: 400 11px/1.2 var(--fg-mono); letter-spacing: .04em; color: #77776F; background: rgba(255,255,255,.8); padding: 6px 8px; border-radius: 6px; }

/* Apparitions mesurées chez Gloss. Sans JS, rien n'est caché (classe .js posée par la coquille).
   1. Titres : flou 10 px + rideau vertical, .95 s, sur-titre 0 s puis titre .14 s.
   2. Composants : montée 36 px (panneaux 60 px) + flou 8 px, .9 s, cascade par --d.
   Déclenchement ≈ 80 à 110 px après l'entrée dans l'écran (IntersectionObserver, -10 %). */
.js .fg [data-fg-rv] { filter: blur(10px); clip-path: inset(0 0 100%);
  transition: filter .95s var(--fg-courbe) var(--d, 0s), clip-path .95s var(--fg-courbe) var(--d, 0s); }
.js .fg [data-fg-rv].is-in { filter: none; clip-path: inset(-20% -5%); }
.js .fg [data-fg-in] { transform: translateY(36px); filter: blur(8px); opacity: 0;
  transition: transform .9s var(--fg-courbe) var(--d, 0s), filter .9s var(--fg-courbe) var(--d, 0s), opacity .6s var(--fg-courbe) var(--d, 0s); }
.js .fg [data-fg-in="panneau"] { transform: translateY(60px); }
.js .fg [data-fg-in].is-in { transform: none; filter: none; opacity: 1; }

/* Boucles en pause hors écran (pas en mouvement réduit : décision du site, 10/10). */
.fg .fg-dort, .fg .fg-dort * { animation-play-state: paused !important; }

.fg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
