/* Vue publique nationale : compléments à style.css (maquette validée). */
.connexion { position: relative; }
.menu-connexion {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--space-3);
}
.menu-titre { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.espace { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
a.espace:hover { background: var(--color-surface-2); }
.espace strong { font-size: var(--text-sm); }
.espace span { font-size: var(--text-xs); color: var(--color-text-muted); }
.espace.is-off { opacity: .65; cursor: default; }


.panel-body { padding: 0 var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); }
.bloc h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-primary); margin-bottom: var(--space-3); }
.bloc-lead { font-size: var(--text-sm); color: var(--color-text-muted); margin: -4px 0 var(--space-3); }
.kpis-2 { grid-template-columns: repeat(3, 1fr); }
.grp { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--color-divider); }
.grp:first-of-type { border-top: 0; padding-top: 0; }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.grp-nom { font-weight: 600; font-size: var(--text-sm); }
.grp-n { font-size: var(--text-xs); color: var(--color-text-muted); }

.dom-list { display: flex; flex-direction: column; gap: 6px; }
.dom { width: 100%; text-align: left; border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1fr) 120px 28px; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.dom-bar { height: 6px; border-radius: 3px; background: var(--color-surface-2); overflow: hidden; }
.dom-bar span { display: block; height: 100%; background: var(--chart-reference); }
.dom-n { text-align: right; color: var(--color-text-muted); font-size: var(--text-xs); }

.etab-list { display: flex; flex-direction: column; gap: var(--space-2); }
.etab {
  display: grid; grid-template-columns: 1fr auto; gap: 6px var(--space-3); text-align: left; width: 100%;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}
.etab:hover { border-color: color-mix(in srgb, var(--color-primary) 30%, #fff); }
.etab-nom { font-weight: 600; font-size: var(--text-sm); }
.etab-ville { font-size: var(--text-xs); color: var(--color-text-muted); }
.etab-n { font-size: var(--text-xs); color: var(--color-text-muted); align-self: start; white-space: nowrap; }
.etab .phase-bar { grid-column: 1 / -1; height: 6px; }

.retour { font-size: var(--text-sm); color: var(--color-text-muted); display: inline-flex; gap: 6px; align-items: center; }
.retour:hover { color: var(--color-primary); }
.detail-titre { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-primary); line-height: 1.2; }
.detail-sous { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 4px; }
.detail-pres { font-size: var(--text-sm); }
.note {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--color-primary-soft);
  color: var(--color-primary); font-size: var(--text-sm);
}
.note a { text-decoration: underline; font-weight: 600; }
.fiche { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.fiche h3 { font-size: var(--text-base); font-weight: 600; }
.fiche p { font-size: var(--text-sm); color: var(--color-text-muted); }
.fiche-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 860px) {
  .menu-connexion { width: min(300px, 92vw); }
  .dom { grid-template-columns: minmax(0, 1fr) 80px 24px; }
}
.map.is-loin .marker.is-serre .marker-label { display: none; }
.map.is-loin .marker.is-serre:hover .marker-label { display: block; z-index: 2; }
.marker.label-haut .marker-label { top: auto; bottom: 100%; transform: translate(-50%, -8px); }

