/* Palette reprise de outil_SGA_reclamations_v10.html (variables --sga-*) */
:root {
  --sga-red: #C8102E;
  --sga-red-dark: #9B0B21;
  --sga-navy: #1A1A2E;
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --border: #E4E4E8;
  --text-primary: #0D0D0D;
  --text-secondary: #5A5A6A;
  --text-muted: #9A9AAA;
  --green: #1A7F4B;
  --orange: #B8620A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
}

header.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--sga-navy);
  color: #fff;
}
header.topbar h1 { font-size: 16px; margin: 0; flex: 1; }
header.topbar a { color: #fff; text-decoration: none; opacity: .85; font-size: 13px; }
header.topbar a:hover { opacity: 1; text-decoration: underline; }
/* Lien "retour" dans la barre du haut (ex: ◀ Modes de traitement) — pastille bordée pour
   se distinguer des liens de navigation ordinaires. */
header.topbar a.topbar-back {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 4px 10px;
  opacity: 1;
}
header.topbar a.topbar-back:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
/* Le <nav> injecté par nav.js ne doit pas devenir lui-même un item flex du topbar — ses
   <a> enfants doivent participer directement à la mise en page flex du parent, comme s'ils
   n'étaient pas enveloppés (voir frontend/nav.js renderNav()). */
.topbar-nav { display: contents; }
#session-timer { font-variant-numeric: tabular-nums; font-size: 13px; opacity: .85; }
#session-timer.warning { color: #FFB020; font-weight: 700; }

main { max-width: 900px; margin: 24px auto; padding: 0 16px; }
/* Pages avec de grandes listes (Traitement, Historique) : zone de vue élargie pour éviter
   le défilement horizontal du tableau. Le texte long (lettre, analyse) reste borné pour
   rester lisible — voir #response-text / #detail-reponse. */
main.wide-main { max-width: 1320px; }
main.wide-main #response-text,
main.wide-main #response-edit,
main.wide-main #detail-text,
main.wide-main #detail-reponse { max-width: 840px; }

/* Menu principal (hub.html) — grandes cartes de navigation, centrées. auto-fit plutôt
   qu'un nombre de colonnes fixe : la 3e carte (Pilotage Qualité) est masquée pour les
   gestionnaires, la grille doit rester équilibrée à 2 comme à 3 cartes visibles. */
main.hub-main { max-width: 980px; }
.hub-intro { text-align: center; color: var(--text-secondary); margin-bottom: 24px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.hub-card:hover {
  border-color: var(--sga-red);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.12);
  transform: translateY(-2px);
}
.hub-icon { font-size: 40px; margin-bottom: 10px; }
.hub-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.hub-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Sélecteur de sous-section (traitement.html) — mêmes grandes cartes que le menu principal
   plutôt que des petits onglets, sur demande explicite ("présenté comme le menu principal").
   Scopé par #traitement-subtabs (spécificité ID) pour passer devant les règles génériques
   .tab / .tabs sans dupliquer leurs sélecteurs. */
#traitement-subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  border-bottom: none;
  margin-bottom: 24px;
}
#traitement-subtabs .tab {
  display: block;
  width: 100%;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  color: var(--text-primary);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
#traitement-subtabs .tab:hover { border-color: var(--sga-red); box-shadow: 0 4px 16px rgba(200, 16, 46, 0.12); transform: translateY(-2px); }
#traitement-subtabs .tab.active { border-color: var(--sga-red); background: rgba(200, 16, 46, 0.05); box-shadow: 0 4px 16px rgba(200, 16, 46, 0.12); }

/* Revue Enregistrement (enregistrement.html) — 2 colonnes : saisie/actions à gauche,
   visualisation du courrier source à droite (lecture simultanée pendant la vérification). */
main.enreg-main { max-width: 1200px; }
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .review-layout { grid-template-columns: 1fr; } }
.review-col .card { margin-bottom: 20px; }
.review-viewer textarea { min-height: 260px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

label { display: block; font-size: 12px; color: var(--text-secondary); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 120px; }

/* Formulaire de réclamation en 2 colonnes — évite le défilement pour les 8 champs de
   saisie (identité dossier à gauche, contexte de traitement à droite). Les colonnes sont
   de simples <div>, chaque label/input garde son display:block normal à l'intérieur. */
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .form-2col { grid-template-columns: 1fr; } }

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.btn-primary { background: var(--sga-red); color: #fff; }
.btn-primary:hover { background: var(--sga-red-dark); }
.btn-secondary { background: var(--border); color: var(--text-primary); }
.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }

.error { color: var(--sga-red); font-size: 13px; margin-top: 8px; min-height: 16px; }

