/* Thème Radio Audace — feuille principale.
   Direction « L'Onde adoucie » : l'antenne d'abord, en-tête sur une rangée, lecteur du direct
   persistant, images au format réel, cibles tactiles de 44 px. Issue de design/maquette.css. */

:root {
  --encre: #0A1628;
  --texte: #1B2333;
  --doux: #5A6475;
  --ligne: #E5E8ED;
  --papier: #F5F6F8;
  --blanc: #fff;
  --audace: #1E56E8;
  --marine: #2A3B99; /* bleu du logo historique */
  --direct: #E8442E;

  --r-infos: #1E56E8;
  --r-sport: #0A7F43;
  --r-economie: #8F6410;
  --r-societe: #0A7682;
  --r-politique: #3D4C6B;
  --r-culture: #6D36D6;
  --r-education: #A8431C;

  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --large: 1200px;
  --lecture: 680px;
  --marge: clamp(16px, 4vw, 40px);
  --rayon: 20px;
  --entete: 60px;
  --doucement: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--audace); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.cadre { max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.evitement:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- En-tête : une seule rangée à toutes les largeurs ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.entete > .cadre { display: flex; align-items: center; gap: 22px; height: var(--entete); }
html.tiroir-ouvert { overflow: hidden; }
.marque { flex: none; display: flex; align-items: center; min-height: 44px; }
.marque img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.menu a { display: flex; align-items: center; min-height: 44px; color: var(--doux); transition: color .2s; }
.menu a:hover, .menu a[aria-current] { color: var(--encre); }
.menu a[aria-current] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--audace); }
.menu a.radio { color: var(--encre); font-weight: 600; }
.menu .sep { width: 1px; height: 18px; background: var(--ligne); flex: none; }
.menu form { display: none; }
.outils { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.icone-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--encre); }
.icone-btn:hover { background: var(--papier); }
.icone-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger { display: none; }

/* Bouton du direct : il lance réellement la lecture, sans changer de page. */
.direct-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--encre); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s;
}
.direct-btn:hover { background: #142544; }
.direct-btn .ico, .lecture .ico { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.direct-btn .ico svg, .lecture .ico svg { width: 14px; height: 14px; fill: currentColor; }
.tourne { animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--direct); flex: none; }
[data-direct="lecture"] .pastille { animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(232, 68, 46, .6); } 70% { box-shadow: 0 0 0 8px rgba(232, 68, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 68, 46, 0); } }

