/* African Fighting Series : maquette du site. Direction « Présence » : noir, blanc, acier.
   Les couleurs nationales n'apparaissent qu'à la sélection d'une nation. */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/BarlowSemiCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --noir: #08080a;
  --charbon: #121316;
  --ardoise: #1c1d21;
  --acier: #8e939b;
  --acier-clair: #c6cad1;
  --blanc: #f4f3ef;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --repere: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --texte: "Inter", system-ui, sans-serif;
  --pente: 0.62;            /* tangente de l'angle des diagonales du sigle */
  --marge: clamp(20px, 4.5vw, 72px);
  --doux: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--noir); }
body { margin: 0; background: var(--noir); color: var(--blanc); font-family: var(--texte); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.charge { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

h1, h2, h3 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; line-height: .88; letter-spacing: -.005em; }
h2 { font-size: clamp(54px, 8.4vw, 148px); }

.repere { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--repere); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--acier-clair); }
.repere span + span { position: relative; }
.repere span + span::before { content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 12px; background: currentColor; transform: translateY(-50%) skewX(-32deg); opacity: .6; }

/* ── Bouton en parallélogramme, taillé à l'angle du sigle ── */
.bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 17px 34px; font-family: var(--titre); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--blanc); isolation: isolate; transition: color .35s var(--doux); }
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid rgba(244,243,239,.55); transform: skewX(-20deg); transition: background .35s var(--doux), border-color .35s var(--doux), transform .35s var(--doux); }
.bouton:hover::before, .bouton:focus-visible::before { background: var(--blanc); border-color: var(--blanc); transform: skewX(-20deg) scaleX(1.04); }
.bouton:hover, .bouton:focus-visible { color: var(--noir); }
.bouton.plein { color: var(--noir); }
.bouton.plein::before { background: var(--blanc); border-color: var(--blanc); }
.bouton.plein:hover::before, .bouton.plein:focus-visible::before { background: transparent; }
.bouton.plein:hover, .bouton.plein:focus-visible { color: var(--blanc); }
.bouton[disabled] { cursor: default; color: var(--acier-clair); }
.bouton[disabled]::before { background: transparent; border-color: rgba(244,243,239,.25); transform: skewX(-20deg); }
:focus-visible { outline: 2px solid var(--blanc); outline-offset: 4px; }

/* ── Rideau d'ouverture ── */
.rideau { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--noir); clip-path: polygon(0 0, 160% 0, 100% 100%, -60% 100%); transition: clip-path .8s var(--doux); }
.rideau img { width: min(46vw, 320px); animation: pouls 1.4s ease-in-out infinite alternate; transition: opacity .4s, transform .9s var(--doux); }
@keyframes pouls { from { opacity: .55; } to { opacity: 1; } }
body:not(.charge) .rideau { clip-path: polygon(160% 0, 160% 0, 100% 100%, 100% 100%); pointer-events: none; }
body:not(.charge) .rideau img { opacity: 0; transform: translateX(18vw); }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--marge); transition: background .4s, padding .4s; }
.nav.dense { background: rgba(8,8,10,.82); backdrop-filter: blur(12px); padding-block: 11px; }
.nav-logo img { height: 30px; width: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-family: var(--repere); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.nav nav a { position: relative; padding: 6px 0; }
.nav nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--blanc); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--doux); }
.nav nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 8px 18px !important; border: 1.5px solid rgba(244,243,239,.6); transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--blanc); color: var(--noir); }