.disclaimer {
  font-size: 12px;
  color: var(--text-secondary);
  background: #FFF1F3;
  border: 1px solid #F5C6CE;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.badge.tres-urgent { background: var(--sga-red); }
.badge.urgent { background: var(--orange); }
.badge.normal { background: var(--green); }

.synth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.synth-item { background: var(--bg); border-radius: 6px; padding: 8px 10px; }
.synth-item .si-label { font-size: 11px; color: var(--text-muted); }
.synth-item .si-val { font-size: 13px; font-weight: 600; }

.checklist .check-item { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }

#response-text, #response-edit { width: 100%; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
#response-edit { min-height: 220px; }

table.metrics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.metrics-table th, table.metrics-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tile { background: var(--bg); border-radius: 8px; padding: 14px; text-align: center; }
.stat-tile .stat-val { font-size: 24px; font-weight: 700; }
.stat-tile .stat-lbl { font-size: 12px; color: var(--text-secondary); }

.hidden { display: none !important; }

/* Styles admin */
.message {
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
  display: none;
}
.message-success {
  background: #D1F2EB;
  color: var(--green);
  border: 1px solid #A8E6D3;
}
.message-error {
  background: #FFF1F3;
  color: var(--sga-red);
  border: 1px solid #F5C6CE;
}
.message-info {
  background: #E3F2FD;
  color: #0D47A1;
  border: 1px solid #90CAF9;
}

.diagnosis-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.diagnosis-box p { margin: 8px 0; }
.diagnosis-box code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}
.diagnosis-box ul {
  margin: 8px 0;
  padding-left: 20px;
}

.text-secondary {
  color: var(--text-secondary);
  font-size: 13px;
}

table.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.audit-table th {
  background: var(--bg);
  font-weight: 600;
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid var(--border);
}
table.audit-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
table.audit-table tr:hover {
  background: rgba(200, 16, 46, 0.02);
}
/* Conteneur pour un tableau de listing large : défile horizontalement au lieu de
   déborder / d'être écrasé. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Colonnes dimensionnées au contenu (pas d'étirement qui crée de grands vides), le tableau
   remplit au minimum la carte et défile horizontalement au-delà. */
table.audit-table.list-table { width: auto; min-width: 100%; }
table.audit-table.list-table th,
table.audit-table.list-table td { white-space: nowrap; }
table.audit-table.list-table td.col-center,
table.audit-table.list-table th.col-center { text-align: center; }

.link-secondary {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  padding: 4px 8px;
}
.link-secondary:hover {
  opacity: 1;
  text-decoration: underline;
}

.drop-zone {
  border: 2px dashed #0066cc;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  background-color: #f0f7ff;
  transition: all 0.3s;
  margin-bottom: 15px;
}
.drop-zone:hover {
  background-color: #e6f0ff;
  border-color: #0052a3;
}
.drop-zone.dragover {
  background-color: #cce5ff;
  border-color: #0052a3;
}
.drop-zone p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

#transcription-result {
  width: 100%;
  height: 120px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  min-height: 0;
}

.ctx-files-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ctx-file-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ctx-file-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

.exchange-thread { margin-top: 10px; }
.exchange-item {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.exchange-item .exchange-time { color: var(--text-muted); margin-right: 6px; }

/* Vue chargement */
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--sga-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-size: 14px; color: var(--text-secondary); font-weight: 600; }

