:root{
  /* charte SNAM (identique au site vitrine snamtransport.fr, validée le 01/10/2026) */
  --marine:#0B2D5B;--bleu:#1E4E8C;--vert:#4CAF50;--gris-clair:#E5E7EB;--gris-texte:#6B7280;
  --fond:#F3F5F8;--carte:#ffffff;--bord:#D9DEE6;--texte:#14213D;--pied:#071c3a;
  /* alias conservés pour les règles existantes (couleurs de situation, graphes…) */
  --accent:#c75b12;--gris:#6B7280;--rouge:#b3261e;--vert-ok:#2e7d32;
  --font:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--font);font-size:14px;line-height:1.45;color:var(--texte);background:var(--fond)}
a{color:var(--bleu)}
/* en-tête en deux rangées : (1) bandeau blanc avec le logo en couleur, comme le site vitrine ; (2) barre marine de
   navigation, liseré vert dessous, écran actif en pastille blanche */
.entete{background:#fff;color:var(--texte);box-shadow:0 1px 3px rgba(11,45,91,.08)}
.entete a{text-decoration:none}
.entete-haut{display:flex;align-items:center;gap:20px;padding:8px 20px;flex-wrap:wrap}
.marque{display:flex;align-items:center;gap:12px}
.marque img{height:48px;width:auto;display:block}
.marque span{font-size:13px;color:var(--gris-texte);padding-left:12px;border-left:1px solid var(--bord)}
.entete nav{display:flex;gap:2px;flex-wrap:wrap;background:var(--marine);padding:6px 20px;border-bottom:3px solid var(--vert)}
.entete nav a{color:#fff;padding:7px 12px;border-radius:6px;font-weight:600}
.entete nav a:hover{background:rgba(255,255,255,.12)}
.entete nav a.actif{background:#fff;color:var(--marine)}
.entete nav a:focus-visible{outline-color:#fff}
/* seconde barre (A13/A30) : pages de la rubrique active, sur fond clair, page active soulignée de vert */
.entete nav.sous-menu{background:#E8EFF8;border-bottom:1px solid var(--bord);padding:0 20px;gap:4px}
.entete nav.sous-menu a{color:var(--marine);border-radius:0;padding:10px 12px;border-bottom:3px solid transparent}
.entete nav.sous-menu a:hover{background:#DCE6F2}
.entete nav.sous-menu a.actif{background:transparent;color:var(--marine);border-bottom-color:var(--vert)}
.session{margin-left:auto;font-size:13px;color:var(--texte)}
.session a{color:var(--marine);font-weight:600}
.session small{color:var(--gris-texte)}
/* page de connexion (pas de navigation) : liseré vert sous le bandeau blanc */
.entete-haut:last-child{border-bottom:3px solid var(--vert)}
/* titre de chaque écran : simple texte marine (l'écran actif ressort déjà dans la barre de navigation) ;
   conservé pour les écrans hors menu (Mon compte), les titres plus précis que le menu et les lecteurs d'écran */
main>h1{margin:18px 0 14px}
main>section:first-child,main>.carte:first-child{margin-top:20px}
main{padding:0 20px 20px;max-width:1700px;margin:0 auto}
footer{padding:16px 20px;color:#B9C6DA;background:var(--pied);font-size:12px;margin-top:32px;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;align-items:center}
footer .version{order:2;font-family:Consolas,monospace;color:#fff;white-space:nowrap}
h1{font-size:24px;margin:0 0 14px;color:var(--marine);letter-spacing:-.2px}h2{font-size:16px;margin:0 0 10px;color:var(--marine)}
.carte{background:var(--carte);border:1px solid var(--bord);border-radius:12px;padding:16px 18px;margin-bottom:16px;box-shadow:0 1px 2px rgba(11,45,91,.04)}
.etroite{max-width:520px}
.colonnes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:800px){.colonnes{grid-template-columns:1fr}}
label{display:block;margin:10px 0 4px}
input:not([type=checkbox]),select{width:100%;padding:9px 10px;border:1px solid var(--bord);border-radius:8px;font:inherit;background:#fff;color:var(--texte)}
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid var(--vert);outline-offset:2px}
/* boutons : marine (action courante), survol bleu ; .principal = vert de la charte (action principale d'un écran) */
button{background:var(--marine);color:#fff;border:0;padding:9px 16px;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;margin-top:10px}
button:hover{background:var(--bleu)}
button.principal{background:var(--vert)}button.principal:hover{background:#3f9a43}
button:disabled{opacity:.5;cursor:default}
button.lien{background:none;color:var(--marine);text-decoration:underline;padding:0;margin:0 0 0 10px;font-weight:400}button.lien:hover{background:none;color:var(--bleu)}
button.mini{padding:3px 8px;margin:0;font-size:12px}
form.inline,label.inline{display:inline}
.filtres{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.filtres input:not([type=checkbox]),.filtres select{width:auto;min-width:160px}
.filtres button{margin:0}
.alerte{background:#fde8e6;border:1px solid #f1b7b2;color:var(--rouge);padding:8px 12px;border-radius:6px}
.succes{background:#e6f4ea;border:1px solid #b7dfc1;color:var(--vert-ok);padding:8px 12px;border-radius:6px}
.info{background:#E8EFF8;border:1px solid #C5D4E8;color:var(--marine);padding:8px 12px;border-radius:6px}
.alerte-forte{border:2px solid var(--accent)}
.a-jour{color:var(--vert-ok);font-weight:bold}
p.alerte+p.alerte{margin-top:6px}
.mdp{font-family:Consolas,monospace;font-size:20px;letter-spacing:1px;background:#fff7ed;padding:10px;border-radius:6px;user-select:all}
.meta,.note{color:var(--gris);font-size:12.5px}
.note{margin-top:10px}
.tuiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0 16px}
.tuile{background:var(--carte);border:1px solid var(--bord);border-left:4px solid var(--vert);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.tuile .lab{color:var(--gris);font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.tuile .val{font-size:26px;font-weight:bold;color:var(--marine)}
.tuile .sub{color:var(--gris);font-size:12px}
.rouge{color:var(--rouge)}
table.tab{width:100%;border-collapse:collapse;background:var(--carte)}
.tab th,.tab td{border:1px solid var(--bord);padding:6px 8px;text-align:left;vertical-align:top}
.tab th{background:#E8EFF8;color:var(--marine);font-weight:600;position:sticky;top:0}
.tab .num{text-align:right;white-space:nowrap}
.tab.compact th,.tab.compact td{padding:4px 6px;font-size:12.5px}
.tab small{color:var(--gris);font-size:11px}
/* lignes alternées (lisibilité, comme un tableur) : la classe .pair est posée par tableau.js sur une ligne VISIBLE sur deux,
   pour que l'alternance reste correcte après filtrage ; les couleurs de situation ci-dessous, plus spécifiques, la remplacent */
.tab.zebre tbody tr.pair td{background:#F3F5F8}
/* situation du tour (couleur de toute la ligne) */
.tab tbody tr.sit-a_reclamer td{background:#fde8e6}
.tab tbody tr.sit-a_reclamer.pair td{background:#f9dcd9}
.tab tbody tr.sit-en_attente td{background:#fffbea}
.tab tbody tr.sit-en_attente.pair td{background:#fbf4d6}
.tab tbody tr.sit-annulee td{background:#e9e2f6;color:#3f2a6d}
.tab tbody tr.sit-annulee.pair td{background:#dfd5f0}
.tab tbody tr.sit-annulee td:nth-child(3){font-weight:bold}
/* régularisée (A33) : réglée par un règlement groupé déclaré par SNAM — vert d'eau, distinct du jaune/rouge/violet */
.tab tbody tr.sit-regularisee td{background:#E0F2F1;color:#004D40}
.tab tbody tr.sit-regularisee.pair td{background:#D2ECEA}
.puce.sit-regularisee{background:#E0F2F1;color:#004D40}
.regul{border:1px solid var(--bord);border-radius:8px;padding:10px 12px;margin-bottom:10px}
.regul-annulee{opacity:.6}
.regul ul{margin:6px 0 0 18px;padding:0}
tr.ligne-plus input{background:#F3F5F8}
/* connaissance du tarif (couleur de la cellule Tarif seulement : axe indépendant de la situation) */
.tab td.tarif-connu,.puce.tarif-connu{color:var(--vert-ok)}
.tab td.tarif-recent,.puce.tarif-recent{background:#eef7e6 !important;color:#3b6b1f}
.tab td.tarif-jamais,.puce.tarif-jamais{background:#ffe1c2 !important;color:#7a3b00;font-weight:bold}
.tab td.tarif-insuffisant,.puce.tarif-insuffisant{background:#fff0d6 !important;color:#7a3b00}
.tab td.tarif-poids,.puce.tarif-poids{background:#e3f0fb !important;color:#0b4a8b}
/* légende des couleurs (écran Tournées) */
details.legende{margin:0 0 10px;font-size:12.5px}
details.legende summary{cursor:pointer;color:var(--bleu);font-weight:600}
table.legende-codes{width:auto;max-width:1100px;margin:8px 0 4px}
table.legende-codes td:nth-child(1){white-space:nowrap}
.legende-groupes{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;margin-top:8px;line-height:1.9}
@media(max-width:900px){.legende-groupes{grid-template-columns:1fr}}
.legende-groupes ul{list-style:none;margin:0;padding:0}
.legende-groupes li.titre{font-weight:bold}
.puce{display:inline-block;padding:1px 8px;border-radius:10px;border:1px solid var(--bord);margin:0 6px 0 0;background:var(--carte)}
.puce.sit-a_reclamer{background:#fde8e6}.puce.sit-en_attente{background:#fffbea}.puce.sit-annulee{background:#e9e2f6;color:#3f2a6d;font-weight:bold}
.puce.sit-prefacturee,.puce.sit-prefacturee_autre_numero{background:#F3F5F8}
.tab td.tarif-sans-objet{color:#3f2a6d}
/* filtres de colonnes (tableau.js) */
.filtres-colonnes th{background:#F3F5F8;padding:3px 4px;top:auto}
.filtres-colonnes input,.filtres-colonnes select{width:100%;min-width:0;padding:3px 5px;font-size:12px;border-radius:4px}
.barre-filtres{display:flex;gap:12px;align-items:center;margin:0 0 6px}
.barre-filtres button{margin:0}
tr.filtree{display:none}
tr.grav-Haute td:nth-child(3){color:var(--rouge);font-weight:bold}
tr.grav-Moyenne td:nth-child(3){color:var(--accent)}
tr.traite td{color:#9aa0a6;text-decoration:line-through}
tr.traite td small{text-decoration:line-through}
.pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin-top:12px}
.actions form{margin-right:6px}

/* suivi journalier */
.bouton-lien{padding:8px 12px;border:1px solid var(--bord);border-radius:6px;text-decoration:none;background:var(--carte)}
a.discret{font-size:11.5px;color:var(--gris)}
svg.graphe{width:100%;height:auto;display:block}
svg.graphe .grille{stroke:#e6e5df;stroke-width:1}
svg.graphe .ligne-base{stroke:#b9bec3;stroke-width:1}
svg.graphe .axe{fill:var(--gris);font-size:12px;font-family:Arial,Helvetica,sans-serif}
svg.graphe .barre{fill:var(--bleu)}
svg.graphe .barre.weekend{fill:#A7BEDC}
svg.graphe .axe.weekend{fill:#9aa0a6}
svg.graphe .semaine-trait{stroke:#9aa0a6;stroke-width:1.5}
svg.graphe .axe.semaine{font-weight:bold;fill:var(--marine)}
td.semaine{font-weight:bold;color:var(--marine);white-space:nowrap}
svg.graphe .cible{fill:transparent}
svg.graphe .barre-groupe:hover .barre{fill:var(--marine)}
svg.graphe .barre-groupe:hover .cible{fill:rgba(20,33,61,.05)}
tr.weekend td{background:#F3F5F8;color:var(--gris)}
tfoot tr.total td{font-weight:bold;background:#E8EFF8}

/* progression de l'analyse */
.progression{display:flex;align-items:center;gap:12px}
.progression progress{flex:1;height:14px;appearance:none;-webkit-appearance:none;border:0;border-radius:7px;background:#e6e5df;overflow:hidden}
.progression progress::-webkit-progress-bar{background:#e6e5df;border-radius:7px}
.progression progress::-webkit-progress-value{background:var(--vert);border-radius:7px;transition:width .4s}
.progression progress::-moz-progress-bar{background:var(--vert);border-radius:7px}
.progression .pct{font-weight:bold;min-width:48px;text-align:right}

/* page de connexion : carte centrée sous le logo (même esprit que le site vitrine) */
.connexion{max-width:420px;margin:40px auto}
.connexion .logo{display:block;width:220px;max-width:70%;height:auto;margin:0 auto 20px}
.connexion h1{text-align:center}
.connexion button{width:100%;margin-top:16px;padding:12px}
/* téléphone : en-tête empilé, navigation défilante sur une ligne */
@media(max-width:760px){
  .entete-haut{gap:10px;padding:8px 12px;flex-wrap:nowrap}
  /* session sur la même ligne que le logo : rôle masqué (visible sur l'écran Mon compte) pour gagner une ligne */
  .session{white-space:nowrap}
  .session small{display:none}
  .marque img{height:40px}
  .marque span{display:none}
  /* téléphone : rubriques et pages passent à la ligne (toutes visibles, aucune cachée hors de l'écran à droite) */
  .entete nav{flex-wrap:wrap;padding:6px 12px;gap:4px}
  .entete nav a{padding:7px 10px}
  .entete nav.sous-menu{padding:0 12px;gap:0}
  .entete nav.sous-menu a{padding:9px 10px}
  .entete nav a{white-space:nowrap}
  main>h1{font-size:20px;margin:14px 0 10px}
  main{padding:0 12px 12px;overflow-x:auto}        /* tableaux larges : défilement dans la page, pas de la page */
  input:not([type=checkbox]),select{font-size:16px}
}
/* rubrique Pilotage : carte des évolutions non développées, volontairement discrète */
.carte.a-venir{background:transparent;border-style:dashed;box-shadow:none}
/* graphiques du pilotage (couleurs validées le 05/10/2026 : bleu prévisionnel, vert pré-facturé, gris sans PREFAC) */
svg.graphe .barre-att{fill:#2A62A8}
svg.graphe .barre-pf{fill:#2E8B34}
svg.graphe .barre-neg{fill:#C0392B}
svg.graphe .barre-site{fill:#2A62A8}
svg.graphe .barre-groupe:hover .barre-att{fill:#1B4A86}
svg.graphe .barre-groupe:hover .barre-pf{fill:#1F6E26}
svg.graphe .barre-groupe:hover .barre-site{fill:#1B4A86}
svg.graphe .axe.valeur{font-weight:600;fill:var(--texte)}
svg.graphe .axe.sans-prefac{fill:#9aa0a6;font-size:11px}
svg.graphe .axe.libelle-site{fill:var(--texte)}
.legende-graphe{font-size:12.5px;color:var(--gris-texte);margin:0 0 6px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.legende-graphe .cle{display:inline-block;width:14px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px}
.cle-att{background:#2A62A8}.cle-pf{background:#2E8B34}.cle-neg{background:#C0392B}.cle-sans{background:#E5E7EB;border:1px solid #cfd4db}
.tendance{font-size:15px;margin:0 0 14px;padding:10px 14px;background:var(--carte);border:1px solid var(--bord);border-left:4px solid var(--vert);border-radius:8px}
.tendance .hausse{color:var(--vert-ok);font-weight:700}.tendance .baisse{color:var(--rouge);font-weight:700}
svg.graphe .axe{font-size:11.5px}
svg.graphe-sites .axe{font-size:13px}
svg.graphe .barre-sans{fill:#E5E7EB}
svg.graphe .barre-groupe:hover .barre-sans{fill:#D5DAE2}
/* téléphone : le graphe est étroit, une étiquette sur deux et texte plus grand dans le repère du SVG */
@media(max-width:760px){svg.graphe .tel-masque{display:none}}
/* téléphone : un graphe de 1000 unités réduit à 350 px est illisible ; on lui garde 760 px et il défile horizontalement
   dans sa carte, comme un tableau large (le reste de la page ne bouge pas) */
.graphe-defile{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){.graphe-defile svg.graphe{min-width:760px}}
/* courbe du chiffre d'affaires : ligne 2 px, marqueurs avec anneau blanc, moyenne en pointillé discret */
svg.graphe .ligne-ca{fill:none;stroke:#2A62A8;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
svg.graphe .point-ca{fill:#2A62A8;stroke:#fff;stroke-width:2}
svg.graphe .point-sans{fill:#fff;stroke:#9aa0a6;stroke-width:2}
svg.graphe .barre-groupe:hover .point-ca{r:7}
svg.graphe .ligne-moyenne{stroke:#2E8B34;stroke-width:1.5;stroke-dasharray:6 4}
.cle-ligne{background:#2A62A8;height:3px}.cle-moy{background:#2E8B34;height:3px}
svg.graphe .axe.moyenne-lib{fill:#2E8B34;font-weight:600}
/* page Chiffre d'affaires (A36) : barres par jour de semaine (7 colonnes, étiquettes plus grandes) ; réclamations en
   rouge « barre-neg » (même sens que l'écart négatif : ce qui manque) ; le graphe des types réutilise celui des villes */
svg.graphe-semaine .axe{font-size:14px}
svg.graphe .barre-groupe:hover .barre-neg{fill:#A12E22}
/* Administration › Types de déchet (A38) : libellés non classés signalés par une bordure rouge à gauche */
.tab tr.non-classe td:first-child{border-left:4px solid var(--rouge)}
.tab input[list]{width:100%;min-width:180px}
/* Coûts et marge (A37) : barre des coûts en rouge sombre (ce qui sort), même palette validée que l'écart négatif */
svg.graphe .barre-cout{fill:#C0392B}
svg.graphe .barre-groupe:hover .barre-cout{fill:#A12E22}
.cle-cout{background:#C0392B}
.actions select{width:auto;font-size:12.5px;padding:2px 4px}
