/* Coupé au montage : les archives de ce que Rockstar a retiré. Même base que les dossiers (dossier.css),
   avec le rouge du logo GTA Online pour accent et un niveau de preuve sur chaque élément. */
:root { --cut: #ff3b2f; --cut-bg: rgba(255, 59, 47, 0.12); --ok: #3dff6a; }

.cut-eyebrow { color: var(--cut); }
.open-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.open h1 em { -webkit-text-stroke-color: var(--cut); }
.logo-fig { position: relative; margin: 0; width: clamp(160px, 22vw, 260px); }
.logo-fig img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(255, 59, 47, 0.25)); }
.stamp { position: absolute; right: -8px; top: 18%; transform: rotate(12deg); font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cut); border: 2px solid var(--cut); padding: 4px 10px; background: rgba(14, 11, 25, 0.85); }
@media (max-width: 720px) { .open-grid { grid-template-columns: minmax(0, 1fr); } .logo-fig { width: 150px; grid-row: 1; } .logo-fig .stamp { top: -4px; right: auto; left: 160px; } }

.warn { margin-top: 36px; border: 1px solid rgba(255, 59, 47, 0.35); border-left: 3px solid var(--cut); border-radius: 3px; background: var(--cut-bg); padding: 16px 18px; }
.warn p { margin: 0 0 10px; max-width: 70ch; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.legend .lv { margin-right: 8px; }

/* niveaux de preuve */
.lv { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 2px; border: 1px solid currentColor; max-width: 100%; }
.lv.files { color: var(--debug); }
.lv.ext { color: var(--lod1); }
.lv.leak { color: var(--lod2); }
.lv.guess { color: var(--dim); border-style: dashed; }
.lv.nos { color: #ff9a8f; border-style: dotted; }
.lvs { display: flex; flex-wrap: wrap; gap: 8px; }
.ch code, .cut code, .ex-pane code { font-family: var(--f-mono); font-size: 0.88em; color: var(--lod1); }

/* coupe 1 : la capture du prototype, annotée */
.shot { margin: 0; }
.shot-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.shot-bar .btn-line { padding: 5px 10px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.shot-bar .btn-line[aria-pressed="true"] { background: var(--debug); color: var(--debug-bg); }
.shot-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.shot-img img { display: block; width: 100%; height: auto; }
.shot-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 60px rgba(0, 0, 0, 0.35); }
.hs { position: absolute; z-index: 1; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; border-radius: 50%; background: var(--cut); color: #fff; font-family: var(--f-mono); font-size: 12px; font-weight: 600; line-height: 1; box-shadow: 0 0 0 3px rgba(14, 11, 25, 0.75), 0 4px 14px rgba(0, 0, 0, 0.5); transition: transform 0.2s, background 0.2s; }
.hs.on { transform: scale(1.3); background: var(--debug); color: var(--debug-bg); }
.shot.no-notes .hs { display: none; }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-family: var(--f-mono); font-size: 11px; color: var(--ink); background: rgba(14, 11, 25, 0.8); border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px; opacity: 0; transition: opacity 0.2s; }
.shot-img:hover .shot-zoom, .shot-img:focus-visible .shot-zoom { opacity: 1; }
@media (hover: none) { .shot-zoom { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hs, .shot-zoom { transition: none; } }
.shot-notes { list-style: none; margin: 0; padding: 8px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; counter-reset: n; }
.shot-notes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); line-height: 1.45; cursor: default; }
.shot-notes li::before { counter-increment: n; content: counter(n); grid-row: 1 / 3; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--cut); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.shot-notes li.on::before { background: var(--debug); color: var(--debug-bg); }
.shot-notes b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.shot figcaption { padding: 4px 14px 14px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); line-height: 1.5; }
@media (max-width: 560px) { .shot-notes { grid-template-columns: minmax(0, 1fr); } .hs { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 11px; } }
.lightbox { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--night); max-width: min(1200px, 96vw); width: 100%; color: var(--ink); }
.lightbox::backdrop { background: rgba(5, 4, 10, 0.85); backdrop-filter: blur(4px); }
.lightbox img { display: block; width: 100%; height: auto; }
.lightbox form { display: flex; justify-content: flex-end; padding: 10px; }

