/* ==========================================================================
 * WATCH DOGS: LEGION — « PIRATAGE DEDSEC »  ·  theme.css
 * Londres sous surveillance ctOS, piratée par DedSec : coupures glitch rouge/cyan façon logo,
 * le « E » rouge en trois barres (≡) comme séparateur / chargeur / progression, cartes « profiler »
 * bleu nuit (nom cyan, ligne blanche, marque ctOS), bandeau à étiquette rouge.
 * Jetons + composants partagés par toutes les pages du thème (chargé après ../shared/base.css).
 * Illustrations : OFFICIELLES Ubisoft, chargées en direct (art-data.js + theme.js) ; tout le reste
 * (≡, hexagone ctOS, cadres, affiches) est dessiné en CSS. Le logo n'est jamais redessiné.
 *
 * Polices (Google Fonts, à charger par chaque page) :
 *   Noto Sans 700/800/900 · Chakra Petch 500/600/700 · Share Tech Mono · Big Shoulders Stencil Display 900
 * ========================================================================== */

:root {
  /* ---- Couleurs (relevées sur le site officiel / l'UI du jeu) ---- */
  --wdl-red: #E21F26;          /* rouge DedSec / E du logo */
  --wdl-mag: #DB287F;          /* magenta */
  --wdl-neon: #F040F0;         /* néon des key arts */
  --wdl-cyan: #2DADCD;         /* cyan UI */
  --wdl-prof: #95E3F8;         /* texte du profiler */
  --wdl-navy: #182430;         /* panneau profiler */
  --wdl-navy2: #0C2430;
  --wdl-night: #000C24;        /* base nuit */
  --wdl-blood: #300000;        /* noir glitch */
  --wdl-sep: #3C4854;          /* filets du profiler */
  --wdl-map: #002448;          /* carte des quartiers */
  --wdl-street: #3C5484;
  --wdl-borough: #A84868;
  --wdl-white: #FFFFFF;
  --wdl-panel: linear-gradient(180deg, rgba(24, 36, 48, .8), rgba(12, 36, 48, .76));   /* ≈ 75 % */
  --wdl-panel-flat: rgba(12, 36, 48, .78);

  /* ---- Typo ---- */
  --wdl-disp: 'Noto Sans', 'Arial Black', sans-serif;               /* titres 900, police du site officiel */
  --wdl-ui: 'Chakra Petch', 'Rajdhani', 'Segoe UI', sans-serif;     /* interface, capitales espacées */
  --wdl-mono: 'Share Tech Mono', 'Consolas', monospace;             /* relevés, heures */
  --wdl-sten: 'Big Shoulders Stencil Display', 'Anton', 'Impact', sans-serif;   /* pochoirs / affiches */

  /* ---- Mouvement ---- */
  --wdl-snap: cubic-bezier(.7, 0, .2, 1);
  --wdl-out: cubic-bezier(.2, .8, .2, 1);
  --wdl-burst: 620ms;          /* durée d'une rafale glitch */
}

