/* Salle d'itération (/iteration) : entrées ouvertes à l'itération, par format. Même univers que la régie Séquence
   (sequence-console.css) : noir, rouge #e10600, Share Tech Mono, Big Shoulders Display. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; }
body { min-height: 100dvh; color: #f7f1f1; font-family: "Share Tech Mono", "Share Tech Mono Repli", ui-monospace, monospace; }
a { color: inherit; }
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 66% at 0% 0%, rgba(72, 12, 20, 0.2), transparent 74%),
    radial-gradient(ellipse 80% 66% at 100% 0%, rgba(72, 12, 20, 0.2), transparent 74%),
    radial-gradient(ellipse 88% 72% at 0% 100%, rgba(54, 8, 16, 0.22), transparent 76%),
    radial-gradient(ellipse 88% 72% at 100% 100%, rgba(54, 8, 16, 0.22), transparent 76%);
}
.it-shell { position: relative; z-index: 1; display: grid; gap: 1.4rem; padding: 1.5rem 1.5rem 1.2rem; min-height: 100dvh; grid-template-rows: auto 1fr auto; } /* menu holo (menu-holo.css), salle, plaque */
.logo { display: flex; align-items: center; gap: 0.45rem; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 0.84; letter-spacing: 0.06em; text-decoration: none; }
.logo .word { color: #f7f1f1; white-space: nowrap; }
.logo .word.corp { color: var(--rouge-texte, #f40700); }
.logo .bar { width: 2px; height: 0.72em; background: #e10600; box-shadow: 0 0 12px rgba(225, 6, 0, 0.65); }
.head-links { display: flex; gap: 1.15rem; }
.head-charter, .head-registre { color: #8a8082; font-size: 0.68rem; letter-spacing: 0.14em; text-decoration: none; white-space: nowrap; }
.head-registre { color: #f7f1f1; }
.head-charter:hover, .head-registre:hover { color: var(--rouge-texte, #f40700); }
.head-tools { display: grid; justify-items: end; gap: 0.9rem; }
.lang { display: flex; gap: 0.35rem; color: #8a8082; font-size: 0.68rem; letter-spacing: 0.14em; }
.lang button { padding: 0; border: 0; background: none; color: #8a8082; font: inherit; letter-spacing: inherit; cursor: pointer; }
.lang button[aria-pressed="true"] { color: #f7f1f1; }
.profile-btn { padding: 0.42rem 0.65rem; border: 1px solid #e10600; color: var(--rouge-texte, #f40700); font-size: 0.68rem; letter-spacing: 0.16em; text-decoration: none; }

/* En-tête : menu holo partagé (/menu-holo.css, /menu-holo.js) — l'ancienne barre .it-head / .it-cats est retirée. */

/* — console — */
.it-salle { min-width: 0; border: 1px solid rgba(225, 6, 0, 0.45); background: rgba(10, 4, 5, 0.82); display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); grid-template-rows: auto auto 1fr; }
.it-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(225, 6, 0, 0.45); }
.it-title { margin: 0; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: 1.7rem; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; }
.it-sub { color: #8a8082; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
.it-stat { display: grid; gap: 0.2rem; padding-left: 1.1rem; border-left: 1px solid rgba(225, 6, 0, 0.45); }
.it-stat b { color: #8a8082; font-weight: 400; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }
.it-stat span { font-size: 0.9rem; letter-spacing: 0.08em; }
.it-stat .lit { color: #ff2a33; }
.it-bar .it-grow { flex: 1 1 auto; }
.it-rubs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(225, 6, 0, 0.18); }
.it-rub { padding: 0.42rem 0.75rem; border: 1px solid rgba(225, 6, 0, 0.45); background: transparent; color: #c9b8b8; font: inherit; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.it-rub sup { margin-left: 0.25rem; color: #8a8082; font-size: 0.6rem; }
.it-rub[aria-selected="true"] { background: #e10600; border-color: #e10600; color: #fff; }
.it-rub[aria-selected="true"] sup { color: #fff; }
.it-rub.is-empty:not([aria-selected="true"]) { color: #8a8082; border-color: rgba(225, 6, 0, 0.16); }
.it-rub:focus-visible { outline: 1px solid #ff2a33; outline-offset: 2px; }

.it-stage { min-width: 0; padding: 1rem; display: grid; gap: 0.8rem; align-content: start; border-right: 1px solid rgba(225, 6, 0, 0.18); }
.it-screen { position: relative; justify-self: center; width: min(100%, calc((100dvh - 24rem) * 16 / 9)); min-width: min(100%, 22rem); border: 1px solid #e10600; box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.25), 0 0 28px rgba(225, 6, 0, 0.18); background: #050203; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.it-screen.is-tall { width: 100%; aspect-ratio: auto; height: max(22rem, calc(100dvh - 24rem)); }
.it-screen video, .it-screen img, .it-screen canvas { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.it-screen .it-ph { display: grid; justify-items: center; gap: 0.6rem; color: #8a8082; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; padding: 1rem; }
.it-screen .it-ph strong { color: #f40700; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: 2.6rem; letter-spacing: 0.08em; }
.it-screen audio { width: min(calc(100% - 1.4rem), 34rem); min-width: 0; }
.it-screen .it-signal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; justify-items: center; width: 100%; min-width: 0; overflow: hidden; }
.it-screen .it-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 5.5rem; max-width: calc(100% - 1.4rem); overflow: hidden; }
.it-screen .it-wave i { flex: 0 0 4px; }
.it-screen .it-wave i { display: block; width: 4px; background: #e10600; opacity: 0.75; }
.it-screen pre { margin: 0; width: 100%; height: 100%; overflow: auto; padding: 1rem; white-space: pre-wrap; color: #f2e9ea; font: 0.78rem/1.55 "Share Tech Mono", "Share Tech Mono Repli", ui-monospace, monospace; }
.it-tag { position: absolute; left: 0.7rem; top: 0.7rem; display: flex; gap: 0.55rem; align-items: center; padding: 0.35rem 0.55rem; background: rgba(0, 0, 0, 0.72); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; max-width: calc(100% - 1.4rem); white-space: nowrap; overflow: hidden; }
.it-tag > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.it-tag .pgm { padding: 0.15rem 0.4rem; background: #e10600; color: #fff; }
.it-tag .ref { color: #ff4d55; } /* 5,1:1 sur la vignette grise (#ff2a33 : 4,45) */
.it-head2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1.2rem; }
.it-who { display: grid; gap: 0.35rem; min-width: 0; }
.it-name { margin: 0; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: 0.05em; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.it-by { color: #8a8082; font-size: 0.72rem; letter-spacing: 0.12em; }
.it-by a { color: #f7f1f1; text-decoration: none; }
.it-specs { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(225, 6, 0, 0.18); border-bottom: 1px solid rgba(225, 6, 0, 0.18); }
.it-spec { display: grid; gap: 0.2rem; padding: 0.55rem 1rem 0.55rem 0.8rem; border-right: 1px solid rgba(225, 6, 0, 0.14); }
.it-spec b { color: #8a8082; font-weight: 400; font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; }
.it-spec span { font-size: 0.8rem; letter-spacing: 0.06em; }
.it-prompt { margin: 0; padding: 0.7rem 0.8rem; border: 1px dashed rgba(225, 6, 0, 0.32); color: #c9b8b8; font-size: 0.74rem; line-height: 1.55; max-height: 6.4rem; overflow: auto; }
.it-prompt.is-closed { color: #8a8082; border-style: dotted; }
.it-prompt b { display: block; margin-bottom: 0.3rem; color: var(--rouge-texte, #f40700); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }
.it-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
.it-choose { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.3rem; border: 1px solid #e10600; background: #e10600; color: #fff; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: 1.05rem; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
/* blanc sur #E10600 : 4,97:1 ; survol / focus plus foncé #C00500 : 6,4:1 */
.it-choose:hover, .it-choose:focus-visible { background: #c00500; border-color: #c00500; outline: 1px solid #fff; outline-offset: 2px; }
.it-choose[aria-disabled="true"] { background: transparent; color: #8a8082; border-color: rgba(225, 6, 0, 0.45); pointer-events: none; }
.it-hint { margin: -0.3rem 0 0; color: #8a8082; font-size: 0.66rem; letter-spacing: 0.1em; line-height: 1.5; text-align: right; }
.it-fiche { color: #ff2a33; font-size: 0.7rem; letter-spacing: 0.16em; text-decoration: none; text-transform: uppercase; }

.it-run { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.it-run-head { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.8rem 1rem 0.5rem; color: #8a8082; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
.it-list { list-style: none; margin: 0; padding: 0 0.8rem 0.9rem; display: grid; gap: 0.55rem; align-content: start; overflow: auto; max-height: 70vh; }
.it-card { width: 100%; display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 0.7rem; padding: 0.55rem; border: 1px solid rgba(225, 6, 0, 0.28); background: rgba(16, 6, 8, 0.85); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.it-card[aria-current="true"] { border-color: #ff2a33; background: rgba(60, 6, 10, 0.55); box-shadow: inset 3px 0 0 #ff2a33; }
.it-card:focus-visible { outline: 1px solid #ff2a33; outline-offset: 2px; }
.it-thumb { position: relative; aspect-ratio: 16 / 10; background: #070304; border: 1px solid rgba(225, 6, 0, 0.18); display: grid; place-items: center; overflow: hidden; color: #8a8082; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; }
.it-thumb img, .it-thumb video, .it-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-thumb .fmt { position: absolute; left: 0.25rem; top: 0.25rem; padding: 0.08rem 0.3rem; border: 1px solid rgba(225, 6, 0, 0.6); background: rgba(0, 0, 0, 0.7); color: #f7f1f1; font-size: 0.56rem; }
.it-card-b { min-width: 0; display: grid; gap: 0.22rem; align-content: start; }
.it-card-ref { color: #ff2a33; font-size: 0.6rem; letter-spacing: 0.14em; }
.it-card-ref em { margin-left: 0.4rem; padding: 0.05rem 0.3rem; border: 1px solid #ff2a33; font-style: normal; font-size: 0.54rem; }
.it-card-t { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: 1.12rem; letter-spacing: 0.04em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-card-m { display: flex; align-items: center; min-width: 0; color: #c9b8b8; font-size: 0.64rem; letter-spacing: 0.06em; overflow: hidden; white-space: nowrap; }
/* Pastille mandataire : pseudonyme (15 car. max) + pastille jamais coupés ni renvoyés à la ligne ; l'outil s'abrège. */
.it-card-n { flex: 0 0 auto; white-space: nowrap; }
.it-card-tool { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.it-op { white-space: nowrap; }
.it-card-s { color: #8a8082; font-size: 0.6rem; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-empty { margin: 0; padding: 2.4rem 1rem; color: #8a8082; font-size: 0.74rem; letter-spacing: 0.12em; line-height: 1.7; text-align: center; text-transform: uppercase; }
.it-empty strong { display: block; margin-bottom: 0.4rem; color: var(--rouge-texte, #f40700); font-weight: 400; }
.it-empty a { color: #ff2a33; }
.it-stage .it-empty { border: 1px dashed rgba(225, 6, 0, 0.3); }
.plate { margin: 0; text-align: center; color: #a9a0a2; font-size: 0.6rem; letter-spacing: 0.16em; }
.plate a { text-decoration: none; }

@media (max-width: 960px) {
  .it-shell { padding: 1.2rem 1rem 1rem; gap: 1.1rem; }
  .it-salle { grid-template-columns: minmax(0, 1fr); }
  .it-stage { border-right: 0; padding: 0.8rem; }
  .it-bar .it-stat.it-wide { display: none; }
  .it-rubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .it-rub { padding: 0.5rem 0.3rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .it-hint { text-align: left; }
  .it-head2 .it-actions { width: 100%; }
  .it-screen, .it-screen.is-tall { width: 100%; min-width: 0; }
  .it-screen.is-tall { height: min(70vh, 560px); }
  .it-list { max-height: none; overflow: visible; }
  .it-choose { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Voile 18+ (adult.js, même voile que la fiche) : écran sans média tant que l'entrée n'est pas confirmée ;
   vignette de la carte : simple marque « 18+ », rien de chargé. */
.it-screen.is-veiled { aspect-ratio: 16 / 9; background: #000; }
.it-screen.is-veiled .adult-cover { z-index: 6; }
.it-screen.is-veiled .adult-veil { font-size: 14px; }
.it-thumb .it-veil-thumb { display: grid; place-items: center; width: 100%; height: 100%; background: #000; color: #f40700; font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-size: 1.5rem; letter-spacing: 0.1em; }
.it-empty.it-failed { color: #f40700; }
/* Mobile : cibles tactiles de 44 px au moins (onglets, bouton principal, liens). */
@media (max-width: 960px) {
  .it-rub { min-height: 44px; }
  .it-choose { min-height: 44px; }
  .it-fiche, .it-by a, .it-spec a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Suivi #102 : image à 0,1 s sous la vidéo de l'écran (preload="none") ; la vidéo, transparente tant qu'elle n'a
   rien lu, laisse voir la toile, puis la recouvre à la lecture. */
.it-screen > .it-frame-bg, .it-screen > video.on-frame { grid-area: 1 / 1; }
.it-screen > video.on-frame { background: transparent; position: relative; }
/* t39u : /iteration, espace de travail (texte d'explication, étapes, lien vers /iterer) ; aucune liste de dépôts. */
.it-atelier { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.it-atelier-corps { grid-column: 1 / -1; display: grid; gap: 1.1rem; align-content: start; max-width: 46rem; padding: 1.6rem 1rem 2.2rem; }
.it-atelier-titre { margin: 0; color: var(--rouge-texte, #f40700); font-family: "Share Tech Mono", "Share Tech Mono Repli", ui-monospace, monospace; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; }
.it-atelier-texte { margin: 0; color: #c9b8b8; font-size: 0.82rem; letter-spacing: 0.04em; line-height: 1.75; }
.it-atelier-etapes { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; color: #f7f1f1; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.it-atelier-etapes b { margin-right: 0.6rem; color: var(--rouge-texte, #f40700); font-weight: 400; }
.it-atelier-action { margin: 0.4rem 0 0; }
