/* NKOSI Pilotage : charte 2026 « Marché Collage » (vert, mangue, crème, kraft, encre ; Bungee, Bricolage Grotesque, Shantell Sans). */
@font-face { font-family: "Bungee"; src: url("../polices/nkosi-bungee-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../polices/nkosi-bricolage-texte-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Bricolage Titres"; src: url("../polices/nkosi-bricolage-titres-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Shantell"; src: url("../polices/nkosi-shantell-sans-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --vert: #055B49; --vert-clair: #0B7A62; --vert-pale: #E3EFE9; --mangue: #F29E24; --mangue-pale: #FCEBD0;
  --creme: #FFF9F0; --kraft: #E6D3B3; --encre: #231F1C; --gris: #6E6560; --trait: #E9DFCF;
  --fond: var(--creme); --carte: #FFFFFF; --texte: var(--encre); --texte-doux: var(--gris);
  --rouge: #C2402F; --rouge-pale: #F8E1DC; --orange: #D9821A; --orange-pale: #FBEBD3; --vert-etat: #1E8A5A; --vert-etat-pale: #DFF1E7;
  --ombre: 0 1px 2px rgba(35, 31, 28, .06), 0 4px 14px rgba(35, 31, 28, .05);
  --rayon: 14px;
  --c1: #055B49; --c2: #F29E24; --c3: #2F6F8F; --c4: #C2563F; --c5: #B8925A; --c6: #7A4E7E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #171412; --carte: #221E1B; --texte: #F4ECE0; --texte-doux: #B5AA9F; --trait: #3A332D; --vert-pale: #16342C;
    --mangue-pale: #3A2C16; --rouge-pale: #3D1F1A; --orange-pale: #3A2B17; --vert-etat-pale: #17322A; --kraft: #5A4B36;
    --c1: #3FB592; --ombre: 0 1px 2px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --fond: #171412; --carte: #221E1B; --texte: #F4ECE0; --texte-doux: #B5AA9F; --trait: #3A332D; --vert-pale: #16342C;
  --mangue-pale: #3A2C16; --rouge-pale: #3D1F1A; --orange-pale: #3A2B17; --vert-etat-pale: #17322A; --kraft: #5A4B36; --c1: #3FB592;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fond); color: var(--texte); font: 15px/1.45 "Bricolage", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.cache { display: none !important; }

/* Mise en page */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.barre-laterale { background: var(--vert); color: var(--creme); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.marque { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.marque .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--creme); color: var(--vert); display: grid; place-items: center; font-family: "Bungee"; font-size: 18px; }
.marque .nom { font-family: "Bungee"; font-size: 15px; letter-spacing: .5px; line-height: 1.1; }
.marque .nom small { display: block; font-family: "Shantell"; font-size: 12px; color: var(--mangue); letter-spacing: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: rgba(255,249,240,.86); font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.actif { background: var(--creme); color: var(--vert); }
.nav a .pastille { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 700; display: grid; place-items: center; background: var(--rouge); color: #fff; }
.nav a.actif .pastille { background: var(--rouge); }
.nav svg { width: 19px; height: 19px; flex: none; }
.pied-lateral { margin-top: auto; padding: 12px 8px 0; font-size: 12px; color: rgba(255,249,240,.65); border-top: 1px solid rgba(255,255,255,.12); }
.pied-lateral button { background: none; border: 0; color: inherit; text-decoration: underline; padding: 0; }

.principal { min-width: 0; padding: 0 28px 48px; }
.entete { position: sticky; top: 0; z-index: 5; background: var(--fond); display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.entete h1 { font-family: "Bungee"; font-weight: 400; font-size: 24px; margin: 0; color: var(--vert); letter-spacing: .3px; }
:root[data-theme="dark"] .entete h1 { color: var(--c1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entete h1 { color: var(--c1); } }
.entete .sous-titre { color: var(--texte-doux); font-size: 13px; }
.entete .titres { margin-right: auto; }
.periodes { display: flex; background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 3px; }
.periodes button { border: 0; background: none; padding: 6px 10px; border-radius: 7px; color: var(--texte-doux); font-size: 13px; }
.periodes button.actif { background: var(--vert); color: var(--creme); }
.bouton { border: 1px solid var(--trait); background: var(--carte); color: var(--texte); padding: 7px 12px; border-radius: 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.bouton:hover { border-color: var(--vert); }
.bouton.principal-b { background: var(--vert); color: var(--creme); border-color: var(--vert); }
.bouton kbd { font: 11px "Bricolage"; border: 1px solid var(--trait); border-radius: 5px; padding: 0 5px; color: var(--texte-doux); }
.fraicheur { font-size: 12px; color: var(--texte-doux); display: inline-flex; align-items: center; gap: 6px; }
.point { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--gris); flex: none; }
.point.vert { background: var(--vert-etat); } .point.orange { background: var(--orange); } .point.rouge { background: var(--rouge); } .point.gris { background: #B7ADA3; }

/* Alertes */
.section-titre { font-family: "Bricolage Titres"; font-weight: 700; font-size: 17px; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.section-titre small { font-family: "Shantell"; font-weight: 600; color: var(--mangue); font-size: 13px; }
.alertes { display: grid; gap: 8px; margin-top: 16px; }
.alerte { display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: start; background: var(--carte); border-radius: 12px; padding: 12px 14px 12px 0; box-shadow: var(--ombre); overflow: hidden; }
.alerte::before { content: ""; align-self: stretch; margin: -12px 0; background: var(--gris); }
.alerte.rouge::before { background: var(--rouge); } .alerte.orange::before { background: var(--orange); } .alerte.info::before { background: var(--c3); }
.alerte .texte { font-weight: 600; }
.alerte .action { color: var(--texte-doux); font-size: 13px; margin-top: 2px; }
.alerte .rub { font-size: 12px; color: var(--texte-doux); }
.alerte .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Tuiles */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; margin-top: 18px; }
.tuile { background: var(--carte); border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre); position: relative; border-top: 4px solid transparent; min-height: 118px; display: flex; flex-direction: column; gap: 4px; }
.tuile.rouge { border-top-color: var(--rouge); } .tuile.orange { border-top-color: var(--orange); } .tuile.vert { border-top-color: var(--vert-etat); }
.tuile .libelle { font-size: 13px; color: var(--texte-doux); display: flex; gap: 6px; align-items: flex-start; }
.tuile .valeur { font-family: "Bricolage Titres"; font-weight: 800; font-size: 27px; letter-spacing: -.3px; line-height: 1.15; }
.tuile .compare { font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--texte-doux); }
.tuile .var { font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.var.bon { color: var(--vert-etat); background: var(--vert-etat-pale); } .var.mauvais { color: var(--rouge); background: var(--rouge-pale); } .var.neutre { color: var(--texte-doux); background: var(--trait); }
.tuile .detail { font-size: 12px; color: var(--texte-doux); }
.tuile .source { margin-top: auto; font-size: 11px; color: var(--texte-doux); display: flex; align-items: center; gap: 5px; padding-top: 6px; }
.aide { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--trait); font-size: 10px; color: var(--texte-doux); cursor: help; flex: none; position: relative; }
.aide:hover::after, .aide:focus::after { content: attr(data-aide); position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 250px; background: var(--encre); color: var(--creme); padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; z-index: 20; font-weight: 400; text-align: left; }

/* Blocs */
.blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.bloc { background: var(--carte); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre); min-width: 0; }
.bloc.l2 { grid-column: span 2; }
.bloc h3 { margin: 0 0 10px; font-family: "Bricolage Titres"; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.bloc h3 .source { margin-left: auto; font: 400 11px "Bricolage"; color: var(--texte-doux); display: inline-flex; gap: 5px; align-items: center; }
.bloc .vide { color: var(--texte-doux); font-size: 13px; padding: 10px 0; }
.legende { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--texte-doux); margin-top: 6px; }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.graphe svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphe text { fill: var(--texte-doux); font-size: 11px; font-family: "Bricolage"; }
.graphe .axe { stroke: var(--trait); }
.graphe .objectif { stroke: var(--mangue); stroke-dasharray: 5 4; stroke-width: 1.5; }
.infobulle { position: fixed; pointer-events: none; background: var(--encre); color: var(--creme); font-size: 12px; padding: 7px 9px; border-radius: 8px; z-index: 50; white-space: nowrap; }
.tableau-defile { overflow-x: auto; max-height: 460px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--texte-doux); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--trait); position: sticky; top: 0; background: var(--carte); cursor: pointer; white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid var(--trait); vertical-align: top; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: var(--vert-pale); }
td .lien-ext { color: var(--vert); text-decoration: none; font-weight: 600; }
td details summary { cursor: pointer; color: var(--texte-doux); font-size: 12px; }
.mini { border: 1px solid var(--trait); background: none; border-radius: 6px; font-size: 11px; padding: 2px 6px; color: var(--texte-doux); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.liste li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.liste li .point { margin-top: 6px; }
.liste .d { font-size: 12px; color: var(--texte-doux); }
.huit { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.huit .c { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; border-left: 5px solid var(--gris); }
.huit .c.vert { border-left-color: var(--vert-etat); } .huit .c.orange { border-left-color: var(--orange); } .huit .c.rouge { border-left-color: var(--rouge); }
.huit .l { font-size: 12px; color: var(--texte-doux); } .huit .v { font-weight: 700; margin: 2px 0; } .huit .a { font-size: 12px; color: var(--texte-doux); }
.note { margin-top: 12px; font-size: 12px; color: var(--texte-doux); }

/* Accueil */
.decider { margin-top: 14px; background: var(--carte); border-radius: var(--rayon); padding: 6px 16px 14px; box-shadow: var(--ombre); border: 2px solid var(--mangue-pale); }
.decider .section-titre { margin-top: 12px; }
.compteur { font-family: "Bungee"; color: var(--rouge); }

/* Palette de commandes (Cmd+K) */
.voile { position: fixed; inset: 0; background: rgba(35,31,28,.45); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.palette { width: min(640px, 92vw); background: var(--carte); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--trait); padding: 16px 18px; font: 17px "Bricolage"; background: var(--carte); color: var(--texte); outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.palette li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.palette li.sel { background: var(--vert-pale); }
.palette li .t { font-weight: 600; } .palette li .d { font-size: 12px; color: var(--texte-doux); }
.palette li .type { font: 600 11px "Shantell"; color: var(--mangue); min-width: 62px; }

/* Chargement et erreurs */
.chargement { padding: 60px 0; text-align: center; color: var(--texte-doux); font-family: "Shantell"; }
.erreur-page { background: var(--rouge-pale); color: var(--rouge); padding: 14px; border-radius: 12px; margin-top: 18px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--encre); color: var(--creme); padding: 10px 14px; border-radius: 10px; font-size: 13px; z-index: 70; }

/* Écrans étroits */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .barre-laterale { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; }
  .marque { padding: 0 6px 0 0; } .marque .nom small { display: none; }
  .nav { display: flex; gap: 4px; } .nav a { white-space: nowrap; padding: 7px 9px; }
  .pied-lateral { display: none; }
  .principal { padding: 0 16px 40px; }
  .blocs { grid-template-columns: 1fr; } .bloc.l2 { grid-column: auto; }
  .tuile .valeur { font-size: 23px; }
}

/* Connexion */
.page-connexion { min-height: 100vh; display: grid; place-items: center; background: var(--vert); padding: 16px; }
.carte-connexion { background: var(--creme); color: var(--encre); border-radius: 20px; padding: 36px 32px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.carte-connexion .logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; background: var(--vert); color: var(--creme); display: grid; place-items: center; font-family: "Bungee"; font-size: 30px; }
.carte-connexion h1 { font-family: "Bungee"; font-weight: 400; color: var(--vert); font-size: 24px; margin: 0 0 6px; }
.carte-connexion p { color: var(--gris); margin: 0 0 22px; }
.carte-connexion .bouton { justify-content: center; width: 100%; padding: 12px; font-size: 15px; background: var(--vert); color: var(--creme); border: 0; }
.carte-connexion .refus { background: var(--rouge-pale); color: var(--rouge); border-radius: 10px; padding: 10px; margin-bottom: 16px; font-size: 14px; }
.anneau { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.anneau .disque { width: 170px; height: 170px; flex: none; }
.anneau .total { font-family: "Bricolage Titres"; font-weight: 800; font-size: 18px; fill: var(--texte); }
.legende-anneau { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 6px; flex: 1; min-width: 160px; }
.legende-anneau li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.legende-anneau i { width: 12px; height: 12px; border-radius: 3px; }
.legende-anneau b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--texte-doux); }
.graphe .axe.zero { stroke: var(--texte-doux); stroke-width: 1.2; }
@media (max-width: 640px) {
  .alerte { grid-template-columns: 6px 1fr; }
  .alerte .actions { grid-column: 2; justify-content: flex-start; }
  .entete { padding: 12px 0 10px; }
  .entete h1 { font-size: 20px; }
  .periodes { overflow-x: auto; max-width: 100%; }
  .periodes button { white-space: nowrap; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tuile { padding: 10px 12px; min-height: 0; }
  .tuile .valeur { font-size: 20px; }
}

/* --- Navigation par groupes ------------------------------------------------------------------- */
.nav-groupe { font: 600 11px "Shantell"; color: var(--mangue); letter-spacing: .4px; text-transform: uppercase; padding: 12px 10px 4px; }
.nav-groupe:first-child { padding-top: 0; }
@media (max-width: 980px) { .nav-groupe { display: none; } }

/* --- En-tête : période et dates libres ------------------------------------------------------------ */
.outils-entete { display: flex; gap: 8px; }
.barre-periode { flex-basis: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dates { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-doux); background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 3px 6px; }
.dates.actif { border-color: var(--vert); }
.dates input, .filtres select, .filtres input, .plus-tard input, .consigne, .recherche, .filtre-table {
  font: 13px "Bricolage"; color: var(--texte); background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; padding: 6px 8px; }
.dates .bouton { padding: 4px 10px; }

/* --- Claude : synthèse, commentaires, recommandations ---------------------------------------------------- */
.zone-synthese { margin-top: 14px; }
.synthese { display: flex; gap: 10px; align-items: flex-start; background: var(--mangue-pale); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.synthese svg { color: var(--mangue); flex: none; margin-top: 2px; }
.commentaire { font-size: 12.5px; line-height: 1.45; color: var(--texte); background: var(--mangue-pale); border-radius: 8px; padding: 7px 9px; margin-top: 6px; }
.commentaire::before { content: "Claude · "; font: 600 11px "Shantell"; color: var(--mangue); }
.bloc > .commentaire { margin-top: 10px; }
.chargement-petit { font-size: 13px; color: var(--texte-doux); display: inline-flex; gap: 6px; align-items: center; font-family: "Shantell"; }
.recos h3 svg { color: var(--mangue); }
.recommandations { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.recommandations li { line-height: 1.45; }
.reco-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }

/* --- Centre des décisions ----------------------------------------------------------------------------------- */
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.puce { border: 1px solid var(--trait); background: var(--carte); color: var(--texte); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.puce.actif { background: var(--vert); border-color: var(--vert); color: var(--creme); }
.puce .pastille { background: var(--rouge); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; font-weight: 700; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filtres .recherche { flex: 1; min-width: 200px; }
.groupe-titre { font-family: "Bricolage Titres"; font-weight: 700; margin: 18px 0 8px; color: var(--texte-doux); font-size: 14px; }
.sujets { display: grid; gap: 10px; }
.sujet { background: var(--carte); border-radius: 12px; box-shadow: var(--ombre); padding: 12px 14px; border-left: 5px solid #B7ADA3; display: grid; gap: 8px; }
.sujet.rouge { border-left-color: var(--rouge); } .sujet.orange { border-left-color: var(--orange); }
.sujet.regle { opacity: .6; }
.sujet-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sujet-titre { font-weight: 700; }
.sujet-meta { font-size: 12px; color: var(--texte-doux); margin-left: auto; }
.code { font: 700 12px "Bricolage"; background: var(--vert); color: var(--creme); border-radius: 6px; padding: 2px 7px; }
.sujet-resume { font-size: 13.5px; color: var(--texte); white-space: pre-line; max-height: 7.5em; overflow: hidden; }
.sujet-reco { font-size: 13px; background: var(--vert-pale); border-radius: 8px; padding: 7px 9px; }
.rangee-boutons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bouton.choix { max-width: 100%; text-align: left; }
.bouton.choix b { background: var(--mangue); color: var(--encre); border-radius: 5px; padding: 0 6px; }
.bouton.danger { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.rangee-consigne { display: flex; gap: 6px; }
.rangee-consigne .consigne { flex: 1; }
.plus-tard { display: inline-flex; gap: 4px; align-items: center; }
.barre-selection { position: sticky; top: 90px; z-index: 4; display: flex; gap: 10px; align-items: center; background: var(--encre); color: var(--creme); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.barre-selection .bouton { border-color: transparent; }
.filtre-table { width: 100%; margin-bottom: 6px; }

/* --- Fenêtres ------------------------------------------------------------------------------------------------------ */
.fenetre { width: min(720px, 94vw); max-height: 86vh; overflow: auto; background: var(--carte); color: var(--texte); border-radius: 16px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fenetre h2 { font-family: "Bungee"; font-weight: 400; color: var(--vert); font-size: 18px; margin: 0 0 12px; }
.fenetre-corps p { margin: 6px 0; }
.fenetre-pied { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.fenetre code { background: var(--vert-pale); padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.resume-section { margin: 12px 0; }
.resume-titre { font: 600 12px "Shantell"; color: var(--mangue); margin-bottom: 3px; }
.resume-section ul { margin: 0; padding-left: 18px; }
.prompt { width: 100%; font: 12.5px/1.45 ui-monospace, Menlo, monospace; background: var(--fond); color: var(--texte); border: 1px solid var(--trait); border-radius: 10px; padding: 10px; margin: 8px 0; }
.plan { border: 2px solid var(--rouge); border-radius: 10px; padding: 10px; margin-top: 10px; }
.plan pre { white-space: pre-wrap; font-size: 12.5px; }
.d { font-size: 12px; color: var(--texte-doux); }

/* --- SAV intégré ------------------------------------------------------------------------------------------------------ */
.cadre { width: 100%; height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--trait); border-radius: 14px; margin-top: 14px; background: #fff; }

/* --- Page « À valider » --------------------------------------------------------------------------------------- */
.apercus { display: grid; gap: 8px; }
.ligne-apercu { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; }
.ligne-apercu.programme, .ligne-apercu.valide { opacity: .6; cursor: default; }
.ligne-apercu input { margin-top: 4px; }
.apercu { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.apercu img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; background: var(--trait); }
.apercu-titre { font-weight: 700; }
.apercu-texte { font-size: 13px; white-space: pre-line; max-height: 6em; overflow: hidden; margin-top: 4px; }
@media (max-width: 640px) { .apercu img { width: 64px; height: 64px; } }
.sujets > .bloc.l2, .sujets > .bloc { grid-column: auto; }
.apercu-email { width: 100%; height: 70vh; border: 1px solid var(--trait); border-radius: 10px; background: #fff; }
.liens-item { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12px; }
.liens-item a { color: var(--vert); font-weight: 600; text-decoration: none; }
.vignettes { display: flex; gap: 4px; margin-top: 6px; }
.vignettes img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