[hidden] { display: none !important; }
body { font-family: var(--wdl-ui); color: #fff; }
.wdl-nc { text-transform: none; }

/* ==========================================================================
 * Fond nuit + texture glitch officielle (repli : lignes de corruption dessinées)
 * ========================================================================== */
.wdl-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(70% 90% at 78% 40%, rgba(48, 0, 0, .9) 0%, rgba(48, 0, 0, 0) 70%),
    radial-gradient(60% 70% at 20% 85%, rgba(0, 36, 72, .55) 0%, rgba(0, 12, 36, 0) 70%),
    linear-gradient(180deg, #000814 0%, #000 100%); }
.wdl-bg-tex { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.wdl-bg-tex img { width: 100%; height: 100%; object-fit: cover; }
.wdl-bg-tex.is-on { opacity: .95; }
/* la texture officielle contient un fragment « DEDSEC » inversé sous le logo (x 0–150, y ≈ 215) : on l'efface en fondu */
.wdl-bg-tex { -webkit-mask-image: radial-gradient(230px 95px at 80px 216px, transparent 55%, #000 100%); mask-image: radial-gradient(230px 95px at 80px 216px, transparent 55%, #000 100%); }
.wdl-bg-lines { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0 22.1%, rgba(226, 31, 38, .22) 22.1% 22.4%, transparent 22.4% 61.3%, rgba(226, 31, 38, .14) 61.3% 61.9%, transparent 61.9% 83%, rgba(45, 173, 205, .12) 83% 83.2%, transparent 83.2%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px); }

/* trame + bande de balayage (transform seulement) */
.wdl-scan { position: absolute; inset: 0; z-index: 11; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .26) 0 1px, transparent 1px 4px); }
.wdl-roll { position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: 11; pointer-events: none;
  background: linear-gradient(180deg, rgba(149, 227, 248, 0) 0%, rgba(149, 227, 248, .045) 60%, rgba(226, 31, 38, .07) 96%, rgba(149, 227, 248, 0) 100%);
  animation: wdl-roll 9s linear infinite; will-change: transform; }
@keyframes wdl-roll { from { transform: translateY(-200px); } to { transform: translateY(1100px); } }

/* ==========================================================================
 * Primitives : ≡ (trois barres du E) et hexagone ctOS
 * ========================================================================== */
.wdl-tri { display: inline-flex; flex-direction: column; justify-content: space-between; width: var(--tw, 26px); height: var(--th, 22px); flex: none; }
.wdl-tri i { display: block; height: var(--tb, 4px); background: var(--tc, var(--wdl-red)); }
.wdl-tri.is-white { --tc: #fff; }
.wdl-tri.is-step i:nth-child(2) { transform: translateX(3px); }       /* barre du milieu décalée (rafale) */

.wdl-hex { display: inline-block; width: 22px; height: 24px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%, 50% 0, 50% 14%, 12% 32%, 12% 68%, 50% 86%, 88% 68%, 88% 32%, 50% 14%); }

/* ==========================================================================
 * Logo officiel (image) — repli texte visible SEULEMENT après échec / délai (jamais de double logo)
 * --lw = largeur visible du logo. Le PNG 1000×563 a sa zone utile en x15-985 / y153-410.
 * ========================================================================== */
.wdl-logo { position: relative; width: var(--lw, 360px); height: calc(var(--lw, 360px) * .265); }
.wdl-logo .wdl-logo-img { position: absolute; left: calc(var(--lw, 360px) * -.01546); top: calc(var(--lw, 360px) * -.1577);
  width: calc(var(--lw, 360px) * 1.0309); max-width: none; height: auto; opacity: 0; transition: opacity .5s ease; }
.wdl-logo.has-img .wdl-logo-img { opacity: 1; }
.wdl-logo-txt { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden;
  font: 700 30px/1 var(--wdl-ui); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.wdl-logo-txt small { display: block; margin-top: 10px; font-size: 20px; letter-spacing: .5em; color: var(--wdl-red); }
.wdl-logo.is-fb .wdl-logo-txt { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.wdl-logo.has-img .wdl-logo-txt { opacity: 0; visibility: hidden; transition: none; }

/* ==========================================================================
 * « Bug » d'antenne : ctOS barré · ≡ DEDSEC · date + heure réelles
 * ========================================================================== */
.wdl-bug { display: flex; align-items: stretch; height: 52px; font: 600 22px/1 var(--wdl-ui); letter-spacing: .14em; text-transform: uppercase; }
.wdl-bug > * { display: flex; align-items: center; gap: 12px; padding: 0 18px; white-space: nowrap; }
.wdl-bug .b-ctos { background: var(--wdl-panel-flat); color: var(--wdl-prof); border-left: 3px solid var(--wdl-cyan); }
.wdl-bug .b-ctos s { text-decoration: none; position: relative; }
.wdl-bug .b-ctos s::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; background: var(--wdl-red); transform: skewY(-4deg); }
.wdl-bug .b-ded { background: var(--wdl-red); color: #fff; font-weight: 700; }
.wdl-bug .b-ded .wdl-tri { --tc: #fff; }
.wdl-bug .b-clock { gap: 14px; background: rgba(0, 0, 0, .72); }
.wdl-bug .b-date { font: 400 20px/1 var(--wdl-mono); letter-spacing: .12em; color: var(--wdl-prof); }
.wdl-bug .b-time { font: 400 26px/1 var(--wdl-mono); letter-spacing: .06em; color: #fff; }

/* ==========================================================================
 * Légende « réalité augmentée » de l'illustration (coins de visée + nom + lieu réels)
 * ========================================================================== */
.wdl-ar { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px;
  font: 600 21px/1 var(--wdl-ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); white-space: nowrap;
  transition: opacity .45s ease; }
.wdl-ar::before, .wdl-ar::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--wdl-prof); pointer-events: none; }
.wdl-ar::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.wdl-ar::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.wdl-ar b { color: #fff; font-weight: 700; }
.wdl-ar em { font-style: normal; color: var(--wdl-prof); }
.wdl-ar em::before { content: "·"; margin-right: 12px; color: rgba(255, 255, 255, .5); }
.wdl-ar.is-swap, .wdl-ar:empty { opacity: 0; }

/* ==========================================================================
 * Titres glitch : coupures façon logo + séparation rouge/cyan FIXE (text-shadow, suit chaque tranche)
 *   ligne normale : g-a (haut, 0-77 %) + g-b (bas, 79-100 %, décalée) → une fine coupure SOUS la mi-hauteur
 *   ligne « slab » : bloc rouge plein, ombres magenta/cyan en aplats ; AUCUNE coupure au repos
 *   g-x : tranche médiane visible uniquement pendant une rafale (.is-glitch sur un parent)
 * ========================================================================== */
.wdl-hd { margin: 0; font: 900 160px/.86 var(--wdl-disp); text-transform: uppercase; letter-spacing: -.035em; }
.wdl-hd .wdl-hl { display: block; white-space: nowrap; }
.wdl-hd .wdl-hl + .wdl-hl { margin-top: 20px; }
.wdl-hd .wdl-hl.is-slab { font-size: 86px; letter-spacing: -.01em; }
.wdl-gl { position: relative; display: inline-block; }
.wdl-gl > span { display: block; white-space: nowrap; color: #fff;
  text-shadow: -4px 0 rgba(226, 31, 38, .85), 4px 2px rgba(45, 173, 205, .5), 0 6px 40px rgba(0, 0, 0, .55); }
.wdl-gl > .g-a { position: relative; z-index: 2; clip-path: inset(-30% -3% 23% -3%); }
.wdl-gl > .g-b { position: absolute; left: 0; top: 0; z-index: 2; clip-path: inset(79% -3% -30% -3%); transform: translateX(-10px); }
.wdl-gl > .g-x { position: absolute; left: 0; top: 0; z-index: 3; clip-path: inset(36% -3% 48% -3%); opacity: 0; }
.wdl-hl.is-slab .wdl-gl > span { background: var(--wdl-red); padding: 8px 22px 10px; text-shadow: none; }
.wdl-hl.is-slab .wdl-gl > .g-a { clip-path: none; box-shadow: -10px 6px 0 rgba(219, 40, 127, .9), 8px -5px 0 rgba(45, 173, 205, .55); }
.wdl-hl.is-slab .wdl-gl > .g-b { opacity: 0; transform: none; }
.wdl-hd.is-calm .wdl-gl > .g-b { transform: translateX(-5px); }        /* version « pause » plus calme */

/* ==========================================================================
 * Carte « profiler » (navy ~75 %, nom cyan, ligne blanche, marque ctOS)
 * ========================================================================== */
.wdl-prof { position: relative; background: var(--wdl-panel); border-left: 4px solid var(--wdl-prof); padding: 24px 30px 18px; }
.wdl-prof-k { display: flex; align-items: center; gap: 12px; font: 600 20px/1 var(--wdl-ui); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.wdl-prof-k .wdl-tri { --tw: 22px; --th: 18px; --tb: 3px; }
.wdl-prof-n { margin-top: 14px; font: 700 76px/1 var(--wdl-ui); color: var(--wdl-prof); white-space: nowrap; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.wdl-prof-n.is-decoding { text-overflow: clip; }
.wdl-prof-r { margin-top: 8px; font: 700 28px/1.15 var(--wdl-ui); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdl-prof-sep { height: 1px; background: rgba(60, 72, 84, .9); margin: 18px 0 12px; }
.wdl-prof-f { display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 400 20px/1 var(--wdl-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(149, 227, 248, .75); white-space: nowrap; }
.wdl-prof-f b { font-weight: 400; color: var(--wdl-red); }
.wdl-ctos-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--wdl-ui); letter-spacing: .04em; text-transform: none; color: var(--wdl-prof); }
.wdl-ctos-mark .wdl-hex { width: 18px; height: 20px; }

/* ==========================================================================
 * Jauge ≡ : les trois barres du E se remplissent L'UNE APRÈS L'AUTRE (progression réelle),
 * une tête clignotante marque toujours le front, même à 0 %.
 * ========================================================================== */
.wdl-meter { display: flex; flex-direction: column; gap: 7px; width: var(--mw, 800px); }
.wdl-meter .m-bar { position: relative; height: 11px; background: rgba(226, 31, 38, .16); overflow: hidden; }
.wdl-meter .m-bar:nth-child(2) { margin-right: 6%; }                      /* le E : barre du milieu plus courte */
.wdl-meter .m-bar b { position: absolute; inset: 0; background: var(--wdl-red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s linear; }
.wdl-meter .m-bar u { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: #fff; opacity: 0; }
.wdl-meter .m-bar.is-head u { opacity: 1; animation: wdl-blink 1s steps(1, end) infinite; }
.wdl-meter.is-full .m-bar b { background: #fff; }
@keyframes wdl-blink { 50% { opacity: .2; } }

/* ==========================================================================
 * Bandeau bas : étiquette rouge · message (défilant si trop long) · réseaux · crédit Ubisoft
 * ========================================================================== */
.wdl-tk { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; z-index: 13; display: flex; align-items: stretch;
  background: rgba(0, 0, 0, .8); border-top: 1px solid rgba(226, 31, 38, .55); }
.wdl-tk-tag { display: flex; align-items: center; gap: 14px; padding: 0 26px 0 72px; background: var(--wdl-red); font: 700 24px/1 var(--wdl-ui); letter-spacing: .2em; text-transform: uppercase; flex: none; white-space: nowrap; }
.wdl-tk-tag .wdl-tri { --tc: #fff; }
.wdl-tk-msg { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; margin: 0 30px; overflow: hidden; }
.wdl-tk-msg > span { display: block; font: 600 28px/1.1 var(--wdl-ui); white-space: nowrap; }
.wdl-tk-msg.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 92%, transparent); }
.wdl-tk-msg.is-marquee > span { animation: wdl-marquee var(--mq-dur, 12s) linear var(--mq-delay, 1.6s) both; }
@keyframes wdl-marquee { from { transform: translateX(0); } to { transform: translateX(var(--mq-x, 0)); } }
.wdl-tk-soc { display: flex; align-items: center; gap: 30px; padding: 0 30px 0 0; flex: none; }
.wdl-soc { display: flex; align-items: center; gap: 11px; font: 600 25px/1 var(--wdl-ui); white-space: nowrap; color: #fff; }
.wdl-soc svg { width: 26px; height: 26px; color: var(--wdl-prof); }
.wdl-tk-cr { display: flex; align-items: center; padding: 0 72px 0 26px; border-left: 1px solid rgba(255, 255, 255, .14); font: 500 17px/1.25 var(--wdl-ui); letter-spacing: .04em; color: rgba(255, 255, 255, .66); text-align: right; flex: none; white-space: nowrap; }
.wdl-fade-swap { transition: opacity .4s ease; }
.wdl-fade-swap.is-out { opacity: 0; }

/* ==========================================================================
 * Carte de Londres (capture officielle de la carte des quartiers ; repli : Tamise dessinée)
 * ========================================================================== */
.wdl-map { position: relative; overflow: hidden; background: var(--wdl-map); border: 1px solid rgba(149, 227, 248, .35); }
.wdl-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.wdl-map .wdl-map-img { position: absolute; left: 0; top: 0; width: var(--map-w, 780px); max-width: none; height: auto;
  transform: translate(var(--map-x, -32px), var(--map-y, -166px)); opacity: 0; transition: opacity .8s ease; }
.wdl-map.has-img .wdl-map-img { opacity: 1; }
.wdl-map.has-img > svg { opacity: 0; }
.wdl-map::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 18, 40, .9) 0%, rgba(0, 18, 40, 0) 48%), repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px); }
.wdl-map-pin { position: absolute; left: var(--pin-x, 56%); top: var(--pin-y, 40%); z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: flex; align-items: center; justify-content: center; background: var(--wdl-red); box-shadow: 0 0 0 3px rgba(0, 12, 36, .85); }
.wdl-map-pin .wdl-tri { --tw: 16px; --th: 14px; --tb: 2.5px; --tc: #fff; }
.wdl-map-ring { position: absolute; left: var(--pin-x, 56%); top: var(--pin-y, 40%); z-index: 2; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 2px solid var(--wdl-prof);
  border-radius: 50%; animation: wdl-ring 2.8s ease-out infinite; will-change: transform, opacity; }
@keyframes wdl-ring { from { transform: scale(.25); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.wdl-map-ret { position: absolute; left: var(--pin-x, 56%); top: var(--pin-y, 40%); z-index: 2; width: 120px; height: 84px; margin: -42px 0 0 -60px; pointer-events: none;
  background:
    linear-gradient(var(--wdl-prof), var(--wdl-prof)) 0 0 / 14px 2px, linear-gradient(var(--wdl-prof), var(--wdl-prof)) 0 0 / 2px 14px,
    linear-gradient(var(--wdl-prof), var(--wdl-prof)) 100% 0 / 14px 2px, linear-gradient(var(--wdl-prof), var(--wdl-prof)) 100% 0 / 2px 14px,
    linear-gradient(var(--wdl-prof), var(--wdl-prof)) 0 100% / 14px 2px, linear-gradient(var(--wdl-prof), var(--wdl-prof)) 0 100% / 2px 14px,
    linear-gradient(var(--wdl-prof), var(--wdl-prof)) 100% 100% / 14px 2px, linear-gradient(var(--wdl-prof), var(--wdl-prof)) 100% 100% / 2px 14px;
  background-repeat: no-repeat; opacity: .8; }
.wdl-map-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; white-space: nowrap; }
.wdl-map-cap b { font: 700 22px/1 var(--wdl-ui); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.wdl-map-cap span { font: 400 19px/1 var(--wdl-mono); letter-spacing: .06em; color: var(--wdl-prof); overflow: hidden; text-overflow: ellipsis; }
.wdl-map-k { position: absolute; left: 16px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--wdl-ui); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.wdl-map-k .wdl-tri { --tw: 18px; --th: 14px; --tb: 2.5px; }

/* ==========================================================================
 * Affiches collées (paste-up) : masque DedSec en bichromie OU pochoir ≡, bande slogan au pochoir.
 * Une couleur et un mot par affiche, jamais deux fois dans la même rangée (theme.js s'en charge).
 * ========================================================================== */
.wdl-poster { position: absolute; --pp: var(--wdl-red); width: var(--pw, 190px); height: var(--ph, 430px); transform: rotate(var(--r, 0deg));
  background: #07080b; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.wdl-poster .p-art { position: absolute; left: 0; right: 0; top: 0; bottom: var(--pband, 96px); overflow: hidden; background: #07080b; }
.wdl-poster .p-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--duo, grayscale(1)); opacity: 0; transition: opacity .6s ease; }
.wdl-poster.has-img .p-art img { opacity: 1; }
.wdl-poster .p-eq { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: calc(var(--pw, 190px) * .075); }
.wdl-poster .p-eq i { display: block; height: calc(var(--pw, 190px) * .11); background: var(--pp); }
.wdl-poster .p-eq i:nth-child(2) { width: 78%; }
.wdl-poster.has-img .p-eq { visibility: hidden; }
.wdl-poster .p-art::before { content: ''; position: absolute; inset: 0; opacity: .32;
  background: radial-gradient(circle, var(--pp) 0 1.3px, transparent 1.9px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 70%); mask-image: linear-gradient(0deg, #000 0%, transparent 70%); }
.wdl-poster.has-img .p-art::before { display: none; }
.wdl-poster .p-dots { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(0, 0, 0, .55) 0 1.1px, rgba(0, 0, 0, 0) 1.7px) 0 0 / 6px 6px; }
.wdl-poster .p-band { position: absolute; left: 0; right: 0; bottom: 0; height: var(--pband, 96px); background: var(--pp); color: #07080b;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wdl-poster .p-band b { font: 900 60px/1 var(--wdl-sten); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.wdl-poster .p-crease { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(103deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .07) 31%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(97deg, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .16) 63.5%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .14)); }
.wdl-poster .p-tape { position: absolute; left: 50%; top: -9px; width: 64px; height: 20px; margin-left: -32px; background: rgba(214, 218, 222, .55); transform: rotate(var(--tr, -4deg)); }
.wdl-poster.is-slap { animation: wdl-slap 520ms var(--d, 0ms) cubic-bezier(.2, 1.4, .35, 1) both; }
@keyframes wdl-slap { 0% { opacity: 0; transform: rotate(calc(var(--r, 0deg) - 6deg)) scale(1.28); } 40% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } }

/* bloc trame « DEDSEC / LONDRES SE SOULÈVE » (repli sans image) */
.wdl-halftone { position: relative; display: inline-block; }
.wdl-halftone b { display: block; font: 900 200px/.8 var(--wdl-sten); letter-spacing: .01em; text-transform: uppercase; color: var(--wdl-red); white-space: nowrap;
  -webkit-mask-image: radial-gradient(circle, #000 0 2.2px, rgba(0, 0, 0, .35) 2.8px) 0 0 / 8px 8px; mask-image: radial-gradient(circle, #000 0 2.2px, rgba(0, 0, 0, .35) 2.8px) 0 0 / 8px 8px; }
.wdl-halftone span { display: block; margin-top: 18px; font: 400 26px/1 var(--wdl-mono); letter-spacing: .42em; text-transform: uppercase; color: var(--wdl-prof); white-space: nowrap; }

/* pseudo bombé au pochoir avec coulures (brb / ending) */
.wdl-sten { position: relative; display: inline-block; font: 900 170px/.86 var(--wdl-sten); letter-spacing: .015em; text-transform: uppercase; white-space: nowrap; color: #F2F4F7;
  text-shadow: 0 0 3px rgba(255, 255, 255, .5), 0 0 18px rgba(255, 255, 255, .2), 0 0 46px rgba(149, 227, 248, .16); }
.wdl-sten .wdl-drip { position: absolute; top: 100%; margin-top: -.1em; width: 5px; border-radius: 0 0 4px 4px; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, rgba(242, 244, 247, .95), rgba(242, 244, 247, .75) 80%, rgba(242, 244, 247, .95)); }
.wdl-sten.is-wet .wdl-drip { animation: wdl-drip 2600ms var(--dd, 600ms) cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes wdl-drip { to { transform: scaleY(1); } }

/* ==========================================================================
 * Illustrations plein cadre (couches + Ken Burns + tranches de rafale) et masque néon
 * ========================================================================== */
.wdl-hero { position: absolute; overflow: hidden; }
.wdl-hero-ly { position: absolute; inset: 0; opacity: 0; }
.wdl-hero-ly.is-on { opacity: 1; }
.wdl-hero-ly.is-new { animation: wdl-hl-in .62s steps(1, end) both; }
@keyframes wdl-hl-in { 0% { opacity: 0; } 18% { opacity: .75; } 30% { opacity: .15; } 46% { opacity: 1; } 60% { opacity: .5; } 74%, 100% { opacity: 1; } }
/* même scintillement par la visibilité (aperçu iPhone, html.ok-leger plus bas) : aucun calque composé */
@keyframes wdl-hl-in-v { 0% { visibility: hidden; } 18% { visibility: visible; } 30% { visibility: hidden; } 46% { visibility: visible; } 60% { visibility: hidden; } 74%, 100% { visibility: visible; } }
.wdl-hero-ly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.wdl-hero-ly.kb img { animation: wdl-kb 34s linear both; }
@keyframes wdl-kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.6%, -.8%, 0); } }
.wdl-hcut { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wdl-hcut img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.wdl-hcut.c1 { clip-path: inset(18% 0 70% 0); animation: wdl-hc1 var(--wdl-burst) steps(1, end) both; }
.wdl-hcut.c2 { clip-path: inset(52% 0 36% 0); animation: wdl-hc2 var(--wdl-burst) steps(1, end) both; }
.wdl-hcut.c3 { clip-path: inset(66% 0 30% 0); animation: wdl-hc1 var(--wdl-burst) .08s steps(1, end) both; }
@keyframes wdl-hc1 { 0% { transform: translateX(-90px); } 33% { transform: translateX(60px); } 66% { transform: translateX(-24px); } 100% { transform: translateX(0); opacity: 0; } }
@keyframes wdl-hc2 { 0% { transform: translateX(120px); } 33% { transform: translateX(-70px); } 66% { transform: translateX(30px); } 100% { transform: translateX(0); opacity: 0; } }

.wdl-mask { position: absolute; pointer-events: none; }
.wdl-mask-ly { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.wdl-mask-ly.is-on { opacity: .92; }
.wdl-mask-ly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wdl-mask-ly .mcut { position: absolute; inset: 0; }
.wdl-mask-ly .mc1 { clip-path: inset(30% 0 62% 0); transform: translateX(16px); }
.wdl-mask-ly .mc2 { clip-path: inset(71% 0 25% 0); transform: translateX(-12px); }

/* ==========================================================================
 * Rafales glitch (transform / opacity uniquement) : posez .is-glitch sur la scène
 * ========================================================================== */
.wdl-gbars { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.wdl-gbars i { position: absolute; left: 0; width: 100%; opacity: 0; }
.wdl-gbars i:nth-child(1) { top: 14%; height: 34px; background: var(--wdl-red); }
.wdl-gbars i:nth-child(2) { top: 31%; height: 8px; background: var(--wdl-cyan); }
.wdl-gbars i:nth-child(3) { top: 47%; height: 64px; background: #000; }
.wdl-gbars i:nth-child(4) { top: 58%; height: 14px; background: var(--wdl-red); }
.wdl-gbars i:nth-child(5) { top: 73%; height: 26px; background: rgba(149, 227, 248, .8); }
.wdl-gbars i:nth-child(6) { top: 88%; height: 10px; background: var(--wdl-neon); }
.is-glitch .wdl-gbars i { animation: wdl-gbar var(--wdl-burst) steps(1, end) both; }
.is-glitch .wdl-gbars i:nth-child(2n) { animation-delay: .06s; }
.is-glitch .wdl-gbars i:nth-child(3n) { animation-name: wdl-gbar2; }
@keyframes wdl-gbar  { 0% { opacity: .9; transform: translateX(-62%) scaleX(.7); } 20% { opacity: .2; transform: translateX(14%) scaleX(.5); } 38% { opacity: .85; transform: translateX(46%) scaleX(.4); } 58% { opacity: .5; transform: translateX(-20%) scaleX(.3); } 76%, 100% { opacity: 0; } }
@keyframes wdl-gbar2 { 0% { opacity: 0; } 14% { opacity: .9; transform: translateX(30%) scaleX(.6); } 40% { opacity: .6; transform: translateX(-40%) scaleX(.5); } 62% { opacity: .9; transform: translateX(8%) scaleX(.2); } 80%, 100% { opacity: 0; } }
.is-glitch .wdl-gl > .g-x { animation: wdl-sl-x var(--wdl-burst) steps(1, end) both; }
.is-glitch .wdl-gl > .g-b { animation: wdl-sl-b var(--wdl-burst) steps(1, end) both; }
.is-glitch .wdl-gl > .g-a { animation: wdl-sl-a var(--wdl-burst) steps(1, end) both; }
.is-glitch .wdl-hl.is-slab .wdl-gl > .g-b { animation-name: wdl-sl-bs; }
@keyframes wdl-sl-x { 0% { opacity: 1; transform: translateX(70px); } 25% { transform: translateX(-40px); } 50% { transform: translateX(110px); } 75% { transform: translateX(6px); } 100% { opacity: 0; transform: none; } }
@keyframes wdl-sl-b { 0% { transform: translateX(-90px); } 30% { transform: translateX(30px); } 60% { transform: translateX(-50px); } 100% { transform: translateX(-10px); } }
@keyframes wdl-sl-bs { 0% { opacity: 1; transform: translateX(-60px); } 30% { transform: translateX(24px); } 60% { transform: translateX(-30px); } 100% { opacity: 0; transform: none; } }
@keyframes wdl-sl-a { 0% { transform: translateX(-16px); } 40% { transform: translateX(10px); } 70%, 100% { transform: none; } }
.is-glitch .wdl-mask-ly .mc1 { animation: wdl-mk1 var(--wdl-burst) steps(1, end) both; }
.is-glitch .wdl-mask-ly .mc2 { animation: wdl-mk2 var(--wdl-burst) steps(1, end) both; }
@keyframes wdl-mk1 { 0% { transform: translateX(-60px); } 40% { transform: translateX(40px); } 100% { transform: translateX(16px); } }
@keyframes wdl-mk2 { 0% { transform: translateX(50px); } 40% { transform: translateX(-34px); } 100% { transform: translateX(-12px); } }

/* micro-glitch d'ambiance (toutes les ~8 s, .is-tick sur la scène) : masque + ≡ */
.is-tick .wdl-mask-ly.is-on { animation: wdl-flick .36s steps(1, end) both; }
.is-tick .wdl-mask-ly .mc1 { animation: wdl-tick1 .36s steps(1, end) both; }
.is-tick .wdl-tri.is-live i:nth-child(2) { animation: wdl-tick2 .36s steps(1, end) both; }
@keyframes wdl-flick { 0% { opacity: .5; } 30% { opacity: .92; } 55% { opacity: .7; } 100% { opacity: .92; } }
@keyframes wdl-tick1 { 0% { transform: translateX(-28px); } 50% { transform: translateX(24px); } 100% { transform: translateX(16px); } }
@keyframes wdl-tick2 { 0% { transform: translateX(6px); } 50% { transform: translateX(-4px); } 100% { transform: none; } }

/* ==========================================================================
 * Prise de contrôle : écran ctOS → plaques rouge/noir DedSec (WDL.takeover)
 * ========================================================================== */
.wdl-ctos { position: absolute; inset: 0; z-index: 40; overflow: hidden;
  background:
    linear-gradient(rgba(45, 173, 205, .07) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(45, 173, 205, .07) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(60% 60% at 50% 50%, #0C2430 0%, #000C24 80%); }
.wdl-ctos .ct-c { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--wdl-prof); }
.wdl-ctos .ct-mark { display: inline-flex; align-items: center; gap: 30px; font: 700 190px/1 var(--wdl-ui); letter-spacing: -.01em; }
.wdl-ctos .ct-mark .wdl-hex { width: 130px; height: 148px; }
.wdl-ctos .ct-sub { margin-top: 26px; padding-left: .36em; font: 600 34px/1 var(--wdl-ui); letter-spacing: .36em; text-transform: uppercase; color: #fff; }
.wdl-ctos .ct-st { margin-top: 30px; font: 400 28px/1 var(--wdl-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--wdl-cyan); }
.wdl-ctos .ct-st b { font-weight: 400; color: var(--wdl-red); display: none; }
.wdl-ctos.is-hit .ct-st span { display: none; }
.wdl-ctos.is-hit .ct-st b { display: inline; }
.wdl-ctos.is-hit .ct-c { animation: wdl-ct-shake .5s steps(1, end) both; }
@keyframes wdl-ct-shake { 0% { transform: translate(-30px, -50%); } 20% { transform: translate(40px, -50%); color: var(--wdl-red); } 40% { transform: translate(-10px, -50%); } 60% { transform: translate(22px, -50%); color: var(--wdl-prof); } 80%, 100% { transform: translate(0, -50%); } }
.wdl-ctos .ct-slab { position: absolute; left: 0; width: 100%; background: var(--wdl-red); transform: translateX(-101%); }
.wdl-ctos .ct-slab:nth-child(odd) { background: #000; }
.wdl-ctos.is-hit .ct-slab { animation: wdl-slab .55s var(--wdl-snap) both; }
@keyframes wdl-slab { to { transform: translateX(0); } }
.wdl-ctos.is-out { animation: wdl-ct-out .5s steps(1, end) both; }
@keyframes wdl-ct-out { 0% { clip-path: inset(0 0 0 0); } 20% { clip-path: inset(0 0 54% 0); } 40% { clip-path: inset(30% 0 40% 0); } 60% { clip-path: inset(62% 0 30% 0); } 80% { clip-path: inset(88% 0 8% 0); } 100% { clip-path: inset(100% 0 0 0); } }
/* sens inverse (fin de live) : les plaques DedSec recouvrent puis repartent → écran ctOS « Signal coupé » */
.wdl-ctos.is-rev { animation: wdl-ct-in .5s steps(1, end) both; }
.wdl-ctos.is-rev .ct-slab { transform: none; }
.wdl-ctos.is-rev.is-hit .ct-slab { animation: wdl-slab-away .6s var(--wdl-snap) both; }
@keyframes wdl-ct-in { 0% { clip-path: inset(100% 0 0 0); } 20% { clip-path: inset(88% 0 8% 0); } 40% { clip-path: inset(62% 0 30% 0); } 60% { clip-path: inset(30% 0 40% 0); } 80% { clip-path: inset(0 0 54% 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes wdl-slab-away { from { transform: none; } to { transform: translateX(101%); } }

/* entrée des blocs après la prise de contrôle */
.wdl-rise { opacity: 0; transform: translateY(24px); }
.is-in .wdl-rise { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--wdl-snap); transition-delay: calc(var(--d, 0) * 90ms); }

/* ==========================================================================
 * Mouvement réduit
 * ========================================================================== */
html.ok-reduced .wdl-roll, html.ok-reduced .wdl-hero-ly.kb img, html.ok-reduced .wdl-map-ring,
html.ok-reduced .wdl-meter .m-bar.is-head u { animation: none; }
html.ok-reduced .wdl-sten .wdl-drip { transform: scaleY(1); animation: none; }
html.ok-reduced .wdl-poster.is-slap { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .wdl-roll, .wdl-hero-ly.kb img, .wdl-map-ring, .wdl-meter .m-bar.is-head u, .wdl-poster.is-slap { animation: none; }
  .wdl-sten .wdl-drip { transform: scaleY(1); animation: none; }
}

/* fin de signal en mouvement réduit : écran ctOS « Signal coupé » posé d'un coup, aucune plaque ni animation */
.wdl-ctos.is-still, .wdl-ctos.is-still .ct-c { animation: none !important; }
.wdl-ctos.is-still .ct-slab { display: none; }

/* Aperçu sur iPhone (html.ok-leger, posé par OK.fitStage) : le WebKit d'iOS garde le texte zoomé au-dessus de ~9 px,
   la scène y est donc réduite par zoom 0,45 + scale(), et chaque calque composé coûte ~6× plus de mémoire qu'en zoom
   pur. Les boucles d'ambiance s'arrêtent (lent zoom de l'illustration, bande de balayage, onde du repère de carte) :
   sans calque animé dessous, les voiles plein cadre ne deviennent plus des calques. Rafales sans tranches
   d'illustration (theme.js, WDL.burst). Prise de contrôle, entrées, chrono, messages, rafales et changements
   d'illustration restent animés. */
html.ok-leger .wdl-hero-ly.kb img, html.ok-leger .wdl-map-ring { animation: none; will-change: auto; }
html.ok-leger .wdl-map-ring { opacity: .45; }
html.ok-leger .wdl-roll { display: none; }
/* trame de balayage plein cadre, tout en haut de la pile : au-dessus de la moindre animation, elle deviendrait un calque
   plein cadre ; à cette taille ses lignes de 1 px ne se voient plus */
html.ok-leger .wdl-scan { display: none; }
/* texture de fond (plein cadre, masquée) : posée sans fondu, sinon tout ce qui la recouvre devient calque le temps du fondu */
html.ok-leger .wdl-bg-tex { transition: none; }
/* affiches : l'entrée finie ne reste pas un calque (leur style de base est la fin de l'entrée) ; coulures posées */
html.ok-leger .wdl-poster.is-slap { animation-fill-mode: backwards; }
/* nouvelle illustration : le même scintillement, par la visibilité (tout ou rien : l'ancienne apparaît dessous, voir
   wdl-hl-in-v). Une opacité animée en faisait un calque, et du voile, du bandeau DedSec et du titre posés dessus des
   calques plein cadre, toutes les 16 s ; l'apparition finie ne reste pas non plus un calque (style de base .is-on) */
html.ok-leger .wdl-hero-ly.is-new { animation-name: wdl-hl-in-v; animation-fill-mode: backwards; }
html.ok-leger .wdl-sten .wdl-drip { transform: scaleY(1); animation: none; }
