/* ==========================================================================
   Capri · écran de partie
   Le site se lit comme l'interface d'une manche en cours : chaque élément
   affiche une information. Pas d'ornement, pas de carte générique.
   Palette à rôles fixes :
     sarcelle  = ce qui est à toi, allié (liens, sélection, focus)
     rouge     = ce qui est éliminé (temps morts, ce que je ne fais pas) ;
                 sur la page Quinoa, le voyant « en direct », convention
                 universelle du direct
     jaune     = l'objectif, UNIQUEMENT la demande de devis
   Le mouvement (chargement, apparitions, section épinglée) vit dans
   mouvement.css ; ce fichier-ci reste lisible sans lui.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-var-latin.woff2') format('woff2-variations');
  font-weight: 400 600; font-display: swap;
}

:root {
  --ground:   #0D0F11;   /* fond de page : l'ancien #15181B, en plus sombre */
  --ground-2: #15181B;
  --panel:    #1D2125;
  --panel-2:  #252A2F;
  --line:     #2E343A;
  --line-2:   #4A535C;
  --field:    #6E7883;   /* contour des champs et boutons secondaires, 3:1 minimum */
  --bone:     #ECE8E0;
  --bone-2:   #BDB8AE;
  --bone-3:   #97928A;
  --ally:     #2FB8A6;
  --ally-ink: #06201C;
  --elim:     #EE5A4F;
  --goal:     #F2C230;
  --goal-ink: #1A1400;

  --gutter: clamp(18px, 4.4vw, 60px);
  --bar: 58px;           /* hauteur de la barre HUD */
  --cut: 10px;           /* angle biseauté des panneaux */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --hud:  'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; scrollbar-color: var(--line-2) var(--ground); scrollbar-width: thin; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--ground); }
::selection { background: var(--ally); color: var(--ally-ink); }

body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--hud);
  font-stretch: 100%;
  font-size: 17px; line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 44px;               /* la timeline */
}
main, .foot { position: relative; z-index: 1; }
img, video, svg { display: block; max-width: 100%; }
/* L'attribut hidden doit gagner sur les display posés plus haut, sinon une
   image vide cachée s'affiche en « image cassée » avec son cadre gris. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--ally) 70%, transparent); }
a:hover { color: var(--ally); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ally); outline-offset: 3px; }
p { max-width: 64ch; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- fond
   Le quadrillage est dessiné par fond.js dans ce canvas. Sans WebGL, la
   même idée en CSS : un quadrillage révélé par un masque autour du curseur. */
.fond { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fond-alt { display: none; }
.fond-css .fond-alt {
  display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 232, 224, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 232, 224, .55) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000, transparent);
          mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000, transparent);
}

/* ---------------------------------------------------------------- titres
   Étroits, lourds, en capitales : la voix d'un bandeau de manche. Aucun
   mot coloré : l'emphase vient du poids et de la taille. */
h1, h2 {
  font-family: var(--hud);
  font-weight: 850; font-stretch: 64%;
  text-transform: uppercase;
  letter-spacing: -0.012em; line-height: 0.9;
  text-wrap: balance;
}
h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h3 { font-weight: 750; font-stretch: 78%; text-transform: uppercase; font-size: 1.28rem; letter-spacing: 0.01em; line-height: 1.1; }

/* ---------------------------------------------------------------- touches
   Les raccourcis clavier sont vrais : 1 à 6 mènent aux sections. */
.key {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 0.35em;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--bone-2);
  background: var(--panel);
  transition: background .2s, color .2s, border-color .2s;
}

/* ---------------------------------------------------------------- boutons
   .goal : le seul jaune du site. Losange de balise, marqueur d'objectif.
   .solid : l'action principale là où il n'y a pas de devis (page Quinoa).
   .plain : tout le reste. */