/* coupe 2 : les noms de code */
.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.nm { position: relative; display: grid; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--debug-bg); border: 1px solid var(--line); border-left: 3px solid var(--debug); border-radius: 3px; padding: 12px 14px; cursor: pointer; min-height: 86px; }
.nm[data-lv="guess"] { border-left-style: dashed; border-left-color: var(--dim); }
.nm[data-lv="leak"] { border-left-color: var(--lod2); }
.nm:hover { background: #0b1b2d; }
.nm .code { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.nm .final { display: none; font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; color: var(--cut); }
.nm small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.nm.on .code { font-size: 15px; color: var(--dim); text-decoration: line-through; text-decoration-color: var(--cut); }
.nm.on .final { display: block; }
@media (max-width: 420px) { .names { grid-template-columns: minmax(0, 1fr); } }

/* coupe 3 : le plan de la Fleeca */
.plan { display: block; width: 100%; height: auto; }
.pl-t { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600; }
.pl-s { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; fill: #a59db4; }
.plan[data-v="final"] .pl-proto, .plan[data-v="proto"] .pl-final { display: none; }

/* coupe 4 : ce qui est revenu */
.ch .ch-grid + .recy, .recy { align-self: start; }
.recy-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.recy-head .read { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--debug); }
.recy-list { list-style: none; margin: 0; padding: 6px 16px; max-height: 620px; overflow-y: auto; }
.recy-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0 10px 14px; border-bottom: 1px solid var(--line); position: relative; }
.recy-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--cut); }
.recy-list li[data-s="back"]::before { background: var(--ok); }
.recy-list b { font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.recy-list span { font-size: 14px; color: var(--dim); }
.recy-list em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--cut); }
.recy-list li[data-s="back"] em { color: var(--ok); }
.recy-list li.hide { display: none; }
.recy .tip { padding-top: 12px; border-top: 1px solid var(--line); }

/* coupe 5 : l'explorateur des mises à jour fantômes */
.explorer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 380px; }
.ex-list { list-style: none; margin: 0; padding: 10px 0; border-right: 1px solid var(--line); background: var(--debug-bg); }
.ex-list button { width: 100%; text-align: left; background: transparent; border: 0; color: var(--dim); font-family: var(--f-mono); font-size: 13px; padding: 8px 14px 8px 34px; cursor: pointer; position: relative; }
.ex-list button::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 9px; margin-top: -5px; border: 1.5px solid currentColor; border-radius: 1px; }
.ex-list button:hover { color: var(--ink); }
.ex-list button[aria-selected="true"] { color: var(--debug-bg); background: var(--debug); }
.ex-panes { padding: 20px; }
.ex-pane { display: grid; gap: 12px; align-content: start; }
.ex-pane + .ex-pane { margin-top: 24px; }
.js .ex-pane { display: none; } .js .ex-pane.on { display: grid; } .js .ex-pane + .ex-pane { margin-top: 0; }
.ex-pane h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 0.95; }
.ex-pane p { margin: 0; color: var(--dim); }
.ex-pane .lv { justify-self: start; }
@media (max-width: 560px) { .explorer { grid-template-columns: minmax(0, 1fr); } .ex-list { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; padding: 8px; gap: 4px; } .ex-list button { padding: 6px 10px; } .ex-list button::before { display: none; } }

/* coupe 6 : les petites coupes */
.narrow { max-width: 760px; }
.cuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 1000px) { .cuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cuts { grid-template-columns: minmax(0, 1fr); } }
.cut { position: relative; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); border-radius: 4px; background: var(--night-2); padding: 22px; overflow: hidden; }
.cut::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 70px; height: 70px; background: repeating-linear-gradient(-45deg, rgba(255, 59, 47, 0.18) 0 6px, transparent 6px 12px); pointer-events: none; -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 70%); mask-image: linear-gradient(225deg, #000 30%, transparent 70%); }
.cut .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cut); }
.cut h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 0.95; }
.cut p { margin: 0; color: var(--dim); font-size: 15px; }
.cut .lv { justify-self: start; }

