/* Prépa matinale — feuille de style
   Disposition : outil en 3 colonnes (liste · fiche · conducteur), une seule colonne au téléphone.
   Habillage « lever du jour » : l'en-tête est un ciel de 6 heures (nuit → violet FC Radio → aube), le reste reste calme ;
   les couleurs des catégories teintent les cartes. Violet du logo FC Radio pour les actions principales. */
:root {
  --fond: #f6f3f7;          /* papier d'aube, à peine lilas */
  --surface: #ffffff;
  --surface-2: #efe9f1;
  --encre: #2a2231;         /* encre aubergine */
  --encre-2: #6c6375;
  --trait: #e5dde8;
  --accent: #822080;        /* violet du logo FC Radio */
  --accent-doux: #f4e6f3;
  --accent-encre: #ffffff;
  --alerte: #a8620a;
  --alerte-fond: #fdf1dc;
  --ok: #1f7a4d;
  --ok-fond: #e1f3e8;
  --info-fond: #f0ecf2;
  --ombre: 0 1px 2px rgb(42 34 49 / 6%), 0 6px 20px rgb(42 34 49 / 8%);
  --aube: linear-gradient(100deg, #231a38 0%, #45205a 30%, #822080 58%, #c2477c 80%, #ef9a62 100%);

  --f-titre: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-texte: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --f-chiffre: 'Barlow Condensed', 'Arial Narrow', sans-serif; /* chiffres d'horloge de studio */

  --t-xs: 0.75rem; --t-s: 0.8125rem; --t-m: 0.9375rem; --t-l: 1.0625rem; --t-xl: 1.375rem; --t-xxl: 1.75rem;
  --r: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #16121b; --surface: #201a27; --surface-2: #2b2433; --encre: #f0eaf3; --encre-2: #a89eb2;
    --trait: #362d40; --accent: #d98bd3; --accent-doux: #3a2141; --accent-encre: #1c0f1e;
    --alerte: #f0b35b; --alerte-fond: #3a2a12; --ok: #6fd39c; --ok-fond: #15352a; --info-fond: #2a2332;
    --ombre: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 30%);
    --aube: linear-gradient(100deg, #120d1d 0%, #2a1438 32%, #57175a 60%, #87305a 82%, #a8573c 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #16121b; --surface: #201a27; --surface-2: #2b2433; --encre: #f0eaf3; --encre-2: #a89eb2;
  --trait: #362d40; --accent: #d98bd3; --accent-doux: #3a2141; --accent-encre: #1c0f1e;
  --alerte: #f0b35b; --alerte-fond: #3a2a12; --ok: #6fd39c; --ok-fond: #15352a; --info-fond: #2a2332;
  --ombre: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 30%);
  --aube: linear-gradient(100deg, #120d1d 0%, #2a1438 32%, #57175a 60%, #87305a 82%, #a8573c 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body, #racine { height: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: var(--t-m)/1.5 var(--f-texte);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }
.chiffre { font-family: var(--f-chiffre); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .01em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--trait);
  background: var(--surface); border-radius: var(--r); padding: 6px 12px; font-size: var(--t-s);
  font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.btn:hover { border-color: var(--encre-2); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-principal { background: var(--accent); border-color: var(--accent); color: var(--accent-encre); }
.btn-principal:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-discret { border-color: transparent; background: transparent; color: var(--encre-2); }
.btn-discret:hover { color: var(--encre); background: var(--surface-2); border-color: transparent; }
.btn-icone { padding: 6px 8px; }

/* ---------- Structure ---------- */
.app { display: flex; flex-direction: column; height: 100%; }
.app > .corps { flex: 1; }
.entete {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface); border-bottom: 1px solid var(--trait);
}
.marque { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.marque b { font: 700 var(--t-xl)/1 var(--f-titre); letter-spacing: .01em; text-transform: uppercase; }
.marque span { color: var(--encre-2); font-size: var(--t-s); }
.emissions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.emissions label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); margin-right: 4px; }
.jour {
  border: 1px solid var(--trait); background: var(--surface); border-radius: 999px; padding: 4px 10px;
  font-size: var(--t-s); display: inline-flex; gap: 6px; align-items: center;
}
.jour[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.jour small { font-family: var(--f-chiffre); font-size: var(--t-xs); opacity: .75; }
.recherche-entete input { width: 230px; border: 1px solid var(--trait); border-radius: 999px; padding: 5px 12px; background: var(--fond); font: inherit; font-size: var(--t-s); color: var(--encre); }
.recherche-entete input:focus { outline: 2px solid var(--encre); outline-offset: 1px; background: var(--surface); }
.sons-mobile { display: none; }
.presence { display: flex; gap: 6px; align-items: center; font-size: var(--t-s); color: var(--encre-2); }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.bandeau {
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--accent-doux); font-size: var(--t-s); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
}
.bandeau p { margin: 0; max-width: 110ch; }
.bandeau[hidden] { display: none; }

.corps {
  display: grid; grid-template-columns: var(--larg-liste, 360px) minmax(0, 1fr) var(--larg-cond, 300px);
  min-height: 0; overflow: hidden; position: relative;
}
/* Poignées pour élargir la liste (à gauche) et le conducteur (à droite). */
.poignee { position: absolute; top: 0; bottom: 0; width: 9px; z-index: 6; cursor: col-resize; touch-action: none; }
.poignee::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background .15s; }
.poignee:hover::after, .poignee.active::after, .poignee:focus-visible::after { background: var(--accent); width: 2px; left: 3px; }
.poignee:focus-visible { outline: none; }
.poignee-liste { left: calc(var(--larg-liste, 360px) - 5px); }
.poignee-cond { right: calc(var(--larg-cond, 300px) - 5px); }
body.redimension { cursor: col-resize; user-select: none; }
body.redimension iframe { pointer-events: none; }
.col { min-height: 0; min-width: 0; overflow: auto; }
.col-liste { border-right: 1px solid var(--trait); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.col-fiche { padding: 20px max(16px, 2vw); }
.col-conducteur { border-left: 1px solid var(--trait); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }

/* ---------- Liste (veille / pot) ---------- */
.onglets { display: flex; border-bottom: 1px solid var(--trait); }
.onglet {
  flex: 1; border: 0; background: none; padding: 12px 8px 10px; font: 700 var(--t-l)/1 var(--f-titre);
  text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); border-bottom: 3px solid transparent;
  display: flex; justify-content: center; align-items: baseline; gap: 6px;
}
.onglet[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--accent); }
.onglet small { font: 500 var(--t-xs) var(--f-chiffre); color: var(--encre-2); }
.outils-liste { padding: 10px 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--trait); }
.recherche { width: 100%; padding: 7px 10px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--fond); }
.puces { display: flex; gap: 4px; flex-wrap: wrap; }
.puce {
  border: 1px solid var(--trait); background: var(--surface); border-radius: 999px; padding: 2px 9px;
  font-size: var(--t-xs); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap;
}
.puce i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--encre-2)); }
.puce b { font-family: var(--f-chiffre); font-weight: 500; color: var(--encre-2); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.puce[aria-pressed="true"] b { color: inherit; opacity: .7; }
.ligne-outils { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: var(--t-xs); color: var(--encre-2); }
.ligne-outils select { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 3px 6px; font-size: var(--t-xs); }

.liste { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.element {
  /* Grille fixe : barre de couleur | titre, infos, étiquettes | photo | boutons — tout reste aligné d'une ligne à l'autre. */
  display: grid; grid-template-columns: 4px minmax(0, 1fr) 72px 52px; column-gap: 10px; padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--trait); cursor: pointer; align-items: start;
}
.element .titre { grid-column: 2; grid-row: 1; }
.element .vignette-zone { grid-column: 3; grid-row: 1 / span 3; width: 72px; height: 48px; }
.element .vignette-zone .vignette { width: 72px; height: 48px; }
.element .actions-zone { grid-column: 4; grid-row: 1 / span 3; display: grid; grid-template-columns: 26px 26px; grid-auto-rows: 24px; justify-content: end; }
.element .act { border: 0; background: none; padding: 0; width: 26px; height: 24px; color: var(--encre-2); font-size: var(--t-s); line-height: 1; cursor: pointer; border-radius: 4px; }
.element .act:hover:not(:disabled) { color: var(--encre); background: var(--surface-2); }
.element .act:disabled { opacity: .3; cursor: default; }
@media (hover: hover) {
  .element .act.survol { visibility: hidden; }
  .element:hover .act.survol, .element:focus-within .act.survol { visibility: visible; }
}
.element .etiquettes { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.element .etiquettes .etiquette { font-size: var(--t-xs); line-height: 1.5; padding: 0 6px; }
.element .meta .source { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.element[data-sensible="true"] .titre { color: var(--encre-2); font-weight: 400; }
.element::before { content: ""; grid-row: 1 / span 3; align-self: stretch; background: var(--c, transparent); border-radius: 0 2px 2px 0; }
.element:hover { background: var(--fond); }
.element[aria-current="true"] { background: var(--accent-doux); }
.element .titre { font-weight: 700; line-height: 1.3; font-size: var(--t-m); }
.element .meta { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 2px 10px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--encre-2); margin-top: 3px; line-height: 1.5; }
.element .droite { display: flex; gap: 4px; align-items: center; }
.cases { display: flex; gap: 10px; flex-wrap: wrap; }
.element .bouge { display: flex; flex-direction: column; }
.element .bouge button { border: 0; background: none; padding: 0 4px; color: var(--encre-2); font-size: var(--t-xs); line-height: 1.25; cursor: pointer; }
.element .bouge button:hover:not(:disabled) { color: var(--encre); }
.element .bouge button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) {
  .element .bouge { visibility: hidden; }
  .element:hover .bouge, .element:focus-within .bouge { visibility: visible; }
}
.element.glisse { opacity: .4; }
.element.cible-haut { box-shadow: inset 0 2px 0 var(--accent); }
.element.cible-bas { box-shadow: inset 0 -2px 0 var(--accent); }
.element.sensible .titre { color: var(--encre-2); font-weight: 400; }
.element.traite { opacity: .55; }
.vide { padding: 32px 20px; color: var(--encre-2); text-align: center; font-size: var(--t-s); }

.etiquette {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 1px 6px 0;
  font: 700 var(--t-s)/1.35 var(--f-titre); text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; background: var(--info-fond); color: var(--encre-2);
}
.etiquette.alerte { background: var(--alerte-fond); color: var(--alerte); }
.etiquette.ok { background: var(--ok-fond); color: var(--ok); }
.etiquette.accent { background: var(--accent-doux); color: var(--accent); }
button.etiquette-annuler { border: 0; cursor: pointer; }
button.etiquette-annuler:hover, button.etiquette-annuler:focus-visible { background: var(--alerte-fond); color: var(--alerte); }
.cat { display: inline-flex; gap: 5px; align-items: center; font-weight: 700; color: var(--encre); }
.cat i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---------- Fiche ---------- */
.fiche { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.fiche-vide { max-width: 520px; margin: 12vh auto 0; color: var(--encre-2); display: grid; gap: 10px; }
.fiche-vide h2 { font: 700 var(--t-xxl)/1.1 var(--f-titre); text-transform: uppercase; color: var(--encre); margin: 0; }
.fiche-vide ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fiche-tete { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; font-size: var(--t-s); color: var(--encre-2); }
.fiche-tete select { border: 1px solid var(--trait); background: var(--surface); border-radius: var(--r); padding: 3px 6px; font-size: var(--t-s); }
.fiche h1 { font: 700 var(--t-xxl)/1.15 var(--f-titre); margin: 0; text-wrap: balance; }
.retour { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pile { display: grid; gap: 12px; }
/* Jauge du conducteur */
.jauge { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: 6px; background: var(--surface-2); }
.jauge i { background: var(--c); min-width: 3px; }
.jauge-legende { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-xs); color: var(--encre-2); margin-top: 3px; }
.jauge-legende .manque { color: var(--accent); font-weight: 600; }
/* Recherche partout */
.recherche-globale { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); }
.recherche-globale kbd { font-size: 10px; padding: 2px 4px; }
.rg { display: grid; gap: 10px; }
.rg input { width: 100%; font-size: var(--t-l); padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.rg-res { max-height: 60vh; overflow: auto; display: grid; gap: 2px; }
.rg-res h4 { margin: 10px 0 2px; font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.rg-el { display: grid; gap: 1px; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: var(--r); cursor: pointer; font: inherit; color: var(--encre); }
.rg-el small { color: var(--encre-2); font-size: var(--t-xs); }
.rg-el:hover, .rg-el.choisi { background: var(--accent-doux); }
/* Mode antenne */
.antenne { position: fixed; inset: 0; z-index: 60; background: var(--fond); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ant-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px max(16px, 3vw); border-bottom: 1px solid var(--trait); font-size: var(--t-s); color: var(--encre-2); }
.ant-outils { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ant-copie { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--trait); }
.ant-retouche { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px; margin-top: -4px; }
.ant-attente { margin: 0 0 14px; }
@media (max-width: 760px) { .ant-outils .btn { padding: 4px 7px; } .ant-copie { margin-right: 4px; padding-right: 4px; } }
.ant-corps { overflow: auto; padding: 24px max(16px, 8vw) 40px; max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.ant-corps h1 { font: 700 calc(var(--t-xl) * var(--taille, 1))/1.2 var(--f-titre); margin: 0 0 16px; color: var(--encre-2); }
/* « Teasing » et « Speak » repérés à l'écran (David, 27/10), en petit pour ne pas être lus à l'antenne. */
.ant-numero { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .3em; margin-right: .35em; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .9em; vertical-align: .08em; }
.ant-edit { display: block; width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--r); padding: 8px 10px; resize: vertical; margin: 0 0 16px; overflow: hidden; }
.ant-edit.ant-texte { min-height: 8em; }
.ant-edit:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ant-nom { margin: 0 0 4px; font: 600 calc(1rem * var(--taille, 1))/1.2 var(--f-titre); color: var(--encre-2); letter-spacing: .02em; }
.ant-teasing + .ant-nom { margin-top: 4px; }
.ant-teasing { font-size: calc(1.5rem * var(--taille, 1)); line-height: 1.45; font-style: italic; color: var(--accent); margin: 0 0 20px; }
.ant-texte { font-size: calc(1.75rem * var(--taille, 1)); line-height: 1.55; white-space: pre-wrap; }
.ant-lu { cursor: text; }
.ant-interaction { font-size: calc(1.4rem * var(--taille, 1)); line-height: 1.45; margin-top: 24px; font-weight: 600; }
.ant-regie { margin-top: 20px; font-size: calc(1.1rem * var(--taille, 1)); color: var(--encre-2); white-space: pre-wrap; }
.ant-pied { display: flex; justify-content: center; gap: 10px; padding: 12px; border-top: 1px solid var(--trait); }
.ant-pied .btn { font-size: var(--t-l); padding: 10px 18px; }
.ant-pied kbd { margin-left: 6px; }
.ant-pied .btn-principal kbd { background: rgba(255, 255, 255, .18); color: inherit; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 760px) { .ant-texte { font-size: calc(1.3rem * var(--taille, 1)); } .ant-teasing { font-size: calc(1.15rem * var(--taille, 1)); } .recherche-globale kbd { display: none; } }
/* Aperçus grisés (chargement) */
.sq { background: linear-gradient(90deg, var(--surface-2) 25%, var(--fond) 50%, var(--surface-2) 75%); background-size: 200% 100%;
  border-radius: 6px; animation: sq-reflet 1.3s ease-in-out infinite; }
.sq-titre { height: 28px; width: 55%; }
.sq-ligne { height: 12px; width: 100%; margin: 6px 0; }
.liste .sq-carte { display: grid; gap: 4px; padding: 10px 12px; pointer-events: none; }
@keyframes sq-reflet { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sq { animation: none; } }
/* Pastille des tâches en cours */
.taches:empty { display: none; }
.taches-menu > summary { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); padding: 4px 10px; border: 1px solid var(--trait); border-radius: 999px; }
.taches-menu > summary i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: clignote 1.2s infinite; }
.taches-menu .menu { left: auto; right: 0; }
.taches-menu .tache { display: block; padding: 8px 10px; font-size: var(--t-s); color: var(--encre-2); }
/* Préparer l'émission */
.prepa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prepa li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-s); }
.prepa li > span:nth-child(2) { flex: 1 1 260px; }
.prepa .coche { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
  border: 1px solid var(--trait); color: var(--encre-2); }
