/* Console de l'éditeur : mise en page simple (en-tête + menu horizontal) */
.cs-cadre { min-height: 100vh; background: var(--fond); }
.cs-entete { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 10px 20px; background: var(--primaire); color: var(--primaire-texte); }
.cs-marque { display: flex; align-items: center; gap: 10px; }
.cs-marque > div { display: flex; flex-direction: column; line-height: 1.15; }
.cs-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--primaire); font-weight: 800; letter-spacing: .02em; }
.cs-connexion .cs-logo { background: var(--primaire); color: #fff; }
.cs-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.cs-nav a { color: inherit; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; opacity: .85; }
.cs-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.cs-nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.2); }
.cs-qui { display: flex; align-items: center; gap: 8px; }
.cs-qui .btn-discret { color: inherit; }
.cs-contenu { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; outline: none; }
.cs-connexion { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.cs-barres { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; padding-top: 18px; }
.cs-barre { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cs-barre-remplie { width: 70%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--primaire); }
.cs-barre-valeur { font-size: .66rem; color: var(--texte-2); white-space: nowrap; margin-bottom: 2px; }
.cs-barre-mois { font-size: .7rem; color: var(--texte-2); margin-top: 4px; }
.cs-etapes { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.cs-etapes li { display: flex; flex-direction: column; gap: 6px; }
.cs-sql { white-space: pre-wrap; word-break: break-all; padding: 10px; border-radius: 8px; background: var(--surface-2, #f3f5f8); font-family: 'JetBrains Mono', monospace; font-size: .78rem; margin: 0; }
.cs-secret { font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.cs-journal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.cs-journal li { display: grid; grid-template-columns: 140px 190px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bordure); align-items: baseline; }
@media (max-width: 720px) { .cs-journal li { grid-template-columns: 1fr; gap: 2px; } }
.cs-config { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-adresse { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0; }
.cs-adresse span { flex-basis: 100%; }
.cs-adresse code { word-break: break-all; font-size: .8rem; }
label.case { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; }
label.case input { width: 18px; height: 18px; margin: 0; }

/* assistant intelligent : consommation du client */
.cs-conso { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2, #f4f5f7); }
.cs-jauge { display: inline-block; vertical-align: middle; width: 120px; height: 8px; border-radius: 4px; background: var(--bordure, #dde1e6); overflow: hidden; margin-left: 6px; }
.cs-jauge-remplie { display: block; height: 100%; background: var(--ok, #2e7d32); }
.cs-jauge-remplie.presque { background: var(--alerte, #c77700); }
.cs-jauge-remplie.plein { background: var(--erreur, #c62828); }
.cs-stations { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 3px; }
.cs-stations li { display: flex; align-items: center; gap: 8px; font-size: .9em; }
.cs-stations li > span:first-child { min-width: 9em; }