.goal, .solid {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 18px; text-decoration: none; cursor: pointer; border: 0;
  font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.02rem;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .2s var(--ease), color .2s;
}
.goal { background: var(--goal); color: var(--goal-ink); }
.goal:hover { background: #FFD659; color: var(--goal-ink); }
.goal:active { background: #E0B21F; }
.goal .mark { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); flex: none; transition: transform .45s var(--ease); }
.goal:hover .mark { transform: rotate(135deg); }
.solid { background: var(--bone); color: var(--ground); }
.solid:hover { background: var(--ally); color: var(--ally-ink); }
.solid svg, .plain svg { width: 16px; height: 16px; flex: none; }

.plain {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer;
  background: transparent; color: var(--bone); border: 1px solid var(--field);
  font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.plain:hover { border-color: var(--ally); color: var(--ally); }

/* ================================================================ barre HUD
   À gauche : quel site. À droite : où dans la page. Au centre, sous la
   barre : le chrono de présence et la langue, hors de la navigation. */
.hud { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 20px; height: var(--bar);
  padding: 0 var(--gutter);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); flex: none; }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: 850; font-stretch: 70%; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Les trois sites, comme des modes de jeu : on sait toujours où on est. */
.sites { display: flex; align-items: center; gap: 2px; padding-left: 18px; border-left: 1px solid var(--line); height: 30px; }
.sites a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  color: var(--bone-3); text-decoration: none;
  font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color .2s, background .2s;
}
.sites a:hover { color: var(--bone); background: var(--panel); }
.sites a[aria-current="page"] { color: var(--bone); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--ally); }

.sections { margin-left: auto; }
.keys { display: flex; gap: 4px 16px; list-style: none; }
.keys a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  text-decoration: none; color: var(--bone-2); font-weight: 650; font-stretch: 80%; text-transform: uppercase; font-size: 0.84rem; letter-spacing: 0.04em;
  white-space: nowrap;
}
.keys a:hover { color: var(--bone); }
.keys a:hover .key { border-color: var(--ally); color: var(--ally); }
.keys a[aria-current="true"] { color: var(--bone); }
.keys a[aria-current="true"] .key { background: var(--ally); border-color: var(--ally); color: var(--ally-ink); }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 10px; height: 36px; padding: 0 12px;
  background: none; border: 1px solid var(--field); cursor: pointer;
  font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem;
}
.menu-btn .bars { position: relative; width: 16px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.hud[data-menu="open"] .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.hud[data-menu="open"] .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }
.menu-btn:hover { border-color: var(--ally); color: var(--ally); }

/* Plaques suspendues sous la barre, au centre. */
.tabs { position: absolute; z-index: 1; top: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.stay, .lang, .onair {
  display: flex; align-items: baseline; gap: 10px; height: 30px; padding: 6px 18px 0;
  background: var(--panel); font-size: 0.72rem; color: var(--bone-3);
  font-family: var(--hud); font-weight: 650; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 10px 100%);
}
.stay .num { color: var(--bone); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; }
.lang { border: 0; cursor: pointer; gap: 6px; transition: background .2s; }
.lang span { color: var(--bone-3); font-weight: 600; font-size: 0.8rem; transition: color .2s; }
.lang span[data-on] { color: var(--bone); }
.lang i { font-style: normal; color: var(--line-2); }
.lang:hover { background: var(--panel-2); }
.lang:hover span:not([data-on]) { color: var(--ally); }
.onair { text-decoration: none; color: var(--bone); align-items: center; }
.onair .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elim); }
.onair:hover { background: var(--panel-2); color: var(--bone); }

/* ================================================================ manche d'ouverture */
.round-1 {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end; gap: clamp(24px, 4vw, 64px);
  padding: 124px var(--gutter) clamp(64px, 10vh, 100px);
}
.opening h1 { font-size: clamp(3.4rem, 10.2vw, 9.2rem); }
.opening h1 .ln { display: block; }
.opening h1 .dim { color: var(--bone-3); }
.opening .lede { margin-top: 26px; font-size: 1.12rem; color: var(--bone-2); max-width: 46ch; }
.opening .acts { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.opening .hint { font-size: 0.86rem; color: var(--bone-3); display: inline-flex; align-items: center; gap: 8px; }
@media (hover: none) { .opening .hint { display: none; } }

/* L'écran du joueur : la vraie vidéo, à sa taille réelle. */
.pov { position: relative; justify-self: end; width: min(100%, 360px); align-self: center; }
.pov-frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.pov-media { position: absolute; inset: 0; overflow: hidden; }
.pov-frame video { width: 100%; height: 100%; object-fit: cover; }
.pov-tag {
  margin-top: 10px; display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone-3);
}

/* Le fil des éliminations : ce que le montage retire, ligne par ligne.
   Hors du cadre vidéo, à sa gauche : la vidéo a déjà son propre tableau de
   score, les superposer brouillait les deux. */