/* Barre de criticité + jauge de confiance */
.criticality-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.cb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--green);
}
.cb-icon.urgent { background: var(--orange); }
.cb-icon.tres-urgent { background: var(--sga-red); }
.cb-main { flex: 1; min-width: 0; }
.cb-label { font-weight: 700; font-size: 14px; }
.cb-reason { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.cb-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.cb-tag { background: var(--bg); border-radius: 999px; padding: 2px 8px; font-size: 11px; color: var(--text-secondary); }
.conf-section { text-align: center; flex-shrink: 0; min-width: 90px; }
.conf-caption { font-size: 10px; color: var(--text-muted); }
.conf-pct { font-size: 18px; font-weight: 700; margin: 2px 0; }
.conf-bar { width: 80px; height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.conf-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }

/* Onglets résultats */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--sga-red); border-bottom-color: var(--sga-red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.collab-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Points d'attention (blocages / données manquantes) */
.attention-block {
  margin-top: 16px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 14px;
}
.ab-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.ab-section { margin-top: 8px; }
.ab-section-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.ab-item { font-size: 13px; padding: 3px 0; }

/* Pilotage Qualité — graphiques SVG faits maison (pas de librairie externe, cohérent avec
   la convention "zéro dépendance" du projet) + impression/export. */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
@media (max-width: 640px) { .chart-row { grid-template-columns: 1fr; } }
.chart-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.chart-empty { color: var(--text-muted); font-size: 13px; padding: 20px 0; text-align: center; }

/* Comparaison période vs période précédente (badge delta sur les tuiles stat-grid). */
.delta-badge { display: block; font-size: 11px; font-weight: 700; margin-top: 4px; }
.delta-badge.up { color: var(--green); }
.delta-badge.down { color: var(--sga-red); }
.delta-badge.flat { color: var(--text-muted); }

/* Bloc "Clôture du dossier" verrouillé tant que le brouillon de réponse n'a pas été validé
   (voir app.js validerBrouillon()). */
.cloture-locked { opacity: 0.4; pointer-events: none; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Prise en charge d'une réclamation à traiter (trigramme / note de suivi / affectation) */
.prise-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.prise-state { font-size: 14px; }
.prise-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prise-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.prise-encours { background: #FFF3CD; color: #8a6d1a; }
.prise-libre { background: var(--border); color: var(--text-secondary); }

/* Signalements (direction / réseaux sociaux / spécialistes / récurrente) — repère de
   priorisation dans la liste "Réclamation à traiter" et la fiche. */
.flag-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--border); color: var(--text-primary); white-space: nowrap; }
.flag-badge.flag-dir { background: #F3E1F5; color: #7a2a86; }
.flag-badge.flag-rs { background: #E1ECF7; color: #1c5a99; }
.cb-tag.cb-tag-sig { background: #FDECEA; color: #a8322c; border: 1px solid #f5c6c2; }
.age-alerte { color: var(--sga-red); font-weight: 700; }

/* Assistant juridique — bulle flottante (Traitement, vue résultats uniquement) */
#legal-chat { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.legal-chat-fab {
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--sga-red); color: #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.legal-chat-fab:hover { filter: brightness(1.08); }
.legal-chat-panel {
  position: absolute; bottom: 64px; right: 0;
  width: min(390px, 92vw); max-height: 72vh;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.26); overflow: hidden;
}
.legal-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--sga-navy); color: #fff; font-size: 14px; }
.legal-chat-head button { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; line-height: 1; }
.legal-chat-notice { font-size: 11px; line-height: 1.4; padding: 8px 12px; background: #FFF8E1; color: #6b5a12; border-bottom: 1px solid var(--border); }
.legal-chat-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 130px; }
.legal-chat-empty { color: var(--text-muted); font-size: 13px; text-align: center; margin: auto; }
.legal-msg { font-size: 13px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; }
.legal-msg.user { background: #E7EEF6; align-self: flex-end; max-width: 85%; }
.legal-msg.assistant { background: var(--border); align-self: flex-start; max-width: 92%; }
.legal-chat-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.legal-chat-input textarea { flex: 1; min-height: 42px; resize: vertical; margin: 0; }

/* Rapports automatiques (Administration > Rapports automatiques) */
.checkbox-line { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.checkbox-line input { width: auto; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 4px; }
.checkbox-row label { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.checkbox-row input { width: auto; }
fieldset.field-group { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 16px 0; }
fieldset.field-group legend { font-size: 12px; font-weight: 700; color: var(--text-secondary); padding: 0 6px; }

/* ─── Lot C — retours utilisateur (voir toast.js) ─────────────────────────────────── */

/* Toasts empilés en bas à droite (au-dessus de la bulle assistant juridique). */
#toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 1100;
  display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px));
}
.toast {
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); border-left: 4px solid var(--text-muted);
  border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16); cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  animation: toast-in 0.22s ease-out;
}
.toast-leaving { animation: toast-out 0.22s ease-in forwards; }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--sga-red); }
.toast-info { border-left-color: var(--sga-navy); }
.toast-text { flex: 1 1 auto; }
.toast-action {
  flex: 0 0 auto; font-weight: 700; font-size: 13px; color: var(--sga-red);
  text-decoration: none; white-space: nowrap;
}
.toast-action:hover { text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Confirmation in-app (remplace window.confirm pour les clôtures — voir confirmDialog()). */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(26, 26, 46, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: toast-in 0.15s ease-out;
}
.confirm-box {
  background: var(--surface); border-radius: 12px; padding: 22px 24px;
  max-width: 420px; width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.confirm-msg { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-danger {
  background: var(--sga-red); color: #fff; border: none; border-radius: 6px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-danger:hover { background: var(--sga-red-dark); }

/* "Valider ce brouillon" — état franc une fois validé (le simple message texte en dessous
   se perdait sur une page longue). */
#btn-valider-brouillon.is-validated {
  background: var(--green); border-color: var(--green); color: #fff; cursor: default;
}

/* Bloc "Améliorer cette proposition" en accordéon, replié par défaut : il s'intercale
   entre le brouillon et les actions de clôture, or la plupart des clôtures ne l'utilisent
   pas. */
details.collab-accordion { padding: 0; }
details.collab-accordion > summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 10px 0; display: flex; align-items: center; gap: 8px;
}
details.collab-accordion > summary::-webkit-details-marker { display: none; }
details.collab-accordion > summary::before { content: '▸'; color: var(--text-secondary); font-size: 12px; }
details.collab-accordion[open] > summary::before { content: '▾'; }
details.collab-accordion > summary:hover { color: var(--sga-red); }

/* Utilitaires impression — masqués à l'écran, affichés uniquement à l'impression/export PDF
   (voir bouton "Imprimer / PDF"). Réutilisable sur toute page qui a besoin d'un rapport
   imprimable propre (nav/filtres/boutons masqués, contenu seul conservé). */
.print-only { display: none; }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block; margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }
  body { background: #fff; }
  main { max-width: 100%; margin: 0; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin-bottom: 24px; page-break-inside: avoid; }
}
