/* Marketing OS : la feuille de style de l'application (voie A, A-3).
   Les jetons viennent de la maquette v3 (maquette_app/gen_v3/lib.py) : fond, carte, texte, filets,
   et l'Orange signal #FF7A2F réservé au bouton principal (Encre #1B1B1F dessus, 6,6 pour 1).
   Archivo (licence OFL) est servie par le VPS. Le thème clair est celui par défaut ; le sombre suit
   le téléphone. Aucun style en ligne dans les gabarits : la politique de contenu n'autorise que 'self'. */

@font-face {
  font-family: "Archivo";
  src: url("/static/polices/archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --orange: #FF7A2F;
  --encre: #1B1B1F;
  --bg: #F2F2F4;
  --card: #FFFFFF;
  --text: #1B1B1F;
  --sub: #5E5E66;
  --sep: #E1E1E6;
  --fill: #E8E8EC;
  --sel-bg: #1B1B1F;
  --sel-text: #FFFFFF;
  --focus: #1B1B1F;
  --bar: #FFFFFF;
  --hair: #D9D9DE;
  --marge: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1F;
    --text: #F2F2F4;
    --sub: #A2A2AB;
    --sep: #2E2E33;
    --fill: #2C2C31;
    --sel-bg: #F2F2F4;
    --sel-text: #1B1B1F;
    --focus: #F2F2F4;
    --bar: #161618;
    --hair: #2E2E33;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-stretch: 100%;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
h1, h2, p { margin: 0; }

button, input, select { font: inherit; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- la page ---------- */

.ecran {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
}

.contenu {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
  padding: 16px var(--marge) 20px;
}

.contenu-large { gap: 22px; padding-top: 28px; }

.haut {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
}

.titre { display: flex; flex-direction: column; gap: 4px; }

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.sous-titre { font-size: 16px; color: var(--sub); line-height: 1.4; }
.sur-titre { font-size: 15px; font-weight: 500; color: var(--sub); }
.intro { font-size: 16px; line-height: 1.5; }
.petit { font-size: 14px; color: var(--sub); }
.centre { text-align: center; }
.espace { flex-grow: 1; }

/* ---------- boutons ---------- */

.bprim, .bsec, .btxt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.bprim, .bsec { width: 100%; }

.principal { display: flex; flex-direction: column; flex-grow: 1; }

.bprim {
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--encre);
  font-size: 17px;
}

.bsec {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--text);
  font-size: 17px;
}

.bsec-petit { width: auto; height: 44px; padding: 0 12px; font-size: 15px; }

.btxt {
  height: 44px;
  min-width: 44px;
  padding: 0 8px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.bprim:disabled, .bsec:disabled { opacity: .55; cursor: default; }

.haut-retour { display: flex; align-items: center; min-height: 44px; }

.retour {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding-right: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* ---------- cartes et listes groupées ---------- */

.carte {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px 16px;
}

.carte-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.carte-tete h2 { font-size: 17px; font-weight: 600; }

.bloc { display: flex; flex-direction: column; gap: 8px; }

.bloc > h2 {
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
}

.pied-bloc { padding: 0 4px; font-size: 13px; color: var(--sub); line-height: 1.4; }

.groupe {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rangee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px 10px 16px;
  color: var(--text);
  text-decoration: none;
}

.rangee + .rangee::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 0;
  height: 1px;
  background: var(--sep);
}

.rangee-icone + .rangee-icone::before { left: 60px; }

.rangee-texte { display: flex; flex-direction: column; flex-grow: 1; gap: 2px; min-width: 0; }
.rangee-titre { font-size: 16px; font-weight: 500; line-height: 1.3; }
.rangee-detail { font-size: 14px; color: var(--sub); line-height: 1.35; }
.rangee-valeur { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 15px; color: var(--sub); }
.rangee a.rangee-lien { color: inherit; text-decoration: none; }

.tuile {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--fill);
}

.numero {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1.5px solid var(--text);
  border-radius: 14px;
  font-size: 14px; font-weight: 600; line-height: 1;
}

.pastille {
  display: flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--sel-bg); color: var(--sel-text);
  font-size: 14px; font-weight: 700; line-height: 1;
}

.marque {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--sub);
  border-radius: 6px;
  color: var(--sub);
  font-size: 12px; font-weight: 600; line-height: 1.2;
}

/* ---------- l'accueil : les publications ---------- */

.vignette {
  display: block;
  width: 72px; height: 90px; flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fill);
}

