/* COSMO Radio — habillage « lecteur façon Winamp ».
   Une coque biseautée, un afficheur à cristaux noir où tout s'allume en néon,
   des pixels partout. Trois habillages : Cosmographics (défaut), Classique, Néon.
   Les identifiants utilisés par radio.js sont conservés. */

@font-face { font-family: "VT323"; src: url("polices/vt323-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VT323"; src: url("polices/vt323-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Silkscreen"; src: url("polices/silkscreen-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("polices/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------------------------------------------------------- couleurs ----
   Plastique noir brillant, bleu Cosmographics #52BEFF et blanc. Rien d'autre. */
:root {
  /* fond de page : le même que cosmographics.fr, sombre ou clair selon le thème
     choisi sur le site (clé « cosmographics-theme », lue dans index.html) */
  --page: hsl(220 15% 1%);
  --page-encre: hsl(0 0% 96%);
  --halo-1: hsl(199 80% 55% / .22);
  --halo-2: hsl(210 90% 58% / .14);
  --halo-3: hsl(260 60% 50% / .12);
  --etoile: hsla(0, 0%, 100%, .16);
  --coque-haut: #3C4047;
  --coque: #1A1C20;
  --coque-bas: #0B0C0E;
  --reflet: #5B6069;
  --ombre: #030304;
  --gravure: #F3F6F9;
  --lcd: #020509;
  --lcd-eteint: #0F2333;
  --neon: #52BEFF;
  --neon-clair: #F2FAFF;
  --neon-doux: #8DB6D2;
  --pic: #FFFFFF;
  --musique: #A9DEFF;
  --spectre-bas: #52BEFF;
  --spectre-milieu: #A9DEFF;
  --spectre-haut: #FFFFFF;
}

html[data-theme="light"] {
  --page: hsl(0 0% 98%);
  --page-encre: hsl(220 20% 8%);
  --halo-1: hsl(199 80% 55% / .16);
  --halo-2: hsl(210 90% 58% / .10);
  --halo-3: hsl(260 60% 50% / .06);
  --etoile: transparent;
}

:root {
  --accent-morceau: var(--neon);
  --pixel: "Silkscreen", "VT323", monospace;
  --lcd-police: "VT323", ui-monospace, monospace;
  --texte: "Bricolage Grotesque", system-ui, sans-serif;
  --gouttiere: 16px;
  --biseau: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.55);
  --creux: inset 0 2px 4px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--page-encre);
  font: 400 18px/1.5 var(--texte);
  min-height: 100vh;
  padding-bottom: 96px;
  background-color: var(--page);
  background-image:
    radial-gradient(1px 1px at 20% 30%, var(--etoile), transparent),
    radial-gradient(1px 1px at 40% 70%, var(--etoile), transparent),
    radial-gradient(1px 1px at 80% 12%, var(--etoile), transparent),
    radial-gradient(1px 1px at 62% 48%, var(--etoile), transparent),
    radial-gradient(1px 1px at 10% 82%, var(--etoile), transparent),
    radial-gradient(1px 1px at 90% 88%, var(--etoile), transparent),
    radial-gradient(ellipse 60% 50% at 10% 8%, var(--halo-1), transparent 70%),
    radial-gradient(ellipse 50% 45% at 95% 45%, var(--halo-2), transparent 70%),
    radial-gradient(ellipse 50% 40% at 40% 100%, var(--halo-3), transparent 70%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; }
:focus-visible { outline: 3px solid var(--page-encre); outline-offset: 3px; }
.appareil :focus-visible, .fenetre :focus-visible, .mini :focus-visible { outline: 3px solid var(--pic); outline-offset: 2px; }

.evitement { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 12px 16px; z-index: 30; }
.evitement:focus { left: 16px; }

/* ------------------------------------------------------------ haut ----
   En-tête : reprise du menu de cosmographics.fr (Navbar.tsx), mêmes libellés,
   mêmes tailles, même comportement (verre dépoli après défilement). */
:root {
  --nav-texte: hsl(0 0% 50%);
  --nav-fort: hsl(0 0% 96%);
  --nav-primaire: hsl(203 100% 62%);
  --nav-sur-primaire: hsl(220 15% 5%);
  --nav-verre: hsl(220 15% 1% / .6);
  --nav-carte: hsl(220 10% 4% / .95);
  --nav-bord: hsl(220 10% 10% / .5);
}
html[data-theme="light"] {
  --nav-texte: hsl(220 8% 42%);
  --nav-fort: hsl(220 20% 8%);
  --nav-primaire: hsl(203 100% 38%);
  --nav-sur-primaire: hsl(0 0% 100%);
  --nav-verre: hsl(0 0% 98% / .7);
  --nav-carte: hsl(0 0% 100% / .95);
  --nav-bord: hsl(220 10% 86% / .6);
}
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 32px 0 0; transition: padding .5s; font-family: "Inter", system-ui, sans-serif; }
.site-nav.nav-defilee { padding-top: 16px; }
.site-nav-barre {
  max-width: 1280px; margin: 0 auto; width: calc(100% - 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 24px; border-radius: 16px; border: 1px solid transparent; transition: background .5s, border-color .5s, box-shadow .5s;
}
.site-nav.nav-defilee .site-nav-barre { background: var(--nav-verre); border-color: var(--nav-bord); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.site-logo { display: flex; flex-shrink: 0; }
.site-logo img { width: auto; height: 48px; }
.site-logo .logo-sombre { height: 40px; }
html[data-theme="light"] .logo-sombre, html:not([data-theme="light"]) .logo-clair { display: none; }
.site-liens { display: none; align-items: center; gap: 12px; }
.site-liens > a, .site-labo-bouton {
  position: relative; white-space: nowrap; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--nav-texte); text-decoration: none; transition: color .2s; background: none; border: 0; padding: 0;
}
.site-liens > a:not(.vedette)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--nav-primaire); transition: width .2s; }
.site-liens > a:hover, .site-labo-bouton:hover, .site-labo-bouton[aria-expanded="true"] { color: var(--nav-primaire); }
.site-liens > a:hover::after { width: 100%; }
.site-liens .vedette { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--nav-primaire) 50%, transparent); background: color-mix(in srgb, var(--nav-primaire) 10%, transparent); padding: 6px 12px; color: var(--nav-primaire); }
.site-labo { position: relative; }
.site-labo-bouton { display: flex; align-items: center; gap: 4px; }
.site-labo-bouton svg { transition: transform .2s; }
.site-labo-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-labo-menu { position: absolute; right: 0; top: 100%; padding-top: 16px; }
.site-labo-menu[hidden] { display: none; }
.site-labo-menu::before { content: ""; position: absolute; inset: 16px 0 0; border-radius: 16px; border: 1px solid var(--nav-bord); background: var(--nav-carte); box-shadow: 0 18px 50px rgba(0,0,0,.5); backdrop-filter: blur(40px); }
.site-labo-menu a { position: relative; display: flex; align-items: center; gap: 16px; width: 320px; padding: 12px; margin: 0 8px; border-radius: 12px; text-decoration: none; }
.site-labo-menu a:first-child { margin-top: 8px; } .site-labo-menu a:last-child { margin-bottom: 8px; }
.site-labo-menu a:hover { background: color-mix(in srgb, var(--nav-primaire) 10%, transparent); }
.site-labo-icone { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--nav-primaire) 30%, transparent); background: color-mix(in srgb, var(--nav-primaire) 10%, transparent); color: var(--nav-primaire); }
.site-labo-menu strong { display: block; font-size: 14px; color: var(--nav-fort); }
.site-labo-menu small { display: block; font-size: 14px; color: var(--nav-texte); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-theme, .site-burger { display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--nav-texte); }
.site-theme { width: 36px; height: 36px; border-radius: 12px; }
.site-theme:hover { color: var(--nav-fort); background: var(--nav-bord); }
html:not([data-theme="light"]) .i-lune, html[data-theme="light"] .i-soleil { display: none; }
.site-cta { display: none; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 20px; border-radius: 12px; background: var(--nav-primaire); color: var(--nav-sur-primaire); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; }
html:not([data-theme="light"]) .site-cta { box-shadow: 0 0 20px hsl(203 100% 62% / .55); }
.site-burger { padding: 8px; border-radius: 12px; color: var(--nav-fort); border: 1px solid var(--nav-bord); background: var(--nav-verre); }
.site-burger[aria-expanded="false"] .i-fermer, .site-burger[aria-expanded="true"] .i-menu { display: none; }
.site-mobile { position: absolute; left: 16px; right: 16px; top: 100%; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: calc(100dvh - 9.5rem); overflow-y: auto; padding: 16px; border-radius: 24px; border: 1px solid var(--nav-bord); background: var(--nav-carte); backdrop-filter: blur(40px); }
.site-mobile[hidden] { display: none; }
.site-mobile a { padding: 10px 12px; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--nav-fort); text-decoration: none; }
.site-mobile a:hover { color: var(--nav-primaire); background: color-mix(in srgb, var(--nav-primaire) 10%, transparent); }
.site-mobile .vedette { grid-column: span 2; color: var(--nav-primaire); background: color-mix(in srgb, var(--nav-primaire) 10%, transparent); border: 1px solid color-mix(in srgb, var(--nav-primaire) 40%, transparent); }
.site-mobile-labo { grid-column: span 2; margin: 12px 0 0; padding: 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--nav-texte); }
.site-mobile .tuile { text-align: center; border: 1px solid var(--nav-bord); font-size: 15px; }
.site-mobile-cta { grid-column: span 2; margin-top: 12px; text-align: center; text-transform: uppercase; background: var(--nav-primaire); color: var(--nav-sur-primaire) !important; border-radius: 16px !important; padding: 14px !important; }
@media (min-width: 640px) { .site-cta { display: flex; } }
@media (min-width: 1280px) { .site-liens { display: flex; } .site-burger { display: none; } }