/* coupe 7 : les logos, de la bêta au final */
.logos { display: grid; }
.lg-steps { list-style: none; margin: 0; padding: 20px 16px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.lg-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: start; text-align: center; }
.lg-step + .lg-step::before { content: "→"; position: absolute; left: -12px; top: 30%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 14px; color: var(--dim); }
.lg-art { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border: 1px dashed rgba(244, 237, 228, 0.22); border-radius: 3px; background: repeating-linear-gradient(-45deg, rgba(244, 237, 228, 0.025) 0 8px, transparent 8px 16px), var(--debug-bg); margin-bottom: 8px; }
.lg-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)); }
.lg-step .k { font-family: var(--f-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.lg-step b { font-family: var(--f-display); font-weight: 900; font-size: 20px; text-transform: uppercase; line-height: 1; }
.lg-step small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); line-height: 1.4; }
.lg-step.final .lg-art { border: 1px solid rgba(255, 59, 47, 0.55); background: radial-gradient(70% 70% at 50% 45%, rgba(255, 59, 47, 0.18), transparent 70%), var(--debug-bg); }
.lg-step.final .k { color: var(--cut); }
@media (max-width: 560px) { .lg-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; } .lg-step { grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; text-align: left; align-items: center; } .lg-art { grid-row: 1 / 4; margin: 0; padding: 8px; } .lg-step .k { align-self: end; } .lg-step small { align-self: start; } .lg-step + .lg-step::before { content: "↓"; left: 48px; top: -12px; } }

/* sources */
.srcs { padding-block: 64px 0; }
.srcs h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 40px; margin: 0 0 16px; }
.srcs ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--dim); max-width: 80ch; }
.srcs a { color: var(--debug); }

/* page de la catégorie */
.acard { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; text-decoration: none; color: inherit; border: 1px solid rgba(255, 59, 47, 0.4); border-radius: 4px; background: var(--night-2); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.acard:hover, .acard:focus-visible { transform: translateY(-4px); border-color: var(--cut); }
@media (prefers-reduced-motion: reduce) { .acard { transition: none; } .acard:hover, .acard:focus-visible { transform: none; } }
.acard .art { position: relative; display: grid; place-items: center; padding: 40px; background: radial-gradient(70% 70% at 50% 45%, rgba(255, 59, 47, 0.22), transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 59, 47, 0.06) 0 10px, transparent 10px 20px), var(--debug-bg); }
.acard .art img { width: min(240px, 80%); height: auto; }
.acard .art .stamp { top: 24px; right: 24px; }
.acard .body { display: grid; gap: 12px; align-content: center; padding: 36px; }
.acard h2 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 4vw, 54px); line-height: 0.92; }
.acard p { margin: 0; color: var(--dim); }
.acard .meta { margin-top: 4px; }
.acard .go { font-family: var(--f-mono); font-size: 13px; color: var(--cut); }
@media (max-width: 820px) { .acard { grid-template-columns: minmax(0, 1fr); } .acard .body { padding: 22px; } }
.agrid { display: grid; gap: 18px; padding-block: 36px 88px; }
.asoon { border: 1px dashed rgba(255, 59, 47, 0.45); border-radius: 4px; padding: 26px; display: grid; gap: 10px; background: linear-gradient(135deg, rgba(255, 59, 47, 0.1), transparent 60%), var(--night-2); text-decoration: none; color: inherit; }
.asoon h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 0.95; }
.asoon p { margin: 0; color: var(--dim); }
.asoon span { font-family: var(--f-mono); font-size: 13px; color: var(--debug); }

/* ---------- Archive GTA V ---------- */
.v5 .logo-fig img { filter: drop-shadow(0 10px 30px rgba(125, 170, 60, 0.28)); }