.vignette-vide {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 90px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--sub);
}

.rangee-publication { align-items: flex-start; min-height: 106px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- l'écran du lien ---------- */

.hero {
  display: block;
  width: 100%; height: 300px;
  object-fit: cover; object-position: 58% 50%;
}

.hero-vide {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 200px;
  background: var(--orange);
}

.corps-lien { display: flex; flex-direction: column; flex-grow: 1; gap: 14px; padding: 20px var(--marge); }

.jim { display: flex; align-items: center; gap: 12px; }

.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 16px;
  background: var(--sel-bg); color: var(--sel-text);
  font-size: 16px; font-weight: 600; line-height: 1;
}

.bandeau {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: var(--card);
  font-size: 14px; line-height: 1.4;
}

.bandeau p { flex-grow: 1; }

.icone-app {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 13px;
  background: var(--orange); color: var(--encre);
  font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -0.5px;
}

.icone-app-ligne { display: flex; align-items: center; gap: 14px; }
.icone-app-ligne > div { display: flex; flex-direction: column; gap: 2px; }
.icone-app-nom { font-size: 16px; font-weight: 600; }

/* ---------- les formulaires ---------- */

.formulaire { display: flex; flex-direction: column; gap: 14px; }

.champ {
  display: flex; flex-direction: column; gap: 6px;
}

.champ label, .champ .etiquette { font-size: 15px; font-weight: 600; }

.champ input[type="text"], .champ input[type="number"], .champ select {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
}

.champ-code input {
  height: 64px; text-align: center;
  font-size: 32px; font-weight: 600; letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
}

.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.case input { width: 22px; height: 22px; accent-color: var(--sel-bg); }

.alerte {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--card);
  font-size: 15px; line-height: 1.4;
}

.alerte .icone { flex-shrink: 0; margin-top: 1px; }
.alerte-ok { border-color: var(--text); }

/* ---------- la barre d'onglets ---------- */

.onglets {
  position: sticky; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  min-height: 84px;
  padding: 6px 10px calc(22px + env(safe-area-inset-bottom, 0px) - 12px);
  background: var(--bar);
  border-top: 1px solid var(--hair);
}

.onglet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 96px; height: 56px;
  color: var(--sub);
  font-size: 12px; font-weight: 500;
  text-decoration: none;
}

.onglet .pilule {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 30px; border-radius: 15px;
}

.onglet-pastille {
  position: absolute; top: -9px; right: 0;
  display: flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: var(--sel-bg); color: var(--sel-text);
  font-size: 12px; font-weight: 700; line-height: 1;
}

.onglet[aria-current="page"] { color: var(--text); font-weight: 600; }
.onglet[aria-current="page"] .pilule { background: var(--fill); }

/* ---------- la notification (écran 6) ---------- */

.exemple-notification {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--hair);
}

.exemple-notification .icone-app { width: 40px; height: 40px; border-radius: 9px; font-size: 21px; }
.exemple-notification .corps { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; }
.exemple-notification .ligne { display: flex; justify-content: space-between; font-size: 14px; }
.exemple-notification .ligne span:last-child { color: var(--sub); }
.exemple-notification .titre-notif { font-size: 16px; font-weight: 600; }

.etat-notifications { font-size: 15px; line-height: 1.4; min-height: 22px; }

/* ---------- la console ---------- */

.code-gros {
  font-size: 44px; font-weight: 700; letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
}

.lien-gros {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 12px;
  background: var(--card);
  font-size: 14px;
}

.ligne-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.ligne-actions form { margin: 0; }