@media (max-width: 767px) { .site-logo img { height: 40px; } .site-logo .logo-sombre { height: 32px; } .site-nav-barre { width: calc(100% - 32px); padding: 10px 14px; } }

/* titre de la page, lisible sans JavaScript (référencement) */
.page-entete { max-width: 1040px; margin: 0 auto; padding: 136px var(--gouttiere) 22px; }
.page-titre { margin: 0; font: 800 clamp(30px, 5vw, 52px)/1.05 "Inter", system-ui, sans-serif; letter-spacing: -.02em; color: var(--page-encre); text-wrap: balance; }
.page-chapeau { margin: 12px 0 0; max-width: 62ch; font: 400 18px/1.5 "Inter", system-ui, sans-serif; color: color-mix(in srgb, var(--page-encre) 68%, transparent); }
.bandeau-test { margin: 12px 0 0; display: inline-block; font: 400 20px/1.2 var(--lcd-police); border: 2px dashed currentColor; padding: 6px 10px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 var(--gouttiere); }

/* ----------------------------------------------------- coque, barres ---- */
.appareil, .fenetre {
  position: relative;
  background: linear-gradient(180deg, var(--coque-haut), var(--coque) 14%, var(--coque) 86%, var(--coque-bas));
  color: var(--gravure);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.6), 0 0 0 1px #000,
    0 28px 50px -22px rgba(0,0,0,.55), 0 10px 18px -10px rgba(0,0,0,.35);
}
.appareil::before, .fenetre::before { /* reflet du plastique laqué */
  content: ""; position: absolute; inset: 1px 1px auto; height: 46%; border-radius: 13px 13px 40% 40% / 13px 13px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02) 70%, transparent);
  pointer-events: none;
}
.appareil > *, .fenetre > * { position: relative; }
.appareil { padding: 8px 12px 16px; }