.feed {
  position: absolute; top: 18px; right: calc(100% + 18px); z-index: 2;
  display: grid; gap: 6px; justify-items: end; list-style: none;
}
.feed li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 12px; background: rgba(12, 14, 16, 0.86);
  font-weight: 750; font-stretch: 76%; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.02em;
  white-space: nowrap;
}
.feed .who { color: var(--ally); }
.feed .what { color: var(--elim); }
.feed svg { width: 16px; height: 16px; color: var(--bone); flex: none; }

/* Ouverture de la page web : courte, pour que l'atelier soit visible
   dès le premier écran. Le travail passe avant la promesse. */
.web-open {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px clamp(24px, 4vw, 64px); align-items: end;
  padding: 124px var(--gutter) 0;
}
.web-open h1 { font-size: clamp(3rem, 7.4vw, 7rem); }
.web-open h1 .ln { display: block; }
.web-open h1 .dim { color: var(--bone-3); }
.web-open .lede { margin-top: 0; }
.atelier-round { padding-top: clamp(36px, 6vh, 56px); }

/* ================================================================ manches suivantes */
.round { padding: clamp(84px, 13vh, 140px) var(--gutter) 0; scroll-margin-top: 92px; }
.round-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); gap: 18px 48px; align-items: end; margin-bottom: clamp(36px, 6vh, 60px); }
.round-head p { color: var(--bone-2); font-size: 1.02rem; }

/* ---- extraits : un moniteur, trois emplacements */
.loadout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.monitor { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.monitor img, .monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor .preview { opacity: 0; transition: opacity .35s; }
.monitor .preview[data-on] { opacity: 1; }
.monitor .play {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 12px; border: 0; cursor: pointer;
  background: var(--bone); color: var(--ground);
  font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.03em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.monitor .play:hover { background: var(--ally); color: var(--ally-ink); }
.monitor .play svg { width: 14px; height: 14px; }
.monitor .play[hidden] { display: none; }
.monitor .full { z-index: 3; background: #000; }

.slots { list-style: none; border-top: 1px solid var(--line); }
.slot { border-bottom: 1px solid var(--line); }
.slot button {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 24px 6px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--bone-2);
  transition: background .2s;
}
.slot button:hover { background: color-mix(in oklab, var(--panel) 70%, transparent); }
/* Numéro d'emplacement, comme les armes 1, 2, 3 : pas une touche clavier. */
.slot .n { align-self: center; display: inline-grid; place-items: center; width: 2em; height: 2em; font-size: 0.86rem; font-weight: 600; color: var(--bone-2); background: var(--panel-2); }
.slot h3 { color: var(--bone); font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 64%; font-weight: 850; }
.slot .kind { grid-column: 2; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
.slot .dur { font-size: 1.1rem; color: var(--bone-2); align-self: center; grid-row: 1; grid-column: 3; }
.slot p { grid-column: 2 / -1; font-size: 0.98rem; margin-top: 4px; }
.slot button[aria-pressed="true"] .n { background: var(--ally); color: var(--ally-ink); }
.slot button[aria-pressed="true"] { background: color-mix(in oklab, var(--panel) 70%, transparent); }
.slot button[aria-pressed="true"] .kind { color: var(--ally); }

/* ---- inventaire : ce que je livre, et ce que je ne fais pas */
.inventory { list-style: none; border-top: 1px solid var(--line); }
.inventory > li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px 48px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.inventory h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-stretch: 64%; font-weight: 850; }
.inventory p { color: var(--bone-2); }
.tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-3); }
.tags li::before { content: '+ '; color: var(--ally); }
.inventory .off h3 { color: var(--bone-3); text-decoration: line-through; text-decoration-color: var(--elim); text-decoration-thickness: 3px; }
.inventory .off .tags li::before { content: '× '; color: var(--elim); }

/* ---- déroulé : une piste d'objectifs ; ici la séquence porte l'information.
   Épinglée à l'écran par mouvement.js : les étapes arrivent une à une. */
.deroule { padding-top: 0; }
.pin-stage { padding-top: clamp(84px, 13vh, 140px); }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.track::before, .track::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-2); }
.track::after { background: var(--ally); transform-origin: left center; transform: scaleX(var(--fill, 1)); }
.track li { position: relative; z-index: 1; padding: 36px 28px 0 0; }
.track li::before { content: ''; position: absolute; left: 1px; top: 0; width: 14px; height: 14px; transform: rotate(45deg); background: var(--ground); border: 2px solid var(--ally); transition: background .3s, border-color .3s; }
.track li[data-on]::before, .track:not([data-pinned]) li:last-child::before { background: var(--ally); }
.track h3 { font-size: 1.6rem; font-stretch: 68%; font-weight: 850; }
.track p { margin-top: 8px; color: var(--bone-2); font-size: 0.98rem; }