/* ── Hero : épinglé, la caméra plonge vers le ring quand on défile (--q va de 0 à 1) ── */
.hero-piste { position: relative; height: 210svh; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; --q: 0; }
.hero-fond { position: absolute; inset: 0; transform-origin: 75% 33%; transform: scale(calc(1 + var(--q) * var(--q) * 3.4)); will-change: transform; }
.hero-fond video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.12); transition: transform 2.6s var(--doux) .2s; }
body:not(.charge) .hero-fond video { transform: scale(1); }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.9) 0%, rgba(8,8,10,.62) 40%, rgba(8,8,10,.1) 72%), linear-gradient(0deg, rgba(8,8,10,1) 0%, rgba(8,8,10,0) 34%); opacity: calc(1 - var(--q) * 1.6); }
.hero-eclat { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 70% 36%, rgba(255,255,255, calc((var(--q) - .35) * 1.5)) 0%, rgba(255,255,255,0) calc(10% + var(--q) * 60%)), rgba(8,8,10, calc((var(--q) - .72) * 3.6)); }
.hero-contenu, .hero-logo, .defile { opacity: calc(1 - var(--q) * 2.6); }
.hero-contenu { transform: translateY(calc(var(--q) * -70px)); }
.hero-contenu { position: relative; z-index: 1; padding: 120px var(--marge) clamp(110px, 15vh, 170px); max-width: 1100px; }
.hero h1 { font-size: clamp(66px, 11.6vw, 208px); margin: 22px 0 28px; }
.ligne { display: block; overflow: hidden; padding-top: .06em; }
.ligne > span { display: block; transform: translateY(105%) skewY(4deg); transition: transform 1.15s var(--doux); }
.ligne:nth-child(2) > span { transition-delay: .09s; }
.ligne:nth-child(3) > span { transition-delay: .18s; }
body:not(.charge) .ligne > span { transform: none; }
.hero .repere, .hero-texte, .hero-actions { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--doux) .12s, transform .7s var(--doux) .12s; }
body:not(.charge) .hero .repere, body:not(.charge) .hero-texte, body:not(.charge) .hero-actions { opacity: 1; transform: none; }
.hero-texte { max-width: 520px; color: var(--acier-clair); font-size: clamp(16px, 1.25vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; padding-left: 8px; }
.hero-logo { z-index: 1; position: absolute; right: var(--marge); bottom: clamp(110px, 15vh, 170px); width: clamp(120px, 13vw, 210px); }

.defile { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid rgba(244,243,239,.14); padding: 16px 0; background: rgba(8,8,10,.6); }
.defile-piste { display: flex; width: max-content; gap: 44px; font-family: var(--titre); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--acier); animation: defile 46s linear infinite; }
.defile-piste span { display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.defile-piste span::after { content: ""; width: 7px; height: 18px; background: currentColor; transform: skewX(-32deg); opacity: .5; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ── Nations : la carte ── */
.nations { position: relative; height: 100svh; min-height: 720px; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 42% 48%, #16171b 0%, var(--noir) 72%); outline: none; }
.carte-zone { position: absolute; inset: 0; }
#carte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.etiquettes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.etiquette { position: absolute; left: 0; top: 0; font-family: var(--titre); font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.92); text-shadow: 0 1px 5px rgba(0,0,0,.85); transform: translate(-50%, -50%); white-space: nowrap; transition: color .3s, font-size .3s var(--doux), opacity .4s; will-change: transform; }
.etiquette.vif { color: #fff; font-size: 19px; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.etiquette.paris { font-size: 15px; letter-spacing: .22em; color: var(--blanc); }
.etiquette.paris::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 7px; background: var(--blanc); transform: rotate(45deg); box-shadow: 0 0 18px 4px rgba(255,255,255,.55); }

.nations-titre { position: absolute; left: var(--marge); top: clamp(84px, 11vh, 120px); pointer-events: none; }
.nations-titre h2 { font-size: clamp(44px, 5vw, 88px); margin: 16px 0 14px; }
.aide { font-size: 14px; color: var(--acier); max-width: 240px; }

.fiche { position: absolute; right: var(--marge); top: clamp(84px, 11vh, 120px); bottom: 190px; width: min(340px, 30vw); display: flex; flex-direction: column; justify-content: center; z-index: 2; isolation: isolate; }
.fiche::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--marge)) -40px -90px; z-index: -1; background: linear-gradient(90deg, rgba(8,8,10,0) 0%, rgba(8,8,10,.82) 34%, rgba(8,8,10,.92) 100%); pointer-events: none; }
.fiche-num { font-family: var(--repere); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--acier-clair); }
.fiche-invite { margin-top: 14px; font-size: 16px; color: var(--acier-clair); max-width: 270px; }
.fiche-pleine { display: flex; flex-direction: column; gap: 14px; }
.fiche-pleine[hidden] { display: none; }
.fiche h3 { font-size: clamp(40px, 4.4vw, 68px); line-height: .9; overflow-wrap: anywhere; }
.fiche.entre .fiche-pleine > * { animation: monte .7s var(--doux) both; }
.fiche.entre .fiche-pleine > *:nth-child(2) { animation-delay: .04s; }
.fiche.entre .fiche-pleine > *:nth-child(3) { animation-delay: .09s; }
.fiche.entre .fiche-pleine > *:nth-child(4) { animation-delay: .14s; }
.fiche.entre .fiche-pleine > *:nth-child(5) { animation-delay: .19s; }
@keyframes monte { from { opacity: 0; transform: translateY(22px); } }

.portrait { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #000; clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%); }
.portrait-bandes { position: absolute; inset: 0; background: center / cover no-repeat; filter: brightness(.42) saturate(1.1); }
.portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.26) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(0,0,0,.55) 100%); pointer-events: none; }
/* le combattant verrouillé : planche de quatre poses, jouée image par image comme sur une borne */
.sprite { position: absolute; left: 50%; bottom: 0; height: 94%; aspect-ratio: 600 / 700; transform: translateX(-32%); background: 0 0 / 700% 100% no-repeat; image-rendering: pixelated; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: garde .72s steps(4) infinite; filter: drop-shadow(0 0 10px rgba(0,0,0,.65)); }
@keyframes garde { to { background-position: 66.6667% 0; } }   /* sept poses sur la planche : les quatre premières font la garde */
.fiche.entre .sprite { animation: garde .72s steps(4) infinite, surgit .5s steps(5) both; }
@keyframes surgit { 0% { opacity: 0; transform: translateX(-32%) translateY(14%); } 40% { opacity: 1; } 60% { opacity: .2; } 100% { opacity: 1; transform: translateX(-32%); } }
.portrait-verrou { position: absolute; left: 15%; top: 12px; z-index: 1; display: flex; align-items: center; gap: 8px; font-family: var(--repere); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; animation: clignote 1.1s steps(2) infinite; }
.portrait-verrou svg { width: 12px; height: 14px; }
@keyframes clignote { 50% { opacity: .35; } }
.portrait-tag, .portrait-logo { z-index: 1; }
.portrait-tag { position: absolute; left: 14%; bottom: 12px; font-family: var(--titre); font-size: 26px; letter-spacing: .08em; text-transform: uppercase; }
.portrait-logo { position: absolute; right: 14%; bottom: 12px; width: 74px; }

