/* Prépa matinale — feuille de style
   Disposition : outil en 3 colonnes (liste · fiche · conducteur), une seule colonne au téléphone. */
:root {
  --fond: #f3f4f1;          /* papier légèrement vert-gris */
  --surface: #ffffff;
  --surface-2: #e9ebe6;
  --encre: #1c2420;
  --encre-2: #56615b;
  --trait: #d5d9d2;
  --accent: #c4176c;        /* rose FC Radio, pour les actions principales */
  --accent-doux: #fbe7f1;
  --accent-encre: #ffffff;
  --alerte: #a8620a;
  --alerte-fond: #fdf1dc;
  --ok: #1f7a4d;
  --ok-fond: #e1f3e8;
  --info-fond: #eceef0;
  --ombre: 0 1px 2px rgb(28 36 32 / 8%), 0 4px 16px rgb(28 36 32 / 6%);

  --f-titre: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-texte: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --f-chiffre: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --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: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #141917; --surface: #1c2220; --surface-2: #262e2b; --encre: #e7ece9; --encre-2: #9aa59f;
    --trait: #333d39; --accent: #f0569f; --accent-doux: #3b1a2b; --accent-encre: #1a0d14;
    --alerte: #f0b35b; --alerte-fond: #3a2a12; --ok: #6fd39c; --ok-fond: #15352a; --info-fond: #252c29;
    --ombre: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #141917; --surface: #1c2220; --surface-2: #262e2b; --encre: #e7ece9; --encre-2: #9aa59f;
  --trait: #333d39; --accent: #f0569f; --accent-doux: #3b1a2b; --accent-encre: #1a0d14;
  --alerte: #f0b35b; --alerte-fond: #3a2a12; --ok: #6fd39c; --ok-fond: #15352a; --info-fond: #252c29;
  --ombre: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
  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; }

/* ---------- 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; }
.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 {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 0 10px; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--trait); cursor: pointer; align-items: start;
}
.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 / span 2; display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--encre-2); margin-top: 3px; }
.element .droite { display: flex; gap: 4px; align-items: center; }
.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); }
.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; }
.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: 30; }
.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é ---------- */
@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; }
}
.bouton-conducteur { display: none !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; }
  .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; }
.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); } }