/* ---- tarifs : un tableau de scores */
.score { width: 100%; border-collapse: collapse; }
.score th, .score td { text-align: left; vertical-align: top; padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.score thead th { padding-top: 0; padding-bottom: 12px; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone-3); border-bottom-color: var(--line-2); }
.score .offer { font-weight: 850; font-stretch: 64%; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.score .flag { display: block; margin-top: 8px; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ally); }
.score .price { font-weight: 850; font-stretch: 68%; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score .unit { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--bone-3); font-weight: 400; font-stretch: 100%; }
.score ul { list-style: none; display: grid; gap: 4px; color: var(--bone-2); font-size: 0.98rem; }
.score ul li::before { content: '+ '; color: var(--ally); font-family: var(--mono); }
.score tbody tr > * { transition: background .25s; }
.score tbody tr:hover > * { background: color-mix(in oklab, var(--panel) 60%, transparent); }
.score tr.pick > * { background: color-mix(in oklab, var(--ally) 8%, transparent); }
.score tr.pick:hover > * { background: color-mix(in oklab, var(--ally) 12%, transparent); }
.score tr.pick th { padding-left: 16px; }
.score td:last-child { padding-right: 16px; text-align: right; white-space: nowrap; }
.launch { margin-top: 22px; color: var(--bone-3); font-size: 0.95rem; max-width: 72ch; }
.launch b { color: var(--bone-2); font-weight: 650; }

/* ---- ton projet */
.brief-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.brief-lede { margin-top: 22px; color: var(--bone-2); }
.channels { list-style: none; margin-top: 30px; }
.channels a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 15px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.channels li:first-child a { border-top: 1px solid var(--line); }
.channels b { font-weight: 750; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.03em; }
.channels span { color: var(--bone-3); font-family: var(--mono); font-size: 0.8rem; grid-column: 1; }
.channels .ic { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--bone-3); transition: color .2s, transform .3s var(--ease); }
.channels a:hover .ic { color: var(--ally); transform: translate(2px, -2px); }

/* Icônes dessinées (même trait que les ciseaux du fil) : pas de glyphes. */
.ic { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-out  { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.ic-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M3 5h18v14H3zM3 6l9 7 9-7'/%3E%3C/svg%3E"); }
.modes .go::after {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; background: currentColor;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.form { position: relative; background: var(--panel); padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-2); }
.control {
  width: 100%; padding: 12px 14px; background: var(--ground); color: var(--bone);
  border: 1px solid var(--field); border-radius: 0; font-size: 0.98rem;
  transition: border-color .2s, box-shadow .2s;
}
.control::placeholder { color: var(--bone-3); }
.control:hover { border-color: #8C959E; }
.control:focus { outline: none; border-color: var(--ally); box-shadow: inset 0 0 0 1px var(--ally); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDB8AE' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
select.control option { background: var(--panel); }
textarea.control { min-height: 120px; resize: vertical; line-height: 1.5; }
.field .err { display: none; font-size: 0.84rem; color: var(--elim); }
.field[data-invalid="true"] .control { border-color: var(--elim); }
.field[data-invalid="true"] .err { display: block; }
.form-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.form-note { grid-column: 1 / -1; font-size: 0.86rem; color: var(--bone-3); }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; color: var(--ally); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- autres modes */
.modes { list-style: none; border-top: 1px solid var(--line); }
.modes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.modes h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-stretch: 64%; font-weight: 850; transition: color .2s; }
.modes p { grid-column: 1; color: var(--bone-2); }
.modes .go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.84rem; color: var(--bone-3); letter-spacing: 0.06em; text-transform: uppercase; transition: color .2s, transform .4s var(--ease); }
.modes a:hover h3 { color: var(--ally); }
.modes a:hover .go { color: var(--bone); transform: translateX(6px); }

/* ---- pied */
.foot { margin-top: clamp(80px, 12vh, 130px); padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line); background: var(--ground); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; color: var(--bone-3); font-size: 0.88rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a, .foot .linklike { color: var(--bone-2); text-decoration: none; }
.foot a:hover, .foot .linklike:hover { color: var(--bone); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ================================================================ timeline (conservée)
   Même rôle qu'avant : la page vue comme une séquence de montage. Pendant
   le chargement, elle sert aussi de barre de progression. */
.timeline {
  position: fixed; inset: auto 0 0 0; z-index: 55; display: flex; height: 44px;
  background: var(--ground); border-top: 1px solid var(--line);
}
.timeline-tc { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); color: var(--bone); font-family: var(--mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; flex: none; }
.timeline-track { position: relative; display: flex; flex: 1; min-width: 0; overflow: hidden; }
.timeline-clip {
  position: relative; flex: 1; min-width: 0; cursor: pointer;
  background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--bone-3);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; transition: color .2s, background .2s;
}
/* Chaque clip garde de quoi afficher son nom sur ordinateur, même quand sa
   section est courte ; les autres se partagent le reste en proportion. */
@media (min-width: 721px) { .timeline-clip { min-width: 84px; } }
.timeline-clip:hover { color: var(--bone); background: var(--panel); }
.timeline-clip[data-active="true"] { color: var(--bone); background: var(--panel); }
.timeline-clip[data-active="true"]::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--ally); }
.timeline-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--bone); pointer-events: none; }