/* Niveaux national */
.outils { padding: 0 var(--space-6) var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.panel-head[hidden] + .outils { padding-top: var(--space-5); }
.recherche { position: relative; }
.recherche .search { min-height: 40px; }
.resultats {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; max-height: 380px; overflow-y: auto;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-1);
}
.resultat { display: grid; grid-template-columns: 96px 1fr; gap: 0 var(--space-2); width: 100%; text-align: left; padding: var(--space-2); border-radius: var(--radius-sm); }
.resultat:hover, .resultat:focus-visible { background: var(--color-surface-2); }
.res-type { grid-row: span 2; font-size: var(--text-xs); color: var(--color-text-faint); padding-top: 2px; }
.res-lib { font-size: var(--text-sm); font-weight: 600; }
.res-sous { font-size: var(--text-xs); color: var(--color-text-muted); }
.res-attente { font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-2) var(--space-3); }
.filtres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.filtre { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-xs); color: var(--color-text-muted); min-width: 0; }
.filtre select { width: 100%; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); font-size: var(--text-sm); color: var(--color-text); }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 var(--space-6) var(--space-4); font-size: var(--text-sm); }
.fil button { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.fil button:hover { color: var(--color-primary); }
.fil [aria-current] { font-weight: 600; color: var(--color-primary); }
.fil .sep { color: var(--color-text-faint); }
.note-filtre { font-size: var(--text-xs); color: var(--color-text-muted); }
.note-filtre button { text-decoration: underline; color: var(--color-primary); margin-left: 4px; }
.detail-site { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: 4px; }
.bloc-pied { margin: var(--space-3) 0 0; }
.bloc-pied a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.grp-head.lien { width: 100%; text-align: left; }
.grp-head.lien:hover .grp-nom { text-decoration: underline; }
.marker.is-region, .marker.is-groupement { --marker-fill: #0F2A3A; font-size: 15px; }
.marker.is-groupement { box-shadow: 0 0 0 6px color-mix(in oklab, #FF6D0C 25%, transparent); }
.pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--color-accent); border: 2px solid #fff; box-shadow: var(--shadow); }

/* Fiches résumées */
.resume-groupe { margin-top: var(--space-4); }
.resume-groupe h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-bottom: var(--space-2); }
.resume-groupe h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.resume-groupe h3 .n { color: var(--color-text-faint); font-weight: 600; }
.resume { padding: var(--space-2) var(--space-3); border-left: 2px solid var(--color-border); margin-bottom: var(--space-2); }
.resume-dom { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.resume-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.resume.a-usage { border-left-color: var(--color-accent); }
.resume-usage { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.resume-aussi { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; }
.lien-inline { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* Veille Health & Tech Intelligence — couche distincte (aperçu du 18/10/2026) */
.picto-v { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; flex: none; }
.badge-v { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 600; color: var(--ci-navy); background: color-mix(in srgb, #FF6D0C 9%, #ffffff); border: 1px solid color-mix(in srgb, #FF6D0C 30%, #ffffff); border-radius: 999px; padding: 3px 10px 3px 6px; margin: 6px 6px 8px 0; }
.badge-conf { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 600; color: #ffffff; background: var(--ci-navy); border-radius: 999px; padding: 3px 10px; }
.bloc-v .kpi-label { max-width: 22ch; }
.etab-v .etab-n { color: var(--color-text-muted); }
.note-v { border-left: 3px solid var(--ci-orange); }
.resume-source { display: flex; align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); margin: 4px 0 0; }
.resume-source .picto-v { width: 15px; height: 15px; margin-right: 5px; }
.resume-etudes { font-size: var(--text-xs); color: var(--color-text-muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.resume-etudes a { color: var(--ci-navy); }
.marker-v { width: 16px; height: 16px; cursor: pointer; display: grid; place-items: center; z-index: 0; }
.marker-v-pt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #FF6D0C; border: 2px solid #ffffff; box-shadow: 0 0 0 1.5px #0F2A3A; }
.marker-v:hover .marker-v-pt, .marker-v.is-on .marker-v-pt { transform: scale(1.35); box-shadow: 0 0 0 2px #0F2A3A, 0 0 0 6px color-mix(in oklab, #FF6D0C 30%, transparent); }
.marker-v .marker-label { display: none; }
.marker-v.avec-label .marker-label, .marker-v:hover .marker-label { display: block; }
.legend-v { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--text-xs); color: var(--color-text); cursor: pointer; }
.legend-v input { margin: 0; accent-color: #0F2A3A; }
.legend-v .marker-v-pt { width: 10px; height: 10px; }
.maplibregl-marker.marker { z-index: 1; }

/* Glissière panneau / carte (aperçu du 18/10/2026) */
.glissiere { position: absolute; left: -7px; top: 0; bottom: 0; width: 14px; z-index: 5; cursor: col-resize; display: grid; place-items: center; touch-action: none; }
.glissiere span { width: 6px; height: 56px; border-radius: 999px; background: #ffffff; border: 1px solid var(--color-border); box-shadow: 0 1px 4px rgba(15,42,58,.18); transition: background .15s, border-color .15s; }
.glissiere:hover span, .glissiere:focus-visible span, body.glisse .glissiere span { background: #FF6D0C; border-color: #FF6D0C; }
.glissiere:focus-visible { outline: none; }
body.glisse { cursor: col-resize; user-select: none; }
body.glisse .map { pointer-events: none; }
@media (max-width: 860px) { .glissiere { display: none; } }
.bloc-v .kpis { margin-bottom: var(--space-4); }
.badge-etude { background: color-mix(in srgb, #0F2A3A 6%, #ffffff); border-color: color-mix(in srgb, #0F2A3A 18%, #ffffff); }
.bloc-etude .etab-list { margin-top: var(--space-2); }
