/* ═══════════════════════════════════════════════════════════════
   L'INDOMPTABLE — feuille de style unique
   ───────────────────────────────────────────────────────────────
   Palette tirée des visuels du label (linogravure) :
   noir d'encre, blanc-os du papier, rouge des pastilles de vinyle.
   Les images ne changent pas — la modernité vient d'ici :
   grille, typographie, respirations, transitions.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs
     ─────────────────────────────────────────────────────────────
     TOUT EST EN NOIR PUR, et ce n'est pas un choix esthétique
     gratuit : les visuels du label sont détourés sur un fond noir
     mesuré entre #000000 et #070707. Dès que la page ou une carte
     tire vers le gris foncé, le rectangle de chaque image devient
     visible et le montage se voit. Fond de page = fond des images
     = #000 : les visuels flottent, sans bord.
     N'introduire aucun gris derrière une image. Pour les commandes
     d'interface (curseurs, boutons ronds), utiliser --surface. */
  --noir:        #000000;   /* page ET cartes : le même noir que les images */
  --surface:     #0e0e0e;   /* UNIQUEMENT les contrôles sans image derrière */
  --os:          #ece7dd;   /* blanc-os : le papier du fanzine */
  --os-attenue:  #9c968c;   /* texte secondaire */
  --rouge:       #d8231f;   /* accent : les pastilles de vinyle */
  --rouge-vif:   #f23b30;
  --trait:       rgba(236, 231, 221, 0.12);

  /* Typo */
  --display: "Haettenschweiler", "Arial Narrow Bold", "Oswald", Impact, sans-serif;
  --texte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rythme */
  --largeur: 1180px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 4px;              /* presque droit : le fanzine ne s'arrondit pas */
  --transition: 180ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* ── Reset minimal ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background: var(--noir);
  color: var(--os);
  font-family: var(--texte);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Pas de grain de papier ici : la moindre texture sur le fond suffit à
     révéler le rectangle des visuels, qui sont eux parfaitement lisses. */
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

/* Accessibilité : l'anneau de focus reste visible partout */
:focus-visible { outline: 2px solid var(--rouge-vif); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Utilitaires ────────────────────────────────────────────── */
.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── En-tête ────────────────────────────────────────────────── */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.marque {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marque span { color: var(--rouge); }

/* Navigation : défilement horizontal sur mobile plutôt qu'un burger
   (5 liens seulement — un menu déroulant serait un clic de trop) */
.nav {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-attenue);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--os); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ── Titres de page ─────────────────────────────────────────── */
.titre-page {
  font-family: var(--display);
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.intro {
  max-width: 62ch;
  color: var(--os-attenue);
  margin-top: 0.85rem;
}

/* Filet rouge sous les titres : signature graphique du site */
.filet {
  width: 64px;
  height: 3px;
  background: var(--rouge);
  margin-top: 1.25rem;
}

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

/* ═══════════════════════════════════════════════════════════════
   ACCUEIL
   ═══════════════════════════════════════════════════════════════ */

.hero {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.hero__logo {
  width: min(100%, 760px);
  margin-inline: auto;
  /* Plus de masque en dégradé : il servait à noyer les bords quand le fond
     de page était gris. Maintenant que la page est du même noir que l'image,
     le raccord est naturel — et le masque ne fait qu'effacer les traits
     blancs de la gravure sur les bords. */
}

.hero__titre {
  width: min(100%, 460px);
  margin: clamp(0.5rem, 2vw, 1.25rem) auto 0;
}

/* Grille des tuiles : 1 → 2 → 3 colonnes, sans media query.
   Plafonnée à ~1000 px : au-delà on passait à 4 colonnes et les 6 tuiles
   se répartissaient en 4 + 2 orphelines. À 3 colonnes, deux rangées pleines. */
.tuiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1000px;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--noir);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  transition: transform var(--transition), border-color var(--transition),
              background var(--transition);
}

/* Le survol ne change PAS le fond : un gris derrière la tuile ferait
   réapparaître le rectangle de l'image. L'affordance passe par le
   déplacement et le liseré rouge. */
.tuile:hover, .tuile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(216, 35, 31, 0.55);
}
.tuile:active { transform: translateY(-1px) scale(0.99); }

.tuile__visuel {
  width: min(100%, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform var(--transition);
}
.tuile:hover .tuile__visuel { transform: scale(1.04); }

/* Les images de titre ont des proportions très différentes (RADIO est large,
   MAGAZINES est allongé). On les cale sur une HAUTEUR commune plutôt qu'une
   largeur : elles pèsent alors le même poids visuel dans la grille. */
.tuile__titre {
  height: clamp(38px, 7vw, 52px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Petit libellé texte sous le visuel : lisible même si l'image ne charge pas */
.tuile__legende {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;      /* sinon les libellés sur 2 lignes partent à gauche */
  text-wrap: balance;
  color: var(--os-attenue);
  transition: color var(--transition);
}
.tuile:hover .tuile__legende { color: var(--rouge-vif); }

/* ═══════════════════════════════════════════════════════════════
   BOUTIQUE
   ═══════════════════════════════════════════════════════════════ */

.produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.produit {
  display: flex;
  flex-direction: column;
  background: var(--noir);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.produit:hover { transform: translateY(-4px); border-color: rgba(216, 35, 31, 0.5); }

.produit__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--noir);   /* visible pendant le chargement : reste noir */
}

.produit__vide {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--surface);
  color: var(--os-attenue);
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
}

.produit__corps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  flex: 1;
}

