/* Charte de la filière (mêmes jetons que oia-anacarde.com), polices système : aucune ressource externe. */
:root {
  --ivoire: #faf7f0; --carte: #ffffff; --vert: #0c9a4c; --vert-fonce: #04703a; --vert-nuit: #0b2e1b;
  --or: #e0b043; --rouge: #c43a2e; --encre: #14231a; --gris: #5f7266; --ligne: rgba(11, 46, 27, 0.14);
  --police: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --titre: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ivoire); color: var(--encre); font: 16px/1.55 var(--police); }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: var(--vert-nuit); color: var(--ivoire); border-bottom: 3px solid var(--or); }
.marque { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; font-weight: 600; }
.marque img { width: 40px; height: 40px; object-fit: contain; background: var(--ivoire); border-radius: 50%; padding: 3px; }
.sortie { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 0.9rem; }
.sortie button { background: transparent; color: var(--ivoire); border: 1px solid rgba(250, 247, 240, 0.4); border-radius: 6px; padding: 0.35rem 0.8rem; cursor: pointer; font: inherit; }
.sortie button:hover { border-color: var(--or); color: var(--or); }
.contenu { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
h1 { font-family: var(--titre); font-weight: 400; color: var(--vert-nuit); margin: 0 0 0.75rem; font-size: 2rem; }
.carte-connexion { max-width: 400px; margin: 3rem auto; background: var(--carte); border: 1px solid var(--ligne); border-top: 4px solid var(--vert); border-radius: 10px; padding: 2rem 1.5rem; }
.carte-connexion form { display: grid; gap: 0.4rem; }
.carte-connexion label { font-weight: 600; font-size: 0.9rem; margin-top: 0.6rem; }
.carte-connexion input { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--ligne); border-radius: 6px; background: var(--ivoire); }
.carte-connexion input:focus { outline: 2px solid var(--vert); outline-offset: 1px; }
.carte-connexion button { margin-top: 1.2rem; font: inherit; font-weight: 600; padding: 0.7rem; border: 0; border-radius: 6px; background: var(--vert); color: #fff; cursor: pointer; }
.carte-connexion button:hover { background: var(--vert-fonce); }
.aide { color: var(--gris); margin-top: 0; }
.alerte { background: #fbeceb; color: var(--rouge); border-left: 3px solid var(--rouge); padding: 0.6rem 0.8rem; border-radius: 4px; }
.etat { background: var(--carte); border: 1px solid var(--ligne); border-left: 4px solid var(--or); padding: 0.8rem 1rem; border-radius: 6px; }
.pied { text-align: center; color: var(--gris); font-size: 0.8rem; padding: 1.2rem 1rem; border-top: 1px solid var(--ligne); }

/* Tableau de bord */
.titre-page { margin-bottom: 1.25rem; }
.titre-page .aide { margin: 0; }
h2 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); margin: 0; font-weight: 600; }
.kpis { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; padding: 1rem 1.1rem; }
.kpi-fort { background: var(--vert-nuit); color: var(--ivoire); border-color: var(--vert-nuit); }
.kpi-fort h2, .kpi-fort .note { color: rgba(250, 247, 240, 0.75); }
.kpi .valeur { font-size: 2rem; font-weight: 700; margin: 0.35rem 0 0.15rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-fort .valeur { color: var(--or); }
.kpi .valeur small { font-size: 1rem; font-weight: 500; opacity: 0.7; }
.kpi .note { margin: 0; font-size: 0.85rem; color: var(--gris); }
.bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; padding: 1.1rem; margin-bottom: 1rem; min-width: 0; }
.bloc-tete { margin-bottom: 0.8rem; }
.bloc-tete .aide { margin: 0.25rem 0 0; font-size: 0.88rem; }
.colonnes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.colonnes .bloc { margin-bottom: 0; }
.colonnes { margin-bottom: 1rem; }
@media (min-width: 860px) { .colonnes { grid-template-columns: 1fr 1fr; } }
.graphique { display: block; width: 100%; height: auto; }
.g-barre { fill: var(--vert); }
.g-barre:hover { fill: var(--vert-fonce); }
.g-grille { stroke: var(--ligne); stroke-width: 1; }
.g-base { stroke: var(--gris); stroke-width: 1; }
.g-axe { font-size: 11px; fill: var(--gris); }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--ligne); text-align: right; white-space: nowrap; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); font-weight: 600; }
th:first-child, td:first-child { text-align: left; }
tbody tr:hover { background: var(--ivoire); }
tr.eteinte td { color: var(--gris); }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--vert-nuit); }
.pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.4rem; vertical-align: middle; background: #c9d1cb; }
.pastille.recent { background: var(--vert); }
.pastille.ancien { background: var(--or); }
.jauge { display: grid; grid-template-columns: 8.5rem 1fr 3.5rem 3rem; align-items: center; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.9rem; }
.jauge b { text-align: right; font-variant-numeric: tabular-nums; }
.jauge em { font-style: normal; color: var(--gris); text-align: right; font-size: 0.82rem; }
progress { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 5px; background: var(--ivoire); overflow: hidden; }
progress::-webkit-progress-bar { background: #ece6d8; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--vert); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--vert); border-radius: 5px; }
@media (max-width: 480px) { .jauge { grid-template-columns: 6.5rem 1fr 3rem; } .jauge em { display: none; } }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 480px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres div { background: var(--ivoire); border-radius: 8px; padding: 0.7rem; text-align: center; }
.chiffres b { display: block; font-size: 1.5rem; }
.chiffres span { font-size: 0.8rem; color: var(--gris); }
.vide { color: var(--gris); font-style: italic; margin: 0.6rem 0 0; }
.bloc-note { background: transparent; border-style: dashed; }
.bloc-note ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--gris); font-size: 0.9rem; }
.bloc-note li { margin-bottom: 0.3rem; }