.cle-valeur { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.cle-valeur span:last-child { color: var(--sub); font-variant-numeric: tabular-nums; }

table.conso { width: 100%; border-collapse: collapse; font-size: 14px; }
table.conso th, table.conso td { padding: 6px 4px; text-align: right; font-variant-numeric: tabular-nums; }
table.conso th:first-child, table.conso td:first-child,
table.conso th:nth-child(2), table.conso td:nth-child(2) { text-align: left; }
table.conso th { font-weight: 600; color: var(--sub); border-bottom: 1px solid var(--sep); }

/* ---------- vague 2 : la semaine dans l'application (voie A) ---------- */

.bloc-titre { display: flex; flex-direction: column; gap: 4px; }
.entete-ecran { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entete-ecran h1 { min-width: 0; }
.jim-nom-bloc { display: flex; flex-direction: column; gap: 1px; }

.jim-pastille {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 44px; padding: 0 14px 0 6px;
  border-radius: 22px; background: var(--card);
  font-size: 16px; font-weight: 600;
}

.jim-pastille .avatar { width: 32px; height: 32px; }

.marque-ia {
  display: inline-block; padding: 1px 6px;
  border: 1px solid var(--sub); border-radius: 6px;
  color: var(--sub); font-size: 12px; font-weight: 600; line-height: 1.3;
}

.progression { display: flex; flex-direction: column; gap: 8px; }
.progression-etape { font-size: 15px; font-weight: 500; color: var(--sub); }
.progression-barres { display: flex; gap: 12px; }
.progression-barres span { flex: 1; height: 4px; border-radius: 2px; background: var(--fill); }
.progression-barres span.fait { background: var(--text); }

.jim-parle { display: flex; flex-direction: column; gap: 12px; }
.jim-parle .jim { align-items: center; }
.jim-nom { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }

h1.moyen { font-size: 26px; }
.question-titre { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; }

.formulaire-ecran { display: flex; flex-direction: column; flex-grow: 1; gap: 22px; }
.pied-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; display: block; }
.puce input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.puce span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border-radius: 22px; background: var(--fill);
  font-size: 16px; font-weight: 500; line-height: 1.2;
}
.puce input:checked + span { background: var(--sel-bg); color: var(--sel-text); }
.puce input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.puces-jours { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.puces-jours .puce { flex: 1; }
.puces-jours .puce span { min-width: 0; padding: 0 4px; font-size: 15px; }
.puces-heures { flex-wrap: nowrap; gap: 6px; }
.puces-heures .puce { flex: 1; }
.puces-heures .puce span { padding: 0 4px; font-size: 15px; }
.puces-deux { flex-wrap: nowrap; }
.puces-deux button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-text); }
.rangee .puces-deux { flex-shrink: 0; gap: 6px; }
.puces-deux .puce { flex: 1; }
.puces-deux .puce span { min-height: 48px; }

.heure-libre { display: none; }
.formulaire-ecran:has(#heure-autre:checked) .heure-libre { display: flex; }

.rubrique { display: flex; flex-direction: column; gap: 10px; }
.rubrique > h2, .rubrique > .etiquette { font-size: 17px; font-weight: 600; }
.rubrique .petit { margin-top: -6px; }

.champ-libre {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--hair); border-radius: 12px;
  background: var(--card); font-size: 16px; line-height: 1.4;
}
textarea.champ-libre { min-height: 84px; resize: vertical; }

.ligne-info {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 16px; background: var(--card);
}

.groupe-faits { padding: 0; }
.fait-ligne { display: block; }
.fait-ligne > summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 12px 10px 16px; list-style: none; cursor: pointer;
}
.fait-ligne > summary::-webkit-details-marker { display: none; }
.fait-ligne + .fait-ligne { border-top: 1px solid var(--sep); }
.fait-ligne .corriger { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px; }
.fait-ligne[open] > summary .icone { transform: rotate(90deg); }

.carte-publication { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px;
  border-radius: 16px; background: var(--card); }
.carte-publication .carte-tete { margin-bottom: 0; }
.vignettes { display: flex; gap: 10px; }
.vignettes .vignette-grande {
  display: block; flex: 1; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; background: var(--fill);
}
.vignettes .vignette-grande.vide {
  display: flex; align-items: center; justify-content: center; color: var(--sub);
}
.compteur { flex-shrink: 0; white-space: nowrap; font-size: 15px; color: var(--sub); }

.rangee-lien-complet { color: inherit; text-decoration: none; }

.barre-ecran {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
}
.barre-ecran .centre { display: flex; align-items: center; gap: 0; font-size: 16px; font-weight: 600; }
.barre-ecran .centre .btxt { min-width: 36px; padding: 0 6px; }
.barre-ecran form { margin: 0; }
.btxt-fort { font-weight: 700; }