.produit__nom {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.produit__prix {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--rouge-vif);
  letter-spacing: 0.02em;
}

.produit__desc {
  color: var(--os-attenue);
  font-size: 0.94rem;
  white-space: pre-line;   /* les retours à la ligne saisis dans le bot comptent */
  flex: 1;
}

/* ── Boutons ────────────────────────────────────────────────── */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--rouge);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rouge);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.bouton:hover { background: var(--rouge-vif); }
.bouton:active { transform: scale(0.98); }

.bouton--fantome {
  background: transparent;
  color: var(--os);
  border-color: var(--trait);
}
.bouton--fantome:hover { background: var(--surface); border-color: var(--os-attenue); }

.bouton[aria-disabled="true"], .bouton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── États vides / chargement / erreur ──────────────────────── */
.etat {
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
  text-align: center;
  color: var(--os-attenue);
  border: 1px dashed var(--trait);
  border-radius: var(--rayon);
}
.etat strong { display: block; color: var(--os); font-size: 1.1rem; margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════════════════════════
   RADIO
   ═══════════════════════════════════════════════════════════════ */

.radio {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .radio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.radio__visuel {
  /* Aucune bordure : elle redessinerait le contour de l'image, qui est
     précisément ce qu'on veut faire disparaître sur fond noir. */
  border-radius: var(--rayon);
  overflow: hidden;
}

.lecteur {
  background: var(--noir);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: clamp(1.25rem, 4vw, 2rem);
}

/* Bandeau "en direct" : le point pulse tant que le flux est en ligne */
.direct {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--os-attenue);
}
.direct__point {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--os-attenue);
  transition: background var(--transition);
}
.direct.est-en-ligne { color: var(--rouge-vif); }
.direct.est-en-ligne .direct__point {
  background: var(--rouge);
  animation: pulsation 1.8s ease-in-out infinite;
}
@keyframes pulsation {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 35, 31, 0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(216, 35, 31, 0); }
}

.lecteur__titre {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 1rem;
  /* Réserve la hauteur de 2 lignes : le bloc ne saute pas à chaque refresh */
  min-height: 2.2em;
}
.lecteur__artiste {
  color: var(--rouge-vif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  min-height: 1.4em;
}

.lecteur__commandes {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.lecture {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  flex: none;
  background: var(--rouge);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.lecture:hover { background: var(--rouge-vif); }
.lecture:active { transform: scale(0.94); }
.lecture svg { width: 26px; height: 26px; fill: currentColor; }

/* Petit spinner pendant la mise en tampon du flux */
.lecture.est-en-chargement svg { display: none; }
.lecture.est-en-chargement::after {
  content: "";
  width: 24px; height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotation 0.7s linear infinite;
}
@keyframes rotation { to { transform: rotate(360deg); } }

.volume {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 150px;
  max-width: 220px;   /* un curseur de volume large comme la page fait gadget */
  color: var(--os-attenue);
}
.volume svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Curseur de volume dessiné à la main pour rester cohérent */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--os);
  border-radius: 50%;
  transition: background var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--rouge-vif); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--os);
  border: none;
  border-radius: 50%;
}

.lecteur__pied {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  font-size: 0.8rem;
  color: var(--os-attenue);
}

/* ═══════════════════════════════════════════════════════════════
   MAGAZINES
   ═══════════════════════════════════════════════════════════════ */

.numeros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.numero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.numero__couverture {
  width: 100%;
  aspect-ratio: 210 / 297;      /* A4 : pas de saut de mise en page au chargement */
  object-fit: cover;
  border: 1px solid transparent; /* réservé : le liseré n'apparaît qu'au survol */
  border-radius: var(--rayon);
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.numero:hover .numero__couverture {
  transform: translateY(-5px);
  border-color: rgba(216, 35, 31, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.numero__label {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.numero__action {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rouge-vif);
}

/* ── Lecteur PDF (plein écran) ──────────────────────────────── */
.liseuse {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(6px);
}
.liseuse.est-ouverte { display: flex; }

.liseuse__barre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--gouttiere);
  border-bottom: 1px solid var(--trait);
  background: var(--noir);
}

.liseuse__titre {
  font-family: var(--display);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-right: auto;
}

.liseuse__pages {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--os-attenue);
  min-width: 5.5ch;
  text-align: center;
}