.barre-recherche { border-top: 1px solid var(--ligne); background: var(--blanc); padding: 12px 0; }
.champ-recherche { display: flex; gap: 10px; }
.champ-recherche input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--ligne); border-radius: 12px; font: inherit; color: var(--encre); background: var(--blanc); }
.champ-recherche input:focus { border-color: var(--audace); outline: none; }
.champ-recherche button { height: 46px; padding: 0 20px; border-radius: 12px; background: var(--encre); color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- Lecteur persistant (bas d'écran, visible dès que le direct est lancé) ---------- */
.lecteur {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--encre); color: #fff;
  transform: translateY(100%); visibility: hidden; transition: transform .35s var(--doucement), visibility 0s .35s;
  padding-bottom: env(safe-area-inset-bottom);
}
html:not([data-direct="arret"]) .lecteur { transform: none; visibility: visible; transition-delay: 0s; }
html:not([data-direct="arret"]) body { padding-bottom: 64px; }
.lecteur .cadre { display: flex; align-items: center; gap: 14px; height: 64px; }
.lecteur .jouer { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; flex: none; }
.lecteur .jouer svg { width: 16px; height: 16px; fill: currentColor; }
.lecteur .txt { min-width: 0; flex: 1; line-height: 1.25; }
.lecteur .etat { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #FFB4A8; }
[data-direct="erreur"] .lecteur .etat { color: #FFD27A; }
.lecteur .quoi { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur .quoi .d { font-weight: 400; color: #A9B6CC; }
.lecteur .fermer { width: 44px; height: 44px; display: grid; place-items: center; color: #A9B6CC; flex: none; border-radius: 50%; }
.lecteur .fermer:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lecteur .fermer svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.onde { display: flex; align-items: center; gap: 4px; height: 26px; flex: none; }
.onde i { width: 3px; height: 22%; border-radius: 2px; background: #7EA2FF; }
[data-direct="lecture"] .onde i { animation: onde 1.5s ease-in-out infinite; }
.onde i:nth-child(2n) { animation-delay: -.4s; } .onde i:nth-child(3n) { animation-delay: -.9s; } .onde i:nth-child(5n) { animation-delay: -1.2s; }
@keyframes onde { 50% { height: 100%; } }

/* ---------- Éléments communs ---------- */
.rubrique { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--audace)); }
.infos { --c: var(--r-infos); } .sport { --c: var(--r-sport); } .economie { --c: var(--r-economie); }
.societe { --c: var(--r-societe); } .politique { --c: var(--r-politique); } .culture { --c: var(--r-culture); }
.education { --c: var(--r-education); } .programme { --c: var(--marine); }
.date { font-size: 13px; color: var(--doux); }

.section { padding: clamp(44px, 6vw, 84px) 0; }
.section.papier { background: var(--papier); }
.section-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 2.6vw, 34px); }
.section-tete h2 { font-family: var(--titre); font-weight: 700; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.1; color: var(--encre); }
.section-tete p { color: var(--doux); margin-top: 6px; max-width: 52ch; font-size: 16px; }
.lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--audace); font-weight: 500; font-size: 15px; white-space: nowrap; }
.lien::after { content: "\00a0›"; }
.lien:hover { text-decoration: underline; text-underline-offset: 4px; }

.vignette { overflow: hidden; border-radius: var(--rayon); background: var(--papier); position: relative; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--doucement); }
a:hover .vignette img { transform: scale(1.03); }
/* Image portrait ou carrée dans une vignette paysage : entière, sur un fond flouté d'elle-même. */
.vignette.entiere { background: var(--encre); }
.vignette.entiere::before { content: ""; position: absolute; inset: -12%; background: var(--img) center / cover; filter: blur(18px) brightness(.8); }
.vignette.entiere img { position: relative; object-fit: contain; }
.vignette.rogne img { transform: scale(1.3); } /* vidéo d'origine avec bandes noires */
.vignette .jouer-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(10, 22, 40, .82); color: #fff; font-size: 12.5px; font-weight: 600; }
.vignette .jouer-badge svg { width: 10px; height: 10px; fill: currentColor; }