/* panneaux routiers : l'ancien nom, en vert autoroute */
.signs { display: grid; gap: 8px; margin-top: 4px; }
.sign { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; }
.s-old { grid-row: 1 / 3; font-family: var(--f-body); font-weight: 700; font-size: 15px; color: #fff; background: #0b6b3a; border: 2px solid #fff; outline: 2px solid #0b6b3a; border-radius: 5px; padding: 5px 11px; white-space: nowrap; }
.s-new { font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.sign .lv { justify-self: start; }

/* bascule entre deux images */
.swap .shot-bar { flex-wrap: wrap; }
.swap[data-v="map"] .sw-fig[data-v="beach"], .swap[data-v="beach"] .sw-fig[data-v="map"] { display: none; }
.sw-fig { margin: 0; }
.sw-fig .zoomable { display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #050409; }
.sw-fig[data-v="map"] .zoomable { background: radial-gradient(60% 60% at 50% 50%, rgba(82, 226, 255, 0.08), transparent 70%), var(--debug-bg); padding: 16px; }
.sw-fig[data-v="map"] img { max-height: 520px; width: auto; }
.sw-fig img { display: block; width: 100%; height: auto; }
.sw-fig figcaption, .gal-cap { margin: 0; padding: 12px 14px 14px; font-family: var(--f-mono); font-size: 12px; color: var(--dim); line-height: 1.55; }
.sw-fig figcaption .lv { margin-top: 6px; }
.zoomable { cursor: zoom-in; }

/* galerie */
.gal .shot-bar { flex-wrap: wrap; }
.gal-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #050409; aspect-ratio: 16 / 9; overflow: hidden; }
.gal-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gal-main:hover .shot-zoom, .gal-main:focus-visible .shot-zoom { opacity: 1; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; padding: 0 14px 14px; }
.gal-th { padding: 0; border: 2px solid transparent; border-radius: 3px; background: #050409; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.gal-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-th:hover { opacity: 0.9; }
.gal-th[aria-pressed="true"] { opacity: 1; border-color: var(--cut); }
@media (prefers-reduced-motion: reduce) { .gal-th { transition: none; } }

/* armes : icônes du HUD */
.wpn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 1000px) { .wpn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wpn { grid-template-columns: minmax(0, 1fr); } }
.wcard { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 4px; background: var(--night-2); padding: 18px; }
.w-art { display: grid; place-items: center; height: 120px; margin-bottom: 8px; border-radius: 3px; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 16px 16px, var(--debug-bg); }
.w-art img { width: auto; max-width: 80%; height: auto; max-height: 70px; image-rendering: auto; filter: drop-shadow(0 0 10px rgba(82, 226, 255, 0.25)); }
.wcard .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cut); }
.wcard b { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.wcard small { color: var(--dim); font-size: 14px; line-height: 1.5; }
.wcard .lv { justify-self: start; margin-top: 4px; }
.wcard.photo .zoomable { display: block; padding: 0; border: 0; background: none; margin-bottom: 8px; border-radius: 3px; overflow: hidden; }
.wcard.photo img { display: block; width: 100%; height: 120px; object-fit: cover; }
.wcard.text { background: linear-gradient(135deg, rgba(255, 59, 47, 0.08), transparent 60%), var(--night-2); }

/* petites coupes avec image */
.cuts.pics .cut > .zoomable { display: block; margin: -22px -22px 4px; padding: 0; border: 0; background: #050409; height: 180px; overflow: hidden; }
.cuts.pics .cut > .zoomable img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cuts.pics .cut > .zoomable:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .cuts.pics .cut > .zoomable img { transition: none; } }
.cuts.pics .cut.text { background: linear-gradient(135deg, rgba(255, 59, 47, 0.08), transparent 60%), var(--night-2); }

/* radios : listes de chansons */
.radio .ex-list { max-height: 520px; overflow-y: auto; }
.radio .ex-panes { max-height: 520px; overflow-y: auto; }
.songs { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--ink); }
.songs li::marker { color: var(--cut); font-family: var(--f-mono); font-size: 11px; }
.songs i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-left: 4px; }
.acard.v5c .art img { filter: drop-shadow(0 10px 30px rgba(125, 170, 60, 0.28)); }
.nm[data-lv="ext"] { border-left-color: var(--lod1); }
.cuts.pics .cut:has(> .zoomable)::after { display: none; }
.cuts.pics .cut > .zoomable img.top, .wcard.photo img.top { object-position: 50% 8%; }