.icone-bouton {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  background: var(--noir);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.icone-bouton:hover:not(:disabled) { background: var(--surface); border-color: var(--os-attenue); }
.icone-bouton:disabled { opacity: 0.35; cursor: not-allowed; }
.icone-bouton svg { width: 18px; height: 18px; fill: currentColor; }

.liseuse__zone {
  flex: 1;
  overflow: auto;
  padding: clamp(0.75rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
}

.liseuse__zone canvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.7);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CATALOGUE
   ═══════════════════════════════════════════════════════════════ */

.sorties { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }

.sortie {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--noir);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
@media (min-width: 720px) {
  .sortie { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
}

.sortie__pochette {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--rayon);
}

.sortie__nom {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.sortie__soustitre {
  color: var(--os-attenue);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.pistes {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--trait);
}

.piste {
  display: flex;
  align-items: center;
  flex-wrap: wrap;          /* la barre de progression passe sur sa propre ligne */
  gap: 0.6rem 0.9rem;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--trait);
  transition: background var(--transition);
}
.piste:hover { background: rgba(236, 231, 221, 0.04); }
.piste.est-active { background: rgba(216, 35, 31, 0.09); }

.piste__bouton {
  display: grid;
  place-items: center;
  /* 44 px : cible tactile minimale recommandée (WCAG 2.5.8).
     En dessous, on rate le bouton une fois sur trois au pouce. */
  width: 44px; height: 44px;
  flex: none;
  background: transparent;
  color: var(--os);
  border: 1px solid var(--trait);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.piste__bouton:hover { border-color: var(--rouge); color: var(--rouge-vif); }
.piste.est-active .piste__bouton {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}
.piste__bouton svg { width: 15px; height: 15px; fill: currentColor; }

.piste__numero {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--os-attenue);
  min-width: 2ch;
}

.piste__nom { flex: 1; min-width: 0; font-size: 0.95rem; }
.piste.est-active .piste__nom { color: var(--rouge-vif); font-weight: 600; }

.piste__duree {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--os-attenue);
}

/* Barre de progression de l'extrait en cours */
.piste__progression {
  display: none;
  flex: 0 0 100%;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}
.piste.est-active .piste__progression { display: block; }
.piste__progression span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rouge);
  transition: width 240ms linear;
}

/* ═══════════════════════════════════════════════════════════════
   PIED DE PAGE
   ═══════════════════════════════════════════════════════════════ */

.pied {
  margin-top: auto;
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--trait);
  color: var(--os-attenue);
  font-size: 0.85rem;
}

.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.pied__liens { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied__liens a { transition: color var(--transition); }
.pied__liens a:hover { color: var(--rouge-vif); }

body { display: flex; flex-direction: column; }
main { flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   BANDEAU RADIO PERSISTANT
   ───────────────────────────────────────────────────────────────
   Injecté par app.js et posé sur <body>, donc HORS de <main> : le
   routeur remplace le contenu de la page sans jamais y toucher, et
   la radio continue de jouer d'une page à l'autre.
   Il s'efface sur /radio, où le grand lecteur fait déjà le travail.
   ═══════════════════════════════════════════════════════════════ */

.bandeau {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0.7rem var(--gouttiere);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));  /* encoches iOS */
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--trait);
  animation: bandeau-entree 260ms cubic-bezier(0.2, 0, 0.2, 1);
}
.bandeau[hidden] { display: none; }

@keyframes bandeau-entree {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Le bandeau flotte au-dessus du contenu : on rend au pied de page
   la hauteur qu'il lui prend, sinon il masque les derniers liens. */
body.a-bandeau { padding-bottom: 78px; }

.bandeau__lecture {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  background: var(--rouge);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.bandeau__lecture:hover { background: var(--rouge-vif); }
.bandeau__lecture:active { transform: scale(0.94); }
.bandeau__lecture svg { width: 20px; height: 20px; fill: currentColor; }

.bandeau__lecture.est-en-chargement svg { display: none; }
.bandeau__lecture.est-en-chargement::after {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotation 0.7s linear infinite;
}

.bandeau__infos {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;          /* indispensable pour que l'ellipse fonctionne */
}

.bandeau__direct {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--os-attenue);
}
.bandeau__direct .direct__point {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--os-attenue);
}
.bandeau__direct.est-en-ligne { color: var(--rouge-vif); }
.bandeau__direct.est-en-ligne .direct__point {
  background: var(--rouge);
  animation: pulsation 1.8s ease-in-out infinite;
}

/* Un titre long ne doit ni passer à la ligne ni pousser les commandes. */
.bandeau__titre {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bandeau__volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 130px;
  flex: none;
  color: var(--os-attenue);
}
.bandeau__volume svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Sous 640 px, la place manque : le volume se règle avec les boutons
   physiques du téléphone, on garde la priorité au titre. */
@media (max-width: 640px) {
  .bandeau__volume { display: none; }
}

.bandeau__fermer {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  background: transparent;
  color: var(--os-attenue);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.bandeau__fermer:hover { color: var(--os); border-color: var(--os-attenue); }
.bandeau__fermer svg { width: 15px; height: 15px; fill: currentColor; }

/* Navigation interne en cours : le contenu s'estompe légèrement.
   Le délai évite tout clignotement quand la page arrive tout de suite. */
main { transition: opacity 120ms linear 90ms; }
body.est-en-navigation main { opacity: 0.55; }

.lecteur__pied a { color: var(--os-attenue); transition: color var(--transition); }
.lecteur__pied a:hover { color: var(--rouge-vif); }
