/* ============================================================
   Radio Infos — compléments projet par-dessus desk39.css
   (login, barre d'outils/date, statut, ajustements page)
   ============================================================ */

/* ---------- Masthead : outils ---------- */
.masthead__tools .select {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 9px 12px;
  max-width: 250px;
  transition: border-color .18s;
}
.masthead__tools .select:hover { border-color: var(--line-strong); }
.masthead__tools .select:focus { outline: none; border-color: var(--red-line); }

/* Masthead cohérent sur TOUTES les pages : nav figée à gauche (après le logo),
   outils toujours à droite. (desk39.css met margin-left:auto sur la nav → on l'annule.) */
.masthead__nav  { margin-left: 26px; }
.masthead__tools { margin-left: auto; }

/* ---------- Bandeau de statut (dernière sync) ---------- */
.statusbar {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-4);
  padding-block: 18px 0;
}

/* ---------- Sections du programme ---------- */
.programme { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.fmt-section + .fmt-section { margin-top: clamp(36px, 5vw, 60px); }
.ecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .ecards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .ecards { grid-template-columns: 1fr; } }

/* Liens du pied de carte : fiche interne (→) + page externe (↗) */
.ecard__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ecard__link { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-3); display: inline-flex; align-items: center; gap: 6px; transition: color .15s, gap .15s; }
.ecard__link:hover { color: var(--red-2); gap: 9px; }
.ecard__link--ext { color: var(--paper-4); }
.ecard__link svg { width: 12px; height: 12px; }
/* Titre & nom d'émission cliquables vers la fiche */
.ecard__title a { color: inherit; transition: color .15s; }
.ecard__title a:hover { color: var(--red-2); }
.ecard__show--link { transition: color .15s; }
.ecard__show--link:hover { color: var(--red-2); }

/* ============================================================
   FICHE ÉMISSION (repris de « Desk39 — Fiche »)
   ============================================================ */
.crumb { padding-block: 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-4); display: flex; gap: 10px; align-items: center; }
.crumb a { color: var(--paper-3); transition: color .15s; }
.crumb a:hover { color: var(--red-2); }
.crumb .sep { color: var(--line-strong); }
.crumb .here { color: var(--paper-2); }

.showhero { padding-block: clamp(20px, 3vw, 36px) clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.showhero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.showhero__badges { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.showhero h1 { font-size: clamp(40px, 7vw, 88px); line-height: 0.94; letter-spacing: -0.03em; }
.showhero__lede { font-size: 17px; line-height: 1.65; color: var(--paper-2); max-width: 56ch; margin-top: 26px; }

.signal { border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), var(--bg-inset)); padding: 26px 26px 24px; position: sticky; top: 90px; }
.signal__h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-4); margin-bottom: 22px; }
.dl { display: flex; flex-direction: column; }
.dl__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.dl__row:first-child { border-top: none; padding-top: 0; }
.dl__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-4); white-space: nowrap; }
.dl__v { font-size: 14.5px; color: var(--paper); text-align: right; }
.dl__v.serif { font-family: var(--serif); font-size: 16px; }
.signal__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.signal__cta .btn { justify-content: center; }

.egrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.weekgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.daycol__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3); text-align: center; padding-bottom: 10px; }
.daycell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 14px 12px; min-height: 96px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.daycell:hover { border-color: var(--line-strong); }
.daycell .h { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--paper); }
.daycell .d { font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); line-height: 1.4; }
.daycell--off { border-style: dashed; border-color: var(--line-2); background: var(--bg-inset); align-items: center; justify-content: center; text-align: center; }
.daycell--off .x { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-4); }
.daycell--off .x b { display: block; color: var(--paper-3); font-size: 18px; margin-bottom: 4px; font-weight: 400; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.relcard { background: var(--bg-2); padding: 22px 24px; transition: background .16s; }
.relcard:hover { background: var(--bg-3); }
.relcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.relcard h4 { font-family: var(--serif); font-size: 20px; line-height: 1.1; margin-bottom: 6px; }
.relcard__host { font-size: 13px; color: var(--paper-2); }

@media (max-width: 900px) {
  .showhero__grid { grid-template-columns: 1fr; }
  .signal { position: static; }
  .egrid, .related { grid-template-columns: 1fr; }
  .weekgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) { .weekgrid { grid-template-columns: 1fr; } }

/* Player : état actif + curseur sur la piste */
.player__btn.is-playing { background: var(--red); color: #fff; border-color: var(--red); }
.player__track { cursor: pointer; }

/* ============================================================
   LOGIN (repris de « Desk39 — Connexion »)
   ============================================================ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.brand { position: relative; overflow: hidden; background: var(--bg-inset); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 5vw, 64px); }
.brand__big { position: absolute; right: -6%; bottom: -16%; font-family: var(--mono); font-weight: 600; font-size: clamp(360px, 46vw, 620px); line-height: 0.8; color: var(--bg-2); user-select: none; pointer-events: none; letter-spacing: -0.04em; }
.brand__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.brand__edition { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-4); }
.brand__mid { position: relative; z-index: 1; }
.brand__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-2); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.brand__kicker::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.brand h1 { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.0; letter-spacing: -0.02em; max-width: 14ch; }
.brand h1 em { font-style: italic; color: var(--paper-2); font-weight: 500; }
.brand__sub { font-family: var(--serif); font-size: 18px; color: var(--paper-2); line-height: 1.5; max-width: 36ch; margin-top: 24px; }
.brand__foot { position: relative; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-4); display: flex; gap: 18px; align-items: center; }
.brand__foot .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

.formcol { display: flex; align-items: center; justify-content: center; padding: clamp(30px, 5vw, 56px); }
.formwrap { width: 100%; max-width: 400px; }

.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: 10px; }
.step__dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--paper-4); transition: all .2s; }
.step__lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-4); transition: color .2s; }
.step__line { width: 22px; height: 1px; background: var(--line-2); }
.step.is-active .step__dot { border-color: var(--red); color: var(--red-2); background: var(--red-wash); }
.step.is-active .step__lbl { color: var(--paper); }
.step.is-done .step__dot { border-color: var(--paper-3); color: var(--bg); background: var(--paper-3); }
.step.is-done .step__lbl { color: var(--paper-3); }

.panel-l { display: none; }
.panel-l.is-shown { display: block; }
.panel-l h2 { font-family: var(--serif); font-size: 32px; line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 10px; }
.panel-l > p.lede { color: var(--paper-2); font-size: 15px; line-height: 1.55; margin-bottom: 30px; }
.panel-l > p.lede b { color: var(--paper); font-weight: 600; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 9px; }
.field__box { position: relative; }
.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; color: var(--paper); font-family: var(--sans); font-size: 15px; transition: border-color .16s, background .16s; }
.input::placeholder { color: var(--paper-4); }
.input:focus { outline: none; border-color: var(--red-line); background: var(--bg-3); }
.field__toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--paper-4); width: 30px; height: 30px; display: grid; place-items: center; }
.field__toggle:hover { color: var(--paper-2); }
.field__row { display: flex; align-items: center; justify-content: space-between; }

.submit { width: 100%; justify-content: center; margin-top: 12px; }

.code { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.code input { width: 100%; aspect-ratio: 3 / 4; text-align: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--paper); font-family: var(--mono); font-size: 26px; font-variant-numeric: tabular-nums; transition: border-color .16s, background .16s; }
.code input:focus { outline: none; border-color: var(--red); background: var(--bg-3); }
.code input.filled { border-color: var(--paper-3); }
.hint { font-family: var(--mono); font-size: 11.5px; color: var(--paper-3); letter-spacing: 0.03em; margin-bottom: 28px; }
.sentto { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--paper-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 14px; margin-bottom: 26px; }
.sentto .live-dot { background: var(--paper-3); animation: none; box-shadow: none; }

.trust { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: border-color .16s, background .16s; margin-bottom: 14px; }
.trust:hover { border-color: var(--line-strong); }
.trust.is-on { border-color: var(--red-line); background: var(--red-wash); }
.trust__box { width: 22px; height: 22px; flex: none; border-radius: 5px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all .16s; margin-top: 1px; }
.trust.is-on .trust__box { background: var(--red); border-color: var(--red); color: #fff; }
.trust__box svg { width: 13px; height: 13px; }
.trust__t { font-size: 14.5px; font-weight: 600; color: var(--paper); margin-bottom: 4px; }
.trust__d { font-size: 13px; color: var(--paper-3); line-height: 1.5; }
.trust input { position: absolute; opacity: 0; pointer-events: none; }

.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-4); margin-top: 22px; }
.back:hover { color: var(--paper-2); }
.back svg { width: 13px; height: 13px; }

.loginerr { color: var(--red-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; margin-top: 16px; min-height: 16px; }

.secure { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-4); }
.secure svg { width: 13px; height: 13px; }

@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .brand { min-height: 240px; border-right: none; border-bottom: 1px solid var(--line); }
  .brand__big { font-size: 300px; bottom: -30%; }
}

/* ============================================================
   HOME — 7 derniers jours (hero éditorial + résumé)
   ============================================================ */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(34px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; margin: 24px 0 0; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--paper-2); }
.hero__lede { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 20px); color: var(--paper-2); max-width: 50ch; line-height: 1.5; margin-top: 24px; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.onair { border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), var(--bg-inset)); padding: 26px; position: relative; overflow: hidden; }
.onair::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.onair__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.onair__media { margin-bottom: 14px; }
.onair h2 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.08; margin-bottom: 18px; }
.onair .player { margin-top: 4px; }