.lecture { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: #fff; color: var(--encre); font-weight: 600; font-size: 15.5px; padding: 0 24px 0 20px; border-radius: 999px; transition: transform .25s var(--doucement); }
.lecture:hover { transform: scale(1.03); }
.bouton { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; background: var(--audace); color: #fff; }
.bouton.clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.bouton.contour { background: transparent; color: var(--audace); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Accueil : premier écran = l'antenne + la une ---------- */
.ouverture { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); padding-top: clamp(16px, 2.4vw, 32px); align-items: stretch; }
.une { display: block; }
.une .vignette { aspect-ratio: 16 / 9; }
.une .vignette img { object-position: 50% 30%; }
.une .rubrique { margin-top: 18px; }
.une .titre { font-family: var(--titre); font-weight: 700; color: var(--encre); font-size: clamp(26px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -.032em; margin-top: 8px; text-wrap: balance; }
.une:hover .titre { color: var(--audace); }
.une .chapeau { font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.5; color: var(--doux); margin-top: 12px; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.une .date { display: block; margin-top: 10px; }

.antenne {
  border-radius: var(--rayon);
  background: radial-gradient(120% 120% at 0% 0%, #17306a 0%, var(--encre) 60%);
  color: #fff; padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column;
}
.antenne .etiquette { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB4A8; }
.antenne h2 { font-family: var(--titre); font-weight: 700; font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; text-wrap: balance; }
.antenne .quoi { color: #A9B6CC; margin-top: 6px; font-size: 15.5px; }
.antenne .desc { color: #C6D0E2; font-size: 15px; line-height: 1.45; margin-top: 16px; max-width: 40ch; }
.antenne .commandes { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.suite { list-style: none; margin-top: auto; padding-top: 22px; }
.suite .titre { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8191AC; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.suite li:not(.titre) { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.suite time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14.5px; width: 44px; flex: none; }
.suite b { font-weight: 600; display: block; font-size: 15.5px; }
.suite span { font-size: 13.5px; color: #8D9CB6; }
.antenne .vers-grille { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #9DB4FF; font-size: 14.5px; font-weight: 500; }
.antenne .vers-grille::after { content: "\00a0›"; }

/* ---------- Cartes d'articles ---------- */
.grille { display: grid; gap: clamp(28px, 3vw, 40px) clamp(18px, 2.2vw, 30px); }
.grille.deux { grid-template-columns: repeat(2, 1fr); }
.grille.trois { grid-template-columns: repeat(3, 1fr); }
.grille.quatre { grid-template-columns: repeat(4, 1fr); }
.carte { display: block; }
.carte .vignette { aspect-ratio: 16 / 10; }
.carte .rubrique { margin-top: 16px; }
.carte h3 { font-family: var(--titre); font-weight: 650; color: var(--encre); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; margin-top: 6px; text-wrap: balance; }
.carte p { color: var(--doux); font-size: 15.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte .date { display: block; margin-top: 8px; }
.carte:hover h3 { color: var(--audace); }
.carte.grande h3 { font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.028em; line-height: 1.12; }
/* Article sans image à la une : la carte devient typographique. */
.carte.sans-image { background: var(--papier); border-radius: var(--rayon); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; justify-content: flex-end; }
.carte.sans-image .rubrique { margin-top: 0; }
.carte.sans-image p { -webkit-line-clamp: 5; }
.carte.video .vignette { aspect-ratio: 16 / 9; }

/* Listes par rubrique */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.colonne .tete { font-family: var(--titre); font-weight: 700; font-size: 24px; letter-spacing: -.025em; color: var(--encre); display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 2px solid var(--c, var(--encre)); }
.colonne .tete a { font-family: var(--sans); letter-spacing: 0; }
.ligne { display: grid; grid-template-columns: 1fr 124px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.ligne h3 { font-family: var(--titre); font-weight: 650; font-size: 18px; line-height: 1.24; letter-spacing: -.015em; color: var(--encre); }
.ligne:hover h3 { color: var(--audace); }
.ligne .date { display: block; margin-top: 6px; }
.ligne .vignette { aspect-ratio: 4 / 3; border-radius: 12px; }
.ligne.sans-image { grid-template-columns: 1fr; }

/* ---------- Émissions : un visuel, un horaire, une seule teinte ---------- */
.defile { position: relative; }
.emissions { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.emissions::-webkit-scrollbar { display: none; }
.emission { scroll-snap-align: start; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .4s var(--doucement); }
.emission:hover { border-color: #C9D0DB; transform: translateY(-3px); }
.emission .vignette { aspect-ratio: 16 / 9; border-radius: 0; }
/* Émission sans visuel dans RadioManager : vignette typographique. */
.emission .vignette.sans-visuel { background: radial-gradient(120% 140% at 0% 0%, #17306a 0%, var(--encre) 70%); display: grid; place-items: center; padding: 16px; color: #fff; font-family: var(--titre); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; text-align: center; }
.emission .txt { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.emission .quand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--marine); }
.emission h3 { font-family: var(--titre); font-weight: 700; font-size: 21px; line-height: 1.12; letter-spacing: -.025em; margin-top: 8px; color: var(--encre); }
.emission p { font-size: 14.5px; line-height: 1.45; margin-top: 8px; color: var(--doux); }
.fleches { display: flex; gap: 8px; }
.fleches button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ligne); display: grid; place-items: center; color: var(--encre); background: var(--blanc); }
.fleches button:hover { border-color: var(--encre); }
.fleches button:disabled { opacity: .35; cursor: default; border-color: var(--ligne); }
.fleches svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section-tete .droite { display: flex; align-items: center; gap: 18px; }

/* ---------- Bandeau fréquence (encre : distinct du pied) ---------- */
.frequence { background: var(--encre); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.frequence .cadre { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.frequence .chiffre { font-family: var(--titre); font-weight: 800; font-size: clamp(64px, 10vw, 128px); line-height: .9; letter-spacing: -.06em; }
.frequence .chiffre small { font-size: .32em; letter-spacing: -.02em; color: #7EA2FF; margin-left: .12em; }
.frequence p { color: #A9B6CC; font-size: clamp(17px, 1.6vw, 19px); max-width: 46ch; }
.frequence .boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Pied ---------- */
.pied { background: var(--papier); color: var(--doux); font-size: 14.5px; padding: 48px 0 24px; }
.pied .colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--ligne); }
.pied .marque { margin-bottom: 14px; }
.pied .marque img { height: 42px; }
.pied address { font-style: normal; }
.pied .coord { display: flex; flex-direction: column; margin-top: 8px; }
.pied .coord a { display: inline-flex; align-items: center; min-height: 36px; color: var(--encre); font-weight: 500; }
.pied .reseaux { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pied .reseaux a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); color: var(--encre); font-weight: 500; font-size: 13.5px; }
.pied h2 { font-size: 13px; font-weight: 600; color: var(--encre); margin-bottom: 8px; }
.pied li { list-style: none; }
.pied nav a { display: inline-flex; align-items: center; min-height: 34px; }
.pied a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.pied .bas { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 16px; font-size: 13px; }
.pied .bas nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Page d'article ---------- */
.progression { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--audace); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

.article-tete { max-width: calc(820px + 2 * var(--marge)); margin: 0 auto; padding: clamp(24px, 4vw, 52px) var(--marge) 0; }
.article-tete .rubrique a, .replay-scene .rubrique a { display: inline-block; min-width: 44px; padding: 14px 0; margin: -14px 0; }
.article-tete .rubrique a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-tete h1 { font-family: var(--titre); font-weight: 700; color: var(--encre); font-size: clamp(27px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.032em; margin-top: 6px; text-wrap: balance; }
/* Titre saisi tout en capitales : on ne le réécrit pas, on le réduit. */
.article-tete h1.capitales { font-size: clamp(21px, 2.9vw, 32px); line-height: 1.18; letter-spacing: -.005em; }
.article-tete .chapeau { font-size: clamp(17.5px, 1.7vw, 20.5px); line-height: 1.48; color: var(--doux); margin-top: 14px; text-wrap: pretty; }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--doux); }
.signature .meta { white-space: nowrap; }
.partage { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.partage a, .partage button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--encre); background: var(--papier); transition: background .2s; }
.partage a:hover, .partage button:hover { background: #E4E8EE; }
.partage svg { width: 19px; height: 19px; fill: currentColor; }
.partage .copie { font-size: 12.5px; font-weight: 600; color: var(--r-sport); margin-right: 4px; }
.partage.bas { margin: 36px auto 0; max-width: var(--lecture); padding-top: 20px; border-top: 1px solid var(--ligne); justify-content: flex-start; }
.partage.bas > span:first-child { color: var(--doux); font-size: 14.5px; margin-right: 8px; }

/* Rappel d'émission, compact, sous la signature (seulement si l'article relève d'une émission). */
.rappel-emission { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--papier); min-height: 64px; }
.rappel-emission:hover { background: #ECEFF3; }
.rappel-emission img { width: 76px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.rappel-emission .t { min-width: 0; flex: 1; line-height: 1.3; font-size: 14px; color: var(--doux); }
.rappel-emission b { display: block; color: var(--encre); font-weight: 600; font-size: 15.5px; }
.rappel-emission .fl { color: var(--audace); font-weight: 600; font-size: 20px; flex: none; }

/* Image à la une : le cadre épouse exactement le format de l'image (aucun recadrage, aucune bande).
   Sa hauteur est plafonnée ; pour une image haute, c'est donc le cadre qui devient plus étroit. --r = largeur / hauteur. */
.article-image { max-width: calc(820px + 2 * var(--marge)); margin: clamp(18px, 2.6vw, 30px) auto 0; padding: 0 var(--marge); }
.article-image .vignette { border-radius: clamp(14px, 2vw, 22px); aspect-ratio: var(--r, 1.5); width: min(100%, calc(min(66vh, 680px) * var(--r))); margin: 0 auto; }
@media (max-height: 480px) { .article-image .vignette { width: min(100%, calc(92vh * var(--r))); } }
.article-image figcaption, .corps figcaption { font-size: 13.5px; color: var(--doux); margin-top: 10px; text-align: center; }

/* Le corps : uniquement du HTML simple, tel que RadioManager l'envoie. */
.corps { max-width: calc(var(--lecture) + 2 * var(--marge)); margin: 0 auto; padding: clamp(26px, 3.4vw, 44px) var(--marge) 0; font-size: 19px; line-height: 1.68; color: var(--texte); }
.corps > * + * { margin-top: 1.15em; }
.corps :is(h1, h2, h3, h4, p, li, blockquote):empty { display: none; } /* RadioManager laisse des balises vides */
/* Un h1 dans le corps double le titre : il est rendu comme un intertitre (le thème le rétrograde aussi en h2). */
.corps :is(h1, h2) { font-family: var(--titre); font-weight: 700; color: var(--encre); font-size: clamp(23px, 2.6vw, 30px); line-height: 1.17; letter-spacing: -.026em; margin-top: 1.9em; text-wrap: balance; }
.corps h3 { font-family: var(--titre); font-weight: 650; color: var(--encre); font-size: 21px; line-height: 1.25; letter-spacing: -.015em; margin-top: 1.7em; }
.corps h4 { font-weight: 700; color: var(--encre); font-size: 17px; line-height: 1.35; letter-spacing: .01em; margin-top: 1.6em; }
.corps :is(h1, h2, h3, h4):not(:empty) + * { margin-top: .6em; }
.corps > :first-child { margin-top: 0; }
.corps strong { font-weight: 650; color: var(--encre); }
.corps a { color: var(--audace); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.corps ul, .corps ol { padding-left: 1.3em; }
.corps li + li { margin-top: .4em; }
.corps li::marker { color: var(--audace); }
.corps hr { border: 0; height: 1px; background: var(--ligne); margin: 2.2em auto; width: 40%; }
/* Citation ordinaire (plusieurs lignes, extrait de loi) : lisible, au corps du texte. */
.corps blockquote { margin: 1.6em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--audace); color: var(--encre); font-size: 1em; }
.corps blockquote > * + * { margin-top: .8em; }
.corps blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14.5px; color: var(--doux); }
/* Exergue : réservé aux citations d'une phrase (le thème le décide à la longueur). */
.corps blockquote.exergue { font-family: var(--titre); font-weight: 600; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; margin: 2em 0; }
.corps img { border-radius: 14px; margin-left: auto; margin-right: auto; }
.corps iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.corps .tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.corps table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.4; }
.corps th, .corps td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.corps th { font-weight: 600; color: var(--encre); border-bottom: 2px solid var(--encre); white-space: nowrap; }

.hors-corps { padding: 0 var(--marge); }
article { padding-bottom: clamp(36px, 5vw, 56px); }
article + .section { padding-top: 0; }
.bandeau-direct { max-width: var(--lecture); margin: clamp(32px, 4vw, 48px) auto 0; border-radius: var(--rayon); padding: 20px 22px; background: radial-gradient(130% 180% at 0% 0%, #17306a 0%, var(--encre) 60%); color: #fff; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.bandeau-direct .t { flex: 1; min-width: 200px; }
.bandeau-direct .etiquette { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB4A8; }
.bandeau-direct b { display: block; font-family: var(--titre); font-weight: 700; font-size: 21px; letter-spacing: -.02em; margin-top: 4px; }
.bandeau-direct span.h { color: #A9B6CC; font-size: 14.5px; }

/* ---------- Replay vidéo ---------- */
.replay-scene { background: var(--encre); color: #fff; padding: clamp(16px, 3vw, 36px) 0 clamp(24px, 3vw, 40px); }
.replay-scene .cadre { max-width: calc(980px + 2 * var(--marge)); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(12px, 1.8vw, 20px); overflow: hidden; background: #000; display: block; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .gros-bouton { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; transition: transform .25s var(--doucement); }
.video:hover .gros-bouton { transform: scale(1.07); }
.video .gros-bouton svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.replay-scene .rubrique { color: #9DB4FF; margin-top: 22px; }
.replay-scene h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.03em; margin-top: 6px; text-wrap: balance; }
.replay-scene .signature { border-top-color: rgba(255, 255, 255, .14); color: #A9B6CC; }
.replay-scene .partage a, .replay-scene .partage button { background: rgba(255, 255, 255, .1); color: #fff; }
.replay-scene .partage a:hover, .replay-scene .partage button:hover { background: rgba(255, 255, 255, .2); }
.replay-scene .partage .copie { color: #8DE0B0; }

/* ---------- Page d'émission ---------- */
.emission-tete { background: radial-gradient(120% 140% at 0% 0%, #17306a 0%, var(--encre) 62%); color: #fff; padding: clamp(24px, 4vw, 56px) 0; }
.emission-tete .cadre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.emission-tete .rubrique { color: #9DB4FF; }
.emission-tete h1 { font-family: var(--titre); font-weight: 800; font-size: clamp(34px, 5.4vw, 64px); line-height: 1; letter-spacing: -.04em; margin-top: 8px; }
.emission-tete .accroche { color: #C6D0E2; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; margin-top: 14px; max-width: 46ch; }
.emission-tete .vignette { aspect-ratio: 16 / 10; }
.fiche { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.fiche div { min-width: 0; }
.fiche dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8191AC; }
.fiche dd { margin: 2px 0 0; font-weight: 600; font-size: 16.5px; }
.fiche dd small { font-weight: 400; color: #8D9CB6; font-size: 13px; }
.emission-tete .boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Page de rubrique ---------- */
.rubrique-tete { padding: clamp(24px, 4vw, 52px) 0 clamp(18px, 2vw, 26px); border-bottom: 2px solid var(--c, var(--encre)); }
.rubrique-tete h1 { font-family: var(--titre); font-weight: 800; font-size: clamp(36px, 6vw, 68px); line-height: 1; letter-spacing: -.04em; color: var(--encre); }
.rubrique-tete p { color: var(--doux); margin-top: 10px; max-width: 60ch; }
.puces { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.puces a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--papier); font-size: 14.5px; font-weight: 500; color: var(--encre); }
.puces a[aria-current] { background: var(--encre); color: #fff; }
.note-fin { color: var(--doux); font-size: 15px; padding: 18px 0 0; }

/* ---------- Page de la grille ---------- */
.jours { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px calc(-1 * var(--marge)) 0; padding: 0 var(--marge); }
.jours::-webkit-scrollbar { display: none; }
.jours a { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 56px; padding: 0 14px; border-radius: 14px; background: var(--papier); font-weight: 600; font-size: 15px; color: var(--encre); line-height: 1.2; }
.jours a small { font-weight: 400; font-size: 12px; color: var(--doux); }
.jours a[aria-current] { background: var(--encre); color: #fff; }
.jours a[aria-current] small { color: #A9B6CC; }
.creneaux { list-style: none; max-width: 860px; }
.creneau { display: grid; grid-template-columns: 76px 112px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.creneau .heure { font-family: var(--titre); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--encre); font-variant-numeric: tabular-nums; line-height: 1.1; }
.creneau .heure small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--doux); margin-top: 3px; }
.creneau .vignette { aspect-ratio: 16 / 9; border-radius: 10px; }
.creneau .vignette.sans-visuel { background: radial-gradient(120% 140% at 0% 0%, #17306a 0%, var(--encre) 70%); }
.creneau h2 { font-family: var(--titre); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; color: var(--encre); }
.creneau a:hover h2 { color: var(--audace); }
.creneau p { color: var(--doux); font-size: 15px; margin-top: 3px; }
.creneau.passe { opacity: .55; }
.creneau.en-cours { background: var(--encre); color: #fff; border-radius: var(--rayon); border: 0; padding: 18px; margin: 10px -18px; grid-template-columns: 76px 112px 1fr auto; }
.creneau.en-cours .heure, .creneau.en-cours h2 { color: #fff; }
.creneau.en-cours .heure small, .creneau.en-cours p { color: #A9B6CC; }
.creneau.en-cours .etiquette { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB4A8; margin-bottom: 4px; }
.relance { max-width: 860px; margin-top: 36px; padding: 22px 24px; border-radius: var(--rayon); background: var(--papier); }
.relance b { display: block; font-family: var(--titre); font-size: 19px; color: var(--encre); letter-spacing: -.02em; }
.relance p { color: var(--doux); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 600px) {
  .creneau { grid-template-columns: 58px 1fr; gap: 12px; }
  .creneau .vignette { display: none; }
  .creneau .heure { font-size: 19px; }
  .creneau.en-cours { grid-template-columns: 58px 1fr; margin: 10px -8px; padding: 16px 8px 16px 12px; }
  .creneau.en-cours .lecture { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--doucement), transform .7s var(--doucement); }
.js .apparait.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Adaptation ---------- */
/* Sous 1140 px, le menu passe dans un tiroir : aucun lien n'est jamais tronqué. */
@media (max-width: 1139px) {
  .burger { display: grid; margin-left: -10px; }
  .entete > .cadre { gap: 6px; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
    padding: 8px var(--marge) 20px; font-size: 17px;
    max-height: calc(100dvh - var(--entete)); overflow-y: auto;
    box-shadow: 0 24px 40px -24px rgba(10, 22, 40, .25);
  }
  .entete.ouvert .menu { display: flex; }
  .menu a { min-height: 50px; border-bottom: 1px solid var(--ligne); color: var(--encre); }
  .menu a[aria-current] { box-shadow: none; color: var(--audace); }
  .menu .sep { display: none; }
  .menu form { display: flex; margin: 10px 0 6px; }
  .emissions { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 900px) {
  .grille.trois, .grille.quatre { grid-template-columns: repeat(2, 1fr); }
  .emissions { grid-auto-columns: calc((100% - 20px) / 2); }
  /* Pied : une colonne, listes de liens en ligne (bien plus court qu'une pile de liens). */
  .pied { padding-top: 32px; }
  .pied .colonnes { grid-template-columns: 1fr; gap: 14px; padding-bottom: 16px; }
  .pied nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .pied h2 { margin-bottom: 0; }
  .pied .coord { flex-direction: row; flex-wrap: wrap; gap: 0 20px; margin-top: 2px; }
  .pied .reseaux { margin-top: 6px; }
  .pied .marque { margin-bottom: 6px; }
  .pied address br { display: none; }
  .pied address .l2::before { content: " · "; }
  .emission-tete .cadre { grid-template-columns: 1fr; }
  .emission-tete .vignette { order: -1; aspect-ratio: 16 / 8; }
}
@media (max-width: 760px) {
  :root { --entete: 56px; }
  /* Téléphone : le direct en bandeau compact, puis la une avec son image. */
  .ouverture { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .antenne { order: -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 16px; }
  .antenne .bloc { flex: 1; min-width: 0; }
  .antenne h2 { font-size: 19px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .antenne .quoi { font-size: 13.5px; margin-top: 2px; }
  .antenne .commandes { margin-top: 0; }
  .antenne .onde, .antenne .suite, .antenne .desc { display: none; }
  .antenne .lecture .libelle { display: none; }
  .antenne .lecture { width: 48px; padding: 0; justify-content: center; }
  .antenne .vers-grille { width: 100%; margin-top: 0; min-height: 36px; font-size: 13.5px; }
  .une .rubrique { margin-top: 14px; }
  .duo { grid-template-columns: 1fr; }
  .frequence .cadre { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .grille.deux, .grille.trois, .grille.quatre { grid-template-columns: 1fr; }
  .section-tete { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-tete .droite { width: 100%; justify-content: space-between; }
  .ligne { grid-template-columns: 1fr 96px; gap: 14px; }
  .emissions { grid-auto-columns: 80%; margin-right: calc(-1 * var(--marge)); padding-right: var(--marge); }
  .corps { font-size: 18px; }
  .signature { font-size: 13.5px; }
  .partage { margin-left: 0; width: 100%; }
  .rappel-emission img { width: 64px; height: 40px; }
}
/* Très petit écran : le pied garde l'essentiel (les rubriques et le détail des émissions sont dans le menu). */
@media (max-width: 380px) {
  .pied nav[aria-labelledby="p-rub"] { display: none; }
  .pied nav[aria-labelledby="p-emi"] li:nth-child(-n+4) { display: none; }
  .pied { padding: 24px 0 12px; }
  .marque img { height: 30px; }
}
@media (max-width: 479px) {
  .outils .chercher { display: none; }
  .direct-btn { padding: 0 14px 0 12px; }
  .direct-btn .long { display: none; }
}
@media (min-width: 480px) { .direct-btn .court { display: none; } }
/* Écran tactile, quelle que soit sa largeur : aucune cible sous 44 px. */
@media (pointer: coarse) {
  .pied nav a, .pied .coord a, .pied .reseaux a { min-height: 44px; min-width: 44px; }
  .pied .bas nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .antenne .vers-grille { min-height: 44px; }
}

/* ---------- Compléments propres au thème WordPress ---------- */
/* Barre d'administration : l'en-tête collant passe dessous. */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
@media (max-width: 600px) { .admin-bar .entete { top: 0; } }

.section-serree { padding-top: clamp(18px, 2.4vw, 32px); }
.section-suite { padding-top: 0; }
.replay-rappel { padding-top: clamp(20px, 3vw, 32px); }
.replay-rappel .rappel-emission { max-width: var(--lecture); margin-left: auto; margin-right: auto; }
.replay-scene + .corps, .replay-rappel + .corps { padding-top: clamp(20px, 3vw, 32px); }
.recherche-page { margin-top: 16px; max-width: 560px; }
.emission-tete .cadre.sans-visuel { grid-template-columns: 1fr; }
.emissions-liste .emission { height: 100%; }
.lecture.sombre { background: var(--encre); color: #fff; }
.relance .boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.creneau > div:not(.heure):not(.vignette) { min-width: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--papier); font-weight: 500; font-size: 15px; color: var(--encre); }
.pagination .page-numbers.current { background: var(--encre); color: #fff; }
.pagination a.page-numbers:hover { background: #E4E8EE; }
.pagination .dots { background: none; min-width: 0; padding: 0 4px; }

/* Contenus hérités de WordPress dans le corps d'un article ou d'une page. */
.corps .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.corps .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.corps .aligncenter { margin-left: auto; margin-right: auto; }
.corps .wp-caption { max-width: 100%; }
.corps .wp-caption-text { font-size: 13.5px; color: var(--doux); margin-top: 10px; text-align: center; }
.corps video, .corps audio { width: 100%; border-radius: 14px; }
.corps::after { content: ""; display: block; clear: both; }
.corps input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .corps textarea, .corps select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ligne); border-radius: 12px; font: inherit; color: var(--encre); background: var(--blanc); }
.corps input[type="submit"], .corps button { min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--audace); color: #fff; font-weight: 600; border: 0; cursor: pointer; font: inherit; }
@media (max-width: 600px) { .corps .alignleft, .corps .alignright { float: none; margin: 1.15em auto 0; max-width: 100%; } }

/* Navigation sans rechargement : léger fondu pendant le chargement de la page suivante. */
main { transition: opacity .15s; }
html.charge main { opacity: .45; }

/* Titres saisis tout en capitales, dans les listes et à la une : réduits pour ne pas écraser la page. */
.carte h3.capitales { font-size: 16.5px; line-height: 1.3; letter-spacing: 0; }
.ligne h3.capitales { font-size: 15.5px; line-height: 1.3; letter-spacing: 0; }
.une .titre.capitales { font-size: clamp(21px, 2.5vw, 30px); line-height: 1.18; letter-spacing: -.005em; }
/* Bandeau du direct : un titre de chanson long tient sur une ligne. */
.bandeau-direct b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bandeau-direct .t { min-width: 0; }

/* Bloc « À l'antenne » sans grille : liste des émissions à la place de « À suivre ». */
.suite.sans-heure li:not(.titre) { padding: 0; }
.suite.sans-heure a { display: block; flex: 1; padding: 11px 0; min-height: 44px; }
.suite.sans-heure a:hover b { color: #9DB4FF; }