/* ================================================================ atelier (page web)
   La grille façon galerie : de vraies pièces, filtrées par nature. */
.filters { display: flex; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.filters button {
  padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  color: var(--bone-3); font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem;
  transition: color .2s, border-color .3s var(--ease);
}
.filters button .num { margin-left: 6px; font-size: 0.72rem; }
.filters button:hover { color: var(--bone); }
.filters button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--ally); }
.atelier { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px 14px; }
.piece { grid-column: span 2; }
.piece.big { grid-column: span 4; grid-row: span 2; }
.piece.wide { grid-column: span 3; }
.piece[hidden] { display: none; }
.piece a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--bone); }
.piece .shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; }
.piece.big .shot { aspect-ratio: auto; }
.piece .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
/* Crochets de visée au survol : on « inspecte » la pièce. */
.shot::before, .shot::after, .clip .frame::before, .clip .frame::after { content: ''; position: absolute; width: 22px; height: 22px; opacity: 0; transition: opacity .25s, top .35s var(--ease), left .35s var(--ease), right .35s var(--ease), bottom .35s var(--ease); pointer-events: none; z-index: 1; }
.shot::before, .clip .frame::before { top: 20px; left: 20px; border-top: 2px solid var(--ally); border-left: 2px solid var(--ally); }
.shot::after, .clip .frame::after { bottom: 20px; right: 20px; border-bottom: 2px solid var(--ally); border-right: 2px solid var(--ally); }
.piece a:hover .shot::before, .piece a:focus-visible .shot::before, .clip a:hover .frame::before, .clip a:focus-visible .frame::before { opacity: 1; top: 10px; left: 10px; }
.piece a:hover .shot::after, .piece a:focus-visible .shot::after, .clip a:hover .frame::after, .clip a:focus-visible .frame::after { opacity: 1; bottom: 10px; right: 10px; }
.piece a:hover img { transform: scale(1.015); }
.piece .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; }
.piece .meta b { font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 1.14rem; letter-spacing: 0.01em; }
.piece .meta span { font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); white-space: nowrap; }
.piece .meta span.concept { color: var(--bone); background: var(--panel-2); padding: 2px 6px; }
.piece.big .meta b { font-size: 1.6rem; }
.piece .meta p { font-size: 0.9rem; color: var(--bone-3); margin-top: 2px; }
.atelier-note { margin-top: 24px; color: var(--bone-3); font-size: 0.95rem; }

/* ================================================================ page Quinoa */
/* Carte d'équipe façon salon de jeu : qui, où, et si c'est en direct. */
.squad { justify-self: end; align-self: center; width: min(100%, 400px); background: var(--panel); }
.squad-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.squad-head img { width: 76px; height: 76px; border-radius: 50%; }
.squad-head b { display: block; font-weight: 850; font-stretch: 64%; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.squad-head .tally { margin-top: 8px; }
.squad ul { list-style: none; }
.squad li a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.squad li:last-child a { border-bottom: 0; }
.squad li a:hover { background: var(--panel-2); color: var(--bone); }
.squad li svg { width: 20px; height: 20px; color: var(--bone-2); }
.squad li b { font-weight: 750; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.03em; }
.squad li span { font-family: var(--mono); font-size: 0.74rem; color: var(--bone-3); }

/* Voyant du direct : ni allumé ni éteint tant que l'API n'a rien dit. */
.tally { display: inline-flex; align-items: center; gap: 9px; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
.tally .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--bone-3); flex: none; }
.tally[data-state="off"] .dot { background: var(--line-2); border-color: var(--line-2); }
.tally[data-state="live"] { color: var(--bone); }
.tally[data-state="live"] .dot { background: var(--elim); border-color: var(--elim); }

