/* Vasco, direction artistique unique (3 oct. 2026).
   Une seule feuille pour tout le site : deux polices (Archivo, DM Sans), une palette, les mêmes
   boutons, cartes et fiches partout. L'accueil s'ouvre en Scarface (noir, crème, rouge), puis passe
   en univers « gaming » sombre et net (lueurs aux couleurs de chaque jeu, aucun flou). Chaque monde
   (cinéma, jeux, atelier) garde ces bases et change seulement d'ambiance (body[data-world]). */

:root {
  --noir: #0b0b0c;
  --noir-2: #131315;
  --noir-3: #1b1b1f;
  --ligne: rgba(242, 236, 224, .12);
  --ligne-2: rgba(242, 236, 224, .24);
  --creme: #f2ece0;
  --papier: #ebe5d8;
  --gris: #a8a296;
  --gris-2: #77726a;
  --rouge: #e1262f;
  --rouge-2: #b81d25;
  --c: var(--rouge);
  --accent: var(--rouge);
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --texte: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tete: 64px;
  --large: min(1320px, calc(100% - 64px));
  color-scheme: dark;
}

/* Curseur (4 oct. 2026) : un point qui suit la souris sans délai et un cercle qui le rattrape en douceur.
   Le cercle change selon ce qu'il survole : il se remplit sur les liens, devient une pastille à la couleur
   du jeu ou du film avec un mot (« Jouer », « Voir »), une barre dans les champs, un « Tourner » sur la
   cassette. Aucun halo. Seulement avec une vraie souris ; au doigt, rien ne change. Réglé par vasco.js. */
html.curseur-actif, html.curseur-actif * { cursor: none !important; }
.curseur-point, .curseur-anneau { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .25s; }
html.curseur-visible .curseur-point, html.curseur-visible .curseur-anneau { opacity: 1; }
.curseur-point { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .25s, transform .08s linear; }
.curseur-anneau { width: var(--w, 38px); height: var(--h, 38px); margin: calc(var(--h, 38px) / -2) 0 0 calc(var(--w, 38px) / -2); mix-blend-mode: difference; transition: opacity .25s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); }
.curseur-anneau[data-etat="carte"] { mix-blend-mode: normal; }
.curseur-forme { position: absolute; inset: 0; display: grid; place-items: center; border: 1.5px solid #fff; border-radius: 50%; transition: transform .35s var(--ease), background .25s, border-color .25s, border-radius .3s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.curseur-mot { position: absolute; left: 50%; top: 50%; transform: translate(-6px, -6px) scale(.6); font: 700 11px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--noir); opacity: 0; white-space: nowrap; transition: opacity .2s, transform .35s var(--ease); }
/* sur ce qui se clique : le cercle grossit et se remplit (inverse ce qu'il y a dessous) */
.curseur-anneau[data-etat="lien"] .curseur-forme { transform: scale(1.5); background: #fff; }
html[data-curseur="lien"] .curseur-point { opacity: 0; }
/* sur une carte : pastille à la couleur de l'œuvre, avec un mot */
.curseur-anneau[data-etat="carte"] .curseur-forme { transform: scale(1.15); border-width: 2px; border-color: var(--cc, #fff); }
.curseur-anneau[data-etat="carte"] .curseur-mot { left: calc(100% + 4px); top: calc(100% + 2px); padding: 6px 9px; border-radius: 8px; background: var(--cc, #fff); opacity: 1; transform: none; box-shadow: 0 8px 20px -10px #000; }
html[data-curseur="carte"] .curseur-point { background: var(--cc-point, #fff); }
/* sur un bouton : un cadre arrondi qui épouse sa forme */
.curseur-anneau[data-etat="cadre"] .curseur-forme { border-radius: var(--r, 12px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .9); }
html[data-curseur="cadre"] .curseur-point { opacity: 0; }
.curseur-anneau[data-etat="cadre"].presse .curseur-forme { transform: scale(.94); }
/* dans un champ : une barre */
.curseur-anneau[data-etat="texte"] .curseur-forme { transform: scaleX(.08) scaleY(.7); background: #fff; border-radius: 2px; }
html[data-curseur="texte"] .curseur-point { opacity: 0; }
/* clic : le cercle se resserre */
.curseur-anneau.presse .curseur-forme { transform: scale(.75); }
.curseur-anneau[data-etat="lien"].presse .curseur-forme { transform: scale(1.25); }
.curseur-onde { position: fixed; z-index: 2147482999; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; animation: onde .55s var(--ease) forwards; }
@keyframes onde { to { transform: scale(2.4); opacity: 0; } }

/* Bases */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--tete) + 16px); }
body { margin: 0; background: var(--noir); color: var(--creme); font: 400 16px/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--rouge); color: var(--creme); }
:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }
.enveloppe { width: var(--large); margin-inline: auto; }
.cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.passer { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--creme); color: var(--noir); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.passer:focus { top: 12px; }

/* Typographie : Archivo pour les titres et les chiffres, DM Sans pour le reste */
.k { font: 600 12px/1.3 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.k b { color: var(--accent); font-weight: 600; }
.titre { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(40px, 5.4vw, 84px); line-height: .94; letter-spacing: -.02em; text-transform: uppercase; }
.titre em { font-style: normal; color: var(--accent); }
.chiffre { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; line-height: .9; }
.chapo { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--gris); max-width: 52ch; }
.ico { display: none; }
@supports ((-webkit-mask: none) or (mask: none)) {
  .ico { display: inline-block; width: .8em; height: .8em; margin-left: .45em; vertical-align: -.04em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform .3s var(--ease); }
  .ico-solo { margin-left: 0; }
  .ico-out { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 2.5h9v9M13.5 2.5 2.5 13.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E"); }
  .ico-down { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v12M2.5 8.5 8 14l5.5-5.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E"); }
  .ico-droite { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8h12M8.5 2.5 14 8l-5.5 5.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E"); }
}

/* En-tête (4 oct. 2026) : une barre flottante. Un repère glisse sous le lien survolé, les mots roulent
   au survol, langue en interrupteur à deux positions, bouton des mondes avec une flèche qui repart.
   Se range quand on descend, revient quand on remonte. Barre d'expérience = défilement. */
.tete { position: fixed; inset: 12px 0 auto; z-index: 50; height: var(--tete); pointer-events: none; transition: transform .45s var(--ease); }
.tete.rangee { transform: translateY(calc(-100% - 16px)); }
.tete-in { position: relative; pointer-events: auto; width: var(--large); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 18px; padding: 0 10px 0 20px; background: rgba(16, 16, 18, .94); border: 1px solid var(--ligne-2); border-radius: 16px; box-shadow: 0 18px 40px -24px #000; }
.marque { font: 800 21px/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.marque small { font: 600 10px/1.2 var(--texte); letter-spacing: .14em; color: var(--gris); text-transform: uppercase; }
.marque:hover { color: var(--accent); }
.nav { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 12px; background: rgba(242, 236, 224, .04); }
.nav-repere { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--creme); opacity: 0; transition: left .45s cubic-bezier(.3, 1.4, .5, 1), width .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.nav a { position: relative; z-index: 1; display: block; padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--gris); overflow: hidden; transition: color .3s; }
.nav a[aria-current] { color: var(--creme); }
.nav a[aria-current]::before { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav a.survol { color: var(--noir); }
.roule { position: relative; display: block; overflow: hidden; height: 1.35em; line-height: 1.35em; }
.roule > span { display: block; transition: transform .45s var(--ease); }
.nav a:hover .roule > span, .nav a:focus-visible .roule > span { transform: translateY(-100%); }
.tete .lang-switch { position: relative; gap: 0; padding: 3px; border-radius: 11px; background: rgba(242, 236, 224, .06); border: 1px solid var(--ligne); }
.tete .lang-switch button { position: relative; z-index: 1; opacity: 1; color: var(--gris); padding: 6px 9px; border: 0; border-radius: 8px; font-size: 11px; transition: color .3s, background .3s; }
.tete .lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--creme); }
.tete .lang-switch button:not([aria-pressed="true"]):hover { color: var(--creme); }
.btn-mondes { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 11px; background: var(--creme); color: var(--noir); font: 700 12px/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn-mondes .fleche { position: relative; width: 28px; height: 28px; border-radius: 8px; background: var(--noir); color: var(--creme); overflow: hidden; }
.btn-mondes .fleche::before, .btn-mondes .fleche::after { content: ''; position: absolute; inset: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4 12.5 8l-4 4' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4 12.5 8l-4 4' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .45s var(--ease); }
.btn-mondes .fleche::after { transform: translateX(-120%); }
.btn-mondes:hover .fleche::before { transform: translateX(120%); }
.btn-mondes:hover .fleche::after { transform: none; }
.btn-mondes:hover { background: var(--accent); color: var(--creme); }
.btn-mondes:hover .fleche { background: var(--creme); color: var(--accent); }
.xp { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; }
.xp span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.xp i { display: none; }

/* Menu sur téléphone : le bouton ouvre la navigation sous l’en-tête */
.menu { display: none; width: 40px; height: 40px; border: 1px solid var(--ligne-2); place-items: center; transition: background .25s, color .25s; }
.menu svg { width: 18px; height: 18px; stroke: currentColor; }
.menu .b2 { transition: opacity .2s; }
.tete.ouverte .menu { background: var(--creme); color: var(--noir); }
.tete.ouverte .menu .b2 { opacity: 0; }

/* Boutons : coins droits, remplissage qui glisse, flèche qui avance, pression au clic */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ligne-2); color: var(--creme); font: 600 13px/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: color .3s var(--ease), border-color .3s, transform .15s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--creme); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--noir); border-color: var(--creme); }
.btn:hover .ico-out, .btn:focus-visible .ico-out { transform: translate(2px, -2px); }
.btn:hover .ico-droite, .btn:hover .ico-down { transform: translateX(3px); }
.btn:hover .ico-down { transform: translateY(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-plein { background: var(--accent); border-color: var(--accent); color: var(--creme); }
.btn-plein::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1; background: rgba(255, 255, 255, .28); transform: skewX(-20deg); transition: none; }
.btn-plein:hover::after { left: 120%; transition: left .7s var(--ease); }
.btn-petit { min-height: 38px; padding: 0 14px; font-size: 12px; }
.lien { position: relative; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; padding-bottom: 3px; color: var(--creme); }
.lien::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .35s var(--ease); }
.lien:hover::after { transform: scaleX(.35); }
.lien:hover .ico-out { transform: translate(2px, -2px); }

/* Puces de filtre : carrées, l'état actif se remplit */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; overflow: hidden; isolation: isolate; height: 38px; padding: 0 14px; border: 1px solid var(--ligne-2); font-size: 13px; font-weight: 500; color: var(--gris); transition: color .25s, border-color .25s; }
.puce::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--creme); transform: translateY(101%); transition: transform .3s var(--ease); }
.puce:hover { color: var(--creme); border-color: var(--creme); }
.puce[aria-pressed="true"] { color: var(--noir); border-color: var(--creme); }
.puce[aria-pressed="true"]::before { transform: none; }
.puce sup { font-size: 10px; margin-left: 4px; opacity: .7; }
.champ { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--ligne-2); background: var(--noir-2); transition: border-color .25s; }
.champ:focus-within { border-color: var(--creme); }
.champ input, .champ select { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 14px; }
.champ select { cursor: inherit; }
.champ select option { background: var(--noir-2); color: var(--creme); }
.champ svg { flex: none; width: 16px; height: 16px; stroke: var(--gris); }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--ligne); }
.section-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-tete .k { margin-bottom: 18px; }
.section-tete .chapo { margin-top: 18px; }
.section-pied { display: flex; justify-content: center; margin-top: 44px; }
.stat { text-align: right; }
.stat .chiffre { font-size: clamp(56px, 7vw, 112px); color: var(--creme); }
.stat .chiffre small { font-size: .38em; font-stretch: 100%; color: var(--accent); margin-left: 4px; }
.stat p { color: var(--gris); font-size: 14px; margin-top: 8px; }