.prepa li.fait .coche { background: var(--ok-fond); color: var(--ok); border-color: transparent; }
.prepa li.fait > span:nth-child(2) { color: var(--encre-2); }
.prepa li.alerte .coche { background: var(--alerte-fond); color: var(--alerte); border-color: transparent; }
.prepa .btn { padding: 2px 8px; }
.lien-cat { border: 1px solid var(--trait); background: var(--surface); border-radius: 999px; padding: 1px 8px; cursor: pointer; font: inherit; font-size: var(--t-xs); display: inline-flex; align-items: center; gap: 4px; }
.lien-cat i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--encre-2)); }
.lien-cat:hover { border-color: var(--accent); }
.jour.preparer { border-style: dashed; }
/* Raccourcis clavier */
.raccourcis { border-collapse: collapse; font-size: var(--t-s); }
.raccourcis td { padding: 4px 10px 4px 0; vertical-align: top; }
kbd { font: 600 var(--t-xs)/1 var(--f-chiffre); border: 1px solid var(--trait); border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; background: var(--surface); white-space: nowrap; }
/* Conducteur : une carte du pot glissée dessus */
#conducteur.depot { outline: 2px dashed var(--accent); outline-offset: -4px; }
/* Menu « ⋯ » des actions secondaires */
.menu-plus { position: relative; display: inline-block; }
.menu-plus > summary { list-style: none; padding: 4px 12px; font-size: var(--t-l); line-height: 1; }
.menu-plus > summary::-webkit-details-marker { display: none; }
.menu-plus .menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; min-width: 230px; display: grid; padding: 4px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre); }
.menu-plus .menu .btn { justify-content: flex-start; text-align: left; padding: 8px 10px; width: 100%; }
.menu-plus .menu .btn:hover { background: var(--fond); }
.menu-plus .menu [data-action="speak-supprimer"] { color: var(--alerte); }
/* Blocs repliés (retouche, source) */
.pli > summary { cursor: pointer; font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); padding: 4px 0; }
.pli > summary em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.pli[open] > summary { margin-bottom: 6px; }
details.regie.pli { display: block; }
.alerte-fiche { margin: 0; padding: 6px 10px; border-radius: var(--r); background: var(--alerte-fond); color: var(--alerte); font-size: var(--t-s); }
/* Pot : carte d'accès à la corbeille (passés et périmés) */
.liste .carte-corbeille { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--encre-2); font-weight: 600;
  border: 1px dashed var(--trait); padding: 10px 12px; }
.liste .carte-corbeille small { font-weight: 400; }
.liste .carte-corbeille:hover { background: var(--fond); color: var(--encre); }
/* Cartes : deux étiquettes au plus (l'état et le jour d'antenne) ; les autres au survol. */
.liste .element .etiquettes > :nth-child(n+3) { display: none; }
.liste .element:hover .etiquettes > :nth-child(n+3), .liste .element[aria-current="true"] .etiquettes > :nth-child(n+3) { display: inline-flex; }
.fleche-defile { display: none; }

/* Fiche sur deux colonnes : à gauche une petite photo, puis la catégorie, les boutons et les options ; à droite le texte.
   Quand la zone est étroite (téléphone, liste en colonne sur un petit écran), tout revient sur une colonne,
   dans l'ordre de lecture habituel : en-tête, boutons, photo, texte, puis la régie et les options de rédaction. */
.col-fiche { container-type: inline-size; }
.fiche-deux, .fiche-cote, .fiche-principal { display: contents; }
.fiche-cote > * { order: 3; }
.fiche-cote > .fiche-tete, .fiche-principal > h1 { order: 1; }
.fiche-cote > .actions { order: 2; }
.fiche-cote > .photo { order: 4; }
.fiche-principal > * { order: 5; }
.fiche-cote > .apres { order: 6; }
.fiche-principal > .sauver { order: 7; }
@container (min-width: 440px) {
  .fiche:has(> .fiche-deux) { max-width: 1240px; }
  .fiche-deux { display: grid; grid-template-columns: clamp(240px, 28%, 330px) minmax(0, 1fr); gap: 18px 24px; align-items: start; }
  .fiche-cote, .fiche-principal { display: grid; gap: 14px; min-width: 0; align-content: start; }
  .fiche-cote { gap: 12px; }
  .fiche .fiche-deux > div > * { order: 0; }
  .fiche-cote .photo img { max-height: 190px; }
  .fiche-cote .fiche-tete { gap: 6px 10px; }
  .fiche-cote .actions { gap: 6px; }
  .fiche-cote .bloc { padding: 12px; }
  .fiche-cote .regie { overflow-wrap: anywhere; }
  .fiche-cote > p { margin: 0; }
  .fiche-principal > h1 { font-size: var(--t-xl); }
}
/* Fenêtre réduite (David, 27/10) : la photo rapetisse mais le texte du speak reste à droite. */
@container (min-width: 440px) and (max-width: 779px) {
  .fiche-deux { grid-template-columns: clamp(150px, 32%, 240px) minmax(0, 1fr); gap: 14px 18px; }
  .fiche-cote .photo img { max-height: 130px; }
}
@container (max-width: 439px) { .fiche-cote .photo img { max-height: 170px; } }
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; }
.bloc h3 { margin: 0; font: 700 var(--t-s)/1 var(--f-titre); text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bloc h3 small { font: 500 var(--t-xs) var(--f-chiffre); letter-spacing: 0; text-transform: none; }

.champ { display: grid; gap: 4px; }
.champ > span { font: 700 var(--t-xs)/1 var(--f-titre); text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); display: flex; justify-content: space-between; gap: 8px; }
.champ > span em { font: 500 var(--t-xs) var(--f-chiffre); font-style: normal; letter-spacing: 0; text-transform: none; }
.champ > span em.trop { color: var(--alerte); font-weight: 700; }
.edit {
  width: 100%; border: 1px solid transparent; border-radius: var(--r); background: transparent; padding: 6px 8px;
  margin: 0 -8px; width: calc(100% + 16px); resize: vertical; line-height: 1.55;
}
.edit:hover { border-color: var(--trait); }
.edit:focus { border-color: var(--encre-2); background: var(--surface); outline: none; }
textarea.edit { field-sizing: content; min-height: 2.6em; }
.edit-titre { font: 700 var(--t-xxl)/1.15 var(--f-titre); }
.edit-teasing { font-style: italic; }
.edit-texte { font-size: var(--t-l); line-height: 1.65; }
.wa { font-size: var(--t-xs); color: var(--encre-2); }
.sauver { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 0; background: linear-gradient(transparent, var(--fond) 30%); }
.sauver[hidden] { display: none; }

.alertes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alertes li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: var(--t-s); align-items: baseline; }
.alertes li .etiquette { justify-self: start; }

.regie { font-size: var(--t-s); color: var(--encre-2); display: grid; gap: 6px; }
.regie b { color: var(--encre); }
.regie ul { margin: 0; padding-left: 18px; }
.justifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-s); }
.justifs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
.justifs q { grid-column: 2; color: var(--encre-2); quotes: "« " " »"; }
.source-texte { max-height: 360px; overflow: auto; white-space: pre-wrap; font-size: var(--t-s); line-height: 1.6; color: var(--encre-2); background: var(--fond); border-radius: var(--r); padding: 12px; }
.source-texte mark { background: var(--ok-fond); color: var(--encre); }
details > summary { cursor: pointer; font-size: var(--t-s); font-weight: 700; }

.form-rediger { display: grid; gap: 10px; }
.form-rediger textarea, .form-rediger select, .form-rediger input { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 8px 10px; width: 100%; }
.form-rediger input[type="checkbox"], .form-rediger input[type="radio"] { width: auto; padding: 0; margin: 0 6px 0 0; vertical-align: -2px; }
.attente { display: flex; gap: 10px; align-items: center; color: var(--encre-2); font-size: var(--t-s); }
.attente i { width: 14px; height: 14px; border: 2px solid var(--trait); border-top-color: var(--accent); border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .attente i { animation-duration: 3s; } }
.erreur { background: var(--alerte-fond); color: var(--alerte); border-radius: var(--r); padding: 10px 12px; font-size: var(--t-s); }