.live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.screen img, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nosignal { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; overflow: hidden; color: var(--bone-3); font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.84rem; letter-spacing: 0.07em; text-transform: uppercase; }
.nosignal svg { position: relative; width: 40px; height: 40px; }
.nosignal span { position: relative; }
.nosignal[hidden] { display: none; }
/* Neige d'écran sans signal : une texture fixe qui glisse, pas une vidéo. */
.nosignal::before { content: ''; position: absolute; inset: -50%; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Traits rouges du direct : collés au cadre de l'écran, jamais à la page.
   Un <svg> garde sa taille intrinsèque (300×150) avec « inset » seul : on lui
   donne des dimensions explicites. */
.live-trace { position: absolute; z-index: 3; top: 2px; left: 2px; width: calc(100% - 4px); height: calc(100% - 4px); pointer-events: none; overflow: visible; opacity: 0; transition: opacity .6s; }
.live-trace rect { fill: none; stroke: var(--elim); stroke-width: 2; stroke-linecap: square; stroke-dasharray: 6 44; filter: drop-shadow(0 0 4px var(--elim)); }
.live[data-state="live"] .live-trace { opacity: 1; }
.screen-play { position: absolute; z-index: 2; left: 16px; bottom: 16px; }
.screen-play[hidden] { display: none; }
.live-info { display: grid; gap: 18px; align-content: start; }
.live-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-stretch: 70%; font-weight: 850; line-height: 1.05; }
.live-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-2); list-style: none; }
.live-note { color: var(--bone-2); font-size: 0.98rem; }
.live-info .acts { display: flex; flex-wrap: wrap; gap: 12px; }

.tubes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
.tube .frame { position: relative; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.tube .frame img, .tube .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tube .frame .masked { position: absolute; inset: 0; display: grid; place-content: center; padding: 16px; text-align: center; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
.tube .frame .solid { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 10px 14px 10px 12px; font-size: 0.86rem; }
.tube h3 { margin-top: 12px; font-size: 1.12rem; font-stretch: 80%; line-height: 1.2; }
.tube h3 a { text-decoration: none; }
.tube .date { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); }
.tube[data-skeleton] .frame { background: linear-gradient(90deg, var(--panel) 0 40%, var(--panel-2) 50%, var(--panel) 60% 100%) 0 0 / 300% 100%; }
.tube[data-skeleton] h3 { height: 1.2em; width: 70%; background: var(--panel); }
.tubes-empty { color: var(--bone-2); }
.tubes-empty[hidden] { display: none; }
.after { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.clips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(14px, 2vw, 28px); }
.clip a { display: block; text-decoration: none; color: var(--bone); }
.clip .frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.clip .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.clip a:hover .frame img { transform: scale(1.02); }
.clip .go { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 9px 11px; background: var(--bone); color: var(--ground); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 0.84rem; letter-spacing: 0.03em; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .2s, color .2s; }
.clip .go svg { width: 13px; height: 13px; }
.clip a:hover .go { background: var(--ally); color: var(--ally-ink); }
.clip .kind { display: block; margin-top: 14px; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone-3); }
.clip h3 { margin-top: 4px; font-size: 1.5rem; font-stretch: 66%; font-weight: 850; }
.clip p { margin-top: 4px; color: var(--bone-2); font-size: 0.96rem; }

.server { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: clamp(22px, 3vw, 36px); background: var(--panel); }
.server-glyph { width: 56px; height: 56px; color: var(--bone-2); }
.server h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-stretch: 64%; font-weight: 850; }
.server p { margin-top: 6px; color: var(--bone-2); }
.server-count { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; font-family: var(--hud); font-weight: 650; font-stretch: 80%; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
.server-count .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ally); }
.server-count[hidden] { display: none; }

.role { display: grid; gap: 14px; max-width: 70ch; font-size: 1.06rem; color: var(--bone-2); }
.role strong { color: var(--bone); font-weight: 700; }