.fiche dl { display: grid; gap: 0; border-top: 1px solid rgba(244,243,239,.16); }
.fiche dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(244,243,239,.16); font-size: 14px; }
.fiche dt { font-family: var(--repere); letter-spacing: .1em; text-transform: uppercase; color: var(--acier); }
.fiche dd { text-align: right; }
.fiche-poignee { display: none; }
.fiche-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 4px 8px 0; }
.fiche-actions #f-versus { grid-column: 1 / -1; }
.fiche .bouton { font-size: 16px; padding: 12px 18px; }
.fiche .bouton[aria-pressed="true"] { color: var(--blanc); }
.fiche .bouton[aria-pressed="true"]::before { background: transparent; }

.grille { position: absolute; left: var(--marge); right: var(--marge); bottom: 26px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px 3px; padding: 0 14px; }
.case { position: relative; height: 62px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--titre); text-transform: uppercase; isolation: isolate; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--doux), transform .6s var(--doux), color .25s; }
.nations.vue .case { opacity: 1; transform: none; transition-delay: calc(var(--i) * 28ms); }
.case::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(28,29,33,.9); border: 1px solid rgba(244,243,239,.14); transform: skewX(-20deg); transition: background .3s, border-color .3s; }
.case::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: -1; background: var(--blanc); transform: skewX(-20deg) scaleX(0); transform-origin: left; transition: transform .45s var(--doux); }
.case img { width: 30px; height: 22px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.22); transition: transform .35s var(--doux); }
.case span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.case b { font-size: 22px; letter-spacing: .06em; line-height: 1; font-weight: 700; }
.case small { font-family: var(--repere); font-size: 10.5px; letter-spacing: .08em; color: var(--acier); line-height: 1.1; text-align: left; transition: color .25s; }
.case:hover::before, .case.survol::before { background: rgba(60,62,68,.92); border-color: rgba(244,243,239,.5); }
.case:hover img, .case.survol img { transform: scale(1.12); }
.case.mienne::before { border-color: rgba(255,255,255,.75); }
.case.mienne b::after { content: " ★"; font-size: .6em; vertical-align: .25em; }
.case.choisie::before { background: var(--blanc); border-color: var(--blanc); }
.case.choisie::after { transform: skewX(-20deg) scaleX(1); background: var(--noir); }
.case.choisie { color: var(--noir); }
.case.choisie small { color: #3a3c41; }
.case.choisie img { transform: scale(1.15); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }

/* sur grand écran, la carte reste épinglée pendant que le défilement fait entrer les seize nations une à une */
.nations-piste { position: relative; }
@media (min-width: 901px) {
  .nations-piste { height: calc(100svh + 16 * 46vh); }
  .nations { position: sticky; top: 0; }
}

/* ── Le duel, en vitrine : l'arène, deux combattants en garde, et les trois façons de jouer ── */
.duel { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: clamp(90px, 12vw, 160px) var(--marge); background: #000; }
.duel-fond { position: absolute; inset: 0; }
.duel-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; }
.duel-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.94) 0%, rgba(8,8,10,.72) 42%, rgba(8,8,10,.05) 78%), linear-gradient(0deg, rgba(8,8,10,.5), rgba(8,8,10,0) 30%, rgba(8,8,10,0) 80%, var(--noir) 100%); }
.duel-ring { position: absolute; right: 4%; bottom: 9%; width: min(46vw, 720px); height: min(34vw, 520px); }
.duel-ring .sprite { height: 100%; filter: drop-shadow(0 18px 14px rgba(0,0,0,.55)); }
.duel-ring #d-sprite-a { left: 22%; }
.duel-ring #d-sprite-b { left: 78%; transform: translateX(-68%) scaleX(-1); animation-delay: -.3s; }
.duel-texte { position: relative; max-width: 620px; }
.duel-texte h2 { margin-top: 18px; }
.duel-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; padding-left: 8px; }
.duel .parrainage-choix button[aria-selected="true"] { box-shadow: 0 0 0 2px #fff; }

/* ── Format : le tableau ── */
.format { position: relative; height: 340vh; }
.format-scene { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; }
.format-ring { position: absolute; inset: 0; display: grid; place-items: center; opacity: calc(.12 + var(--p, 0) * .7); }
.format-ring img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.5 - var(--p, 0) * .5)) rotate(calc((1 - var(--p, 0)) * -8deg)); will-change: transform; }
.format-ring::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 50%, rgba(8,8,10,0) 0%, rgba(8,8,10,.9) 100%); }
.format-titre { position: absolute; left: var(--marge); top: clamp(84px, 11vh, 120px); z-index: 2; }
.format-titre h2 { font-size: clamp(44px, 5vw, 88px); margin-top: 16px; }
.format-titre .bouton { margin: 22px 0 0 8px; font-size: 17px; padding: 12px 24px; }
.tirage-note { margin-top: 12px; font-size: 12.5px; color: var(--acier); max-width: 250px; opacity: 0; transition: opacity .4s; }
.tirage-note.vu { opacity: 1; }
.tableau image { opacity: 0; transition: opacity .35s; cursor: pointer; }
.tableau image.pose { opacity: 1; }
.tableau .cadre { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.2; }
.tableau .cadre.mienne { stroke: #fff; stroke-width: 4; }
.tableau { position: absolute; inset: 27% 3% 18%; width: 94%; height: 55%; }
.tableau .trait { fill: none; stroke: var(--blanc); stroke-width: 2; stroke-linecap: square; }
.tableau .emplacement { fill: rgba(18,19,22,.82); stroke: rgba(244,243,239,.4); stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.tableau .emplacement.plein { fill: var(--blanc); stroke: var(--blanc); }
.compteur { position: absolute; left: 50%; top: 54.5%; transform: translate(-50%, -50%); text-align: center; z-index: 2; pointer-events: none; }
.compteur-chiffre { display: block; font-family: var(--titre); font-size: clamp(110px, 17vw, 280px); line-height: .8; text-shadow: 0 6px 60px rgba(0,0,0,.85); }
.compteur-chiffre.bascule { animation: bascule .55s var(--doux); }
@keyframes bascule { from { opacity: 0; transform: scale(1.5) skewX(-12deg); filter: blur(10px); } }
.compteur-tour { display: block; margin-top: 16px; font-family: var(--repere); font-size: clamp(14px, 1.3vw, 19px); letter-spacing: .2em; text-transform: uppercase; }
.faits { position: absolute; left: var(--marge); right: var(--marge); bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; z-index: 2; }
.faits li { border-top: 1.5px solid rgba(244,243,239,.3); padding-top: 12px; }
.faits strong { display: block; font-family: var(--titre); font-size: clamp(24px, 2.7vw, 44px); text-transform: uppercase; line-height: 1; }
.faits span { font-size: 13px; color: var(--acier-clair); }

/* le final du tableau : les seize drapeaux convergent vers le champion, le ring s'embrase */
.convergence { position: absolute; left: 50%; top: 54.5%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.convergence img { position: absolute; width: 56px; height: 40px; margin: -20px 0 0 -28px; object-fit: cover; opacity: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.format-scene.final .convergence img { animation: converge 1.15s var(--doux) both; animation-delay: calc(var(--i) * 34ms); }
@keyframes converge { 0% { opacity: 0; transform: rotate(var(--ang)) translateX(62vmin) rotate(calc(-1 * var(--ang))); } 22% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--ang)) translateX(0) rotate(calc(-1 * var(--ang))) scale(.25); } }
.format-ring::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 54%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%); opacity: 0; pointer-events: none; }
.format-scene.final .format-ring::before { animation: embrase 1.5s ease-out both; }
@keyframes embrase { 0% { opacity: 0; } 55% { opacity: 0; } 68% { opacity: .9; } 100% { opacity: 0; } }