/* ---------- Conducteur ---------- */
.cond-tete { padding: 12px 14px 10px; border-bottom: 1px solid var(--trait); display: grid; gap: 4px; }
.cond-tete h2 { margin: 0; font: 700 var(--t-xl)/1 var(--f-titre); text-transform: uppercase; }
.cond-tete .total { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--encre-2); }
.cond-tete .total b { font-family: var(--f-chiffre); color: var(--encre); font-weight: 500; }
.cond-liste { list-style: none; margin: 0; padding: 6px 0; overflow: auto; flex: 1; counter-reset: rang; }
.cond-el {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 10px 8px 6px;
  border-bottom: 1px dashed var(--trait); align-items: start; counter-increment: rang; cursor: pointer;
}
.cond-el::before { content: counter(rang); font: 500 var(--t-xs)/1.9 var(--f-chiffre); color: var(--encre-2); text-align: right; }
.cond-el:hover { background: var(--fond); }
.cond-el[aria-current="true"] { background: var(--accent-doux); }
.cond-el .titre { font-size: var(--t-s); font-weight: 700; line-height: 1.3; }
.cond-el .meta { grid-column: 2; font-size: var(--t-xs); color: var(--encre-2); display: flex; gap: 8px; }
.cond-el .bouge { grid-row: 1 / span 2; grid-column: 3; display: flex; flex-direction: column; }
.cond-el .bouge button { border: 0; background: none; padding: 0 4px; color: var(--encre-2); font-size: var(--t-s); line-height: 1.3; }
.cond-el .bouge button:hover { color: var(--encre); }
.cond-el.glisse { opacity: .4; }
.cond-el.cible { box-shadow: inset 0 2px 0 var(--accent); }
.cond-pied { padding: 10px 14px; border-top: 1px solid var(--trait); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Connexion, fenêtres, messages ---------- */
.connexion { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.connexion form { width: min(360px, 100%); display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 24px; box-shadow: var(--ombre); }
.connexion h1 { margin: 0; font: 700 var(--t-xxl)/1 var(--f-titre); text-transform: uppercase; }
.connexion input { border: 1px solid var(--trait); border-radius: var(--r); padding: 10px 12px; background: var(--fond); }
.fenetre { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); display: grid; place-items: center; padding: 16px; z-index: 20; }
.fenetre > div { background: var(--surface); border-radius: 10px; width: min(560px, 100%); padding: 20px; display: grid; gap: 12px; box-shadow: var(--ombre); max-height: 90%; overflow: auto; }
.fenetre h2 { margin: 0; font: 700 var(--t-xl)/1.1 var(--f-titre); text-transform: uppercase; }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 70; pointer-events: none; }
.toasts > * { pointer-events: auto; } /* la zone vide ne cache rien ; les messages et leurs boutons restent cliquables */
.toast { background: var(--encre); color: var(--fond); border-radius: 8px; padding: 10px 14px; font-size: var(--t-s); box-shadow: var(--ombre); max-width: 340px; }
.tabbar { display: none; }
.sources { font-size: var(--t-xs); color: var(--encre-2); display: grid; gap: 2px; }

/* ---------- Écrans moyens : conducteur replié ---------- */
/* Caché par défaut, montré sur tablette : la règle par défaut doit venir AVANT la requête média (sinon, à égalité
   d'« !important », elle l'emportait et la tablette n'avait aucun moyen d'ouvrir le conducteur). */
.bouton-conducteur { display: none !important; }
@media (max-width: 1180px) {
  .corps { grid-template-columns: var(--larg-liste, 340px) minmax(0, 1fr); }
  .col-conducteur { display: none; }
  .poignee-cond { display: none; }
  .app.vue-conducteur .col-conducteur { display: flex; position: fixed; right: 0; top: 0; bottom: 0; width: min(340px, 100%); z-index: 15; box-shadow: var(--ombre); padding-top: env(safe-area-inset-top, 0px); }
  .bouton-conducteur { display: inline-flex !important; }
}

/* ---------- Téléphone : une colonne, barre d'onglets en bas ---------- */
@media (max-width: 760px) {
  .entete { gap: 8px; flex-wrap: nowrap; }
  .marque b { font-size: var(--t-l); }
  .emissions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .emissions label { display: none; }
  .jour { white-space: nowrap; }
  .marque span, .presence span { display: none; }
  .recherche-entete { display: none; }
  .sons-mobile { display: inline-flex; }
  .corps { grid-template-columns: minmax(0, 1fr); }
  .poignee { display: none; }
  .col-fiche { display: none; padding-bottom: 40px; }
  .app.fiche-ouverte .col-liste { display: none; }
  .app.fiche-ouverte .col-fiche { display: block; }
  .app.vue-conducteur .col-liste, .app.vue-conducteur .col-fiche { display: none; }
  .app.vue-conducteur .col-conducteur { display: flex; position: static; width: auto; box-shadow: none; border: 0; padding-top: 0; }
  .retour { display: inline-flex; }
  .bouton-conducteur { display: none !important; }
  .onglets { display: none; }
  .tabbar {
    display: flex; border-top: 1px solid var(--trait); background: var(--surface);
    padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  }
  .tabbar button { flex: 1; border: 0; background: none; padding: 10px 4px; font: 700 var(--t-m)/1 var(--f-titre); text-transform: uppercase; color: var(--encre-2); }
  .tabbar button[aria-selected="true"] { color: var(--accent); }
  .edit-texte { font-size: var(--t-m); }
}

/* ---------- Comptes ---------- */
.comptes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--trait); }
.comptes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); align-items: center; }
.comptes li .wa { grid-column: 1; }
.comptes li .actions { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Sources ---------- */
.fenetre-large > div { width: min(760px, 100%); }
.sources-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.sources-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); align-items: center; }
.sources-liste li.coupee .source-infos { opacity: .55; }
.source-infos { min-width: 0; }
.source-infos .wa { overflow-wrap: anywhere; }
.source-reglages { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.source-reglages select { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 3px 6px; font-size: var(--t-xs); max-width: 180px; }
.apercu-titres { margin: 0; padding-left: 18px; font-size: var(--t-s); display: grid; gap: 2px; }
.interrupteur { position: relative; display: inline-block; width: 34px; height: 20px; flex: none; }
.interrupteur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.interrupteur span { position: absolute; inset: 0; border-radius: 999px; background: var(--trait); transition: background .15s; pointer-events: none; }
.interrupteur span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.interrupteur input:checked + span { background: var(--ok); }
.interrupteur input:checked + span::after { transform: translateX(14px); }
.interrupteur input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .sources-liste li { grid-template-columns: auto minmax(0, 1fr); }
  .source-reglages { grid-column: 2; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .interrupteur span, .interrupteur span::after { transition: none; } }

/* ---------- Génération du conducteur, file de Claude ---------- */
.cond-titre { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cond-el .lien { grid-column: 2 / span 2; font-size: var(--t-xs); color: var(--accent); font-style: italic; line-height: 1.4; cursor: text; }
.cond-el .lien:hover { text-decoration: underline dotted; }
.teasing-jour { border-left: 3px solid var(--accent); background: var(--accent-doux); border-radius: var(--r); padding: 8px 12px; display: grid; gap: 4px; justify-items: start; }
.teasing-jour > span { font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.teasing-jour p { margin: 0; font-style: italic; }
.teasing-jour .btn { padding: 0; }
.eph { line-height: 1.35; }
.attente-claude, .file-claude { background: var(--accent-doux); font-size: var(--t-xs); padding: 8px 12px; border-radius: var(--r); line-height: 1.5; }
.attente-claude { margin: 8px 12px 0; }
.adresse { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--t-xs); background: var(--fond); padding: 6px 8px; border-radius: var(--r); }

#gemini-modele { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 8px 10px; width: 100%; }

/* ---------- Consignes de rédaction ---------- */
#form-consignes textarea { min-height: 4.5em; resize: vertical; line-height: 1.5; }
.compteur-consigne { justify-self: end; font-family: var(--f-chiffre); font-size: var(--t-xs); }
.consigne-cat { padding: 8px 12px; gap: 8px; }
.consigne-cat summary { display: flex; gap: 8px; align-items: center; }

/* ---------- Photos des articles ---------- */
.vignette { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex: none; }
.photo { margin: 0; display: grid; gap: 4px; }
.photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.photo figcaption { font-size: var(--t-xs); color: var(--encre-2); }
@media (max-width: 760px) { .vignette { width: 52px; height: 36px; } .photo img { max-height: 200px; } }

/* ---------- Éphéméride ---------- */
.eph-lien { border: 0; background: none; padding: 0; text-align: left; font-size: var(--t-xs); color: var(--accent); line-height: 1.4; cursor: pointer; }
.eph-lien:hover { text-decoration: underline; }
.eph-gros { margin: 0; font-size: var(--t-l); }
.journees, .anniv, .evts { list-style: none; margin: 0; padding: 0; display: grid; }
.journees li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--trait); }
.journees li:last-child { border-bottom: 0; }
.journees li > span:first-child { font-weight: 700; }
.journees .actions { gap: 4px; flex-wrap: nowrap; font-size: var(--t-s); }
.anniv li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--trait); font-size: var(--t-s); align-items: baseline; }
.anniv li .etiquette { flex: none; }
.evts li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--trait); font-size: var(--t-s); }
.evts li b { color: var(--encre-2); font-weight: 500; }
@media (max-width: 760px) { .journees li { grid-template-columns: minmax(0, 1fr); } }

/* Éphéméride en liste : ✕ retire, ＋ remet */
.ephem ul li .eph-droite { display: inline-flex; align-items: center; gap: 6px; flex: none; grid-column: -2; grid-row: 1; justify-self: end; }
.ephem ul li .bascule { padding: 2px 8px; }
.ephem ul li.retire > .eph-droite { opacity: 1; text-decoration: none; }
.ephem .pas-format { font-size: var(--t-xs); color: var(--encre-2); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; }
.ephem .journees li { grid-template-columns: minmax(0, 1fr) auto auto; }
.ephem .evts li { grid-template-columns: 3.2em minmax(0, 1fr) auto; align-items: baseline; }
.ephem ul li.retire > :not(.eph-droite) { opacity: .45; text-decoration: line-through; }
.ephem ul li.retire .etiquette { text-decoration: none; }
.ephem .eph-liste { list-style: none; margin: 0; padding: 0; }
.ephem .eph-liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ephem h4 { margin: 10px 0 4px; font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
/* Corbeille : tout ce qui n'est pas gardé, replié en bas de page ; pas barré (on y est déjà « dehors »). */
.ephem .corbeille { background: var(--fond); }
.ephem .corbeille > summary { cursor: pointer; font: 700 var(--t-s)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.ephem .corbeille > summary small { font: 500 var(--t-xs) var(--f-chiffre); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.ephem .corbeille h4 small { font-weight: 400; }
.ephem .corbeille ul li.retire > :not(.eph-droite) { text-decoration: none; opacity: .75; }
@media (max-width: 760px) { .ephem .journees li { grid-template-columns: minmax(0, 1fr) auto; } .ephem .journees li .actions { grid-column: 1; } }

/* Retouche d'un speak par l'IA */
.retouche { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px dashed var(--trait); border-radius: var(--r); }
.retouche > span:first-child { font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); margin-right: 4px; }
.retouche .btn { padding: 4px 10px; }
.retouche-libre { display: flex; gap: 6px; flex: 1 1 260px; }
.retouche-libre input { flex: 1; min-width: 0; border: 1px solid var(--trait); border-radius: var(--r); padding: 4px 8px; background: var(--surface); font: inherit; font-size: var(--t-s); }

.anniv .oeuvres { color: var(--encre-2); font-style: italic; }
.journees .explication { display: block; font-weight: 400; font-size: var(--t-s); color: var(--encre-2); line-height: 1.45; margin-top: 2px; }

/* Pas format : discret, visible au survol */
.element .pas-format-btn { color: var(--encre-2); }
@media (hover: hover) { .element .pas-format-btn { visibility: hidden; } .element:hover .pas-format-btn { visibility: visible; } }
@media (max-width: 760px) {
  .element { grid-template-columns: 4px minmax(0, 1fr) 56px 52px; }
  .element .vignette-zone, .element .vignette-zone .vignette { width: 56px; height: 38px; }
}

/* 🎧 Écouter : extraits et liens sous l'élément */
.ephem .anniv li { flex-wrap: wrap; }
.ephem li .ecoute { grid-column: 1 / -1; flex-basis: 100%; margin: 6px 0 4px; padding: 10px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 8px; text-decoration: none; opacity: 1; }
.ephem ul li.retire > .ecoute { opacity: 1; text-decoration: none; }
.ecoute .extrait { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--t-s); }
.ecoute .extrait img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.ecoute .extrait audio { display: block; width: 100%; max-width: 360px; height: 32px; margin-top: 4px; }
.ecoute .extrait video { display: block; margin-top: 4px; border-radius: 4px; max-width: 100%; }
.ecoute .liens-ecoute { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--t-s); }
.ecoute .liens-ecoute .btn { padding: 2px 6px; }

