/* BANDEAU : logo bannière (symbole à gauche, nom et signature à droite) */
.hero { text-align: center; padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem 0; }
.hero .logo img { display: block; width: min(100%, 680px); height: auto; margin: 0 auto; }

/* LECTEUR : bouton rond + titre en cours ; même largeur que le texte de présentation (--measure).
   Rien ne doit bouger au clic ▶/■ : bouton calé en haut, ligne de statut toujours réservée. */
.player {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-s) 1.75rem; align-items: start;
  max-width: var(--measure); margin: var(--space-s) auto 0.75rem; padding: 1.25rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.play-round {
  display: grid; place-items: center; width: var(--btn); height: var(--btn); border-radius: 50%; cursor: pointer;
  position: relative; background: var(--ink); color: var(--oxblood); border: 0; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold);
  font-size: calc(var(--btn) * 0.36); line-height: 1; transition: transform 0.15s ease;
}
.play-round .play-icon { margin-left: 0.08em; }          /* centrage optique du triangle */
@media (hover: hover) { .play-round:hover { transform: scale(1.04); } }   /* pas de survol « collé » sur tactile */
.play-round.playing { background: var(--oxblood); color: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.play-round.playing .play-icon { margin-left: 0; }
/* Anneau qui pulse pendant la lecture : décor seul (pseudo-élément absolu, ne change rien à la mise en page) */
.play-round::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .play-round.playing::before { animation: pulse 2.6s ease-out infinite; }
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.3); opacity: 0; } }
.now-label { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em; color: var(--accent-hi); margin-bottom: 0.35rem; }
.rfi-logo { height: 1.6rem; width: auto; background: #fff; border-radius: 6px; padding: 2px 4px; }
.rfi-logo[hidden] { display: none; }
.player-info { min-width: 0; }
.player-info h2 { font-size: var(--fs-title); overflow-wrap: anywhere; margin-bottom: 0.2rem; }
.player-info p { overflow-wrap: anywhere; }
/* Barre de progression du morceau : la ligne est toujours réservée (visibility, jamais display) pour que le cadre ne bouge pas */
.np-progress { display: flex; align-items: center; gap: 0.6rem; height: 1.2rem; margin-top: 0.7rem; visibility: hidden;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-progress.on { visibility: visible; }
.np-bar { flex: 1; min-width: 0; height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.np-bar i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.play-status { grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.5; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-rfi { max-width: var(--measure); margin: 0 auto var(--space); text-align: center; font-family: var(--font-mono); font-size: 0.8rem; }
.next-rfi:empty { display: none; }

/* TEXTE DE PRÉSENTATION : même axe que le lecteur */
.intro { font-size: var(--fs-intro); line-height: 1.7; max-width: var(--measure); margin: 0 auto var(--space); text-align: center; }

/* MANIFESTE ET HISTORIQUE : une colonne, puis côte à côte sur grand écran */
.cols { display: block; }
.manifeste, .history { margin-bottom: var(--space); }
.manifeste h2, .history h2 {
  font-size: var(--fs-section); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; margin-bottom: var(--space-s);
}
.manifeste-lead { font-family: var(--font-title); font-size: 1.25rem; line-height: 1.5; margin-bottom: var(--space-s); }
.manifeste summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent-hi);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.manifeste summary:hover { color: var(--ink); }
.manifeste-text { margin-top: var(--space-s); max-width: 66ch; }
.manifeste-text h3 { font-size: 1.05rem; color: var(--gold); margin: 1.75rem 0 0.5rem; letter-spacing: 0.04em; }
.manifeste-text p { margin-bottom: 0.9rem; line-height: 1.7; }
.manifeste-signature { font-family: var(--font-title); font-style: italic; margin-top: 1.5rem; }

#history-list { list-style: none; }
#history-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-s); padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
#history-list li:last-child { border-bottom: none; }
.h-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-artist { font-weight: 600; }
.h-title { color: var(--muted); }
.h-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.more-btn {
  min-height: 44px; margin-top: 0.5rem; padding: 0.5rem 0; background: none; border: 0; cursor: pointer;
  color: var(--accent-hi); font: 600 0.95rem var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.more-btn:hover { color: var(--ink); }

/* PIED DE PAGE */
footer { text-align: center; padding-top: var(--space); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
footer nav { margin-top: 0.5rem; display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* TÉLÉPHONE : bouton rond plus petit à gauche du titre, tailles réduites d'un cran */
@media (max-width: 640px) {
  :root { --btn: 72px; --fs-intro: 1.1rem; --fs-title: 1.3rem; --fs-section: 1.15rem; --space: 1.5rem; }
  .hero { padding-top: max(1rem, env(safe-area-inset-top)); }
  .player { gap: var(--space-s) 1.1rem; padding: 1rem 1.1rem; }
  .manifeste-lead { font-size: 1.1rem; }
}

/* ORDINATEUR : manifeste à gauche, historique à droite (collant) */
@media (min-width: 1024px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 3rem; align-items: start; }
  .history { position: sticky; top: 1.5rem; }
}

/* TRÈS GRAND ÉCRAN, TÉLÉVISEUR : axe plus large, texte un peu plus gros */
@media (min-width: 1600px) {
  :root { --measure: 840px; --btn: 112px; --fs-body: 17.5px; --fs-title: 2rem; }
  main { max-width: 1200px; }
  .hero .logo img { width: min(100%, 780px); }
}

/* TÉLÉPHONE EN PAYSAGE (peu de hauteur) : bannière réduite, lecteur compact */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --btn: 56px; --fs-title: 1.2rem; }
  .hero { padding-top: 0.5rem; }
  .hero .logo img { width: auto; max-height: 24vh; }
  .player { padding: 0.75rem 1.1rem; margin: 0.5rem auto 0.5rem; }
}