/* ── Versus : deux nations face à face, affiche imaginaire à partager ── */
.versus { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--noir); }
.versus[hidden] { display: none; }
.versus-fermer { position: absolute; right: var(--marge); top: 18px; z-index: 3; padding: 8px 16px; border: 1.5px solid rgba(244,243,239,.6); font-family: var(--repere); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.versus-scene { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.versus-cote { position: absolute; inset: 0; overflow: hidden; }
.versus-cote.gauche { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); animation: entre-g .7s var(--doux) both; }
.versus-cote.droite { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); animation: entre-d .7s var(--doux) both; }
@keyframes entre-g { from { transform: translateX(-60%); } }
@keyframes entre-d { from { transform: translateX(60%); } }
.versus-fond { position: absolute; inset: 0; background: center / cover no-repeat; filter: brightness(.42) saturate(1.1); }
.versus-cote::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.26) 0 2px, transparent 2px 4px), linear-gradient(0deg, rgba(8,8,10,.9), rgba(8,8,10,0) 45%); pointer-events: none; }
.versus .sprite { height: min(74%, 74vw); bottom: 13%; z-index: 1; }
.versus-cote.gauche .sprite { left: 25%; }
.versus-cote.droite .sprite { left: 75%; transform: translateX(-68%) scaleX(-1); }
.versus-cote p { position: absolute; bottom: 4%; z-index: 2; margin: 0; font-family: var(--titre); text-transform: uppercase; line-height: .9; font-size: clamp(34px, 6.4vw, 110px); }
.versus-cote.gauche p { left: var(--marge); }
.versus-cote.droite p { right: var(--marge); text-align: right; }
.versus-vs { position: absolute; left: 50%; top: 46%; z-index: 2; transform: translate(-50%, -50%) skewX(-12deg); font-family: var(--titre); font-size: clamp(90px, 17vw, 260px); line-height: .8; text-shadow: 0 6px 50px rgba(0,0,0,.9); animation: frappe-vs .5s var(--doux) .35s both; }
@keyframes frappe-vs { from { opacity: 0; transform: translate(-50%, -50%) skewX(-12deg) scale(2.6); } }
.versus-bas { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 26px; padding: 16px var(--marge) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(244,243,239,.16); }
.versus-bas .note { grid-column: 1 / -1; }
.versus-choix { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.versus-choix::-webkit-scrollbar { display: none; }
.versus-choix button { flex: 0 0 46px; height: 33px; padding: 0; opacity: .5; box-shadow: 0 0 0 1px rgba(255,255,255,.25); transition: opacity .25s, transform .3s var(--doux); }
.versus-choix button img { width: 100%; height: 100%; object-fit: cover; }
.versus-choix button[aria-selected="true"] { opacity: 1; transform: scale(1.14); box-shadow: 0 0 0 2px #fff; }
.versus-choix button[disabled] { opacity: .15; }

/* ── Le duel : un écran d'arcade, agrandi sans lissage ── */
.jeu { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #000; padding: 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.jeu[hidden] { display: none; }
.jeu-ecran { position: relative; width: min(100%, calc((100svh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: #000; box-shadow: 0 0 0 2px rgba(244,243,239,.2); container-type: inline-size; }
#jeu-toile { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.jeu-hud { position: absolute; left: 3%; right: 3%; top: 4%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.5cqw; align-items: start; font-family: var(--titre); text-transform: uppercase; }
.jeu-barre span { display: flex; align-items: center; gap: 1.2cqw; font-size: 3.1cqw; line-height: 1; margin-bottom: .8cqw; text-shadow: 0 2px 0 #000; }
.jeu-barre.droite span { justify-content: flex-end; }
.jeu-barre img { width: 4.2cqw; height: 3cqw; object-fit: cover; box-shadow: 0 0 0 1px #000; }
.jeu-barre i { display: block; height: 2.6cqw; background: #7c0f17; border: .45cqw solid #f4f3ef; box-shadow: 0 0 0 .3cqw #000; }
.jeu-barre em { display: block; width: 62%; height: 1.2cqw; margin-top: .7cqw; background: rgba(0,0,0,.6); box-shadow: 0 0 0 .25cqw #000; }
.jeu-barre.droite em { margin-left: auto; }
.jeu-barre em u { background: #6fd3ff; transition: transform .2s; }
.jeu-barre em.pleine u { background: #fff; animation: clignote .35s steps(2) infinite; }
.jeu-barre u { display: block; height: 100%; background: linear-gradient(180deg, #ffe86a, #f5b400); transform-origin: left; transition: transform .18s ease-out; }
.jeu-barre.droite u { transform-origin: right; }
#j-temps { font-size: 7cqw; line-height: .8; text-shadow: 0 .4cqw 0 #000; min-width: 9cqw; text-align: center; }
.jeu-annonce { position: absolute; left: 0; right: 0; top: 36%; margin: 0; text-align: center; font-family: var(--titre); text-transform: uppercase; font-size: 15cqw; line-height: .9; color: #fff; text-shadow: 0 .7cqw 0 #000, 0 0 6cqw rgba(0,0,0,.7); transform: skewX(-10deg); opacity: 0; pointer-events: none; }
.jeu-annonce.vu { opacity: 1; animation: annonce .45s var(--doux) both; }
@keyframes annonce { from { opacity: 0; transform: skewX(-10deg) scale(2.4); } }
.jeu-fin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; background: rgba(8,8,10,.78); text-align: center; padding: 4%; animation: monte .5s var(--doux) both; }
.jeu-fin[hidden] { display: none; }
.jeu-fin p { margin: 0; font-family: var(--titre); text-transform: uppercase; font-size: 8cqw; line-height: .95; }
.jeu-fin small { font-size: max(11px, 1.9cqw); color: var(--acier-clair); }
.jeu-fin div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 1.4cqw; }
.jeu-manettes { display: none; width: 100%; max-width: 620px; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
.jeu-manettes button { display: grid; place-items: center; padding: 0; color: var(--blanc); font-family: var(--titre); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #2b2d33, #17181c); border: 2px solid rgba(244,243,239,.6); box-shadow: 0 5px 0 #000, inset 0 1px 0 rgba(255,255,255,.18); touch-action: none; -webkit-tap-highlight-color: transparent; transition: transform .06s, background .06s; }
.jeu-manettes button.enfonce { background: var(--blanc); color: var(--noir); transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.jeu-croix { display: flex; gap: 12px; }
.jeu-croix button { width: 76px; height: 76px; border-radius: 18px; }
.jeu-croix svg { width: 34px; height: 34px; fill: currentColor; }
/* les trois gestes en arc, sous le pouce droit : le pied en haut, le poing au milieu, la garde en bas */
.jeu-actions { display: grid; grid-template-columns: repeat(3, 62px); grid-template-rows: 40px 40px 40px 40px; }
.jeu-actions button { width: 80px; height: 80px; border-radius: 50%; }
.jeu-actions .b-pied { grid-column: 2 / 4; grid-row: 1 / 3; justify-self: end; }
.jeu-actions .b-poing { grid-column: 1 / 3; grid-row: 2 / 4; justify-self: start; }
.jeu-actions .b-garde { grid-column: 2 / 4; grid-row: 3 / 5; justify-self: end; width: 72px; height: 72px; align-self: end; font-size: 15px; }
.jeu-conseil { display: none; margin: 0; padding: 0 16px; text-align: center; font-size: 12px; line-height: 1.4; color: var(--acier); }
.jeu-aide { margin: 0; max-width: 760px; text-align: center; font-size: 13px; color: var(--acier); }
.jeu-aide.duo, .jeu.duo .jeu-aide.solo { display: none; }
.jeu.duo .jeu-aide.duo { display: block; }
.jeu-special { display: none; width: 100%; max-width: 560px; padding: 9px; border: 2px solid rgba(244,243,239,.25); font-family: var(--titre); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,243,239,.35); touch-action: none; }
.jeu-special.pret { color: var(--noir); background: #fff; border-color: #fff; animation: clignote .5s steps(2) infinite; }
.jeu-fin #j-sous { font-size: max(13px, 2.4cqw); color: var(--blanc); }
@media (pointer: coarse) {
  .jeu-manettes { display: flex; } .jeu-special { display: block; } .jeu .jeu-aide { display: none !important; } #d-duo { display: none; }
  .jeu { background: radial-gradient(ellipse 120% 60% at 50% 100%, #1b1c21 0%, #000 70%); }
}
/* téléphone tenu debout : le ring en 4:3 pour des combattants plus grands, les manettes en bas sous les pouces */
@media (pointer: coarse) and (orientation: portrait) {
  .jeu { justify-content: flex-start; gap: 12px; padding: calc(58px + env(safe-area-inset-top)) 0 0; }
  .jeu-ecran { width: 100%; aspect-ratio: 4 / 3; box-shadow: 0 1px 0 rgba(244,243,239,.2), 0 -1px 0 rgba(244,243,239,.2); }
  .jeu-special { width: calc(100% - 20px); }
  .jeu-conseil { display: block; }
  .jeu-manettes { margin-top: auto; }
}
/* téléphone couché : le ring prend tout l'écran, les manettes flottent par-dessus dans les coins */
@media (pointer: coarse) and (orientation: landscape) {
  .jeu { padding: 0; gap: 0; justify-content: center; }
  .jeu-ecran { width: min(100%, calc(100svh * 16 / 9)); }
  .jeu-manettes { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; padding: 0 calc(14px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); pointer-events: none; }
  .jeu-manettes > div { pointer-events: auto; }
  .jeu-manettes button { background: rgba(23,24,28,.72); }
  .jeu-croix button { width: 68px; height: 68px; }
  .jeu-actions { grid-template-columns: repeat(3, 54px); grid-template-rows: 34px 34px 34px 34px; }
  .jeu-actions button { width: 70px; height: 70px; }
  .jeu-actions .b-garde { width: 62px; height: 62px; }
  .jeu-special { position: absolute; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); width: 190px; transform: translateX(-50%); background: rgba(8,8,10,.6); z-index: 2; }
  .jeu .versus-fermer { top: 8px; right: calc(10px + env(safe-area-inset-right)); padding: 5px 12px; font-size: 12px; background: rgba(8,8,10,.6); }
}
.versus-actions { display: flex; flex-wrap: wrap; gap: 12px 26px; padding-left: 8px; }

.partenaires { position: relative; padding: clamp(90px, 13vw, 190px) var(--marge); }
.entete h2 { margin: 18px 0 0; }

/* la carte de secours, quand le téléphone ne sait pas afficher la 3D : le continent à plat et seize drapeaux */
.secours { position: absolute; inset: 0; }
.secours svg { position: absolute; left: 50%; top: 50%; height: min(78%, 120vw); transform: translate(-50%, -50%); overflow: visible; }
.secours path { fill: #24262b; }
.secours .fr { fill: #4a4d55; }
.secours button { position: absolute; width: 34px; height: 25px; padding: 0; margin: -12px 0 0 -17px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.6); transition: transform .3s var(--doux); }
.secours button img { width: 100%; height: 100%; object-fit: cover; }
.secours button.choisie { transform: scale(1.7); z-index: 2; box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0,0,0,.7); }

.evitement { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--blanc); color: var(--noir); font-family: var(--repere); letter-spacing: .08em; text-transform: uppercase; transition: top .2s; }
.evitement:focus { top: 12px; }
.pied-bas a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Partenaires ── */
.partenaires { overflow: hidden; background: var(--noir); clip-path: polygon(0 clamp(30px, 6vw, 110px), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * clamp(30px, 6vw, 110px)); padding-top: calc(clamp(90px, 13vw, 190px) + clamp(30px, 6vw, 110px)); }
.partenaires-fond { position: absolute; inset: 0; opacity: .22; }
.partenaires-fond img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.partenaires-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--noir) 0%, rgba(8,8,10,.4) 45%, var(--noir) 100%); }
.partenaires > *:not(.partenaires-fond) { position: relative; }
.chapo { margin-top: 28px; max-width: 620px; font-size: clamp(17px, 1.4vw, 21px); color: var(--acier-clair); }
.temps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 90px); }
.temps article { border-top: 2px solid var(--blanc); padding-top: 20px; }
.temps h3 { font-size: clamp(44px, 5.4vw, 92px); }
.temps p { margin-top: 14px; color: var(--acier-clair); max-width: 360px; }
.vitrine { margin-top: clamp(64px, 8vw, 130px); }
.vitrine h3, .parrainage h3 { font-size: clamp(40px, 5vw, 84px); }
.vitrine-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-top: 34px; }
.vitrine figure { position: relative; margin: 0; overflow: hidden; background: #000; min-height: 220px; }
.vitrine figure:first-child { grid-row: span 2; }
.vitrine figure:last-child { grid-column: span 2; }
.vitrine img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--doux); }
.vitrine figure:hover img { transform: scale(1.06); }
.vitrine figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 20px 16px; background: linear-gradient(0deg, rgba(8,8,10,.92), rgba(8,8,10,0)); font-size: 14px; color: var(--acier-clair); }
.vitrine figcaption b { display: block; font-family: var(--titre); font-size: 24px; letter-spacing: .03em; text-transform: uppercase; color: var(--blanc); font-weight: 700; }
.vitrine .note { margin-top: 14px; }

.parrainage { display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: clamp(30px, 6vw, 90px); align-items: center; margin-top: clamp(64px, 8vw, 130px); }
.parrainage p { margin-top: 18px; max-width: 480px; color: var(--acier-clair); }
.parrainage-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 470px; }
.parrainage-choix button { width: 48px; height: 35px; padding: 0; opacity: .5; box-shadow: 0 0 0 1px rgba(255,255,255,.25); transition: opacity .25s, transform .3s var(--doux), box-shadow .25s; }
.parrainage-choix button img { width: 100%; height: 100%; object-fit: cover; }
.parrainage-choix button:hover { opacity: 1; transform: translateY(-3px); }
.parrainage-choix button[aria-selected="true"] { opacity: 1; transform: translateY(-3px) scale(1.12); box-shadow: 0 0 0 2px #fff; }
.plaque { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
.plaque-fond { position: absolute; inset: 0; background: center / cover no-repeat; filter: brightness(.4) saturate(1.1); transition: background-image .3s; }
.plaque::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.26) 0 2px, transparent 2px 4px), linear-gradient(0deg, rgba(8,8,10,.95) 0%, rgba(8,8,10,0) 55%); pointer-events: none; }
.plaque .sprite { height: 62%; bottom: 26%; }
.plaque-texte { position: absolute; left: 14%; right: 14%; bottom: 22px; z-index: 1; display: grid; gap: 4px; padding-right: 96px; }
.plaque-marque { justify-self: start; padding: 6px 14px; border: 1.5px dashed rgba(255,255,255,.7); font-family: var(--repere); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.plaque-role { font-family: var(--titre); font-size: clamp(22px, 2.2vw, 32px); line-height: 1; text-transform: uppercase; margin-top: 8px; }
.plaque-texte img { position: absolute; right: 0; bottom: 0; width: 84px; }
.formes { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: clamp(40px, 5vw, 72px); padding-left: 10px; }
.formes li { position: relative; padding: 11px 26px; font-family: var(--titre); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; isolation: isolate; }
.formes li::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid rgba(244,243,239,.4); background: rgba(18,19,22,.6); transform: skewX(-20deg); }
.partenaires-action { margin-top: 44px; padding-left: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.note { font-size: 13px; color: var(--acier); }

/* ── Pied ── */
.pied { padding: 70px var(--marge) 34px; border-top: 1px solid rgba(244,243,239,.14); }
.pied img { width: 150px; }
.pied p { margin-top: 24px; max-width: 520px; font-size: 14px; color: var(--acier-clair); }
.pied-bas { display: flex; flex-wrap: wrap; gap: 6px 26px; max-width: none !important; margin-top: 46px !important; font-family: var(--repere); letter-spacing: .12em; text-transform: uppercase; font-size: 12px !important; color: var(--acier) !important; }

/* ── Apparitions au défilement ── */
.apparait { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--doux), transform 1s var(--doux); }
.apparait.vu { opacity: 1; transform: none; }
.temps .apparait:nth-child(2), .vitrine-grille .apparait:nth-child(2) { transition-delay: .09s; }
.temps .apparait:nth-child(3), .vitrine-grille .apparait:nth-child(3) { transition-delay: .18s; }
.vitrine-grille .apparait:nth-child(4) { transition-delay: .27s; }

/* ── Téléphone : la même expérience épinglée, pensée pour le pouce ── */
@media (max-width: 900px) {
  .nav { padding-block: 12px; }
  .nav.dense { background: rgba(8,8,10,.94); backdrop-filter: none; }   /* un flou au-dessus de la carte 3D fait saccader le défilement */
  .nav nav a:not(.nav-cta) { display: none; }
    .hero-logo { display: none; }
  .hero-contenu { padding-bottom: 96px; }
  .hero h1 { font-size: clamp(58px, 17.5vw, 120px); }
  .hero-voile { background: linear-gradient(0deg, rgba(8,8,10,1) 4%, rgba(8,8,10,.6) 55%, rgba(8,8,10,.3) 100%); }
  .hero-fond { transform-origin: 84% 36%; }
  .hero-eclat { background: radial-gradient(circle at 80% 38%, rgba(255,255,255, calc((var(--q) - .35) * 1.5)) 0%, rgba(255,255,255,0) calc(10% + var(--q) * 60%)), rgba(8,8,10, calc((var(--q) - .72) * 3.6)); }
  .hero-actions { gap: 12px; }
  .hero-actions .bouton { flex: 1 1 100%; }

  /* nations : la carte plein écran, le ruban des drapeaux, la fiche en tiroir bas */
  .nations-piste { height: calc(100svh + 16 * 44svh); }
  .nations { position: sticky; top: 0; height: 100svh; min-height: 560px; }
  .nations-titre { top: 66px; }
  .nations-titre .repere { font-size: 12px; }
  .nations-titre h2 { font-size: clamp(34px, 10vw, 52px); margin: 8px 0 0; }
  .aide { display: none; }
  .etiquette { display: none; }
  .etiquette.paris { display: block; font-size: 12px; }
  .grille { left: 0; right: 0; bottom: calc(246px + env(safe-area-inset-bottom)); display: flex; gap: 4px; padding: 0 calc(50% - 46px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
  .grille::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 92px; height: 46px; padding: 0 8px; gap: 7px; scroll-snap-align: center; transition: opacity .3s, transform .35s var(--doux); opacity: .55 !important; }
  .case.choisie { opacity: 1 !important; transform: scale(1.12) !important; }
  .case img { width: 24px; height: 17px; }
  .case b { font-size: 18px; }
  .case small { display: none; }
  .fiche::before { display: none; }
  .fiche { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: calc(236px + env(safe-area-inset-bottom)); padding: 22px var(--marge) calc(12px + env(safe-area-inset-bottom)); transition: height .5s var(--doux); justify-content: flex-start; background: linear-gradient(180deg, #131417, #08080a); border-top: 1px solid rgba(244,243,239,.16); }
  .fiche-vide { margin: auto 0; }
  .fiche-invite { max-width: none; font-size: 15px; }
  .fiche-pleine { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px; row-gap: 2px; height: 100%; }
  .fiche-pleine .portrait { grid-column: 1; grid-row: 1 / 4; aspect-ratio: auto; height: 100px; align-self: start; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }   /* hauteur fixe : il ne s'étire pas pendant que le tiroir se referme */
  .portrait-tag, .portrait-verrou, .portrait-logo { display: none; }
  .portrait .sprite { height: 98%; }
  .fiche-pleine .fiche-num { grid-column: 2; font-size: 12px; }
  .fiche h3 { grid-column: 2; font-size: clamp(30px, 9.5vw, 44px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fiche dl { grid-column: 2; align-self: start; border: 0; }
  .fiche dl > div { display: none; padding: 2px 0; border: 0; font-size: 13px; justify-content: flex-start; }
  .fiche dl > div:last-child { display: flex; }
  .fiche-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 8px 6px 0; }
  .fiche-poignee { display: block; position: absolute; left: 0; right: 0; top: -10px; height: 38px; touch-action: none; }
  .fiche-poignee::before { content: ""; position: absolute; left: 50%; top: 19px; width: 44px; height: 4px; margin-left: -22px; background: rgba(244,243,239,.45); transform: skewX(-32deg); }
  /* le tiroir tiré : la fiche entière */
  .fiche.ouverte { height: min(80svh, 640px); }
  .fiche.ouverte .fiche-pleine { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto auto; row-gap: 8px; }
  .fiche.ouverte .fiche-pleine .portrait { grid-column: 1; grid-row: 3; height: 100%; align-self: stretch; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
  .fiche.ouverte .fiche-pleine .fiche-num, .fiche.ouverte h3, .fiche.ouverte dl { grid-column: 1; }
  .fiche.ouverte .portrait-tag, .fiche.ouverte .portrait-verrou { display: flex; }
  .fiche.ouverte .portrait-logo { display: block; }
  .fiche.ouverte dl { border-top: 1px solid rgba(244,243,239,.16); }
  .fiche.ouverte dl > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(244,243,239,.16); }
  .nations-titre h2 { transition: opacity .4s; }
  .nations.a-choisi .nations-titre h2 { opacity: 0; }
  .versus-cote p { max-width: 44vw; font-size: clamp(22px, 7.4vw, 44px); overflow-wrap: anywhere; }
  .versus-bas { grid-template-columns: 1fr; }
  .versus-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 6px; }
  .versus-actions #v-combat { grid-column: 1 / -1; }
  .duel { align-items: flex-start; padding-top: 96px; padding-bottom: 46vw; }
  .duel-fond::after { background: linear-gradient(180deg, rgba(8,8,10,.95) 0%, rgba(8,8,10,.8) 55%, rgba(8,8,10,.05) 82%); }
  .duel-ring { right: 0; left: 0; bottom: 3%; width: 100%; height: 50vw; }
  .duel-actions .bouton { flex: 1 1 100%; }
  .duel .parrainage-choix button { width: calc((100% - 49px) / 8); height: auto; aspect-ratio: 4 / 3; }
  .versus-actions .bouton { font-size: 15px; padding: 13px 6px; }
  .versus .sprite { bottom: 20%; }
  .versus-cote.gauche .sprite { left: 22%; }
  .versus-cote.droite .sprite { left: 78%; }
  .convergence { top: 58%; }
  .fiche .bouton { font-size: 13.5px; padding: 11px 6px; letter-spacing: .02em; }

  /* format : le tableau est redessiné en hauteur, le compteur monte à droite du titre */
  .format { height: 300svh; }
  .format-titre { top: 66px; }
  .format-titre h2 { font-size: clamp(34px, 10vw, 52px); margin-top: 8px; }
  .format-titre .bouton { margin: 12px 0 0 6px; font-size: 14px; padding: 9px 16px; }
  .tirage-note { font-size: 11px; max-width: 250px; margin-top: 6px; }
  .compteur { left: auto; right: var(--marge); top: 70px; transform: none; text-align: right; }
  .compteur-chiffre { font-size: clamp(84px, 27vw, 130px); }
  .compteur-tour { margin-top: 6px; font-size: 11px; letter-spacing: .12em; }
  .tableau { inset: auto 2% 86px; top: auto; width: 96%; height: calc(100svh - 300px); }
  .tableau .trait { stroke-width: 2.4; }
  .faits { grid-template-columns: repeat(4, 1fr); gap: 8px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .faits li { padding-top: 8px; }
  .faits strong { font-size: clamp(15px, 4.6vw, 22px); }
  .faits span { display: none; }

  /* avant le ring, vitrine : des rubans qu'on fait glisser du pouce */
  .vitrine-grille { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 var(--marge) 6px; scroll-padding-inline: var(--marge); }
  .vitrine-grille::-webkit-scrollbar { display: none; }
  .vitrine-grille { margin-inline: calc(-1 * var(--marge)); }
  .vitrine figure { flex: 0 0 82vw; height: 62vw; min-height: 0; scroll-snap-align: start; }
  .vitrine h3, .parrainage h3 { font-size: clamp(38px, 11vw, 64px); }
  .parrainage { grid-template-columns: 1fr; }
  .parrainage-choix { gap: 7px; }
  .parrainage-choix button { width: calc((100% - 49px) / 8); height: auto; aspect-ratio: 4 / 3; }
  .plaque { max-width: 420px; }
  .temps { grid-template-columns: 1fr; }
  .formes li { font-size: 16px; padding: 9px 18px; }
  .partenaires-action .bouton { width: 100%; }
  h2 { font-size: clamp(46px, 13vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sprite, .portrait-verrou { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .defile-piste { animation: none; }
}