/* Bandeau des contenus tiers : décide si Twitch, YouTube et Discord ont le
   droit d'être appelés. Les deux réponses pèsent le même poids. */
.consent {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: 60px;
  display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center;
  max-width: 900px; margin-inline: auto; padding: 18px 22px; background: var(--panel-2); border: 1px solid var(--line-2);
  font-size: 0.95rem; color: var(--bone-2);
}
.consent[data-show] { display: grid; }
.consent b { color: var(--bone); }
.consent-acts { display: flex; gap: 10px; }
.consent .plain { padding: 11px 16px; }

/* ================================================================ responsive */
@media (max-width: 1179px) {
  .menu-btn { display: inline-flex; }
  .sections {
    position: absolute; top: var(--bar); left: 0; right: 0; z-index: 3;
    padding: 6px var(--gutter) 22px; background: var(--ground); border-bottom: 1px solid var(--line);
    display: none;
  }
  .hud[data-menu="open"] .sections { display: block; }
  .keys { flex-direction: column; gap: 0; max-width: 560px; }
  .keys a { width: 100%; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.7rem; font-stretch: 64%; font-weight: 850; }
  .keys li:last-child a { border-bottom: 0; }
  .keys .key { font-size: 0.78rem; }
}
@media (max-width: 1179px) and (hover: none) { .keys .key { display: none; } }
@media (max-width: 980px) {
  .round-1 { grid-template-columns: 1fr; align-items: start; padding-top: 110px; }
  .pov { justify-self: start; width: min(100%, 280px); order: -1; }
  .feed { right: auto; left: calc(100% + 16px); justify-items: start; }
  .squad { justify-self: start; }
  .round-head { grid-template-columns: 1fr; }
  .web-open { grid-template-columns: 1fr; padding-top: 110px; }
  .loadout { grid-template-columns: 1fr; }
  .monitor { max-width: 320px; }
  .inventory > li { grid-template-columns: 1fr; }
  .brief-grid { grid-template-columns: 1fr; }
  .atelier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece, .piece.wide { grid-column: span 1; }
  .piece.big { grid-column: span 2; grid-row: auto; }
  .piece.big .shot { aspect-ratio: 16 / 10; }
  .live { grid-template-columns: 1fr; }
  .tubes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; row-gap: 26px; padding-left: 34px; }
  .track::before, .track::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .track::after { transform-origin: center top; transform: scaleY(var(--fill, 1)); }
  .track li { padding: 0; }
  .track li::before { left: -33px; top: 6px; }
}
@media (max-width: 720px) {
  :root { --bar: 54px; }
  .bar { gap: 12px; }
  .brand b { display: none; }
  .sites { padding-left: 12px; }
  .sites a { padding: 0 9px; font-size: 0.76rem; }
  .menu-btn { padding: 0 10px; }
  .menu-btn .label { display: none; }
  .stay, .lang, .onair { padding-inline: 14px; }
  .round-1 { padding-top: 104px; gap: 30px; min-height: 0; }
  /* Sur téléphone, la promesse et le bouton d'abord ; l'écran suit. */
  .pov { width: min(100%, 250px); order: 0; }
  /* Pas de place à côté : le fil passe sous l'écran, qui reprend sa place
     dans le flux. */
  .pov-frame { aspect-ratio: auto; background: none; }
  .pov-media { position: relative; aspect-ratio: 9 / 16; background: #000; }
  .feed { position: static; justify-items: start; margin-top: 12px; }
  .form { grid-template-columns: 1fr; }
  .score thead { display: none; }
  .score, .score tbody, .score tr, .score th, .score td { display: block; width: 100%; }
  .score tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .score th, .score td { border: 0; padding: 4px 0; }
  .score td:last-child { text-align: left; padding: 14px 0 0; }
  .score tr.pick { background: color-mix(in oklab, var(--ally) 8%, transparent); padding-left: 14px; padding-right: 14px; }
  .score tr.pick > *, .score tbody tr:hover > * { background: none; }
  .score tr.pick th { padding-left: 0; }
  .atelier { grid-template-columns: 1fr; }
  .piece.big { grid-column: span 1; }
  .tubes, .clips { grid-template-columns: 1fr; }
  .clips { max-width: 340px; }
  .server { grid-template-columns: 1fr; }
  .consent { grid-template-columns: 1fr; bottom: 54px; }
  .timeline-clip { font-size: 0; padding: 0; }
}