.ecoute .extrait-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: var(--t-s); }
.ecoute .extrait-actions .btn, .ecoute p .btn { padding: 2px 6px; }
@keyframes clignote { 50% { opacity: .2; } }

.recherche-son { display: flex; gap: 6px; }
.recherche-son input { flex: 1; min-width: 0; border: 1px solid var(--trait); border-radius: var(--r); padding: 5px 9px; background: var(--surface); font: inherit; font-size: var(--t-s); }
#sons-resultats { max-height: 60vh; overflow: auto; }
.toast-action { margin-left: 8px; padding: 2px 10px; background: transparent; color: inherit; border: 1px solid currentColor; }
.toast-choix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.toast-choix .toast-action { margin-left: 0; }
.suggestions-filtres { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-s); color: var(--encre-2); }
.cats-filtres { border: 1px solid var(--trait); border-radius: var(--r); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-s); }
.cats-filtres legend { padding: 0 4px; font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
.apercu-filtres { margin: 0; font-size: var(--t-s); font-weight: 600; }
.ajout-eph { display: flex; gap: 6px; margin-top: 8px; }
.ajout-eph input { border: 1px solid var(--trait); border-radius: var(--r); padding: 5px 9px; background: var(--surface); font: inherit; font-size: var(--t-s); min-width: 0; }
.ajout-eph input[name="annee"] { width: 70px; flex: none; }
.ajout-eph input[name="texte"] { flex: 1; }
.cc { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: #f6c445; color: #3b2a00; font: 700 10px/1.6 var(--f-titre); letter-spacing: .04em; vertical-align: middle; }
.verif { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font: 700 10px/1.6 var(--f-titre); letter-spacing: .03em; vertical-align: middle; cursor: help; }
.verif.ok { color: var(--ok); background: var(--ok-fond); }
.verif.corrige { color: #1d4f91; background: #dbe8fb; }
.verif.doute { color: var(--alerte); background: var(--alerte-fond); }
.menage { display: grid; gap: 10px; max-height: 55vh; overflow: auto; }
.menage section { border: 1px solid var(--trait); border-radius: var(--r); padding: 8px 12px; }
.menage-tete { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.menage details { margin: 4px 0 0 24px; font-size: var(--t-s); }
.menage ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.regie { border: 1px dashed var(--trait); border-radius: var(--r); padding: 8px 12px; display: grid; gap: 4px; font-size: var(--t-s); color: var(--encre-2); }
.regie > span { font: 700 var(--t-xs)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; }
.regie > span em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.regie p { margin: 0; }
.cc-source { border-left: 3px solid #f6c445; background: #fff8e1; border-radius: var(--r); padding: 8px 12px; display: grid; gap: 6px; font-size: var(--t-s); }
.cc-source p { margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-source { background: rgba(246, 196, 69, .12); } }
:root[data-theme="dark"] .cc-source { background: rgba(246, 196, 69, .12); }
/* Vérification automatique des infos de Click & Content */
.cc-verif { border-left: 3px solid var(--trait); background: var(--surface); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; font-size: var(--t-s); }
.cc-verif.ok { border-left-color: var(--ok); }
.cc-verif.alerte { border-left-color: var(--alerte); }
.cc-verif p { margin: 0; }
.cc-verif .actions { gap: 6px; }
.cc-verdict b { font: 700 var(--t-s)/1.3 var(--f-titre); text-transform: uppercase; letter-spacing: .04em; }
.cc-verif.ok .cc-verdict b { color: var(--ok); }
.cc-verif.alerte .cc-verdict b { color: var(--alerte); }
.cc-manque { color: var(--alerte); }
.cc-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-sources li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.cc-sources a { overflow-wrap: anywhere; }
.cc-sources .btn { padding: 0; }
.cc-manuel summary { cursor: pointer; color: var(--encre-2); }
.cc-manuel[open] { display: grid; gap: 6px; }

/* ---------- Jeux (banques de cartes) et réserves ---------- */
.onglets .onglet { font-size: var(--t-m); padding: 12px 4px 10px; gap: 4px; }
/* « Renforts » (David, 28/10) : le pot et la réserve derrière un seul onglet, qui prend leur nom quand on y est. */
.onglets .onglet-renforts { flex: 1; display: flex; }
.onglet-renforts > summary.onglet { list-style: none; cursor: pointer; width: 100%; }
.onglet-renforts > summary::-webkit-details-marker { display: none; }
.onglet-renforts .menu { left: auto; right: 0; min-width: 260px; }
.app.liste-haut .onglet-renforts .menu { left: 0; right: auto; }
.onglet-renforts .menu .btn { display: grid; gap: 2px; justify-items: start; }
.onglet-renforts .menu .btn b { font-size: var(--t-m); }
.onglet-renforts .menu .btn small { color: var(--encre-2); font-size: var(--t-xs); font-weight: 400; }
.onglet-renforts .menu .btn[aria-current="true"] { background: var(--accent-doux); }
/* Ce qui manque au conducteur, proposé tout seul. */
.renforts { display: grid; gap: 4px; margin-top: 8px; }
.renfort { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; text-align: left; border: 1px dashed var(--trait); border-radius: var(--r);
  background: var(--surface); padding: 6px 9px; font: inherit; font-size: var(--t-s); color: var(--encre); cursor: pointer; align-items: baseline; }
.renfort b { font-weight: 700; }
.renfort small { grid-column: 2; color: var(--encre-2); font-size: var(--t-xs); }
.renfort:hover { border-color: var(--accent); background: var(--accent-doux); }
.tabbar-menu { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); display: grid; gap: 2px; padding: 4px; min-width: 180px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); box-shadow: 0 6px 24px rgb(0 0 0 / .15); }
.tabbar { position: relative; }
.tabbar .tabbar-menu button { flex: none; justify-content: flex-start; padding: 12px 14px; text-transform: none; color: var(--encre); font: 600 var(--t-m)/1.2 var(--f-texte, inherit); text-align: left; }
.liste .sous-titre { padding: 10px 12px 6px; font: 700 var(--t-xs)/1.2 var(--f-titre); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2);
  background: var(--fond); border-bottom: 1px solid var(--trait); display: flex; justify-content: space-between; position: sticky; top: 0; z-index: 1; }
.liste .sous-titre small { font: 500 var(--t-xs) var(--f-chiffre); letter-spacing: 0; }
.element .meta .reponse { color: var(--encre); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-manche .regles { font-size: var(--t-s); color: var(--encre-2); border: 1px dashed var(--trait); border-radius: var(--r); padding: 8px 12px; }
.fiche-manche .regles summary { cursor: pointer; font-weight: 700; color: var(--encre); }
.fiche-manche .regles p { margin: 6px 0 0; }
.manche-reglages label { display: inline-flex; gap: 6px; align-items: center; }
.manche-reglages input[type="number"] { width: 4.5em; border: 1px solid var(--trait); border-radius: var(--r); padding: 3px 6px; background: var(--surface); }
.manche-reglages .actions { display: inline-flex; gap: 6px; }
.manche-cartes { margin: 0; padding: 0 0 0 22px; display: grid; gap: 0; }
.manche-cartes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.manche-cartes li > div { display: grid; gap: 2px; min-width: 0; }
.manche-cartes .rappel { font-size: var(--t-xs); color: var(--alerte); }
.bouge-manche { display: flex; gap: 0; }
.bouge-manche .act { border: 0; background: none; width: 26px; height: 24px; color: var(--encre-2); cursor: pointer; border-radius: 4px; }
.bouge-manche .act:hover:not(:disabled) { background: var(--surface-2); color: var(--encre); }
.bouge-manche .act:disabled { opacity: .3; cursor: default; }
.apercu-manche { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; }
.apercu-manche h2 { margin: 0; font: 700 var(--t-l)/1.2 var(--f-titre); }
.apercu-manche p { margin: 0; }
.texte-apercu { white-space: pre-line; line-height: 1.5; }
.teasing-apercu .btn { padding: 0 4px; }
.relances { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.regie .regie-texte { white-space: pre-line; }
form.rediger { display: flex; gap: 8px; flex-wrap: wrap; }
form.rediger input { flex: 1 1 260px; border: 1px solid var(--trait); border-radius: var(--r); padding: 7px 10px; background: var(--fond); }
@media (max-width: 760px) {
  .tabbar button { font-size: var(--t-s); padding: 10px 2px; }
}

/* ---------- Ordinateurs portables : petits écrans (1280 × 720, 1366 × 768, zoom de Windows à 125-150 %) ---------- */
/* Colonnes plus étroites par défaut : la fiche garde de la place (chacun peut toujours élargir à la poignée). */
@media (min-width: 1181px) and (max-width: 1440px) {
  .corps { grid-template-columns: var(--larg-liste, 320px) minmax(0, 1fr) var(--larg-cond, 270px); }
  .poignee-liste { left: calc(var(--larg-liste, 320px) - 5px); }
  .poignee-cond { right: calc(var(--larg-cond, 270px) - 5px); }
  .col-fiche { padding: 16px 18px; }
  .marque span { display: none; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .corps { grid-template-columns: var(--larg-liste, 320px) minmax(0, 1fr); }
  .poignee-liste { left: calc(var(--larg-liste, 320px) - 5px); }
  .marque span { display: none; }
}
/* Écran peu haut : les outils de la liste défilent avec elle (au lieu de manger la moitié de la colonne),
   les onglets restent en haut ; même chose pour le conducteur, dont le pied ne cache plus la liste. */
@media (min-width: 761px) and (max-height: 900px) {
  .entete { padding-top: 6px; padding-bottom: 6px; }
  .col-liste { overflow: auto; overscroll-behavior: contain; }
  .col-liste .onglets { position: sticky; top: 0; z-index: 3; background: var(--surface); }
  .col-liste .onglet { padding: 9px 4px 8px; }
  .col-liste .liste { overflow: visible; flex: none; }
  .liste .sous-titre { top: 38px; }
  .outils-liste { padding: 8px 10px; gap: 6px; }
  .element { padding: 8px 8px 8px 0; }
  .col-fiche { padding-top: 12px; }
  .fiche { gap: 14px; }
  .col-conducteur { overflow: auto; }
  .col-conducteur .cond-liste { overflow: visible; flex: none; }
  .col-conducteur .cond-pied { position: sticky; bottom: 0; background: var(--surface); margin-top: auto; }
  .cond-tete { padding: 10px 12px 8px; }
}
/* Cartes de jeu et réserve : pas de photo, toute la largeur pour le texte. */
.element.sans-image { grid-template-columns: 4px minmax(0, 1fr) 52px; }
.element.sans-image .vignette-zone { display: none; }
.element.sans-image .actions-zone { grid-column: 3; }
.etiquette.lien { white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 600; max-width: 100%; text-align: left; }
.liste .sous-titre.jour-a-venir { background: var(--surface); color: var(--encre); }

/* ---------- Liste en bandeau au-dessus de la fiche (par défaut sur ordinateur) ---------- */
/* Veille, pot, jeux, réserve : cartes miniatures sur 1 à 3 rangées qui défilent de gauche à droite (molette ou ascenseur),
   la fiche du speak dessous, le conducteur à droite. « ⇤ En colonne » remet la liste à gauche (choix gardé par le navigateur). */
.bande-actions { display: flex; justify-content: flex-end; gap: 2px; padding: 0 10px; }
.bande-actions:empty { display: none; }
.bande-actions .btn { padding: 4px 8px; font-size: var(--t-xs); white-space: nowrap; }
.bande-actions .btn[aria-pressed="true"] { color: var(--encre); }
@media (max-width: 760px) { .bande-actions { display: none; } }
@media (min-width: 761px) {
  .app.liste-haut .corps { grid-template-columns: minmax(0, 1fr) var(--larg-cond, 300px); grid-template-rows: auto minmax(0, 1fr); }
  .app.liste-haut .col-liste {
    grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--trait); overflow: visible; min-height: 0;
  }
  .app.liste-haut .col-fiche { grid-column: 1; grid-row: 2; }
  /* Le bandeau court sur toute la largeur ; le conducteur commence dessous, aligné avec la fiche. */
  .app.liste-haut .col-conducteur { grid-column: 2; grid-row: 2; }
  .app.liste-haut .poignee-cond { top: var(--haut-bande, 0px); }
  /* La fiche du speak profite de toute la largeur libérée. */
  .app.liste-haut .fiche { max-width: 1400px; }
  .app.liste-haut .poignee-liste { display: none; }
  .app.liste-haut .col-liste .onglets { grid-column: 1; grid-row: 1; border-bottom: 0; position: static; align-self: start; margin-top: 2px; }
  .app.liste-haut .col-liste .onglet { flex: none; padding: 10px 10px 8px; }
  .app.liste-haut .outils-liste { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 10px; border-bottom: 0; min-width: 0; }
  .app.liste-haut .outils-liste .recherche { flex: 0 1 230px; width: auto; min-width: 140px; padding: 5px 8px; }
  /* Pas d'ascenseur sur la rangée de catégories (il recouvrait les puces) : flèches ‹ › de part et d'autre,
     plus la molette et le pavé tactile. */
  .app.liste-haut .puces-nav { flex: 1 1 260px; display: flex; align-items: center; gap: 4px; min-width: 0; }
  .app.liste-haut .outils-liste .puces { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .app.liste-haut .outils-liste .puces::-webkit-scrollbar { display: none; }
  .app.liste-haut .fleche-defile { display: grid; place-items: center; width: 30px; height: 30px; padding: 0 0 3px; border-radius: 50%;
    border: 1px solid var(--trait); background: var(--surface); color: var(--encre); font: 700 22px/1 var(--f-texte); cursor: pointer;
    box-shadow: var(--ombre); z-index: 4; }
  .app.liste-haut .fleche-defile:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .app.liste-haut .fleche-defile:disabled { opacity: .3; cursor: default; box-shadow: none; }
  .app.liste-haut .fleche-defile.inutile, .app.liste-reduite .col-liste > .fleche-defile { display: none; }
  .app.liste-haut .col-liste > .fleche-defile { grid-row: 2; align-self: center; margin: 0 4px 6px; }
  .app.liste-haut .col-liste > .fleche-defile.gauche { grid-column: 1; justify-self: start; }
  .app.liste-haut .col-liste > .fleche-defile.droite { grid-column: 3; justify-self: end; }
  .app.liste-haut .puces-nav .fleche-defile { width: 24px; height: 24px; font-size: 18px; box-shadow: none; flex: none; margin: 0; }
  .app.liste-haut .outils-liste > .ligne-outils, .app.liste-haut .outils-liste > p, .app.liste-haut .outils-liste > .file-claude,
  .app.liste-haut .outils-liste > .attente { flex: 1 1 100%; }
  /* Options repliées : seulement la recherche, les catégories et ce qui demande une action (file « à rédiger », faits cochés). */
  .app.liste-haut:not(.options-ouvertes) .outils-liste > :not(.recherche):not(.puces):not(.puces-nav):not(.file-claude):not(.attente) { display: none; }
  .app.liste-haut .bande-actions { grid-column: 3; grid-row: 1; align-self: start; padding-top: 8px; }
  .app.liste-haut .col-liste .liste {
    /* Les cartes se rangent de haut en bas puis de gauche à droite : les plus récentes restent ensemble au début. */
    grid-column: 1 / -1; grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 236px;
    grid-template-rows: repeat(var(--rangees, 1), auto); gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 12px 10px; flex: none;
    scrollbar-width: thin; align-items: stretch;
  }
  .app.liste-reduite .col-liste .liste { display: none; }
  .app.liste-haut .liste .element, .app.liste-haut .liste .element.sans-image {
    width: 236px; min-height: 74px; grid-template-columns: 4px minmax(0, 1fr); column-gap: 8px; padding: 6px 8px 6px 0;
    border: 1px solid var(--trait); border-radius: 6px; background: var(--surface); position: relative; align-content: start; overflow: hidden;
  }
  .app.liste-haut .liste .element .vignette-zone { display: none; }
  .app.liste-haut .liste .element .titre { font-size: var(--t-s); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .app.liste-haut .liste .element .meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; margin-top: 2px; }
  .app.liste-haut .liste .element .etiquettes { flex-wrap: nowrap; overflow: hidden; margin-top: 3px; }
  .app.liste-haut .liste .element .etiquette.lien { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .app.liste-haut .liste .element .actions-zone {
    position: absolute; top: 2px; right: 2px; grid-column: auto; grid-row: auto; display: flex; gap: 0;
    background: var(--surface); border-radius: 4px; box-shadow: var(--ombre); visibility: hidden;
  }
  .app.liste-haut .liste .element:hover .actions-zone, .app.liste-haut .liste .element:focus-within .actions-zone { visibility: visible; }
  .app.liste-haut .liste .element[aria-current="true"] { border-color: var(--accent); background: var(--accent-doux); }
  .app.liste-haut .liste .element:hover { background: var(--fond); }
  .app.liste-haut .liste .element.cible-haut { box-shadow: inset 3px 0 0 var(--accent); }
  .app.liste-haut .liste .element.cible-bas { box-shadow: inset -3px 0 0 var(--accent); }
  .app.liste-haut .liste .sous-titre {
    position: static; width: 236px; border: 0; border-radius: 6px; background: var(--encre); color: var(--fond);
    flex-direction: column; justify-content: center; gap: 4px; padding: 8px 12px;
  }
  .app.liste-haut .liste .sous-titre.jour-a-venir { background: var(--accent-doux); color: var(--encre); }
  .app.liste-haut .liste .vide { width: 236px; padding: 12px; text-align: left; border: 1px dashed var(--trait); border-radius: 6px; }
}
@media (min-width: 761px) and (max-width: 1440px) {
  .app.liste-haut .corps { grid-template-columns: minmax(0, 1fr) var(--larg-cond, 270px); }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .app.liste-haut .corps { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-height: 900px) {
  .app.liste-haut .liste .element .titre { -webkit-line-clamp: 2; }
  .app.liste-haut .liste .element, .app.liste-haut .liste .element.sans-image { min-height: 64px; padding-top: 5px; padding-bottom: 5px; }
  .app.liste-haut .outils-liste { padding-top: 4px; padding-bottom: 4px; }
  .app.liste-haut .col-liste { overflow: visible; }
  .app.liste-haut .col-liste .liste { overflow-x: auto; overflow-y: hidden; flex: none; }
}
@media (hover: none) and (min-width: 761px) {
  .app.liste-haut .liste .element .actions-zone { visibility: visible; position: static; grid-column: 2; box-shadow: none; background: none; }
}
@media (min-width: 761px) {
  /* Un fait coché reste visible sans survol. */
  .app.liste-haut .liste .element .act.coche { visibility: visible; }
}

/* =====================================================================
   Habillage « lever du jour » (26/10) : en-tête ciel d'aube avec le logo, titres en minuscules,
   cartes teintées par leur catégorie. Ces règles viennent en dernier : elles l'emportent à égalité.
   ===================================================================== */
.entete { background: var(--aube); border-bottom: 0; color: #fff; padding-block: 9px; }
.marque { align-items: center; gap: 10px; }
.marque img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / 25%), 0 2px 8px rgb(0 0 0 / 25%); flex: none; }
.marque b { font: 700 1.5rem/1 var(--f-titre); text-transform: none; letter-spacing: .005em; color: #fff; }
.marque span { color: rgb(255 255 255 / 72%); }
.emissions label { color: rgb(255 255 255 / 70%); text-transform: none; letter-spacing: 0; font-size: var(--t-s); }
.entete .jour { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 24%); color: #fff; }
.entete .jour:hover { background: rgb(255 255 255 / 18%); }
/* Le jour choisi : la lampe « à l'antenne » du studio */
.entete .jour[aria-pressed="true"] { background: #fff; color: #2a1840; border-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 18%), 0 0 18px rgb(255 214 170 / 45%); }
.entete .jour.preparer { border-style: dashed; border-color: rgb(255 255 255 / 45%); }
.recherche-entete input { background: rgb(255 255 255 / 13%); border-color: rgb(255 255 255 / 26%); color: #fff; }
.recherche-entete input::placeholder { color: rgb(255 255 255 / 72%); }
.recherche-entete input:focus { background: #fff; color: var(--encre); outline-color: #fff; }
.recherche-entete input:focus::placeholder { color: var(--encre-2); }
.entete > .btn, .entete .taches-menu > summary { color: #fff; border-color: transparent; background: transparent; }
.entete > .btn:hover, .entete .taches-menu > summary:hover { background: rgb(255 255 255 / 14%); color: #fff; }
.entete .bouton-conducteur { border-color: rgb(255 255 255 / 35%); }
.entete kbd { background: transparent; color: #fff; border-color: rgb(255 255 255 / 40%); }
.presence { color: rgb(255 255 255 / 85%); }
.entete .taches-menu > summary { border: 1px solid rgb(255 255 255 / 35%); background: rgb(255 255 255 / 10%); }
.entete .taches-menu > summary i { background: #ffd7a8; }
.entete .menu, .entete .menu .btn { color: var(--encre); }
:focus-visible { outline-color: var(--accent); }
.entete :focus-visible { outline-color: #fff; }

/* Onglets, titres de blocs, champs : en minuscules, plus doux que des capitales espacées */
.onglet { text-transform: none; letter-spacing: 0; font: 600 1.2rem/1 var(--f-titre); }
.onglet small { font: 600 var(--t-s) var(--f-chiffre); }
.onglet[aria-selected="true"] { border-bottom-color: var(--accent); }
.bloc { border-radius: 14px; }
.bloc h3 { font: 700 1.15rem/1.15 var(--f-titre); text-transform: none; letter-spacing: 0; color: var(--encre); }
.bloc h3 small { font: 600 var(--t-s) var(--f-chiffre); color: var(--encre-2); }
.champ > span { font: 600 1rem/1.1 var(--f-titre); text-transform: none; letter-spacing: .01em; color: var(--encre-2); }
.champ > span em { font: 600 var(--t-s) var(--f-chiffre); }
.ephem h4, .rg-res h4 { text-transform: none; letter-spacing: 0; font: 700 1rem/1.2 var(--f-titre); color: var(--encre-2); }
.pli > summary, .retouche > span:first-child, .regie > span, .teasing-jour > span { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.ephem .corbeille > summary { text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.cond-tete h2 { text-transform: none; font-size: 1.6rem; }
.emissions label, .marque span { font-family: var(--f-texte); }

/* Étiquettes : pastilles arrondies, en minuscules */
.etiquette { text-transform: none; letter-spacing: 0; border-radius: 999px; font: 600 var(--t-xs)/1.5 var(--f-texte); padding: 1px 8px; }
.element .etiquettes .etiquette { padding: 0 7px; }

/* Puces de catégorie : la puce choisie prend la couleur de sa catégorie */
.puce { border-color: var(--trait); }
.puce b { font: 600 var(--t-s) var(--f-chiffre); }
.puce[aria-pressed="true"] { background: var(--c, var(--encre)); border-color: var(--c, var(--encre)); color: #fff; }
.puce[aria-pressed="true"] i { background: #fff; }
/* « Toutes » (sans couleur de catégorie) : encre pleine, lisible en clair comme en sombre */
.puce[aria-pressed="true"]:not([style]) { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.jour small { font: 600 var(--t-s) var(--f-chiffre); }

/* Boutons */
.btn-principal { box-shadow: 0 1px 0 rgb(0 0 0 / 8%), 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Cartes : arrondies, teintées par leur catégorie au survol et quand elles sont ouvertes */
.element:hover { background: color-mix(in srgb, var(--c, var(--accent)) 5%, var(--surface)); }
.element[aria-current="true"] { background: color-mix(in srgb, var(--c, var(--accent)) 10%, var(--surface)); }
.app.liste-haut .liste .element, .app.liste-haut .liste .element.sans-image { border-radius: 10px; border-color: var(--trait); }
.app.liste-haut .liste .element:hover { background: color-mix(in srgb, var(--c, var(--accent)) 6%, var(--surface)); }
.app.liste-haut .liste .element[aria-current="true"] { background: color-mix(in srgb, var(--c, var(--accent)) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--surface)); }
.app.liste-haut .liste .element::before { border-radius: 10px 0 0 10px; }
.cat i { border-radius: 50%; }

/* Conducteur : chaque speak garde la couleur de sa catégorie */
.cond-el[aria-current="true"] { background: var(--accent-doux); }
.jauge { height: 10px; border-radius: 5px; }

/* Écran de connexion : le même ciel d'aube, le logo en grand */
.connexion { background: var(--aube); }
.connexion form { box-shadow: 0 20px 60px rgb(20 10 30 / 35%); }
.connexion .logo-connexion { width: 84px; height: 84px; border-radius: 50%; justify-self: center; box-shadow: 0 4px 16px rgb(0 0 0 / 15%); }
.connexion h1 { text-transform: none; text-align: center; }

@media (max-width: 760px) {
  .marque img { width: 30px; height: 30px; }
  .marque b { font-size: 1.25rem; }
}

/* Jeux : séparateurs de jour fins, sur toute la hauteur du bandeau (et plus des « cartes » vides) */
.liste .sous-titre { text-transform: none; letter-spacing: 0; display: flex; flex-direction: column; gap: 2px; }
.liste .sous-titre b { font: 700 1rem/1.15 var(--f-titre); color: var(--encre); }
.liste .sous-titre span { font: 400 var(--t-xs)/1.35 var(--f-texte); color: var(--encre-2); }
@media (min-width: 761px) {
  .app.liste-haut .col-liste .liste { grid-auto-columns: max-content; }
  .app.liste-haut .liste .sous-titre, .app.liste-haut .liste .sous-titre.jour-a-venir {
    grid-row: 1 / -1; width: 132px; background: transparent; color: var(--encre); border: 0; border-left: 3px solid var(--accent);
    border-radius: 0; padding: 4px 10px; justify-content: center; }
  .app.liste-haut .liste .sous-titre.jour-a-venir { border-left-color: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
}

/* Composer un « Saviez-vous ? » : une puce d'action, pas un filtre. */
.puce.puce-action { border-style: dashed; border-color: #8B3DF0; color: #8B3DF0; font-weight: 600; }
.puce.puce-action:hover { background: color-mix(in srgb, #8B3DF0 10%, transparent); }
.saviez-faits small { display: block; }
.manche-mot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.manche-mot input { flex: 1 1 160px; min-width: 0; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); padding: 6px 8px; font: inherit; font-size: var(--t-s, 15px); }
.manche-mot label { font-weight: 700; font-size: var(--t-s); }
/* Manche née d'un sujet de l'actu : le lien, puis le même sujet dans les autres jeux. */
.sujet-manche { display: grid; gap: 6px; padding: 8px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-size: var(--t-s); }
.sujet-manche p { margin: 0; }
.sujet-manche .autres-jeux { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.sujet-manche .puce { padding: 2px 9px; font-size: var(--t-xs); }
/* Le lien avec l'actu, au-dessus du jeu. */
.rappel-lien { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: var(--r); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); display: grid; gap: 4px; }
.rappel-lien p { margin: 0; }
.rappel-lien p:first-child { font-size: var(--t-m); line-height: 1.4; }
.rappel-lien p:first-child span { margin-left: 6px; }
.rappel-lien .wa { font-size: var(--t-s); }
/* Un sujet de l'actu ouvert : le lien, puis ses cartes jeu par jeu, en clair, avant de composer. */
.fiche-sujet .sujet-lien { margin: 0 0 4px; padding: 8px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-size: var(--t-s); }
.fiche-sujet .sujet-jeu { display: grid; gap: 6px; margin-top: 14px; }
.fiche-sujet .sujet-jeu h2 { margin: 0; font-size: 1.15em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fiche-sujet .sujet-jeu h2 small { font-size: var(--t-xs); font-weight: 400; }
.fiche-sujet .sujet-jeu .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fiche-sujet .sujet-ia { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--trait); display: grid; gap: 6px; }
.fiche-sujet .sujet-ia p { margin: 0; }
/* « En lien avec l'actu » : une case par sujet, le nom en gros. */
.element.sujet-actu .titre { font-size: 1.12em; }
.element.sujet-actu.fait { opacity: .62; }
.etiquette.ia { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
/* Sujets cachés par le tri */
.caches { list-style: none; margin: 4px 0 0; padding: 0; }
.caches li { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--trait); }
.caches li.remis { opacity: .5; }
.nuit-reglage label { display: inline-flex; gap: 4px; align-items: center; }
/* « 🎲 Créer un jeu » */
.choix-jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.choix-jeu { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--trait); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.choix-jeu input { grid-row: 1 / span 2; }
.choix-jeu small { grid-column: 2; color: var(--encre-2); font-size: var(--t-xs); }
.choix-jeu:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.idees-jeu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* En-tête : avec « Créer un jeu », la recherche de sons se resserre sur les écrans moyens pour tout garder sur une ligne. */
@media (max-width: 1500px) { .recherche-entete input { width: 160px; } }
@media (max-width: 1300px) { .recherche-entete { display: none; } .sons-mobile { display: inline-flex; } }

/* 📋 Copier (David, 26/10) : discret, toujours au même endroit, plein au survol. */
.copie { background: none; border: 0; padding: 0 3px; margin: 0; cursor: pointer; font: 400 14px/1 system-ui, sans-serif; letter-spacing: 0; text-transform: none; opacity: .5; vertical-align: baseline; border-radius: 4px; }
.copie:hover, .copie:focus-visible { opacity: 1; }
.champ-droite { display: inline-flex; align-items: baseline; gap: 6px; }
.apres-copie { margin: 2px 0 0; text-align: right; }

/* 🎧 Lecteur unique : le bouton qui joue s'allume. Les sons du mix du jour, dans la fiche du speak. */
.btn-son.joue { background: var(--accent, #7a1f6e); color: #fff; border-radius: 6px; animation: son-pulse 1.2s ease-in-out infinite; }
@keyframes son-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .btn-son.joue { animation: none; } }
.sons-mix ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sons-mix li { border-bottom: 1px dashed var(--trait); padding: 4px 0; }
.sons-mix .son-ligne { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); }
.sons-mix .son-ligne span { flex: 1; min-width: 0; }
.studio { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-height: 0; }
.studio .liens-ecoute { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--t-s); }
.sons-mix h3 { align-items: center; }
.sons-mix .rec-lien { color: #c62828; font-weight: 700; white-space: nowrap; }
/* Tablette : les boutons passent sous le lecteur, qui garde toute la largeur. */
@media (max-width: 1000px) {
  .studio { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .studio { grid-template-columns: 1fr; }
}

/* Les sons du mix : des lignes simples (le bouton n'a pas l'allure d'un bouton), 🎧 à gauche, texte aligné à gauche. */
.sons-mix li { padding: 0; }
.sons-mix button.son-ligne { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 6px; margin: 0; background: none; border: 0; border-radius: 6px;
  font: inherit; font-size: var(--t-s); color: var(--encre); text-align: left; cursor: pointer; }
.sons-mix button.son-ligne:hover, .sons-mix button.son-ligne:focus-visible { background: var(--accent-doux); }
.sons-mix button.son-ligne .btn-son { flex: none; width: 1.4em; text-align: center; }
.sons-mix button.son-ligne span:last-child { flex: 1; min-width: 0; }
.studio { min-height: 0; height: 100%; }

/* ===================== Allègement (David, 27/10 : « encore un peu chargé visuellement ») ===================== */

/* 1. Les petites actions n'apparaissent qu'au survol (sur tablette, elles restent là, plus discrètes). */
.copie { opacity: 0; transition: opacity .12s; }
:is(li, .champ, h1, h2, h3, p, .bloc, .teasing-jour, .apercu-manche, .regie, .son-ligne):hover .copie,
.copie:focus-visible { opacity: .55; }
.copie:hover { opacity: 1 !important; }
.ephem ul li .eph-droite .btn-son, .ephem ul li .eph-droite .copie { opacity: 0; transition: opacity .12s; }
.ephem ul li .eph-droite .bascule { opacity: .35; transition: opacity .12s; }
.ephem ul li:hover .eph-droite :is(.btn-son, .copie, .bascule), .ephem ul li .eph-droite :focus-visible { opacity: 1; }
.ephem ul li.retire .eph-droite .bascule { opacity: .8; }
@media (hover: none) {
  .copie, .ephem ul li .eph-droite :is(.btn-son, .copie) { opacity: .4; }
  .ephem ul li .eph-droite .bascule { opacity: .7; }
}

/* 2. Conducteur : une ligne par speak, la catégorie en liseré, les actions au survol. */
.cond-el { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 0 8px; padding: 7px 10px 7px 4px; align-items: center; position: relative;
  border-left: 3px solid var(--c, transparent); }
.cond-el::before { line-height: 1.4; }
.cond-el .titre { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cond-el .duree { grid-column: 3; grid-row: 1; font-size: var(--t-xs); color: var(--encre-2); }
.cond-el .meta { grid-column: 2 / span 2; gap: 6px; margin-top: 2px; }
.cond-el .lien { grid-column: 2 / span 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond-el .bouge { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); flex-direction: row; gap: 0; padding: 2px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity .12s; }
.cond-el .bouge button { padding: 3px 6px; font-size: var(--t-s); }
.cond-el:hover .bouge, .cond-el:focus-within .bouge { opacity: 1; pointer-events: auto; }
@media (hover: none) {
  .cond-el .bouge { position: static; transform: none; opacity: 1; pointer-events: auto; grid-column: 2 / span 2; justify-self: end; box-shadow: none; border: 0; background: none; }
}

/* 3. Cartes de la veille et du pot : titre, catégorie, âge ; un seul statut. */
.element .meta { gap: 2px 8px; }
.element .meta .age { color: var(--encre-2); }
.element .etiquettes { margin-top: 4px; }

/* 4. Bandeau : ‹ émission ▾ ›, Préparer, 🎲, 🎧, 🔎. */
.emissions { gap: 6px; flex-wrap: nowrap; }
.emissions label { display: none; }
.entete .fleche-jour { padding: 4px 10px; font-size: 1.05rem; line-height: 1; }
.entete .fleche-jour:disabled { opacity: .35; cursor: default; }
.choix-jour { position: relative; }
.entete .jour-courant { background: #fff; color: #2a1840; border-color: #fff; font-weight: 700; }
.jours-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 2px; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; box-shadow: var(--ombre); }
.entete .jours-menu .jour { background: none; border: 0; color: var(--encre); text-align: left; border-radius: 6px; padding: 7px 10px; box-shadow: none; display: flex; justify-content: space-between; gap: 12px; }
.entete .jours-menu .jour:hover { background: var(--accent-doux); }
.entete .jours-menu .jour[aria-pressed="true"] { background: var(--accent); color: var(--accent-encre); }
.entete .jour.icone { padding: 4px 10px; }
.recherche-entete { display: none; }
.sons-mobile { display: inline-flex; }
.recherche-globale kbd { display: none; }

/* 5. Aides repliées derrière « ? » ; « Préparer » replié en une ligne de résumé. */
details.aide { display: inline-block; position: relative; vertical-align: middle; font: 400 var(--t-s)/1.5 var(--f-texte, inherit); text-transform: none; letter-spacing: 0; }
details.aide > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--trait); color: var(--encre-2); font: 700 13px/1 system-ui, sans-serif; }
details.aide > summary::-webkit-details-marker { display: none; }
details.aide[open] > summary { background: var(--accent); color: var(--accent-encre); border-color: var(--accent); }
details.aide .aide-texte { position: absolute; left: 0; top: 28px; z-index: 20; width: min(560px, 80vw); padding: 10px 12px; color: var(--encre-2);
  background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre); font-weight: 400; }
details.prepa > summary { list-style: none; cursor: pointer; }
details.prepa > summary::-webkit-details-marker { display: none; }
details.prepa > summary h3::before { content: '▸ '; color: var(--encre-2); }
details.prepa[open] > summary h3::before { content: '▾ '; }
details.prepa:not([open]) { padding-block: 10px; }
details.prepa > summary h3 { justify-content: flex-start; gap: 8px; }
details.prepa > summary h3 small { margin-left: auto; }
details.prepa > summary h3::before { content: '▸'; }
details.prepa[open] > summary h3::before { content: '▾'; }
/* Tablette : les boutons d'une carte (⊘ ✕ ◀ ▶) seulement sur la carte ouverte. */
@media (hover: none) {
  .element:not([aria-current="true"]) .actions-zone { display: none; }
}

/* Cartes du bandeau (David, 27/10 : « les cartes sur 2 rangées, je les trouve ternes ») : la photo de l'article en
   vignette, un fond teinté de la couleur de la catégorie, la catégorie en pastille de couleur.
   Les boutons (⊘ ✕ ◀ ▶) apparaissent au survol en bas à droite, sur la ligne du statut, jamais sur le titre
   (David, 27/10 : « les flèches, la croix etc. masquent le titre qui est déjà tronqué »). */
@media (min-width: 761px) {
  .app.liste-haut .col-liste .liste { grid-auto-columns: 248px; }
  .app.liste-haut .liste .element, .app.liste-haut .liste .element.sans-image {
    --fond-carte: color-mix(in srgb, var(--c, var(--trait)) 11%, var(--surface));
    width: 248px; min-height: 78px; grid-template-columns: 4px minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(24px, auto);
    background: var(--fond-carte); border-color: color-mix(in srgb, var(--c, var(--trait)) 40%, var(--trait));
  }
  .app.liste-haut .liste .sous-titre, .app.liste-haut .liste .vide { width: 248px; }
  .app.liste-haut .liste .element::before { border-radius: 6px 0 0 6px; }
  .app.liste-haut .liste .element .vignette-zone { display: block; grid-column: 3; grid-row: 1 / span 2; width: 52px; height: 52px; align-self: start; margin-top: 1px; }
  .app.liste-haut .liste .element .vignette-zone:empty { display: none; }
  .app.liste-haut .liste .element .vignette-zone .vignette { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
  .app.liste-haut .liste .element .titre { color: var(--encre); }
  .app.liste-haut .liste .element .meta .cat { padding: 0 7px 0 6px; border-radius: 999px; line-height: 1.6;
    background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 72%, var(--encre)); }
  .app.liste-haut .liste .element .meta .cat i { display: none; }
  .app.liste-haut .liste .element .etiquettes { grid-column: 2 / -1; grid-row: 3; align-self: end; margin-top: 2px; min-width: 0; }
  .app.liste-haut .liste .element .etiquettes .etiquette { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app.liste-haut .liste .element .actions-zone {
    top: auto; bottom: 4px; right: 6px; padding-left: 18px; border-radius: 0; box-shadow: none;
    background: linear-gradient(to right, transparent, var(--fond-carte) 16px);
  }
  .app.liste-haut .liste .element:hover { --fond-carte: color-mix(in srgb, var(--c, var(--trait)) 18%, var(--surface)); background: var(--fond-carte); }
  .app.liste-haut .liste .element[aria-current="true"] { --fond-carte: color-mix(in srgb, var(--c, var(--accent)) 22%, var(--surface));
    background: var(--fond-carte); border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
}
/* Tablette : pas de survol, les boutons au même endroit mais seulement sur la carte ouverte (les cases à cocher de la
   réserve restent toujours visibles). */
@media (hover: none) and (min-width: 761px) {
  .app.liste-haut .liste .element .actions-zone { position: absolute; grid-column: auto; background: linear-gradient(to right, transparent, var(--fond-carte) 16px); }
  .app.liste-haut .liste .element:not([aria-current="true"]):not(:has([data-action="res-cocher"])) .actions-zone { display: none; }
}

/* Bandeau (David, 27/10 : « déplace les trucs qui sont à droite vers la gauche ») : le jour, Préparer, 🎲, 🔎 et 🎧
   juste après le titre ; seul le compte reste à droite. */
@media (min-width: 761px) {
  .marque { margin-right: 14px; }
  .entete > [data-action="compte"] { margin-left: auto; }
}
/* Heure de la dernière veille et nouvelle version du site, dans le bandeau. */
.entete .jour.veille-heure { font-variant-numeric: tabular-nums; background: transparent; border-color: rgb(255 255 255 / 22%); white-space: nowrap; }
.entete .jour.veille-heure:disabled { opacity: .75; cursor: progress; }
.entete .jour.veille-heure.retard { background: rgb(255 170 110 / 28%); border-color: #ffd7a8; }
.entete .jour.nouvelle-version { background: #ffd7a8; color: #2a1840; border-color: #ffd7a8; font-weight: 700; white-space: nowrap; }
.entete .jour.nouvelle-version:hover { background: #fff; }
@media (max-width: 760px) { .entete .jour.veille-heure { display: none; } }

/* Couleurs joyeuses (David, 27/10) : bandeau en lever de soleil franc, violet FC Radio plus vif ; les catégories
   (shared/charte.js) sont en couleurs vives. */
:root {
  --accent: #9419AE; --accent-doux: #f7e4f9;
  --aube: linear-gradient(100deg, #3f1aa0 0%, #8a1db8 28%, #d62b8c 56%, #ff4f4a 80%, #ff8c22 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #e58cf0; --accent-doux: #43204d;
    --aube: linear-gradient(100deg, #1d0f4a 0%, #48137a 30%, #8a1774 58%, #b02a52 82%, #c35a1c 100%); }
}
:root[data-theme="dark"] { --accent: #e58cf0; --accent-doux: #43204d;
  --aube: linear-gradient(100deg, #1d0f4a 0%, #48137a 30%, #8a1774 58%, #b02a52 82%, #c35a1c 100%); }
.puce[aria-pressed="true"] { text-shadow: 0 1px 1px rgb(0 0 0 / 22%); }
/* Idées de jeu tirées d'une info : le jeu proposé en petit à côté du thème. */
.idees-jeu .puce small { color: var(--encre-2); font-weight: 400; margin-left: 2px; }
.idees-jeu .puce[aria-pressed="true"] small { color: inherit; opacity: .8; }
/* Faits proposés par l'IA pour une manche, et ceux que le web a confirmés. */
.diag-ia > summary { font-size: var(--t-xs); color: var(--encre-2); }
.diag-ia ul { margin: 4px 0 0; padding-left: 0; list-style: none; display: grid; gap: 3px; font-size: var(--t-xs); }
.diag-ia li small { color: var(--encre-2); }

/* 🔎 Vérification du conducteur : pastilles, résumé, bloc dans la fiche. */
.etiquette.verif-speak.ok { background: var(--ok-fond); color: var(--ok); }
.etiquette.verif-speak.conforme { background: color-mix(in srgb, var(--ok-fond) 55%, transparent); color: var(--ok); }
.etiquette.verif-speak.alerte { background: var(--alerte-fond); color: var(--alerte); font-weight: 700; }
.verif-resume { margin-top: 6px; font-size: var(--t-xs); }
.verif-resume .alerte-txt { color: var(--alerte); }
.verif-bloc { border-left: 4px solid var(--trait); }
.verif-bloc.ok, .verif-bloc.conforme { border-left-color: var(--ok); }
.verif-bloc.alerte { border-left-color: var(--alerte); background: var(--alerte-fond); }
.verif-bloc h3 { display: flex; gap: 8px; align-items: baseline; }
.verif-bloc ul { margin: 6px 0; padding-left: 18px; }

/* Émissions passées dans le menu des jours (accessibles avec ‹ après la bascule) : un ton plus discret. */
.jours-menu .jour-passe { opacity: .7; }

/* Sujets cachés : « Remettre » et ✕ (écarter pour de bon) côte à côte. */
.caches .caches-actions { display: inline-flex; gap: 4px; align-items: center; flex: none; }

/* Case « Parler comme dans la vie » du formulaire de rédaction. */
.alerte-vf { color: var(--alerte); font-weight: 600; font-size: var(--t-s); }
.case { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); cursor: pointer; }
.case-parler { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); cursor: pointer; }

/* Téléphone (audit du 27/10) : le menu des émissions n'est plus coupé par le bandeau qui défile, le nom du site
   laisse la place à ‹ jour ›, et le pied du mode antenne tient dans l'écran. */
@media (max-width: 760px) {
  .marque b { display: none; }
  .entete .jour.icone[data-action="creer-jeu"] { display: none; }
  .jours-menu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 60px); left: 12px; right: 12px; transform: none; max-height: 70vh; overflow-y: auto; z-index: 40; }
  .ant-pied { flex-wrap: wrap; gap: 8px; }
  .ant-pied .btn { font-size: var(--t-m); padding: 10px 14px; }
  .ant-pied kbd { display: none; }
}
/* Créer un jeu : qui écrit les questions (Gemini tout de suite, ou Claude sur demande) */
.qui-ecrit { border: 1px solid var(--trait); border-radius: 8px; padding: 8px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-s); }
.qui-ecrit legend { padding: 0 4px; color: var(--encre-2); }
.qui-ecrit label { display: inline-flex; align-items: center; gap: 6px; }
.demandes-claude { display: grid; gap: 4px; }
.nb-cartes input { width: 6em; }
.nb-cartes input { width: 6em; }
.nb-cartes[hidden] { display: none; }
/* « ↪ Suite de … » : l'info d'origine, en lien dans le texte. */
.suite-de { margin: 0; }
.suite-de a { color: var(--accent); text-underline-offset: 2px; }
/* Cartes de jeu en lien avec l'actu, regroupées par jeu : une ligne dépliable (David, 28/10). */
.journees details.pli > summary { cursor: pointer; }
.journees details.pli > summary b { font: 700 var(--t-m)/1.3 var(--f-texte); }
.journees details.pli > ul { margin: 6px 0 0 14px; }
/* Fenêtre étroite : la liste des sons se resserre, la console gagne de la largeur et se replie moins. */
@media (max-width: 1240px) {
  .studio { grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
}

/* « Propose une chute » (David, 28/10) : sous le texte du speak, les chutes à choisir ; la choisie est surlignée. */
.chutes { display: grid; gap: 8px; margin: -2px 0 6px; }
.chutes-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.chutes-qui { border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); color: var(--encre); padding: 5px 6px; font-size: var(--t-s); }
.chutes-consigne { flex: 1 1 220px; min-width: 0; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); color: var(--encre); padding: 6px 10px; font-size: var(--t-s); }
.chutes-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.chutes-liste li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--surface); }
.chutes-liste li.nouvelle { box-shadow: inset 3px 0 0 var(--accent); }
.chutes-liste li.choisie { border-color: var(--accent); background: var(--accent-doux); box-shadow: none; }
.chute-texte { flex: 1; min-width: 0; font-size: var(--t-m); line-height: 1.35; }
.chute-genre { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--encre-2); font-size: var(--t-xs); white-space: nowrap; vertical-align: 1px; }
.chute-ok { color: var(--accent); font-weight: 700; font-size: var(--t-s); white-space: nowrap; }
.chutes .attente-claude { margin: 0; }

/* Poignée sous les cartes du bandeau (David, 28/10) : glisser vers le haut donne 1 rangée, puis de petites cartes,
   puis plus de cartes ; la fiche du speak prend la place. Vers le bas, retour. Double-clic : 1 ou 2 rangées. */
.poignee-bande { display: none; }
@media (min-width: 761px) {
  .app.liste-haut .poignee-bande { display: block; grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 5; height: 12px; margin: -6px 0 -7px;
    cursor: row-resize; touch-action: none; }
  .app.liste-haut .poignee-bande::after { content: ""; position: absolute; left: 50%; top: 4px; width: 46px; height: 4px; margin-left: -23px; border-radius: 4px;
    background: color-mix(in srgb, var(--encre-2) 45%, transparent); transition: background .15s, width .15s, margin .15s; }
  .app.liste-haut .poignee-bande:hover::after, .app.liste-haut .poignee-bande.active::after, .app.liste-haut .poignee-bande:focus-visible::after {
    background: var(--accent); width: 72px; margin-left: -36px; }
  .app.liste-haut .poignee-bande:hover, .app.liste-haut .poignee-bande.active {
    background: linear-gradient(to bottom, transparent 5px, color-mix(in srgb, var(--accent) 45%, transparent) 5px 7px, transparent 7px); }
  .app.liste-haut .poignee-bande:focus-visible { outline: none; }
  body.redimension-h { cursor: row-resize; user-select: none; }
  body.redimension-h iframe { pointer-events: none; }
  /* Petites cartes : le titre seul, sur 2 lignes, plus étroites ; la couleur de la catégorie reste en bord de carte. */
  .app.bande-mini .col-liste .liste { grid-auto-columns: max-content; padding-bottom: 8px; }
  .app.bande-mini .liste .element, .app.bande-mini .liste .element.sans-image {
    width: 196px; min-height: 0; height: 42px; grid-template-rows: 1fr; padding: 3px 8px 3px 0; align-content: center; }
  .app.bande-mini .liste .element .titre { -webkit-line-clamp: 2; font-size: var(--t-xs); line-height: 1.25; grid-row: 1; }
  .app.bande-mini .liste .element .meta, .app.bande-mini .liste .element .etiquettes, .app.bande-mini .liste .element .vignette-zone { display: none; }
  .app.bande-mini .liste .element .actions-zone { bottom: auto; top: 50%; transform: translateY(-50%); }
  .app.bande-mini .liste .vide { width: 196px; padding: 6px 10px; }
}

/* Qui est en ligne (David, 28/10) : chacun côte à côte, son point vert qui clignote doucement tant que la liaison vit. */
.presence { gap: 12px; }
.presence .en-ligne { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.presence .en-ligne small { font-size: var(--t-xs); opacity: .75; margin-left: 2px; }
.presence .en-ligne i { width: 9px; height: 9px; border: 1px solid rgb(255 255 255 / 85%); background: #3ee08a; box-shadow: 0 0 0 0 rgb(62 224 138 / 55%); animation: clignote-en-ligne 1.6s ease-in-out infinite; }
@keyframes clignote-en-ligne {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 1px rgb(62 224 138 / 70%); }
  50% { opacity: .45; box-shadow: 0 0 0 0 rgb(62 224 138 / 0%); }
}
@media (prefers-reduced-motion: reduce) { .presence .en-ligne i { animation: none; box-shadow: 0 0 4px 1px rgb(62 224 138 / 60%); } }

/* Logo du logiciel (David, 28/10) : un clic dessus (administrateur) en choisit un autre. Un logo perso garde sa forme
   (pas de rond), à la hauteur du bandeau. */
.logo-bouton { display: inline-flex; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.logo-bouton:has(.logo-perso) { border-radius: 6px; }
.logo-bouton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.logo-bouton:hover img { filter: brightness(1.1); }
.marque img.logo-perso { width: auto; max-width: 150px; height: 34px; object-fit: contain; border-radius: 6px; box-shadow: none; }
.connexion .logo-connexion.logo-perso { width: auto; max-width: 260px; height: 84px; object-fit: contain; border-radius: 10px; box-shadow: none; }
.apercu-logo { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: var(--ombre); }
.apercu-logo.logo-perso { width: auto; max-width: 300px; object-fit: contain; border-radius: 10px; box-shadow: none; padding: 10px; background: var(--aube); }
@media (max-width: 760px) { .marque img.logo-perso { height: 30px; max-width: 110px; } }
.sujet-retour { margin: 0; }
/* ‹ jour › du conducteur (David, 28/10) */
.cond-jour { display: flex; align-items: center; gap: 4px; margin-left: -6px; }
.cond-jour .fleche-cond { padding: 2px 9px; font-size: 1.15rem; line-height: 1; border-color: transparent; }
.cond-jour .fleche-cond:not([disabled]):hover { border-color: var(--trait); background: var(--accent-doux); }
/* Le séparateur d'un jour garde une marge à gauche : la flèche ‹ du bandeau s'y pose sans cacher son texte. */
@media (min-width: 761px) {
  .app.liste-haut .liste .sous-titre, .app.liste-haut .liste .sous-titre.jour-a-venir { padding-left: 44px; }
}
.fiche-sujet .qui-ecrit-sujet { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: var(--t-s); }
.fiche-sujet .qui-ecrit-sujet label { display: inline-flex; gap: 6px; align-items: center; }
/* Les jeux repérés d'un coup d'œil dans le conducteur (David, 28/10 : « que les jeux », puis « plutôt que violet, une
   couleur verte clair pastel ») : un fond vert tendre ; la ligne ouverte garde en plus un liseré. */
:root { --vert-jeu: #5CC98A; }
.cond-el.cond-jeu { background: color-mix(in srgb, var(--vert-jeu) 22%, var(--surface)); }
.cond-el.cond-jeu:hover { background: color-mix(in srgb, var(--vert-jeu) 30%, var(--surface)); }
.cond-el[aria-current="true"] { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.cond-el.cond-jeu[aria-current="true"] { background: color-mix(in srgb, var(--vert-jeu) 34%, var(--surface)); }
/* Colonne de gauche d'une fiche : rien ne dépasse sur la colonne principale quand la place manque (David, 28/10) :
   menus et champs à la largeur de la colonne, boutons qui passent à la ligne. */
@media (min-width: 761px) {
  .fiche-cote > *, .fiche-cote .ligne-outils > *, .fiche-cote .actions > * { min-width: 0; max-width: 100%; }
  .fiche-cote select, .fiche-cote input:not([type="checkbox"]):not([type="radio"]):not([type="number"]) { max-width: 100%; min-width: 0; }
  .fiche-cote .fiche-tete select { width: 100%; }
  .fiche-cote .btn { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .fiche-cote .actions, .fiche-cote .ligne-outils, .fiche-cote .manche-reglages .actions { flex-wrap: wrap; }
  .fiche-cote .regles, .fiche-cote .sujet-retour .lien-cat { max-width: 100%; overflow-wrap: anywhere; }
  .fiche-cote .manche-mot { flex-wrap: wrap; }
  .fiche-cote .manche-mot input { flex: 1 1 140px; }
}
/* Menu « ＋ Ajouter au conducteur du… » (David, 28/10) : un bouton qui s'ouvre sur les prochaines émissions. */
select.ajout-jour { cursor: pointer; max-width: 100%; padding-right: 26px; }
select.ajout-jour option { color: var(--encre); background: var(--surface); font-weight: 400; }
/* Le mix du jour en rouge tendre dans le conducteur (David, 28/10). */
:root { --rouge-mix: #E5484D; }
.cond-el.cond-mix { background: color-mix(in srgb, var(--rouge-mix) 17%, var(--surface)); }
.cond-el.cond-mix:hover { background: color-mix(in srgb, var(--rouge-mix) 24%, var(--surface)); }
.cond-el.cond-mix[aria-current="true"] { background: color-mix(in srgb, var(--rouge-mix) 30%, var(--surface)); }
/* Les éléments qui vont ensemble (un jeu et l'info dont il est né, une suite et son speak) : bleu pastel (David, 28/10). */
:root { --bleu-lie: #5B9BE6; }
.cond-el.cond-lie { background: color-mix(in srgb, var(--bleu-lie) 20%, var(--surface)); }
.cond-el.cond-lie:hover { background: color-mix(in srgb, var(--bleu-lie) 28%, var(--surface)); }
.cond-el.cond-lie[aria-current="true"] { background: color-mix(in srgb, var(--bleu-lie) 34%, var(--surface)); }
.etiquette.avec-lien { background: color-mix(in srgb, var(--bleu-lie) 30%, var(--surface)); color: inherit; border-color: transparent; }
/* Glisser-déposer dans le conducteur : la ligne cible montre l'endroit exact où la ligne arrive. */
.cond-el.cible { box-shadow: inset 0 3px 0 var(--accent); }
.cond-el.cible-fin { box-shadow: inset 0 -3px 0 var(--accent); }
/* Studio étroit : la vidéo repasse au-dessus, en bandeau. */
/* La barre entre la colonne de gauche de la fiche et le texte du speak (David, 29/10) : fine, une prise au milieu,
   couleur du site au survol ; cachée quand la fiche est sur une seule colonne. */
.fiche-separateur { display: none; }
@container (min-width: 440px) {
  .fiche-deux { grid-template-columns: min(var(--fiche-cote, clamp(240px, 28%, 330px)), 60%) 12px minmax(0, 1fr); column-gap: 6px; }
  .fiche-separateur { display: block; align-self: stretch; position: relative; cursor: col-resize; touch-action: none; border-radius: 4px; min-height: 120px; }
  .fiche-separateur::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0; border-radius: 2px; background: var(--trait); }
  .fiche-separateur::after { content: ""; position: absolute; left: 50%; top: 80px; width: 6px; height: 34px; translate: -50% 0; border-radius: 3px; background: var(--surface); border: 1px solid var(--trait); }
  .fiche-separateur:hover::before, .redim-fiche .fiche-separateur::before, .fiche-separateur:focus-visible::before { background: var(--accent); }
  .fiche-separateur:hover::after, .redim-fiche .fiche-separateur::after { border-color: var(--accent); }
  .fiche-separateur:focus-visible { outline: none; }
}
@container (min-width: 440px) and (max-width: 779px) {
  .fiche-deux { grid-template-columns: min(var(--fiche-cote, clamp(150px, 32%, 240px)), 60%) 12px minmax(0, 1fr); column-gap: 4px; }
}
body.redim-fiche, body.redim-fiche * { cursor: col-resize !important; user-select: none; }
/* La colonne de gauche cachée (David, 29/10 : « faire disparaître totalement le menu de gauche ») : seul le speak
   reste, la barre aussi (pour la ramener). Le petit bouton ‹ › sur la barre cache ou montre la colonne. */
@container (min-width: 440px) {
  .fiche-separateur .fiche-replier { position: absolute; left: 50%; top: 22px; translate: -50% 0; z-index: 1; width: 20px; height: 26px; padding: 0;
    border: 1px solid var(--trait); border-radius: 6px; background: var(--surface); color: var(--encre-2); font: 700 13px/1 var(--f-texte); cursor: pointer; }
  .fiche-separateur .fiche-replier::before { content: "‹"; }
  .fiche-separateur .fiche-replier:hover { border-color: var(--accent); color: var(--accent); }
  .fiche-cote-cachee .fiche-deux { grid-template-columns: 12px minmax(0, 1fr); column-gap: 10px; }
  .fiche-cote-cachee .fiche-cote { display: none; }
  .fiche-cote-cachee .fiche-separateur .fiche-replier::before { content: "›"; }
}
/* 🔗 Lier deux éléments du conducteur à la main (David, 29/10) : un petit menu des autres lignes, cochées si liées. */
.menu-lien { position: fixed; z-index: 60; width: min(420px, calc(100vw - 16px)); max-height: min(60vh, 460px); overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; box-shadow: var(--ombre); display: grid; gap: 2px; }
.menu-lien-titre { margin: 4px 8px 6px; font: 600 var(--t-xs)/1.3 var(--f-texte); color: var(--encre-2); }
.menu-lien button { display: grid; grid-template-columns: 22px auto 1fr; gap: 6px; align-items: baseline; text-align: left; padding: 6px 8px;
  border: 0; border-radius: 6px; background: none; color: var(--encre); font: inherit; font-size: var(--t-s); cursor: pointer; }
.menu-lien button:hover, .menu-lien button:focus-visible { background: var(--accent-doux); outline: none; }
.menu-lien button[aria-checked="true"] { background: color-mix(in srgb, #4f8fe0 14%, var(--surface)); }
.menu-lien button b { font-variant-numeric: tabular-nums; color: var(--encre-2); }
