:root {
  --fond: #f6f7f9; --carte: #fff; --texte: #1d2733; --discret: #5d6b7a; --ligne: #dde2e8;
  --accent: #0b5cad; --rouge: #c62828; --vert: #2e7d32; --orange: #ef6c00;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, sans-serif; color: var(--texte); background: var(--fond); }
header { background: #10314f; color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 52px; }
header .titre { font-weight: 600; font-size: 16px; }
header nav a { color: #d6e4f2; text-decoration: none; margin-right: 18px; }
header nav a:hover, header nav a.actif { color: #fff; text-decoration: underline; }
header .compte { margin-left: auto; font-size: 13px; color: #d6e4f2; }
header .compte form { display: inline; }
header .compte button { background: none; border: 0; color: #d6e4f2; cursor: pointer; text-decoration: underline; font: inherit; }
main { max-width: 1280px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.grille { display: grid; grid-template-columns: 480px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .grille { grid-template-columns: 1fr; } }
.carte { height: 560px; border-radius: 8px; border: 1px solid var(--ligne); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { font-weight: 600; color: var(--discret); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.lien { cursor: pointer; }
tr.lien:hover { background: #eef4fb; }
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 13px; }
input, select, textarea { width: 100%; padding: 7px 8px; border: 1px solid #c3ccd6; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 70px; }
.ligne2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bouton { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.bouton.secondaire { background: #e7edf4; color: var(--texte); }
.bouton.danger { background: var(--rouge); }
.bouton:disabled { opacity: .5; cursor: default; }
.messages { list-style: none; padding: 0; margin: 0 0 14px; }
.messages li { padding: 10px 14px; border-radius: 6px; margin-bottom: 6px; }
.messages .success { background: #e6f4ea; color: #1e4620; }
.messages .error { background: #fdecea; color: #611a15; }
.discret { color: var(--discret); }
.petit { font-size: 12px; }
.chiffres { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.chiffre { background: #f1f5fa; border-radius: 8px; padding: 8px 12px; min-width: 92px; }
.chiffre b { display: block; font-size: 20px; }
.chiffre.rouge b { color: var(--rouge); }
.resultats { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--ligne); border-radius: 6px; max-height: 260px; overflow: auto; }
.resultats li { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid var(--ligne); }
.resultats li:hover { background: #eef4fb; }
.resultats li span { display: block; font-size: 12px; color: var(--discret); }
.choisi { background: #fff7e6; border: 1px solid #f3d19c; border-radius: 6px; padding: 8px 10px; margin-top: 8px; }
.etiquette { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e7edf4; }
.etiquette.EN_COURS { background: #fff3e0; color: #8a4b00; }
.etiquette.CLOS { background: #e3f2fd; color: #0d47a1; }
.etiquette.VALIDE { background: #e6f4ea; color: #1e4620; }
.filtres { display: flex; gap: 10px; align-items: end; margin-bottom: 12px; }
.filtres > div { width: 200px; }
.legende { font-size: 12px; color: var(--discret); margin-top: 6px; }
.legende i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
details summary { cursor: pointer; font-weight: 600; }
.cascade select { margin-bottom: 6px; }
.choisi { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.petit-bouton { padding: 4px 10px; font-size: 12px; white-space: nowrap; }

.retenus { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.retenus li { background: #e3f2fd; border: 1px solid #90caf9; border-radius: 14px; padding: 2px 4px 2px 10px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.retenus button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: #0d47a1; }
.etapes td { font-size: 13px; vertical-align: top; }
.frise { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.frise button { border: 1px solid #c3ccd6; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.frise button.actif { background: #10314f; color: #fff; border-color: #10314f; }
.manoeuvre { display: grid; grid-template-columns: 170px 1fr 34px; gap: 6px; margin-bottom: 6px; align-items: center; }
.resultats li.coche { background: #e3f2fd; box-shadow: inset 3px 0 0 #0b5cad; }
.cascade select[multiple] { padding: 2px; }
.cascade select[multiple] option { padding: 3px 6px; }
.astuce { margin: -4px 0 6px; }
/* bandeau de l'ouvrage choisi : le texte au-dessus, les boutons en dessous si la place manque */
.choisi { flex-wrap: wrap; }
.choisi > span:first-child { flex: 1 1 200px; min-width: 0; }
.choisi > span:last-child { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.popup-choix .leaflet-popup-content { margin: 8px 10px; }
.choix-carte .choix-titre { font-weight: 600; margin-bottom: 6px; font-size: 12px; }
.choix-carte button { display: block; width: 100%; text-align: left; border: 1px solid #dde2e8; background: #fff; border-radius: 4px; padding: 5px 8px; margin-bottom: 4px; cursor: pointer; font: inherit; font-size: 12px; }
.choix-carte button:hover { background: #e0f7fa; border-color: #00acc1; }
.leaflet-control-layers { font-size: 12px; }
.leaflet-control-layers .discret { color: #5d6b7a; }
.leaflet-control-layers input { width: auto; padding: 0; margin: 0 6px 0 0; vertical-align: middle; }
.leaflet-control-layers label { display: block; font-weight: normal; margin: 2px 0; font-size: 12px; }
.leaflet-control-layers-expanded { padding: 6px 10px; }
.filtres-indic { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filtres-indic > div { min-width: 150px; }
.filtres-indic label { margin-top: 0; }
.grille-indic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .grille-indic { grid-template-columns: 1fr; } }
.validation { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recherche-adresse { background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.35); width: 280px; }
.recherche-adresse input { border: 0; padding: 7px 9px; font-size: 13px; }
.recherche-adresse ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dde2e8; max-height: 260px; overflow: auto; }
.recherche-adresse li { padding: 6px 9px; font-size: 12px; cursor: pointer; border-bottom: 1px solid #eef1f4; }
.recherche-adresse li:hover { background: #eef4fb; }
.alerte { margin-top: 6px; padding: 8px 10px; background: #fdecea; border-left: 4px solid #c62828; color: #611a15; border-radius: 4px; font-size: 13px; }

.panneau-coupure { margin-top: 12px; padding: 12px 14px; border: 1px solid #f3d19c; background: #fffaf0; border-radius: 8px; }
.contribution { background: #fff4e5; border-left: 3px solid #d9822b; padding: 6px 10px; margin: 8px 0; }
.symbole-organe { display: inline-block; width: 10px; height: 10px; background: #fff; border: 2px solid #37474f; box-sizing: border-box; transform: rotate(45deg); }
.symbole-organe.ouvert { width: 14px; height: 14px; background: #2e7d32; border: 2px solid #fff; box-shadow: 0 0 0 1px #2e7d32; }
.legende .symbole-organe { margin: 0 4px 0 12px; vertical-align: middle; }
.legende i.symbole-organe { width: 10px; height: 10px; }
.legende i.symbole-organe.ouvert { width: 12px; height: 12px; }
.prm-approx { margin-top: 2px; } .prm-approx summary { cursor: pointer; } .prm-approx table { margin: 4px 0; }