/* Apparition au défilement (seulement si le script tourne et sans « mouvement réduit ») */
.js [data-apparait] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-apparait].vu { opacity: 1; transform: none; }

/* ============ Accueil : l'ouverture Scarface ============ */
.heros { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--tete) + 12px); display: grid; grid-template-rows: auto 1fr auto; background: linear-gradient(90deg, var(--noir) 0 50%, var(--papier) 50% 100%); }
.heros-titre { position: relative; z-index: 2; width: var(--large); margin: clamp(20px, 3vw, 44px) auto 0; font: 900 clamp(64px, 19vw, 300px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.035em; color: var(--rouge); text-transform: uppercase; }
.heros-titre span { display: inline-block; animation: lettre .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes lettre { from { opacity: 0; transform: translateY(40%); } }
.heros-corps { width: var(--large); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); align-items: center; padding: clamp(24px, 3vw, 40px) 0; }
.heros-gauche .k { color: var(--rouge); margin-bottom: 18px; }
.heros-gauche h2 { font: 800 clamp(34px, 4vw, 60px)/.98 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; }
.heros-gauche p { margin-top: 20px; color: var(--gris); max-width: 46ch; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heros-droite { position: relative; color: var(--noir); }
.cassette { position: relative; aspect-ratio: 16 / 11; max-height: 52vh; margin-left: auto; width: 100%; touch-action: pan-y; }
.cassette canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.cassette canvas:active { cursor: grabbing; }
.cassette #camera-fallback { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: 0; }
.cassette:not(.ready) #camera-fallback { opacity: .9; }
.cassette-outils { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.cassette-outils .btn { color: var(--noir); border-color: rgba(11, 11, 12, .3); min-height: 38px; padding: 0 14px; font-size: 12px; }
.cassette-outils .btn::before { background: var(--noir); }
.cassette-outils .btn:hover { color: var(--creme); border-color: var(--noir); }
#camera-status { width: 100%; text-align: right; font-size: 12px; color: #5c574f; margin-top: 4px; }
.sceau { position: absolute; right: 2%; top: -6%; width: 128px; height: 128px; color: var(--rouge); pointer-events: none; }
.sceau svg { width: 100%; height: 100%; animation: tourne 22s linear infinite; }
.sceau text { font: 700 10.5px var(--texte); letter-spacing: .3em; fill: currentColor; }
.sceau::after { content: 'V'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 30px/1 var(--display); font-stretch: 125%; }
@keyframes tourne { to { transform: rotate(360deg); } }
.bandeau { position: relative; z-index: 2; background: var(--rouge); color: var(--creme); }
.bandeau-in { width: var(--large); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 24px; padding: 18px 0; }
.bandeau-in div { display: flex; align-items: baseline; gap: 10px; }
.bandeau .chiffre { font-size: clamp(28px, 3vw, 42px); }
.bandeau span:not(.chiffre) { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bandeau a { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bandeau a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Ciné-portrait (webcam locale) */
.cine-portrait { position: absolute; inset: 0; z-index: 5; background: #000; overflow: hidden; }
.cine-portrait video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: contrast(1.08) saturate(.85) sepia(.12); }
.cine-hud { position: absolute; left: 16px; top: 14px; display: flex; gap: 12px; font: 600 12px var(--texte); letter-spacing: .1em; color: var(--creme); }
.cine-rec { color: var(--rouge); animation: clignote 1.2s steps(2) infinite; }
@keyframes clignote { 50% { opacity: .2; } }
.cine-note { position: absolute; left: 16px; bottom: 60px; font-size: 12px; color: var(--creme); }
.cine-tools { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; }
.cine-tools button { background: var(--creme); color: var(--noir); padding: 8px 12px; font-size: 12px; font-weight: 600; }

/* ============ Univers « gaming » : fond sombre net, trame fine ============ */
.trame { background-color: var(--noir); background-image: linear-gradient(var(--ligne) 1px, transparent 1px), linear-gradient(90deg, var(--ligne) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }
.trame > * { position: relative; }

/* Travaux (portfolio) */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.client { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border: 1px solid var(--ligne-2); background: var(--noir-2); transition: color .35s var(--ease), border-color .35s; }
.client::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--creme); clip-path: circle(0 at var(--x, 90%) var(--y, 10%)); transition: clip-path .6s var(--ease); }
.client:hover, .client:focus-visible { color: var(--noir); border-color: var(--creme); }
.client:hover::before, .client:focus-visible::before { clip-path: circle(150% at var(--x, 90%) var(--y, 10%)); }
.client-num { font: 700 13px/1 var(--texte); letter-spacing: .1em; color: var(--rouge); }
.client h3 { margin-top: auto; font: 800 clamp(28px, 2.8vw, 42px)/.95 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; transition: letter-spacing .5s var(--ease); }
.client:hover h3 { letter-spacing: .01em; }
.client p { margin-top: 12px; font-size: 14px; color: var(--gris); transition: color .35s; }
.client:hover p { color: #4d483f; }
.client-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid currentColor; border-color: var(--ligne-2); font-size: 13px; font-weight: 600; }
.client:hover .client-pied { border-color: rgba(11, 11, 12, .2); }
.client:hover .ico-out { transform: translate(3px, -3px); }
.note-video { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 22px; border: 1px dashed var(--ligne-2); color: var(--gris); font-size: 14px; }
.note-video .point { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); animation: clignote 1.4s steps(2) infinite; flex: none; }

/* Ruban défilant des jeux (affichage tête haute) */
.ruban { overflow: hidden; border-block: 1px solid var(--ligne); margin-bottom: 40px; background: var(--noir); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ruban-piste { display: flex; width: max-content; animation: defile 60s linear infinite; }
.ruban:hover .ruban-piste { animation-play-state: paused; }
.ruban-piste span { display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 28px; font: 700 15px/1 var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .02em; color: var(--gris); white-space: nowrap; }
.ruban-piste b { font-weight: 800; font-stretch: 100%; font-size: 18px; color: var(--creme); }
.ruban-piste i { width: 6px; height: 6px; background: var(--c); align-self: center; font-style: normal; }
@keyframes defile { to { transform: translateX(-50%); } }
.rangs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.rang { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--c); font-size: 13px; color: var(--creme); box-shadow: inset 3px 0 0 var(--c); }
.rang b { font: 800 15px/1 var(--display); font-stretch: 100%; color: var(--c); text-transform: uppercase; }

/* Cartes (jeux et films) : même composant, même largeur, image nette, lueur à la couleur de l'œuvre */
.grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.grille-une { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.carte { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--noir-2); border: 1px solid var(--ligne); color: var(--creme); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.carte:hover, .carte:focus-visible { transform: translateY(-5px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 40px -22px var(--c); outline: 0; }
.carte-visuel { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--noir-3); }
.carte-film .carte-visuel { aspect-ratio: 2 / 3; }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.carte:hover .carte-visuel img { transform: scale(1.045); }
.carte-visuel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 12, .85)); opacity: .9; }
.carte-film .carte-visuel::after { opacity: 0; }
.carte-mot { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font: 800 22px/1 var(--display); text-transform: uppercase; background: var(--c); }
.carte-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.carte-bas .carte-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-temps { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 500 12.5px/1 var(--texte); color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte-temps b { font-weight: 700; color: var(--creme); }
.carte-temps svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .6s var(--ease), color .3s; }
.carte:hover .carte-temps svg { color: var(--c); transform: rotate(360deg); }
.carte-coin { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 4px 7px; font: 700 10px/1.2 var(--texte); letter-spacing: .1em; text-transform: uppercase; background: var(--noir); color: var(--creme); border: 1px solid var(--ligne-2); }
.carte-corps { display: grid; gap: 3px; padding: 12px 14px 14px; }
.carte-corps strong { font: 700 15px/1.25 var(--display); font-stretch: 100%; overflow-wrap: anywhere; }
.carte-meta { font-size: 12.5px; color: var(--gris); line-height: 1.4; }
.carte-rang { color: var(--c); font-weight: 600; }
.carte-une .carte-temps { font-size: 14px; }
.carte-une .carte-corps strong { font-size: 19px; }
.carte-ligne { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--gris); }
.carte-attente .carte-temps b { color: #ff8fc0; }
.carte-attente { --c: #ff5fa8; }
.carte-attente .carte-coin { background: #f6a04d; color: var(--noir); border-color: #f6a04d; }
.vide { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--gris); border: 1px dashed var(--ligne-2); }

/* Les mondes : quatre portes, chacune annonce son ambiance */
.portes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.porte { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 26px; border: 1px solid var(--ligne-2); background: var(--fond, var(--noir-2)); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.porte:hover, .porte:focus-visible { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 24px 60px -30px var(--c); outline: 0; }
.porte-num { position: absolute; left: 26px; top: 24px; font: 700 12px/1 var(--texte); letter-spacing: .14em; color: var(--c); }
.porte h3 { font: 800 clamp(30px, 2.6vw, 40px)/.95 var(--display); font-stretch: 115%; text-transform: uppercase; }
.porte p { margin-top: 10px; font-size: 14px; color: var(--gris); }
.porte-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ligne-2); font-size: 13px; font-weight: 600; }
.porte:hover .ico-droite { transform: translateX(4px); }
.porte:hover .ico-out { transform: translate(3px, -3px); }
.apercu { position: absolute; inset: 0 0 46%; z-index: -1; overflow: hidden; }
.porte-cinema { --c: #f0b35a; --fond: #120d0b; }
.porte-jeux { --c: #49e3ff; --fond: #07090d; }
.porte-atelier { --c: #ff5a3d; --fond: #101114; }
.porte-eagle { --c: #00f6ff; --fond: #050b0d; }
/* Cinéma : une bande de pellicule qui défile */
.ap-pellicule { position: absolute; left: 50%; top: -10%; width: 62%; transform: translateX(-50%) rotate(-8deg); display: grid; gap: 10px; padding: 0 16px; background: #050505; border-inline: 10px dashed #2a2320; animation: monte 18s linear infinite; }
.ap-pellicule img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
/* La pellicule garde la même vitesse au survol (elle allait trop vite) ; la caméra la filme depuis la droite */
.porte-cinema .ap-pellicule { left: 37%; width: 38%; animation-duration: 34s; }
.porte-camera { position: absolute; right: -9%; top: 0; width: 66%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.porte-camera.pret { opacity: 1; }
.porte-cinema .apercu::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 70% at 78% 40%, rgba(240, 179, 90, .18), transparent 70%); pointer-events: none; }
@keyframes monte { from { transform: translateX(-50%) rotate(-8deg) translateY(0); } to { transform: translateX(-50%) rotate(-8deg) translateY(-50%); } }
/* Jeux : un sol en perspective et trois jaquettes */
.ap-sol { position: absolute; left: -50%; right: -50%; bottom: 0; height: 70%; transform: perspective(300px) rotateX(62deg); transform-origin: bottom; background-image: linear-gradient(rgba(73, 227, 255, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(73, 227, 255, .55) 1px, transparent 1px); background-size: 40px 40px; animation: sol 3s linear infinite; }
@keyframes sol { to { background-position: 0 40px; } }
.ap-jaquettes { position: absolute; left: 50%; top: 14%; width: 80%; height: 70%; transform: translateX(-50%); }
.ap-jaquettes img { position: absolute; top: 0; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid rgba(255, 255, 255, .3); transition: transform .5s var(--ease); }
.ap-jaquettes img:nth-child(1) { left: 0; transform: rotate(-10deg) translateY(10%); }
.ap-jaquettes img:nth-child(2) { left: 27%; z-index: 1; box-shadow: 0 0 30px -6px var(--c); }
.ap-jaquettes img:nth-child(3) { right: 0; transform: rotate(10deg) translateY(10%); }
.porte:hover .ap-jaquettes img:nth-child(1) { transform: rotate(-16deg) translate(-8%, 6%); }
.porte:hover .ap-jaquettes img:nth-child(3) { transform: rotate(16deg) translate(8%, 6%); }
.porte:hover .ap-jaquettes img:nth-child(2) { transform: translateY(-6%); }
/* Atelier : une timeline de montage, la tête de lecture avance */
.ap-timeline { position: absolute; inset: 16% 8% 6%; display: grid; grid-template-rows: 14px repeat(4, 1fr); gap: 6px; }
.ap-regle { background-image: linear-gradient(90deg, var(--gris-2) 1px, transparent 1px); background-size: 12px 100%; opacity: .6; }
.ap-piste { position: relative; }
.ap-piste i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.ap-piste:nth-of-type(2) i { background: #3d6bff; }
.ap-piste:nth-of-type(3) i { background: #33c48d; }
.ap-piste:nth-of-type(4) i { background: #f0b35a; }
.ap-piste:nth-of-type(5) i { background: #8a8f9c; }
.ap-tete { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--c); animation: lecture 7s linear infinite; }
.ap-tete::before { content: ''; position: absolute; top: -4px; left: -5px; border: 6px solid transparent; border-top-color: var(--c); }
.porte:hover .ap-tete { animation-duration: 2.5s; }
@keyframes lecture { to { left: 100%; } }
/* Eagle Eye : un globe en fil de fer qui tourne */
.ap-globe { position: absolute; left: 50%; top: 52%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ap-globe svg { width: 100%; height: 100%; overflow: visible; }
.ap-globe .meridiens { animation: tourne 26s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.porte:hover .ap-globe .meridiens { animation-duration: 8s; }

/* Atelier : projets et formations */
.atelier-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.projets { border-top: 1px solid var(--ligne-2); }
.projet { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding: 22px 8px; border-bottom: 1px solid var(--ligne); transition: background .3s, padding .3s var(--ease); }
.projet:hover { background: var(--noir-2); padding-left: 16px; }
.projet-num { font: 700 13px/1 var(--texte); color: var(--gris-2); }
.projet h3 { font: 800 clamp(22px, 2vw, 30px)/1 var(--display); font-stretch: 110%; text-transform: uppercase; }
.projet p { grid-column: 2; color: var(--gris); font-size: 14.5px; max-width: 62ch; }
.projet-etat { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.projet-etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--etat, var(--gris-2)); }
.projet[data-etat="vert"] { --etat: #3ddc84; }
.projet[data-etat="orange"] { --etat: #f0b35a; }
.projet .lien { grid-column: 2; justify-self: start; margin-top: 6px; }
.projet-une { padding: 28px 8px 26px; }
.projet-une h3 { font-size: clamp(30px, 3vw, 46px); color: var(--creme); }
.projet-une .projet-alias { grid-column: 2; font-size: 13px; color: #49e3ff; font-weight: 600; letter-spacing: .04em; }
.encart { border: 1px solid var(--ligne-2); background: var(--noir-2); padding: 24px; }
.encart + .encart { margin-top: 16px; }
.encart h3 { font: 800 22px/1.1 var(--display); font-stretch: 110%; text-transform: uppercase; margin: 10px 0 8px; }
.encart p { font-size: 14px; color: var(--gris); }
.encart ul { margin-top: 14px; border-top: 1px solid var(--ligne); }
.encart li { padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.encart .lien { margin-top: 16px; }

/* À propos, réseaux, échéances */
.apropos-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
.apropos-grille h2 { font: 800 clamp(48px, 7vw, 112px)/.88 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; }
.apropos-texte p + p { margin-top: 14px; }
.apropos-texte .gros { font: 600 clamp(22px, 2vw, 28px)/1.3 var(--display); font-stretch: 100%; color: var(--creme); }
.apropos-texte p { color: var(--gris); }
.principes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.principe { padding: 24px; border: 1px solid var(--ligne); transition: border-color .3s, transform .4s var(--ease); }
.principe:hover { border-color: var(--rouge); transform: translateY(-4px); }
.principe b { font: 700 12px/1 var(--texte); color: var(--rouge); letter-spacing: .1em; }
.principe h3 { margin-top: 14px; font: 700 20px/1.2 var(--display); }
.principe p { margin-top: 8px; font-size: 14px; color: var(--gris); }
.reseaux { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.reseau { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border: 1px solid var(--ligne-2); font-size: 14px; font-weight: 600; transition: border-color .3s, color .3s, transform .2s; }
.reseau svg { width: 20px; height: 20px; fill: currentColor; transition: transform .45s var(--ease); }
.reseau:hover { border-color: var(--rc, var(--creme)); color: var(--rc, var(--creme)); }
.reseau:hover svg { transform: rotate(-12deg) scale(1.15); }
.reseau[aria-disabled="true"] { color: var(--gris-2); }
.reseau[aria-disabled="true"]::after { content: attr(data-bientot); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); padding: 5px 8px; background: var(--creme); color: var(--noir); font-size: 11px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.reseau[aria-disabled="true"]:hover::after, .reseau[aria-disabled="true"]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.echeance { margin-top: 28px; padding: 22px; border: 1px solid var(--ligne-2); display: grid; gap: 8px; }
.echeance .chiffre { font-size: clamp(36px, 4vw, 54px); color: #3ddc84; }
.echeance label { font-size: 13px; color: var(--gris); }
.echeance-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.echeance input[type="date"] { height: 38px; padding: 0 10px; background: var(--noir-2); border: 1px solid var(--ligne-2); color-scheme: dark; }
.echeance small { font-size: 12px; color: var(--gris-2); }

/* Pied de page */
.pied { border-top: 1px solid var(--ligne); padding: 56px 0 28px; }
.pied-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pied-haut p { margin-right: auto; font: 600 18px/1.2 var(--display); }
.pied-mot { display: block; margin: 40px 0 24px; font: 900 clamp(80px, 21vw, 320px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--rouge); transition: color .6s var(--ease); text-align: center; }
.pied-mot:hover { color: var(--rouge); }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--gris-2); letter-spacing: .08em; text-transform: uppercase; }

/* Fiches (jeux et films) */
.fiche { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--ligne-2); background: var(--noir); color: var(--creme); overflow: auto; overscroll-behavior: contain; }
.fiche[open] { animation: fiche .45s var(--ease); }
@keyframes fiche { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.fiche::backdrop { background: rgba(0, 0, 0, .82); }
.fiche-fermer { position: sticky; top: 0; float: right; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; background: var(--noir); border-left: 1px solid var(--ligne-2); border-bottom: 1px solid var(--ligne-2); transition: background .25s, color .25s; }
.fiche-fermer:hover { background: var(--creme); color: var(--noir); }
.fiche-fermer svg { width: 18px; height: 18px; stroke: currentColor; transition: transform .3s var(--ease); }
.fiche-fermer:hover svg { transform: rotate(90deg); }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 36px; padding: 36px; }
.fiche-image { position: relative; align-self: start; border: 1px solid var(--c, var(--ligne-2)); box-shadow: 0 0 0 1px var(--c), 0 30px 60px -36px var(--c); }
.fiche-image img { width: 100%; }
.fiche-info .k { margin-bottom: 14px; }
.fiche-info h2 { font: 800 clamp(32px, 4vw, 56px)/.95 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; }
.fiche-orig { margin-top: 8px; font-size: 14px; color: var(--gris); }
.fiche-chiffre { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fiche-chiffre .chiffre { font-size: clamp(56px, 6vw, 88px); color: var(--c, var(--creme)); }
.fiche-chiffre span { font-size: 13px; color: var(--gris); max-width: 28ch; }
.fiche-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 26px; background: var(--ligne); border: 1px solid var(--ligne); }
.fiche-faits div { background: var(--noir); padding: 12px 14px; }
.fiche-faits dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-2); }
.fiche-faits dd { margin-top: 4px; font-size: 15px; font-weight: 500; }
.fiche-phrase { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--c, var(--rouge)); font: 600 clamp(19px, 1.8vw, 24px)/1.35 var(--display); font-stretch: 100%; }
.fiche-credit { display: block; margin-top: 8px; padding-left: 21px; font-size: 12px; color: var(--gris-2); }
.fiche-avis { margin-top: 24px; padding: 18px 20px; background: var(--noir-2); border: 1px solid var(--ligne); }
.fiche-avis .k { margin-bottom: 8px; }
.fiche-avis p { font-size: 16px; }
.barre { margin-top: 24px; }
.barre-haut { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
.barre-piste { height: 6px; background: var(--noir-3); overflow: hidden; }
.barre-piste span { display: block; height: 100%; width: var(--v); background: var(--c, var(--creme)); transform-origin: left; animation: barre 1.1s .2s var(--ease) both; }
@keyframes barre { from { transform: scaleX(0); } }
.fiche-liens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fiche-oeuf { margin-top: 18px; font-size: 14px; color: var(--gris); font-style: italic; }
.eclair { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; font: 900 clamp(56px, 11vw, 170px)/1 var(--display); font-stretch: 112%; text-transform: uppercase; color: var(--creme); text-shadow: 0 0 40px var(--c, var(--rouge)); background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); animation: eclair 2.2s var(--ease) forwards; }
@keyframes eclair { 0% { opacity: 0; transform: scale(1.08); letter-spacing: .2em; } 18%, 70% { opacity: 1; transform: none; letter-spacing: 0; } 100% { opacity: 0; } }
.eclair-souls { color: #f6d79a; text-shadow: 0 0 30px rgba(230, 150, 60, .9); }
.eclair-mort { color: #a3121a; text-shadow: 0 0 22px rgba(0, 0, 0, .9); letter-spacing: .1em; }

/* Notifications façon succès débloqué, et clin d'œil du documentaire */
.succes, .money-toast { position: fixed; right: 20px; top: calc(var(--tete) + 16px); z-index: 80; display: flex; gap: 14px; align-items: center; max-width: min(380px, calc(100% - 40px)); padding: 14px 18px 14px 14px; background: var(--noir-2); border: 1px solid var(--ligne-2); box-shadow: inset 3px 0 0 var(--c, var(--rouge)), 0 20px 50px -20px #000; animation: succes .6s var(--ease); }
.succes svg { flex: none; width: 34px; height: 34px; color: var(--c, var(--rouge)); }
.succes b, .money-toast strong { display: block; font: 700 11px/1.3 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--rouge)); }
.succes span, .money-toast p { font-size: 14px; color: var(--creme); }
.succes.part { animation: part .5s var(--ease) forwards; }
.money-toast[hidden] { display: none; }
.money-toast button { margin-left: auto; width: 28px; height: 28px; font-size: 18px; color: var(--gris); }
@keyframes succes { from { opacity: 0; transform: translateX(30px); } }
@keyframes part { to { opacity: 0; transform: translateX(30px); } }
.message-joueur { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 40px; padding: 12px 18px; border-left: 3px solid #f0a64b; text-align: left; }
.message-joueur span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.message-joueur b { font: 600 18px/1.3 var(--display); font-style: italic; color: #f0a64b; }

/* ============ Les mondes : bases communes ============ */
.monde-heros { padding: calc(var(--tete) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ligne); }
/* Titre en pleine largeur, tableau de bord dessous : rien ne se chevauche, en français comme en anglais */
.monde-heros .enveloppe { display: grid; gap: clamp(32px, 4vw, 56px); }
.heros-texte { max-width: 1100px; }
.heros-bord { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--ligne); }
.monde-heros h1 { font: 800 clamp(44px, 6.6vw, 112px)/.92 var(--display); text-wrap: balance; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.025em; margin-top: 18px; }
.monde-heros h1 em { font-style: normal; color: var(--accent); }
.monde-heros .chapo { margin-top: 22px; }
.outils { position: sticky; top: 0; z-index: 30; background: var(--noir); border-bottom: 1px solid var(--ligne); transition: top .35s var(--ease); }
.tete:not(.rangee) ~ main .outils { top: calc(var(--tete) + 20px); }
.outils { border-radius: 0; }
.outils-in { width: var(--large); margin-inline: auto; display: grid; grid-template-columns: minmax(200px, 320px) 1fr auto auto; gap: 12px 16px; align-items: center; padding: 14px 0; }
.outils .champ-tri { width: 200px; }
.compte { font: 700 13px/1 var(--texte); color: var(--gris); white-space: nowrap; }
.compte b { color: var(--creme); }
.monde-grille { padding: 36px 0 100px; }
.familles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 44px); align-content: center; }
.familles .k { grid-column: 1 / -1; margin-bottom: 2px; }
.famille { display: grid; grid-template-columns: minmax(9.5em, max-content) minmax(40px, 1fr) 3.6em; gap: 12px; align-items: center; font-size: 13px; color: var(--gris); white-space: nowrap; }
.famille i { height: 6px; background: var(--noir-3); position: relative; overflow: hidden; }
.famille i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--accent); animation: barre 1.2s var(--ease) both; }
.famille b { text-align: right; color: var(--creme); font-weight: 600; }
.plus-bas { display: flex; justify-content: center; padding-top: 40px; }

/* Monde Cinéma : salle obscure, lumière de projecteur ambrée */
body[data-world="cinema"] { --accent: #f0b35a; --noir: #0d0a09; --noir-2: #161110; --noir-3: #211916; }
body[data-world="cinema"] .monde-heros { background: radial-gradient(ellipse 60% 90% at 78% 0%, rgba(240, 179, 90, .16), transparent 70%), var(--noir); }
body[data-world="cinema"] .carte-film .carte-corps { padding-top: 10px; }
/* Monde Jeux vidéo : écran de sélection, lueurs aux couleurs des jeux */
body[data-world="jeux"] { --accent: #49e3ff; --noir: #07090d; --noir-2: #0e1219; --noir-3: #151b25; --ligne: rgba(160, 220, 255, .11); --ligne-2: rgba(160, 220, 255, .22); }
body[data-world="jeux"] .monde-heros { background-image: linear-gradient(var(--ligne) 1px, transparent 1px), linear-gradient(90deg, var(--ligne) 1px, transparent 1px); background-size: 48px 48px; }
/* Monde Atelier : table de montage, tête de lecture rouge */
body[data-world="atelier"] { --accent: #ff5a3d; --noir: #0e0f12; --noir-2: #15171c; --noir-3: #1d2027; }
.regle { height: 26px; margin-top: 30px; border-bottom: 1px solid var(--ligne-2); background-image: linear-gradient(90deg, var(--gris-2) 1px, transparent 1px), linear-gradient(90deg, var(--gris) 1px, transparent 1px); background-size: 16px 8px, 160px 16px; background-repeat: repeat-x; background-position: left bottom; position: relative; }
.regle::after { content: ''; position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--accent); animation: lecture 14s linear infinite; pointer-events: none; opacity: .7; }
.parcours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 24px; border-top: 1px solid var(--ligne-2); }
.parcours li { padding: 16px 16px 16px 0; border-right: 1px solid var(--ligne); }
.parcours b { display: block; font: 800 22px/1 var(--display); font-stretch: 100%; color: var(--accent); }
.parcours span { display: block; margin-top: 8px; font-size: 14px; color: var(--gris); }

/* Portail des mondes (carte.html) */
.portail { min-height: 100vh; padding: calc(var(--tete) + 40px) 0 48px; }
.portail-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 36px; }
.portail-tete h1 { font: 800 clamp(44px, 5.6vw, 92px)/.9 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.025em; margin-top: 16px; }
.portail .portes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portail .porte { min-height: min(58vh, 540px); }
.portail-tete h1 em, .monde-heros h1 em { font-style: normal; color: var(--accent); }
.portail .porte h3 { font-size: clamp(32px, 3vw, 48px); }

/* Pages simples (crédits, confidentialité) */
.page-texte { padding: calc(var(--tete) + 64px) 0 96px; }
.page-texte .enveloppe { max-width: 760px; }
.page-texte h1 { font: 800 clamp(44px, 6vw, 80px)/.95 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; margin: 16px 0 36px; }
.page-texte h2 { font: 700 22px/1.2 var(--display); margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--gris); }
.page-texte ul { list-style: disc; padding-left: 20px; }
.page-texte li + li { margin-top: 8px; }
.page-texte a:not(.btn) { color: var(--creme); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rouge); }

/* ============ Écrans moyens et téléphones ============ */
@media (max-width: 1180px) {
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portes, .portail .portes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atelier-grille { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
}
@media (max-width: 900px) {
  :root { --large: calc(100% - 40px); }
  .nav { display: none; }
  .menu { display: grid; }
  .tete.ouverte .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--tete); left: 0; right: 0; padding: 8px 20px 20px; background: var(--noir); border-bottom: 1px solid var(--ligne-2); }
  .tete.ouverte .nav a { font: 800 26px/1 var(--display); font-stretch: 110%; text-transform: uppercase; color: var(--creme); padding: 16px 0; border-bottom: 1px solid var(--ligne); animation: succes .4s var(--ease) both; }
  .tete.ouverte .nav a::after { display: none; }
  .tete-in { gap: 14px; }
  .tete-in .lang-switch { margin-left: auto; }
  .heros { background: var(--noir); }
  .heros-corps { grid-template-columns: 1fr; gap: 28px; }
  .heros-droite { background: var(--papier); margin-inline: -20px; padding: 16px 20px 20px; }
  .sceau { width: 84px; height: 84px; top: 10px; right: 14px; }
  .bandeau-in { grid-template-columns: 1fr 1fr; }
  .bandeau-in a { grid-column: 1 / -1; }
  .clients { grid-template-columns: 1fr; }
  .client { min-height: 220px; }
  .grille-une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-tete, .monde-heros .enveloppe, .portail-tete { grid-template-columns: 1fr; }
  .stat { text-align: left; }
  .rangs { justify-content: flex-start; }
  .apropos-grille, .principes { grid-template-columns: 1fr; }
  .principes { margin-top: 40px; }
  .outils-in { grid-template-columns: 1fr auto; }
  .outils-in .puces { grid-column: 1 / -1; order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .outils-in .puce { flex: none; }
  .outils .champ-tri { width: auto; }
  .familles { min-width: 0; }
  .fiche-corps { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .fiche-image { max-width: 280px; }
  .projet { grid-template-columns: 32px minmax(0, 1fr); }
  .projet-etat { grid-column: 2; grid-row: auto; }
}
@media (max-width: 560px) {
  :root { --large: calc(100% - 32px); }
  .marque small { display: none; }
  .tete-in > .btn { display: none; }
  .heros-droite { margin-inline: -16px; padding-inline: 16px; }
  .heros-actions .btn { flex: 1 1 100%; }
  .heros-titre { font-size: 19.5vw; }
  .bandeau-in { grid-template-columns: 1fr; gap: 10px; }
  .grille, .grille-une { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portes, .portail .portes { grid-template-columns: 1fr; }
  .porte, .portail .porte { min-height: 340px; }
  .carte-corps { padding: 10px 10px 12px; }
  .famille { grid-template-columns: 96px 1fr 56px; }
  .pied-bas { flex-direction: column; }
}

/* Mouvement réduit : tout reste lisible et immobile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ruban-piste { animation: none; flex-wrap: wrap; width: auto; }
}

/* ============ Retouches du 4 oct. 2026 ============ */
/* Coins arrondis modernes (pas de pilule) sur boutons, puces, cartes, fiches */
.btn, .puce, .champ, .reseau, .rang, .carte-coin, .note-video { border-radius: 10px; }
.btn, .puce { overflow: hidden; }
.carte, .porte, .client, .encart, .principe, .echeance, .activite { border-radius: 14px; }
.carte { overflow: hidden; }
.carte-visuel { border-radius: 13px 13px 0 0; }
.fiche { border-radius: 18px; }
.fiche-image, .fiche-avis, .fiche-faits { border-radius: 12px; overflow: hidden; }
.cassette-outils .btn, .echeance input[type="date"] { border-radius: 10px; }
.xp { left: calc((100% - var(--large)) / 2 + 14px); right: calc((100% - var(--large)) / 2 + 14px); bottom: 1px; }

/* Le grand VASCO tient toujours sur une ligne, même sur écran très large */
.heros-titre { font-size: clamp(64px, 18.5vw, 268px); white-space: nowrap; }

/* Inclinaison légère des cartes et des portes sous la souris, reflet qui suit (réglé par vasco.js) */
.incline { transform-style: preserve-3d; will-change: transform; }
.incline .reflet { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 0%), rgba(255, 255, 255, .16), transparent 46%); opacity: 0; transition: opacity .3s; }
.incline:hover .reflet { opacity: 1; }
.carte.incline:hover, .porte.incline:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-5px); }

/* Formations : ce que j'ai acheté et suivi */
.formations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.formation { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; padding: 26px; border: 1px solid var(--ligne-2); border-radius: 14px; background: var(--noir-2); transition: color .35s var(--ease), border-color .35s; }
.formation::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--creme); clip-path: circle(0 at var(--x, 90%) var(--y, 10%)); transition: clip-path .6s var(--ease); }
a.formation:hover, a.formation:focus-visible { color: var(--noir); border-color: var(--creme); }
a.formation:hover::before, a.formation:focus-visible::before { clip-path: circle(150% at var(--x, 90%) var(--y, 10%)); }
.formation-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.formation-num { font: 700 13px/1 var(--texte); letter-spacing: .1em; color: var(--accent); }
.formation-theme { padding: 5px 9px; border-radius: 7px; border: 1px solid var(--ligne-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); transition: color .35s, border-color .35s; }
a.formation:hover .formation-theme { color: #4d483f; border-color: rgba(11, 11, 12, .25); }
.formation h3 { margin-top: auto; padding-top: 28px; font: 800 clamp(24px, 2.3vw, 34px)/.98 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; transition: letter-spacing .5s var(--ease); }
a.formation:hover h3 { letter-spacing: .01em; }
.formation p { margin-top: 10px; font-size: 14px; color: var(--gris); transition: color .35s; }
a.formation:hover p { color: #4d483f; }
.formation ul { margin-top: 10px; font-size: 13.5px; color: var(--gris); }
.formation li + li { margin-top: 4px; }
.formation-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ligne-2); font-size: 13px; font-weight: 600; transition: border-color .35s; }
a.formation:hover .formation-pied { border-color: rgba(11, 11, 12, .2); }
a.formation:hover .ico-out { transform: translate(3px, -3px); }

/* Ma série : calendrier d'activité façon GitHub, vert tous les jours depuis septembre 2025 */
.activite { margin-top: 40px; padding: 26px; border: 1px solid var(--ligne-2); background: var(--noir-2); }
.activite-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 22px; }
.activite-tete h3 { font: 800 clamp(22px, 2vw, 30px)/1 var(--display); font-stretch: 110%; text-transform: uppercase; margin-top: 10px; }
.activite-tete .chiffre { font-size: clamp(44px, 4.4vw, 68px); color: #39d353; }
.activite-tete .chiffre small { font: 600 14px var(--texte); color: var(--gris); margin-left: 8px; letter-spacing: 0; }
.activite-defile { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.activite-grille { display: grid; grid-template-columns: 28px 1fr; gap: 6px; width: max-content; min-width: 100%; }
.activite-mois { grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: var(--case); gap: 3px; height: 16px; font-size: 11px; color: var(--gris); }
.activite-mois span { white-space: nowrap; }
.activite-jours { display: grid; grid-template-rows: repeat(7, var(--case)); gap: 3px; font-size: 10px; color: var(--gris-2); }
.activite-jours span { line-height: var(--case); }
.activite-cases { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--case)); grid-auto-columns: var(--case); gap: 3px; }
.activite-grille { --case: 13px; }
.activite-cases i { width: var(--case); height: var(--case); border-radius: 3px; background: #161b22; outline: 1px solid rgba(255, 255, 255, .04); outline-offset: -1px; }
.activite-cases i.on { background: #2ea043; }
.activite-cases i.on.n2 { background: #39d353; }
.activite-cases i.hors { background: transparent; outline: 0; }
.activite-cases i.auj { background: #56e36d; box-shadow: 0 0 0 2px var(--noir-2), 0 0 0 3px #56e36d; animation: pouls 2s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 2px var(--noir-2), 0 0 0 5px rgba(86, 227, 109, .35); } }
.js .activite-cases i.on { transform: scale(0); transition: transform .4s var(--ease); transition-delay: calc(var(--k) * 16ms); }
.js .activite.vu .activite-cases i.on { transform: none; }
.activite-cases i:hover { outline: 1.5px solid var(--creme); }
.activite-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--gris); }
.activite-bulle { position: fixed; z-index: 70; padding: 6px 10px; border-radius: 8px; background: var(--creme); color: var(--noir); font-size: 12px; font-weight: 600; pointer-events: none; transform: translate(-50%, -130%); white-space: nowrap; }

/* Trois mondes */
.portes, .portail .portes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.porte { min-height: 460px; }
.porte h3 { font-size: clamp(30px, 3vw, 46px); overflow-wrap: anywhere; }
.porte-projets { --c: #ff5a3d; --fond: #101114; }

@media (max-width: 1180px) {
  .formations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portes, .portail .portes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tete { inset: 8px 0 auto; }
  .tete-in { padding: 0 8px 0 14px; gap: 10px; }
  .btn-mondes { display: none; }
  .formations { grid-template-columns: 1fr; }
  .portes, .portail .portes { grid-template-columns: 1fr; }
  .porte { min-height: 340px; }
  .menu { border-radius: 10px; }
  .tete.ouverte .nav { top: calc(100% + 8px); left: 0; right: 0; border-radius: 16px; border: 1px solid var(--ligne-2); background: rgba(16, 16, 18, .98); padding: 8px 18px 14px; }
  .nav-repere { display: none; }
}
@media (hover: none) { .incline .reflet { display: none; } }

/* ============ Retouches du 4 oct. 2026, soir ============ */
/* Réseaux : l'icône se soulève en couches et une carte profil apparaît (inspiré de Uiverse, vikas7754) */
.reseaux { gap: 18px 26px; margin-top: 34px; }
.reseau { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; height: auto; padding: 0; border: 0; color: var(--gris); font-size: 13px; font-weight: 600; }
.reseau:hover, .reseau:focus-visible { border: 0; color: var(--creme); }
.pile { position: relative; width: 54px; height: 54px; transition: transform .45s var(--ease); }
.pile > span { position: absolute; inset: 0; border: 1px solid var(--rc); border-radius: 14px; opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.pile > .pile-ico { display: grid; place-items: center; opacity: 1; border-color: var(--ligne-2); background: var(--noir-2); transition: transform .45s var(--ease), background .35s, border-color .35s; }
.pile-ico svg { width: 24px; height: 24px; fill: var(--creme); transition: fill .35s; }
.reseau:hover .pile, .reseau:focus-visible .pile { transform: rotate(-35deg) skew(20deg); }
.reseau:hover .pile > span:nth-child(1), .reseau:focus-visible .pile > span:nth-child(1) { opacity: .2; }
.reseau:hover .pile > span:nth-child(2), .reseau:focus-visible .pile > span:nth-child(2) { opacity: .4; transform: translate(5px, -5px); }
.reseau:hover .pile > span:nth-child(3), .reseau:focus-visible .pile > span:nth-child(3) { opacity: .6; transform: translate(10px, -10px); }
.reseau:hover .pile > span:nth-child(4), .reseau:focus-visible .pile > span:nth-child(4) { opacity: .8; transform: translate(15px, -15px); }
.reseau:hover .pile > .pile-ico, .reseau:focus-visible .pile > .pile-ico { transform: translate(20px, -20px); background: var(--rc); border-color: var(--rc); }
.reseau:hover .pile-ico svg, .reseau:focus-visible .pile-ico svg { fill: var(--noir); }
.reseau .pile-ico svg[style] { fill: none !important; stroke: var(--creme); }
.reseau:hover .pile-ico svg[style] { stroke: var(--noir); }
.reseau-nom { transition: transform .45s var(--ease); }
.reseau:hover .reseau-nom { transform: translateY(4px); }
.bulle { position: absolute; bottom: calc(100% + 26px); left: 50%; z-index: 5; width: 230px; padding: 14px; border-radius: 14px; background: var(--noir-3); border: 1px solid var(--ligne-2); box-shadow: 0 24px 40px -20px #000; opacity: 0; visibility: hidden; transform: translate(-50%, 12px) scale(.94); transform-origin: 50% 100%; transition: opacity .3s var(--ease), transform .45s cubic-bezier(.3, 1.5, .5, 1), visibility .3s; pointer-events: none; text-align: left; }
.bulle::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--noir-3); border-right: 1px solid var(--ligne-2); border-bottom: 1px solid var(--ligne-2); transform: rotate(45deg); }
.reseau:hover .bulle, .reseau:focus-visible .bulle { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.bulle-profil { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ligne); }
.bulle-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--rc); color: var(--noir); font: 900 18px/1 var(--display); font-stretch: 125%; }
.bulle-id b { display: block; font: 700 15px/1.2 var(--display); color: var(--creme); }
.bulle-id i { font-style: normal; font-size: 12.5px; color: var(--gris); }
.bulle-info { display: block; padding-top: 10px; font-size: 13px; font-weight: 500; color: var(--creme); }

/* Tableau de bord (jeux, cinéma) : trois cases, coins de visée qui s'écartent au survol */
.hud { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 10px; }
.hud-case { position: relative; display: grid; gap: 6px; min-width: 150px; padding: 16px 18px; border-radius: 12px; background: var(--noir-2); border: 1px solid var(--ligne); transition: border-color .3s, transform .4s var(--ease); }
.hud-case::before, .hud-case::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); transition: transform .4s var(--ease), opacity .3s; opacity: .7; }
.hud-case::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.hud-case::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.hud-case:hover { border-color: var(--ligne-2); transform: translateY(-3px); }
.hud-case:hover::before { transform: translate(-5px, -5px); opacity: 1; }
.hud-case:hover::after { transform: translate(5px, 5px); opacity: 1; }
.hud-case .chiffre { font-size: clamp(34px, 3.2vw, 50px); color: var(--creme); }
.hud-case small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.hud-rose .chiffre { color: #ff8fc0; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hud-rose .chiffre { background: linear-gradient(90deg, #ff5fa8, #f6a04d); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* Rang : un badge sur la jaquette (bouclier), il s'élève au survol de la carte */
.carte-rang { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border-radius: 9px; background: rgba(11, 11, 12, .9); border: 1px solid var(--c); font: 700 11px/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--creme); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.carte-rang svg { width: 14px; height: 14px; fill: var(--c); }
.carte:hover .carte-rang { transform: translateY(-3px); box-shadow: 3px 3px 0 -1px var(--c), 6px 6px 0 -2px rgba(255, 255, 255, .25); }

@media (max-width: 900px) {
  .hud { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hud-case { min-width: 0; padding: 12px; }
}
@media (max-width: 560px) {
  .hud-case .chiffre { font-size: 26px; }
  .hud-case small { font-size: 10px; }
  .bulle { width: 200px; }
}

/* ============ Retouches du 4 oct. 2026, soir (v12) ============ */
/* Tableau de bord des mondes : en colonne sur écran moyen */
@media (max-width: 1180px) {
  .heros-bord { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .familles { grid-template-columns: 1fr; }
  .famille { grid-template-columns: minmax(8em, max-content) minmax(30px, 1fr) 3.4em; }
}

/* Plateau de tournage : la caméra se tient à droite des affiches et suit le défilement */
.tournage { display: none; }
@media (min-width: 1180px) {
  .plateau { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
  .plateau .grille { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plateau > div { grid-column: 1; }
  .plateau > .tournage { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .tournage { display: block; }
}
.tournage-in { position: sticky; top: 150px; display: grid; gap: 12px; opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.tournage.pret .tournage-in { opacity: 1; transform: none; }
.tournage-camera { display: block; width: 100%; height: min(62vh, 520px); }
/* Halo du projecteur derrière la caméra, au sol une ombre douce */
.tournage-in::before { content: ''; position: absolute; inset: 4% -10% 30%; z-index: -1; background: radial-gradient(closest-side, rgba(240, 179, 90, .16), transparent); filter: blur(6px); }
.tournage-ecran { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--ligne-2); border-radius: 10px; background: rgba(0, 0, 0, .35); font: 600 12px/1 var(--texte); letter-spacing: .12em; }
.rec { display: inline-flex; align-items: center; gap: 7px; color: var(--creme); }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); animation: clignote 1.4s steps(2) infinite; }
.tc { font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: .06em; }
.rembobine .rec { color: var(--gris); }
.rembobine .rec::before { background: var(--accent); }
.rembobine .tc { color: var(--creme); }
.tournage-titre { min-height: 2.6em; font: 700 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--creme); }
.tournage-titre.neuf { animation: titre-neuf .5s var(--ease); }
@keyframes titre-neuf { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }

/* Calendrier : le fond reste vert (une case par jour), le dessin ressort en vert vif, puis s'allume de gauche à droite */
.activite-cases i.on { background: #0e4429; }
.activite-cases i.on.auj { background: #56e36d; }
.activite-cases i.on.p1 { background: #07170d; }
.activite-cases i.on.p3 { background: #26a641; }
.activite-cases i.on.p4 { background: #39d353; }
.js .activite-cases i.p1, .js .activite-cases i.p3, .js .activite-cases i.p4 { filter: brightness(.35); transition: transform .4s var(--ease), filter .5s var(--ease); transition-delay: calc(var(--k) * 16ms), calc(1.1s + var(--k) * 28ms); }
.js .activite.vu .activite-cases i.p1, .js .activite.vu .activite-cases i.p3, .js .activite.vu .activite-cases i.p4 { filter: none; }

/* Boîte à outils : un dock. Les icônes grossissent sous la souris et poussent leurs voisines */
.boite { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--ligne); }
.boite-tete h3 { margin-top: 10px; font: 800 clamp(22px, 2vw, 30px)/1.05 var(--display); font-stretch: 110%; text-transform: uppercase; }
.dock { --t: 52px; display: flex; align-items: flex-end; gap: 10px; width: max-content; max-width: 100%; height: calc(var(--t) * 1.7 + 24px); margin-top: 28px; padding: 0 14px 12px; list-style: none; border-radius: 20px; background: linear-gradient(180deg, transparent calc(100% - var(--t) - 24px), rgba(255, 255, 255, .045) 0); box-shadow: inset 0 -1px 0 var(--ligne-2); }
.outil { --m: 1; position: relative; flex: none; width: calc(var(--t) * var(--m)); height: calc(var(--t) * var(--m)); transition: width .18s var(--ease), height .18s var(--ease); outline: 0; }
.outil-ico { display: block; width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .9); transition: transform .3s var(--ease); }
.outil-ico svg { display: block; width: 100%; height: 100%; }
.outil:focus-visible .outil-ico { box-shadow: 0 0 0 2px var(--noir), 0 0 0 4px var(--creme); }
.outil.saute .outil-ico { animation: saute .9s cubic-bezier(.3, 0, .3, 1); }
@keyframes saute { 20%, 60% { transform: translateY(-34%); } 40%, 80% { transform: none; } 70% { transform: translateY(-12%); } }
.dock-sep { flex: none; align-self: stretch; width: 1px; margin: 34% 4px 4px; background: var(--ligne-2); }
.dock .dock-sep { margin: calc(var(--t) * .7 + 10px) 4px 4px; }
.outil-bulle { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 4; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--creme); color: var(--noir); white-space: nowrap; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 8px) scale(.9); transform-origin: 50% 100%; transition: opacity .25s var(--ease), transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.outil-bulle::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--creme); transform: rotate(45deg); }
.outil-bulle b { font: 700 13px/1.1 var(--display); }
.outil-bulle i { font: 500 11.5px/1.2 var(--texte); font-style: normal; color: #5a554c; }
.outil:hover .outil-bulle, .outil:focus-visible .outil-bulle { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dock-legende { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 13px; color: var(--gris); }
.dock-legende b { color: var(--creme); font-weight: 700; }
@media (max-width: 900px), (hover: none) {
  .dock { --t: 46px; flex-wrap: wrap; height: auto; width: auto; padding: 14px; gap: 12px; background: rgba(255, 255, 255, .03); box-shadow: none; border: 1px solid var(--ligne); }
  .dock .dock-sep { display: none; }
}

/* Pied de page : les réseaux, en logos seuls */
.pied-reseaux { display: flex; gap: 8px; }
.pied-reseau { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ligne-2); color: var(--gris); transition: color .3s, border-color .3s, transform .35s var(--ease); }
.pied-reseau svg { width: 17px; height: 17px; fill: currentColor; }
.pied-reseau svg[style] { fill: none !important; stroke: currentColor; }
.pied-reseau:hover { color: var(--rc); border-color: var(--rc); transform: translateY(-3px) rotate(-6deg); }
.reseau-nom { display: none; }
.pied-bas { align-items: center; }
@media (max-width: 560px) { .pied-bas { align-items: flex-start; } }
.porte-num { z-index: 1; left: 18px; top: 18px; padding: 6px 9px; border-radius: 8px; background: rgba(5, 5, 5, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Boîte à outils v13 : les vrais logos, et une fenêtre d'erreur célèbre au clic */
.boite { position: relative; }
.outil-ico { overflow: hidden; }
.outil-ico img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.outil-ico.outil-nu { overflow: visible; border-radius: 0; box-shadow: none; padding: 3%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.outil-ico.outil-nu img { object-fit: contain; }
.outil-ico.outil-tuile { background: #1e1e1e; padding: 19%; }
.outil-ico.outil-tuile img { object-fit: contain; }
.outil { cursor: pointer; }
.dock-astuce { color: var(--gris-2); }
.erreur-app { position: absolute; left: var(--x, 0); bottom: var(--b, 140px); z-index: 20; width: 360px; max-width: calc(100vw - 32px); border-radius: 8px; overflow: hidden; background: #f3f3f3; color: #1a1a1a; font: 400 13px/1.45 "Segoe UI", system-ui, sans-serif; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 28px 60px -12px rgba(0, 0, 0, .8); transform-origin: 50% 100%; animation: erreur-ouvre .32s cubic-bezier(.2, 1.4, .4, 1); }
.erreur-app[hidden] { display: none; }
.erreur-app.part { animation: erreur-ferme .22s ease forwards; }
@keyframes erreur-ouvre { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes erreur-ferme { to { opacity: 0; transform: translateY(8px) scale(.96); } }
.erreur-barre { display: flex; align-items: center; gap: 8px; height: 32px; padding-left: 10px; background: #fff; font-size: 12px; }
.erreur-barre img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }
.erreur-barre span { flex: 1; }
.erreur-x { display: grid; place-items: center; width: 46px; height: 32px; color: #1a1a1a; transition: background .15s, color .15s; }
.erreur-x svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.erreur-x:hover { background: #c42b1c; color: #fff; }
.erreur-corps { display: flex; gap: 14px; padding: 18px 20px 20px; }
.erreur-corps svg { flex: none; width: 32px; height: 32px; }
.erreur-corps b { display: block; font-weight: 600; }
.erreur-corps span { display: block; margin-top: 4px; color: #444; }
.erreur-pied { display: flex; justify-content: flex-end; padding: 14px 20px; background: #ebebeb; border-top: 1px solid #ddd; }
.erreur-ok { min-width: 84px; padding: 6px 14px; border-radius: 4px; background: #005fb8; color: #fff; font: 600 13px "Segoe UI", system-ui, sans-serif; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3); }
.erreur-ok:hover { background: #1a6fc2; }
.erreur-ok:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.erreur-app.secoue { animation: secoue .4s; }
@media (max-width: 900px), (hover: none) { .erreur-app { left: 0; right: 0; margin-inline: auto; } }

/* Calendrier v13 : caméra, pellicule qui avance (perforations alternées) et manette */
.activite-cases i.on.p2 { background: #006d32; }
.activite-cases i.on.p5 { background: #26a641; }
.activite-cases i.on.p6 { background: #07170d; }
.js .activite-cases i.p2, .js .activite-cases i.p5, .js .activite-cases i.p6 { filter: brightness(.35); transition: transform .4s var(--ease), filter .5s var(--ease); transition-delay: calc(var(--k) * 16ms), calc(1.1s + var(--k) * 28ms); }
.js .activite.vu .activite-cases i.p2, .js .activite.vu .activite-cases i.p5, .js .activite.vu .activite-cases i.p6 { filter: none; }
.activite.vu .activite-cases i.on.p5 { animation: perfo-a .9s steps(1) infinite 2.6s; }
.activite.vu .activite-cases i.on.p6 { animation: perfo-b .9s steps(1) infinite 2.6s; }
@keyframes perfo-a { 50% { background: #07170d; } }
@keyframes perfo-b { 50% { background: #26a641; } }
@media (prefers-reduced-motion: reduce) { .activite-cases i.on.p5, .activite-cases i.on.p6 { animation: none !important; } }
.boite:has(.erreur-app:not([hidden])) .outil-bulle { opacity: 0 !important; }
