/* The shared Santé components in arnaud2.css own the page's visual styling:
   ft-hero, ft-panel, health-kpis, ft-map-tools and demo-table.
   Keep only DAE-specific layout, emergency messaging and map behaviour here. */
.dae-page .ft-section { padding-bottom: 1.5rem; }
.dae-panel { min-width: 0; }
.dae-emergency {
 border: 1px solid #efc9ce;
 border-left: 4px solid var(--ft-red, #d7263d);
 border-radius: 8px;
 background: #fff5f6;
 color: #711c28;
 margin: 1rem 0 1.5rem;
 padding: 1rem;
}
.dae-emergency strong { font-size: 1.1rem; }
.dae-emergency a { color: inherit; font-weight: 800; text-decoration: underline; }
.dae-emergency p { margin: .5rem 0 0; }
.dae-finder { border-top: 4px solid var(--ald-brand-green); }
.dae-toolbar { flex-wrap: wrap; }
.dae-toolbar .ft-map-tools__input { flex: 1 1 180px; max-width: 100%; min-height: 44px; }
.dae-toolbar .ft-map-tools__button { min-height: 44px; white-space: normal; }
.dae-toolbar label { white-space: normal; }
.dae-toolbar input[type=checkbox] { margin-right: .4rem; }
.dae-page button:disabled { opacity: .55; cursor: default; }
.dae-page :focus-visible { outline: 3px solid var(--ald-brand-green-dark, #045b2e); outline-offset: 3px; }
.dae-kpi { min-width: 0; }
.dae-map { z-index: 0; }
.dae-map:fullscreen { height: 100vh; }
.dae-map .leaflet-overlay-pane canvas,
.dae-map .leaflet-overlay-pane svg { max-width: none; }
.dae-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; font-size: .9rem; }
.dae-marker { border: 2px solid white; border-radius: 50%; width: 22px; height: 22px; box-shadow: 0 1px 5px #333; color: white; text-align: center; font: bold 14px/18px sans-serif; }
.dae-scroll { max-width: 100%; margin: 1rem 0; }
/* Small chart tables need no minimum desktop width; large tables scroll naturally. */
.dae-page .demo-table { min-width: 0; }
.dae-page caption { caption-side: top; color: var(--ft-ink); font-weight: 700; padding: .8rem; }
.dae-commune-link { border: 0; background: transparent; color: var(--ald-brand-green-dark); font: inherit; font-weight: 700; padding: .2rem 0; text-align: left; text-decoration: underline; cursor: pointer; }
.dae-results { padding-left: 1.5rem; }
.dae-results li { padding: .7rem; border-bottom: 1px solid var(--ft-border); }
.dae-results p { margin: .3rem 0; }
.dae-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 1.5rem 0; }
.dae-charts>div { min-width: 0; }
.dae-chart { height: 320px; position: relative; min-width: 0; width: 100%; }
.dae-page summary { cursor: pointer; padding: .8rem 0; }
.dae-page .leaflet-control a { color: #111; text-decoration: none; }
.dae-page .leaflet-popup-content { font-size: .9rem; }
.dae-page .leaflet-popup-content p { margin: .4rem 0; }
.dae-page section { scroll-margin-top: 90px; }
@media(max-width:767px) {
 .dae-charts { grid-template-columns: minmax(0,1fr); }
 .dae-toolbar { align-items: stretch; }
 .dae-toolbar .ft-map-tools__input { width: 100%; flex-basis: 100%; }
 .dae-map { min-height: 390px; }
}
@media(prefers-reduced-motion:reduce) {
 .dae-page * { animation: none!important; scroll-behavior: auto!important; transition: none!important; }
}
.dae-commune-directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem 1.5rem; padding-left:1.25rem; }
@media(max-width:767px) { .dae-commune-directory { grid-template-columns:minmax(0,1fr); } }
/* Links in prose must remain identifiable without perceiving their colour. */
.dae-page p a, .dae-page .dae-equipment-content a { text-decoration: underline; text-underline-offset: .15em; }