.ligne-quand { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ligne-quand .quand { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.ligne-quand .forme { font-size: 15px; color: var(--sub); }

.cadre-media {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 16px; background: var(--fill);
}
.cadre-media img, .cadre-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cadre-media-vide { display: flex; align-items: center; justify-content: center; color: var(--sub); }

.texte-fil { font-size: 19px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.musique { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.35; }
.musique .icone { flex-shrink: 0; margin-top: 1px; }

.faits-utilises { display: flex; flex-direction: column; gap: 6px; }
.faits-utilises h2 { font-size: 15px; font-weight: 600; color: var(--sub); }
.faits-utilises li { list-style: none; font-size: 15px; color: var(--sub); line-height: 1.4; }
.faits-utilises ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.verifiee { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--sub); line-height: 1.4; }
.verifiee .icone { flex-shrink: 0; margin-top: 1px; }
.empreinte { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }

.actions-bas {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; gap: 12px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
.actions-bas form { flex: 1.7; margin: 0; display: flex; }
.actions-bas .bsec { flex: 1; }
.actions-bas .bprim { flex: 1; padding: 0 12px; }

.etat-pastille {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 14px; color: var(--sub);
}
.etat-pastille .icone { width: 18px; height: 18px; }

.bandeau-validation {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--text); border-radius: 16px; background: var(--card);
}
.bandeau-validation form { margin: 0; }

.carte-question { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
  background: var(--card); }
.carte-question h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.carte-question .preuve { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 10px;
  background: var(--fill); }
.carte-question .corps { display: flex; gap: 12px; align-items: flex-start; }
.carte-question .corps > div { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.reponses { display: flex; gap: 10px; flex-wrap: wrap; }
.reponses form { flex: 1; margin: 0; display: flex; }
.reponses .bsec { height: 48px; font-size: 16px; }
.libre-reponse > summary { cursor: pointer; font-size: 15px; color: var(--sub); min-height: 44px;
  display: flex; align-items: center; }
.libre-reponse form { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

.liste-genres { padding: 0; }
.genre { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 16px; }
.genre + .genre { border-top: 1px solid var(--sep); }
.genre input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.genre .rangee-texte { flex-grow: 1; }
.genre .coche { visibility: hidden; }
.genre input:checked ~ .coche { visibility: visible; }
.genre input:focus-visible ~ .rangee-texte { outline: 3px solid var(--focus); outline-offset: 4px;
  border-radius: 6px; }

.changements { padding: 0; }

.alerte-ok .icone { color: var(--text); }
.message { padding: 12px 14px; border: 1px solid var(--text); border-radius: 14px; background: var(--card);
  font-size: 15px; line-height: 1.4; }
.message-erreur { border-color: var(--sub); }

.reglage-rapide { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px;
  border-radius: 16px; background: var(--card); }
.reglage-rapide form { margin: 0; }
.faits-replies { margin: 0; }
.savoir > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 16px; list-style: none; cursor: pointer;
  border-radius: 16px; background: var(--card); font-size: 16px; font-weight: 500;
}
.savoir > summary::-webkit-details-marker { display: none; }
.savoir[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.savoir[open] > summary .icone { transform: rotate(90deg); }
.savoir .groupe { border-top-left-radius: 0; border-top-right-radius: 0; }
.rangee-fait { align-items: flex-start; }
.rangee-fait form { margin: 0; }
.btxt-discret { min-height: 44px; max-width: 112px; padding: 0 4px; font-size: 14px; font-weight: 500;
  line-height: 1.2; color: var(--sub); background: transparent; border: none; cursor: pointer;
  text-align: right; }

.console-semaine { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.console-semaine li { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.console-semaine ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- vague 2 bis (voie A) : les faits en clair, les sources repliées, le bandeau d'installation ---------- */

.faits-clairs { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fait-clair {
  list-style: none; display: flex; min-width: 0;
  font-size: 16px; line-height: 1.4; color: var(--text);
}
.fait-enonce { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fait-origine { flex: none; white-space: nowrap; color: var(--sub); }
.sources-repliees > summary {
  display: flex; align-items: center; min-height: 44px;
  list-style: none; cursor: pointer; font-size: 15px; color: var(--sub);
}
.sources-repliees > summary::-webkit-details-marker { display: none; }
.sources-repliees > summary::after { content: "+"; margin-left: 8px; font-size: 18px; }
.sources-repliees[open] > summary::after { content: "\2212"; }
.sources-liste { margin: 0; padding: 0 0 6px; display: flex; flex-direction: column; gap: 10px; }
.sources-liste li { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.source-fait { font-size: 15px; line-height: 1.35; color: var(--text); }
.source-detail { font-size: 14px; line-height: 1.35; color: var(--sub); }

.bandeau-installation { align-items: flex-start; }
.bandeau-installation .btxt { flex-shrink: 0; min-height: 44px; }

@media (min-width: 600px) {
  body { background: var(--bg); }
  .ecran { box-shadow: 0 0 0 1px var(--hair); }
}