.stripstats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-inset); }
.stripstats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px var(--gutter); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: none; }
.stat__n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stat__l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); }

.digest { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dayblock { border-top: 1px solid var(--line); background: var(--bg-2); }
.dayblock:first-child { border-top: none; }
.dayrow { display: flex; align-items: center; gap: 20px; width: 100%; padding: 18px 22px; text-align: left; background: transparent; transition: background .15s; }
.dayrow:hover { background: var(--bg-3); }
.dayrow__date { min-width: 104px; display: flex; align-items: baseline; gap: 8px; }
.dayrow__d { font-family: var(--serif); font-size: 22px; color: var(--paper); text-transform: capitalize; }
.dayrow__m { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-4); }
.dayrow__count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-2); min-width: 92px; }
.dayrow__monos { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.dayrow__chev { color: var(--paper-4); transition: transform .2s, color .15s; display: inline-flex; }
.dayrow:hover .dayrow__chev { color: var(--red-2); }
.dayblock.is-open .dayrow__chev { transform: rotate(90deg); }
.daypanel { display: none; padding: 2px 22px 22px; }
.dayblock.is-open .daypanel { display: block; }
.daypanel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.daypanel__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3); transition: color .15s, gap .15s; }
.daypanel__more:hover { color: var(--red-2); gap: 11px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .stripstats__row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}
@media (max-width: 680px) {
  .stripstats__row { grid-template-columns: 1fr 1fr; }
  .dayrow__monos { display: none; }
}

/* ============================================================
   OVERFLOW / MOBILE — corrections
   ============================================================ */
/* Barre de défilement verticale toujours réservée → pas de décalage horizontal
   quand le contenu s'agrandit (dépliage d'un jour, changement de page). */
html { overflow-y: scroll; scrollbar-gutter: stable; }
html, body { max-width: 100%; overflow-x: hidden; }
.ecard, .pcard, .relcard { min-width: 0; }
.ecard__title, .ecard__title a { overflow-wrap: anywhere; }

@media (max-width: 680px) {
  /* Le masthead passe sur 2 lignes : (logo + outils) puis la nav en dessous */
  .masthead__bar { flex-wrap: wrap; height: auto; min-height: 60px; padding-block: 10px; gap: 10px 14px; }
  .masthead__nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
  .masthead__tools { margin-left: auto; }
  .masthead__tools .select { max-width: 150px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-head__meta { white-space: normal; }
  .dayrow { gap: 12px; padding: 16px; }
  .dayrow__count { min-width: 0; }
  .container { padding-inline: 18px; }
}