.barre-titre {
  display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 4px; margin: 0 0 8px;
}
.stries { flex: 1; height: 12px; min-width: 16px;
  background: repeating-linear-gradient(180deg, var(--reflet) 0 2px, var(--ombre) 2px 4px, transparent 4px 6px);
  opacity: .9; }
.logo { display: block; height: 22px; flex: none; }
.logo svg { height: 100%; width: auto; display: block; overflow: visible; }
.logo rect { fill: var(--gravure); }

/* logo animé : une vague de lumière parcourt les pixels, en boucle */
.logo rect { animation: vague 3.2s steps(1, end) infinite; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes vague {
  0%, 8%, 100% { fill: var(--gravure); }
  3% { fill: var(--pic); }
  5% { fill: var(--neon); }
}
.logo.logo-grand { height: auto; width: 70%; position: relative; }
.logo-grand svg { width: 100%; height: auto; }
.logo-grand rect { fill: var(--neon); filter: drop-shadow(0 0 .35px var(--neon)); }
@keyframes vague-neon { 0%, 8%, 100% { fill: var(--neon); } 3% { fill: var(--pic); } 5% { fill: var(--neon-clair); } }
.logo-grand rect { animation-name: vague-neon; }

/* bandeau défilant, comme le titre qui tourne dans Winamp */
.defile {
  border-radius: 8px;
  overflow: hidden; height: 34px; margin: 0 0 12px; background: var(--lcd); box-shadow: var(--creux);
  display: flex; align-items: center;
}
.defile-piste {
  display: inline-flex; white-space: nowrap; font: 400 24px/1 var(--lcd-police); color: var(--neon);
  text-shadow: 0 0 6px color-mix(in srgb, var(--neon) 60%, transparent);
  animation: defile 32s linear infinite; padding-left: 12px;
}
.defile-piste span { padding-right: 3em; }
@keyframes defile { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- corps ---- */
.appareil-corps { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

/* écran : pochette, animateurs ou veille */
.ecran {
  position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-radius: 8px;
  background: var(--lcd); box-shadow: var(--creux);
  border: 2px solid var(--lcd);
}
.ecran::after { /* lignes de balayage, très légères */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.ecran-pochette, .ecran-parole, .ecran-station { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecran-pochette { object-fit: cover; opacity: 0; image-rendering: auto; }
.ecran[data-type="music"] .ecran-pochette { opacity: 1; }
.ecran-parole, .ecran-station { display: none; }
.ecran[data-type="speech"] .ecran-parole { display: flex; }
.ecran[data-type="vide"] .ecran-station,
.ecran[data-type="music"].sans-pochette .ecran-station { display: flex; }
.ecran[data-type="music"].sans-pochette .ecran-pochette { opacity: 0; }

.ecran-station { flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ecran-station-legende { position: relative; margin: 0; font: 400 26px/1 var(--lcd-police); color: var(--neon-doux); }
.etoiles, .ecran-trame { position: absolute; inset: 0; pointer-events: none; }
.etoiles::before, .etoiles::after, .ecran-trame::before {
  content: ""; position: absolute; width: 4px; height: 4px; left: 0; top: 0; background: transparent;
  box-shadow:
    40px 36px var(--neon), 120px 80px var(--neon-doux), 220px 30px var(--pic), 300px 120px var(--neon),
    70px 210px var(--neon-doux), 180px 260px var(--neon), 330px 300px var(--musique), 260px 380px var(--neon-doux),
    30px 360px var(--neon), 390px 60px var(--neon-doux), 420px 220px var(--neon), 150px 420px var(--pic),
    470px 400px var(--neon-doux), 500px 140px var(--neon), 90px 470px var(--neon-doux), 360px 470px var(--neon);
  animation: scintille 2.6s steps(2, jump-none) infinite;
}
.etoiles::after { transform: translate(22px, 46px); animation-delay: -1.3s; opacity: .7; }
@keyframes scintille { 50% { opacity: .15; } }

.ecran-parole { flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 6% 6% 7%; text-align: center; }
.ecran-trame { opacity: .45; }
.ecran-ondes { position: absolute; left: 6%; right: 6%; bottom: 31%; width: 88%; height: 16%; opacity: .55; }
.ecran-rubrique { position: relative; margin: 6px 0 0; font: 400 clamp(26px, 5.2vw, 34px)/1 var(--lcd-police); color: var(--neon-clair); text-wrap: balance; }
.ecran-voix { position: relative; margin: 0; font: 400 20px/1.1 var(--lcd-police); color: var(--neon-doux); }

.ecran-message {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 10%; background: var(--lcd); color: var(--neon-clair);
}
.ecran-message-titre { margin: 0; font: 400 34px/1 var(--lcd-police); color: var(--neon); }
.ecran-message-texte { margin: 0; font-size: 18px; }
.ecran-message-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.etiquette-fiction {
  position: absolute; top: 10px; left: 10px; z-index: 4; padding: 6px 8px 5px;
  font: 400 12px/1 var(--pixel); text-transform: uppercase; background: #FFFFFF; color: #000;
}

/* afficheur à cristaux */
.commandes { display: flex; flex-direction: column; min-width: 0; }
.lcd {
  border-radius: 8px;
  position: relative; background: var(--lcd); box-shadow: var(--creux); padding: 12px 14px 10px;
  color: var(--neon-clair); border: 2px solid var(--lcd);
}
.edition-date { margin: 0; font: 400 20px/1.15 var(--lcd-police); color: var(--neon-doux); }
.edition-date strong { font-weight: 400; color: var(--neon); }
.edition-date br { display: none; }
.edition-date strong::after { content: "  ·  "; color: var(--neon-doux); white-space: pre; }
.lcd-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.chrono { position: relative; margin: 0; font: 400 clamp(64px, 14vw, 92px)/.8 var(--lcd-police); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chrono-fantome { color: var(--lcd-eteint); }
.chrono-valeur { position: absolute; right: 0; top: 0; color: var(--neon); text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 70%, transparent); }
body:not(.en-lecture) .chrono-valeur.clignote { animation: clignote 1.1s steps(1, end) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.voyants { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; justify-items: end; }
.voyants li { font: 400 12px/1 var(--pixel); text-transform: uppercase; color: var(--lcd-eteint); padding: 3px 0; }
body[data-type="speech"] [data-voyant="speech"],
body[data-type="music"] [data-voyant="music"] { color: var(--neon); text-shadow: 0 0 6px var(--neon); }
body[data-fiction="1"] [data-voyant="fiction"] { color: var(--pic); text-shadow: 0 0 6px var(--pic); }

.rubrique { margin: 4px 0 0; min-height: 22px; font: 400 21px/1.05 var(--lcd-police); color: var(--musique); }
.titre { margin: 2px 0 0; font: 400 clamp(32px, 5.4vw, 42px)/1 var(--lcd-police); color: var(--neon-clair); overflow-wrap: anywhere; text-wrap: balance; }
.artiste { margin: 4px 0 0; min-height: 24px; font: 400 22px/1.1 var(--lcd-police); color: var(--neon-doux); }
.vu { display: block; width: 100%; height: 64px; margin-top: 10px; }

/* touches biseautées */
.transport { display: grid; grid-template-columns: 52px 52px minmax(0, 1fr) 52px 52px; gap: 6px; margin-top: 12px; }
.touche, .lecture, .preset, .bouton, .recommencer, .avis button, .mini-lecture {
  border: 0; border-radius: 6px; background: linear-gradient(180deg, #34383F, #17191C 55%, #101113);
  color: var(--gravure); box-shadow: var(--biseau), 0 0 0 1px #000;
}
.touche:active:not(:disabled), .lecture:active:not(:disabled), .preset:active, .bouton:active, .recommencer:active, .avis button:active {
  box-shadow: var(--creux), 0 0 0 2px var(--ombre); transform: translate(1px, 1px);
}
.touche { height: 52px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.touche:disabled { opacity: .5; }
.touche svg { width: 20px; height: 20px; fill: currentColor; shape-rendering: crispEdges; }
.touche-chiffre { font: 400 11px/1 var(--pixel); }

.lecture {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; min-width: 0;
  background: var(--lcd); color: var(--neon); font: 400 26px/1 var(--lcd-police);
  box-shadow: inset 0 0 0 2px var(--neon), 0 0 0 2px var(--ombre), 0 0 18px -4px var(--neon);
}
.lecture:hover:not(:disabled) { background: color-mix(in srgb, var(--neon) 14%, var(--lcd)); }
.lecture:active:not(:disabled) { box-shadow: inset 0 0 0 2px var(--neon), 0 0 0 2px var(--ombre); }
.lecture:disabled { color: var(--neon-doux); box-shadow: inset 0 0 0 2px var(--lcd-eteint), 0 0 0 2px var(--ombre); }
.lecture-icone { width: 22px; height: 22px; flex: none; display: grid; }
.lecture-icone svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: currentColor; shape-rendering: crispEdges; }
.lecture-texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecture .i-pause, .lecture .i-charge { display: none; }
.lecture[data-etat="lecture"] .i-lire { display: none; }
.lecture[data-etat="lecture"] .i-pause { display: block; }
.lecture[data-etat="chargement"] .i-lire { display: none; }
.lecture[data-etat="chargement"] .i-charge { display: block; animation: tourne .8s steps(4) infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

.recommencer { align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 0 14px; font: 600 16px/1 var(--texte); }
.etat { margin: 10px 0 0; min-height: 24px; font: 500 16px/1.4 var(--texte); color: var(--gravure); }
.etat::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; background: var(--ombre); }
body.en-lecture .etat::before { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.etat:empty::before { display: none; }

/* position */
.progression { margin: 14px 0 0; }
.piste { position: relative; height: 40px; }
.piste::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 16px; background: var(--lcd); box-shadow: var(--creux); }
.piste-remplie {
  position: absolute; left: 2px; top: 14px; height: 12px; width: 0; pointer-events: none; max-width: calc(100% - 4px);
  background: repeating-linear-gradient(90deg, var(--neon) 0 6px, transparent 6px 8px);
  filter: drop-shadow(0 0 4px var(--neon));
}
.piste-reperes { position: absolute; inset: 0; pointer-events: none; }
.piste-reperes i { position: absolute; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: var(--gravure); }
.piste-reperes i.musique { background: var(--musique); }
#curseur { position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#curseur:disabled { cursor: default; }
#curseur::-webkit-slider-runnable-track { height: 40px; background: transparent; }
#curseur::-moz-range-track { height: 40px; background: transparent; }
#curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 22px; margin-top: 9px; border: 0; border-radius: 5px; background: linear-gradient(180deg, #FFFFFF, #C4CED8); box-shadow: var(--biseau), 0 0 0 2px var(--ombre); }
#curseur::-moz-range-thumb { width: 30px; height: 22px; border: 0; border-radius: 5px; background: linear-gradient(180deg, #FFFFFF, #C4CED8); box-shadow: var(--biseau), 0 0 0 2px var(--ombre); }
#curseur:disabled::-webkit-slider-thumb { opacity: .5; }
#curseur:focus-visible { outline: none; }
#curseur:focus-visible::-webkit-slider-thumb { box-shadow: var(--biseau), 0 0 0 2px var(--ombre), 0 0 0 5px var(--pic); }
#curseur:focus-visible::-moz-range-thumb { box-shadow: var(--biseau), 0 0 0 2px var(--ombre), 0 0 0 5px var(--pic); }
.temps { display: flex; justify-content: space-between; gap: 12px; font: 400 20px/1 var(--lcd-police); color: var(--gravure); font-variant-numeric: tabular-nums; }
.temps-chapitre { text-align: center; }

/* présélections */
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.preset { position: relative; min-height: 54px; padding: 8px 6px 8px 26px; font: 400 14px/1.1 var(--pixel); text-transform: uppercase; text-align: left; }
.preset-num {
  position: absolute; left: 6px; top: 50%; translate: 0 -50%; width: 14px; height: 18px; display: grid; place-items: center;
  font: 400 18px/1 var(--lcd-police); background: var(--lcd); color: var(--neon-doux);
}
.preset[aria-pressed="true"] { background: var(--lcd); color: var(--neon); box-shadow: var(--creux), 0 0 0 1px var(--neon), 0 0 14px -4px var(--neon); }
.preset[aria-pressed="true"] .preset-num { color: var(--pic); text-shadow: 0 0 6px var(--pic); }

/* ---------------------------------------------- fenêtre du panneau ---- */
.avis {
  margin: 18px 0 0; padding: 12px 14px; background: var(--lcd); color: var(--neon-clair); box-shadow: 0 0 0 2px var(--ombre), 0 0 0 4px var(--neon);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px;
}
.avis .actions { display: flex; gap: 8px; }
.avis button { min-height: 44px; padding: 0 16px; font-weight: 600; }
.avis button.discret { background: transparent; box-shadow: inset 0 0 0 2px var(--neon-doux); color: var(--neon-clair); }

.fenetre { margin-top: 26px; padding: 8px 12px 12px; }
.barre-nom { font: 400 14px/1 var(--pixel); text-transform: uppercase; }
.panneau {
  border-radius: 8px;
  background: var(--lcd); color: var(--neon-clair); box-shadow: var(--creux); border: 2px solid var(--lcd);
  padding: 22px 16px 26px; outline: none; min-height: 200px;
}
.panneau h2 { margin: 0 0 8px; font: 400 clamp(36px, 6vw, 48px)/1 var(--lcd-police); color: var(--neon); text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 50%, transparent); }
.panneau h3 { margin: 26px 0 8px; font: 400 28px/1 var(--lcd-police); color: var(--neon); }
.panneau .chapeau { margin: 0 0 20px; color: var(--neon-doux); max-width: 64ch; }
.panneau p, .panneau li { max-width: 68ch; }
.panneau a { color: var(--neon); text-underline-offset: 3px; }
.panneau kbd { font: 400 20px/1 var(--lcd-police); padding: 1px 6px; color: var(--lcd); background: var(--neon-clair); }

/* liste façon « playlist » */
.liste { list-style: none; margin: 0; padding: 0; counter-reset: piste; }
.liste > li { border-top: 2px dotted var(--lcd-eteint); }
.liste > li:last-child { border-bottom: 2px dotted var(--lcd-eteint); }
.ligne { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 8px; }
.ligne.en-cours { background: color-mix(in srgb, var(--neon) 16%, var(--lcd)); box-shadow: inset 4px 0 0 var(--neon); }
.ligne-vignette { width: 60px; height: 60px; object-fit: cover; background: var(--lcd-eteint); }
.vignette-parole { width: 60px; height: 60px; background: var(--lcd-eteint); color: var(--neon); display: grid; place-items: center; font: 400 30px/1 var(--lcd-police); }
.ligne-textes { min-width: 0; }
.ligne-titre { margin: 0; font: 400 26px/1.05 var(--lcd-police); color: var(--neon-clair); }
.ligne-sous { margin: 3px 0 0; color: var(--neon-doux); font-size: 16px; }
.ligne-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ligne.en-cours .ligne-titre { color: var(--neon); }
.ligne.en-cours .ligne-titre::after { content: "en cours"; display: inline-block; margin-left: 10px; padding: 4px 6px 3px; background: var(--neon); color: var(--lcd); font: 400 11px/1 var(--pixel); text-transform: uppercase; vertical-align: 4px; }

.bouton { min-height: 44px; padding: 0 14px; font: 600 16px/1 var(--texte); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.bouton-plein { background: var(--lcd); color: var(--neon); box-shadow: inset 0 0 0 2px var(--neon), 0 0 0 2px var(--ombre); }
.bouton-plein:hover { background: color-mix(in srgb, var(--neon) 16%, var(--lcd)); }
.temps-ligne { font: 400 20px/1 var(--lcd-police); font-variant-numeric: tabular-nums; }
.lien-discret { border: 0; background: none; padding: 6px 0; min-height: 36px; color: var(--neon-doux); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.lien-discret:hover { color: var(--neon-clair); }

details.texte { margin: 2px 0 14px 82px; }
details.texte summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; font-size: 16px; color: var(--neon); }
details.texte .replique { margin: 8px 0; max-width: 68ch; color: var(--neon-clair); }
details.texte .replique b { display: block; font: 400 20px/1 var(--lcd-police); color: var(--musique); }
.note-source { margin: 0 0 14px 82px; padding: 0; list-style: none; font-size: 16px; color: var(--neon-doux); }
.note-source li { margin: 2px 0; }

/* résumé de l'édition */
.resume { display: grid; gap: 22px; }
.resume dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.resume dt { font: 400 22px/1.2 var(--lcd-police); color: var(--neon-doux); }
.resume dd { margin: 0; }
.conducteur { margin: 0; padding: 0; list-style: none; counter-reset: c; columns: 2 280px; column-gap: 28px; }
.conducteur li { counter-increment: c; break-inside: avoid; padding: 4px 0 4px 40px; position: relative; font-size: 17px; }
.conducteur li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 4px; font: 400 22px/1 var(--lcd-police); color: var(--neon); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* replay */
.replay { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.disque {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center;
  padding: 18px 18px 18px 20px; border-radius: 10px; background: linear-gradient(180deg, #0A1420, var(--lcd));
  box-shadow: inset 0 0 0 1px var(--lcd-eteint);
}
.disque.en-cours { box-shadow: inset 0 0 0 2px var(--neon), 0 0 20px -8px var(--neon); }
.disque-numero { grid-row: span 2; margin: 0; font: 400 88px/.8 var(--lcd-police); color: var(--neon); text-shadow: 0 0 14px color-mix(in srgb, var(--neon) 55%, transparent); min-width: 1.4ch; }
.disque-numero small { display: block; font-size: 22px; line-height: 1; color: var(--neon-doux); text-shadow: none; }
.disque-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.disque-date { margin: 0; font: 400 30px/1 var(--lcd-police); color: var(--neon-clair); }
.disque-statut { padding: 5px 7px 4px; border-radius: 3px; font: 400 11px/1 var(--pixel); text-transform: uppercase; background: #FFFFFF; color: #000; }
.disque-infos { margin: 0; color: var(--neon-doux); font-size: 16px; }
.disque-pochettes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.disque-pochettes img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.disque-artistes { grid-column: 1 / -1; margin: 2px 0 0; font-size: 16px; color: var(--neon-clair); }
.disque .actions { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 559px) {
  .disque { padding: 14px; gap: 4px 14px; }
  .disque-numero { font-size: 64px; }
  .disque-pochettes img { width: 52px; height: 52px; }
}

/* équipe */
.fiche { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 8px; }
.personnage { padding: 14px; background: color-mix(in srgb, var(--lcd-eteint) 45%, var(--lcd)); box-shadow: inset 0 0 0 2px var(--lcd-eteint); }
.personnage-portrait { width: 88px; margin-bottom: 8px; }
.personnage-portrait svg { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.personnage h3 { margin: 0; font: 400 30px/1 var(--lcd-police); color: var(--neon); }
.personnage .role { margin: 4px 0 8px; font: 400 12px/1.3 var(--pixel); text-transform: uppercase; color: var(--musique); }
.personnage p { margin: 0; font-size: 16px; }
.personnage .statut { margin-top: 10px; font-size: 15px; color: var(--neon-doux); }

.prose ul { padding-left: 1.1em; }
.prose li { margin: 6px 0; }
.prose li::marker { content: "▪  "; color: var(--neon); }

/* ------------------------------------------------------ mini-lecteur ---- */
.mini {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 12px; background: linear-gradient(180deg, var(--coque-haut), var(--coque) 40%, var(--coque-bas)); box-shadow: var(--biseau), 0 0 0 1px #000, 0 14px 30px -10px rgba(0,0,0,.6);
  max-width: 640px; margin: 0 auto;
}
.mini-retour { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: var(--lcd); color: var(--neon-clair); padding: 4px; text-align: left; box-shadow: var(--creux); }
.mini-pochette { width: 48px; height: 48px; object-fit: cover; flex: none; background: var(--lcd-eteint); }
.mini-textes { min-width: 0; display: flex; flex-direction: column; }
.mini-titre { font: 400 22px/1 var(--lcd-police); color: var(--neon); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-temps { font: 400 18px/1 var(--lcd-police); color: var(--neon-doux); }
.mini-lecture { width: 56px; height: 56px; display: grid; place-items: center; flex: none; }
.mini-lecture svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: currentColor; }
.mini-lecture .i-pause { display: none; }
.mini-lecture[data-etat="lecture"] .i-lire { display: none; }
.mini-lecture[data-etat="lecture"] .i-pause { display: block; }
.mini-barre { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; }
.mini-barre div { height: 100%; width: 0; background: var(--neon); }

/* ------------------------------------------------------ grands écrans ---- */
@media (min-width: 560px) {
  .presets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .appareil { padding: 10px 18px 20px; }
  .fenetre { padding: 10px 18px 18px; }
  .panneau { padding: 28px 28px 32px; }
}
@media (min-width: 860px) {
  :root { --gouttiere: 28px; }
  .appareil-corps { grid-template-columns: minmax(300px, 46%) minmax(0, 1fr); gap: 16px; align-items: start; }
  .commandes { justify-content: space-between; }
  .lcd { flex: 1; display: flex; flex-direction: column; }
  .vu { flex: 1; min-height: 64px; max-height: 120px; margin-top: auto; padding-top: 10px; }
  .panneau { padding: 34px 40px 40px; }
  .logo { height: 24px; }
}
@media (max-width: 420px) {
  .transport { grid-template-columns: 46px 46px minmax(0, 1fr) 46px 46px; gap: 5px; }
  .touche, .lecture { height: 50px; }
  .lecture { font-size: 21px; padding: 0 6px; gap: 6px; }
  .preset { font-size: 12px; padding-left: 24px; padding-right: 4px; }
  .ligne { grid-template-columns: 52px minmax(0, 1fr); }
  .ligne-vignette, .vignette-parole { width: 52px; height: 52px; }
  .ligne-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  details.texte, .note-source { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .defile-piste { white-space: normal; padding: 0 12px; }
}


/* conducteur cliquable */
.lien-conducteur { border: 0; background: none; padding: 2px 0; color: var(--neon-clair); text-align: left; font: inherit; text-decoration: underline; text-decoration-color: var(--lcd-eteint); text-underline-offset: 4px; min-height: 32px; }
.lien-conducteur:hover { color: var(--neon); text-decoration-color: var(--neon); }
.disque-mosaique > span { display: block; background: var(--lcd); }

@media (prefers-reduced-motion: reduce) {
  .defile-piste span + span { display: none; }
  .defile-piste { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
}

/* plateau vidéo des animateurs */
.ecran-parole { padding: 0; justify-content: flex-end; align-items: stretch; text-align: left; }
.ecran[data-type="speech"] .ecran-ondes, .ecran[data-type="speech"] .ecran-trame { display: none; }
.plateau { position: absolute; inset: 0; background: var(--lcd); }
.plateau { background: var(--lcd) url("../medias/plateau/duo.jpg") center / cover no-repeat; }
.plateau video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.plateau video.visible { opacity: 1; }
.ecran-rubrique, .ecran-voix { position: relative; z-index: 2; margin: 0; }
.ecran-rubrique {
  align-self: flex-start; margin: 0 0 0 4%; padding: 7px 12px 6px; border-left: 4px solid var(--neon);
  background: rgba(2, 5, 9, .82); backdrop-filter: blur(6px); color: #fff;
  font: 400 clamp(22px, 4.4vw, 28px)/1 var(--lcd-police); text-wrap: balance; max-width: 86%;
}
.ecran-voix { align-self: flex-start; margin: 4px 0 0 4%; padding: 3px 10px; background: rgba(2, 5, 9, .7); color: var(--neon-clair); font: 400 18px/1.1 var(--lcd-police); }
.ecran-voix:empty { display: none; }
.ecran-parole::after { content: ""; display: block; height: 5%; }
.personnage-photo { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* bloc d'informations sous le lecteur (lisible sans JavaScript) */
.page-infos { max-width: 1040px; margin: 40px auto 0; padding: 0 var(--gouttiere); font-family: "Inter", system-ui, sans-serif; color: var(--page-encre); }
.page-infos h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.page-infos dl { margin: 0; display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 14px 28px; }
.page-infos dt { font-weight: 700; }
.page-infos dd { margin: 0; color: color-mix(in srgb, var(--page-encre) 72%, transparent); line-height: 1.55; }
.page-infos a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 640px) { .page-infos dl { grid-template-columns: 1fr; gap: 4px; } .page-infos dd { margin-bottom: 12px; } }

/* sous-titres et karaoké, en bas de l'écran */
.soustitres { position: absolute; left: 4%; right: 4%; bottom: 16%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.soustitres.visible { opacity: 1; }
.soustitre-qui { margin: 0; padding: 2px 8px; font: 400 13px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--lcd); background: var(--neon); }
.soustitre-qui:empty { display: none; }
.soustitre { margin: 0; max-width: 100%; }
.soustitre-texte {
  display: inline; padding: 3px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font: 600 clamp(15px, 2.6vw, 20px)/1.45 "Bricolage Grotesque", system-ui, sans-serif; color: #FFFFFF; background: rgba(2, 5, 9, .82);
}
/* karaoké : la partie déjà chantée passe au bleu Cosmographics */
.soustitre-texte .chante { color: var(--neon); }
.soustitre-suite { margin: 2px 0 0; padding: 2px 8px; font: 500 clamp(13px, 2.2vw, 16px)/1.35 "Bricolage Grotesque", system-ui, sans-serif; color: rgba(255,255,255,.72); background: rgba(2, 5, 9, .6); }
.soustitre-suite:empty { display: none; }
.ecran[data-type="speech"] .soustitres { bottom: 22%; }
.bascule-st { margin-top: 10px; align-self: flex-start; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--lcd); color: var(--neon-doux); font: 400 18px/1 var(--lcd-police); box-shadow: var(--creux); }
.bascule-st[aria-pressed="true"] { color: var(--neon); }
.bascule-st:hover { color: var(--neon-clair); }
@media (prefers-reduced-motion: reduce) { .soustitres { transition: none; } }

@media (max-width: 640px) {
  .soustitre-texte { font-size: 15px; line-height: 1.4; padding: 2px 8px; }
  .soustitre-qui { font-size: 11px; }
  .soustitre-suite { font-size: 13px; }
  .ecran[data-type="speech"] .soustitres { bottom: 19%; }
}

/* logo COSMO Radio : à gauche du titre sur ordinateur, au-dessus en plus petit sur téléphone */
.page-entete { display: flex; align-items: center; gap: 28px; }
.page-logo { flex: none; width: 168px; height: 168px; object-fit: contain; }
.page-entete-textes { min-width: 0; }
@media (max-width: 767px) {
  .page-entete { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-logo { width: 96px; height: 96px; }
}
