/* ═══ Secteur d'intervention — sections 2 à 4 (le header est dans styles.css) ═══
   Chargé sans bloquer le rendu. Animations en transform / opacity, coupées par prefers-reduced-motion. */

/* Couleurs des secteurs (points, onglets, liste, colonnes SEO) */
.sec-c-all { --c: #ececec; }
.sec-c-gd, .sec-t-gd { --c: #ff8c00; }
.sec-c-la, .sec-t-la { --c: #f2c14e; }
.sec-c-pb, .sec-t-pb { --c: #ef7f7c; }
.sec-c-be, .sec-t-be { --c: #6fcf9f; }
.sec-c-co, .sec-t-co { --c: #6fb3e0; }

.sec-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sec-head { text-align: center; }
.sec-head h2,
.sec-communes__head h2 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.sec-head h2 span,
.sec-communes__head h2 span { color: var(--orange); }

/* ── 2. Zones ── */
.sec-zones { padding-top: 1.5rem; }

/* Règle des distances : l'anneau posé sur Seyresse s'étire en barre orange jusqu'à 75 km */
.sec-ruler { position: relative; height: 56px; margin: 3rem 4px 0; }
.sec-ruler__track {
  position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #3a3a3a 0 10px, transparent 10px 18px);
}
.sec-ruler__fill {
  position: absolute; left: 0; top: 18px; width: 62%; height: 6px; border-radius: 6px;
  background: var(--orange); transform-origin: left center;
}
.sec-ruler__launch {
  position: absolute; left: -14px; top: -1px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--orange); background: rgba(255, 140, 0, 0.08); opacity: 0;
}
.sec-ruler__origin {
  position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); border: 4px solid var(--dark); box-sizing: border-box; transform: translateX(-4px); z-index: 1;
}
.sec-ruler__tick { position: absolute; left: 62%; top: 7px; width: 4px; height: 28px; border-radius: 4px; background: var(--white); transform: translateX(-2px); }
.sec-ruler__l { position: absolute; left: 0; top: 40px; font-size: 0.75rem; font-weight: 800; color: var(--white); white-space: nowrap; }
.sec-ruler__l--75 { left: 62%; transform: translateX(-50%); }
.sec-ruler__l--far { left: auto; right: 0; font-weight: 700; color: var(--text-muted); }
@supports (animation-timeline: view()) {
  .sec-ruler__fill,
  .sec-ruler__launch { animation: linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .sec-ruler__fill { animation-name: sec-fill; }
  .sec-ruler__launch { animation-name: sec-launch; }
}
/* Sans animation liée au défilement : même geste, déclenché à l'apparition (secteur.js) */
.sec-ruler.is-armed .sec-ruler__fill { transform: scaleX(0.03); }
.sec-ruler.is-armed .sec-ruler__launch { opacity: 1; }
.sec-ruler.is-armed.is-in .sec-ruler__fill { transform: none; transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.35s; }
.sec-ruler.is-armed.is-in .sec-ruler__launch { animation: sec-launch 1s ease-out 0.1s both; }
@keyframes sec-fill {
  0%, 35% { transform: scaleX(0.03); }
  100% { transform: none; }
}
@keyframes sec-launch {
  0%, 35% { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(0.35) translateX(60px); }
}

/* Repère lié : glisse à la distance de la commune survolée, cherchée ou localisée */
.sec-mark {
  position: absolute; left: 0; right: 0; top: 8px; height: 26px; z-index: 2; pointer-events: none;
  transform: translateX(calc(var(--p, 0) * 1%)); opacity: 0;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.sec-mark.is-on { opacity: 1; }
.sec-mark__pin {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box;
  background: var(--dark); border: 4px solid var(--mc, #4ade80); transform: translateX(-50%);
  transition: border-color 0.3s ease;
}
.sec-mark__tag {
  position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateX(-50%);
  padding: 5px 10px; border-radius: 10px; background: var(--dark-soft); border: 1px solid var(--mc, #4ade80);
  font-size: 0.75rem; font-weight: 800; color: var(--white); white-space: nowrap;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.sec-mark[data-edge="l"] .sec-mark__tag { transform: translateX(-14px); }
.sec-mark[data-edge="r"] .sec-mark__tag { transform: translateX(calc(-100% + 14px)); }

/* Deux cartes de zone */
.sec-zones__cards { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 1rem; margin-top: 1.75rem; }
.sec-zone {
  min-width: 0; padding: 1.9rem; border-radius: 24px; background: var(--dark-soft); border: 1px solid rgba(255, 140, 0, 0.4);
}
.sec-zone--out { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; background: #141414; border: 1px dashed #3a3a3a; }
.sec-zone--out[data-scroll] { transition-delay: 0.12s; }
.sec-zone__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.sec-chip {
  display: inline-flex; align-items: center; margin: 0; padding: 5px 12px; border-radius: 999px;
  background: rgba(160, 168, 180, 0.12); border: 1px solid rgba(160, 168, 180, 0.35);
  font-size: 0.75rem; font-weight: 800; color: #c4cad3;
}
.sec-chip--in { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.35); color: #4ade80; }
.sec-zone__count { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.sec-zone__title { margin: 1rem 0 0; font-size: clamp(1.35rem, 2.6vw, 1.65rem); font-weight: 800; line-height: 1.2; color: var(--text); }
.sec-zone__text { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.6; color: #c4cad3; }
.sec-zone__perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.625rem;
  margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.sec-zone__perks li {
  display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.875rem; border-radius: 14px;
  background: #141414; border: 1px solid #262626; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted);
}
.sec-zone__perks .ico { flex: none; width: 20px; height: 20px; color: var(--orange-light); }
.sec-zone__perks strong { display: block; color: var(--text); }
.sec-zone__btn { align-self: flex-start; min-height: 44px; border-radius: 12px; font-size: 0.875rem; }
.sec-zone__btn .ico { width: 17px; height: 17px; }
/* Les trois atouts arrivent l'un après l'autre, une fois la carte visible */
.sec-zone[data-scroll]:not(.scroll-visible) .sec-zone__perks li { opacity: 0; transform: translateY(12px); }
.sec-zone.scroll-visible .sec-zone__perks li { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sec-zone.scroll-visible .sec-zone__perks li:nth-child(1) { transition-delay: 0.25s; }
.sec-zone.scroll-visible .sec-zone__perks li:nth-child(2) { transition-delay: 0.35s; }
.sec-zone.scroll-visible .sec-zone__perks li:nth-child(3) { transition-delay: 0.45s; }
@media (hover: hover) {
  .sec-zone.scroll-visible { transition: opacity 0.7s ease, transform 0.3s ease, border-color 0.3s ease; }
  .sec-zone.scroll-visible:hover { transform: translateY(-4px); }
  .sec-zone--in.scroll-visible:hover { border-color: rgba(255, 140, 0, 0.7); }
  .sec-zone--out.scroll-visible:hover { border-color: #555; }
}

/* ── 3. Communes ── */
.sec-communes { padding-top: 2.5rem; }
.sec-communes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; }
.sec-communes__head p { margin: 0; max-width: 26rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }

/* Onglets secteurs */
.sec-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.sec-tab {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.95rem; border-radius: 999px;
  border: 1px solid #2f2f2f; background: #141414; color: #c4cad3; font-family: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sec-tab[aria-selected="true"] { border-color: rgba(255, 140, 0, 0.6); background: rgba(255, 140, 0, 0.14); color: var(--white); }
.sec-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sec-tab:active { transform: scale(0.97); }
@media (hover: hover) { .sec-tab:hover { border-color: rgba(255, 140, 0, 0.45); } }
.sec-tab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sec-tab__n { font-size: 0.75rem; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Carte + panneau liste */
.sec-explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 1.25rem; margin-top: 1.25rem; align-items: stretch; }
.sec-map { position: relative; min-width: 0; margin: 0; align-self: start; border-radius: 24px; background: #121212; border: 1px solid #262626; overflow: hidden; }
.sec-map__view { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }

/* Zoom Grand Dax : la couche grossit ×5,2 autour de Seyresse, points et noms gardent leur taille */
@property --z { syntax: "<number>"; inherits: true; initial-value: 1; }
.sec-map__layer {
  --z: 1; position: absolute; inset: 0; transform: scale(var(--z)); transform-origin: 50% 50%;
  transition: --z 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sec-map.is-zoomed .sec-map__layer { --z: 5.2; }
.sec-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec-map__coast { fill: none; stroke: rgba(111, 179, 224, 0.35); stroke-width: calc(1.2px / var(--z)); }
.sec-map__grid { stroke: rgba(255, 255, 255, 0.04); stroke-width: calc(0.6px / var(--z)); }
.sec-map__r75 { fill: rgba(255, 140, 0, 0.04); stroke: var(--orange); stroke-width: calc(1.4px / var(--z)); stroke-dasharray: 4 4; }
.sec-map__r { fill: none; stroke: rgba(255, 140, 0, 0.18); stroke-width: calc(0.8px / var(--z)); }
.sec-map__names,
.sec-map__km { font-family: var(--font); font-weight: 700; transition: opacity 0.4s ease; }
.sec-map__names { font-size: 10px; letter-spacing: 2px; fill: rgba(111, 179, 224, 0.55); }
.sec-map__names .sec-map__es { font-size: 9px; fill: #4a4f55; }
.sec-map__km { font-size: 8px; fill: #6f7680; }
.sec-map__km .is-z1 { fill: var(--orange-light); }
.sec-map__km .is-z2 { fill: #8a919c; }
.sec-map.is-zoomed .sec-map__names,
.sec-map.is-zoomed .sec-map__km,
.sec-map.is-zoomed .sec-map__grid { opacity: 0; }
.sec-map__grid { transition: opacity 0.4s ease; }

/* Trajet Seyresse → commune : courbe en pointillés qui avance */
.sec-map__arc {
  fill: none; stroke: var(--mc, #4ade80); stroke-linecap: round; opacity: 0;
  stroke-width: calc(2px / var(--z)); stroke-dasharray: calc(6px / var(--z)) calc(6px / var(--z));
  transition: opacity 0.3s ease;
}
.sec-map.has-target .sec-map__arc { opacity: 1; animation: sec-dash 1s linear infinite; }
@keyframes sec-dash { to { stroke-dashoffset: -24; } }

/* Balayage radar (dégradé conique en rotation, composité) */
.sec-map__sweep {
  position: absolute; left: 50%; top: 50%; width: 88.6%; aspect-ratio: 1 / 1; margin: -44.3% 0 0 -44.3%; border-radius: 50%;
  background: conic-gradient(from -40deg, transparent 0deg, rgba(255, 140, 0, 0.05) 39deg, rgba(255, 140, 0, 0.16) 40deg, transparent 40.6deg);
  animation: sec-sweep 9s linear infinite; transition: opacity 0.4s ease; pointer-events: none;
}
.sec-map.is-zoomed .sec-map__sweep { opacity: 0; }
@keyframes sec-sweep { to { transform: rotate(360deg); } }

/* Points des communes : lien vers la page de la commune, zone de toucher de 26 px */
.sec-dot {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; z-index: 1;
  transform: scale(calc(1 / var(--z))) translate(-50%, -50%); transform-origin: 0 0;
  -webkit-tap-highlight-color: transparent;
}
.sec-dot::after {
  --s: 8px;
  content: ""; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1.5px #121212;
  transition: transform 0.2s ease, opacity 0.35s ease, box-shadow 0.2s ease;
}
.sec-map.is-zoomed .sec-dot::after { --s: 11px; }
.sec-dot.is-on { z-index: 3; }
.sec-dot.is-on::after { transform: scale(1.75); box-shadow: 0 0 0 2px #fff; }
.sec-dot.is-off { pointer-events: none; }
.sec-dot.is-off::after { opacity: 0.12; }
/* Arrivée : les points apparaissent en onde depuis Seyresse, à leur distance */
.sec-map.is-armed:not(.is-in) .sec-dot::after { opacity: 0; transform: scale(0); }
.sec-map.is-in .sec-dot::after { animation: sec-pop 0.55s cubic-bezier(0.2, 0.7, 0.3, 1.4) backwards; animation-delay: calc(var(--km) * 18ms + 0.15s); }
@keyframes sec-pop { from { opacity: 0; transform: scale(0); } }

/* Noms de villes (principales, ou les 13 communes du Grand Dax une fois zoomé) */
.sec-label {
  position: absolute; z-index: 2; pointer-events: none; opacity: 0;
  font-size: 0.69rem; font-weight: 700; color: #c4cad3; white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 0 2px #000;
  transform: scale(calc(1 / var(--z))) translate(9px, -50%); transform-origin: 0 0;
  transition: opacity 0.35s ease;
}
.sec-map:not(.is-zoomed) .sec-label[data-side="l"],
.sec-map.is-zoomed .sec-label[data-zside="l"] { transform: scale(calc(1 / var(--z))) translate(calc(-100% - 9px), -50%); }
.sec-map:not(.is-zoomed) .sec-label[data-side="t"],
.sec-map.is-zoomed .sec-label[data-zside="t"] { transform: scale(calc(1 / var(--z))) translate(-50%, calc(-100% - 7px)); }
.sec-map:not(.is-zoomed) .sec-label[data-side="b"],
.sec-map.is-zoomed .sec-label[data-zside="b"] { transform: scale(calc(1 / var(--z))) translate(-50%, 7px); }
.sec-map:not(.is-zoomed) .sec-label[data-set~="all"],
.sec-map.is-zoomed .sec-label[data-set~="gd"] { opacity: 1; }
.sec-map.is-zoomed .sec-label[data-set~="gd"] { transition-delay: 0.35s; }
.sec-map .sec-label.is-hidden[data-set] { opacity: 0; transition-delay: 0s; }
.sec-map.is-armed:not(.is-in) .sec-label { opacity: 0; }
.sec-map.is-in:not(.is-settled) .sec-label { transition: opacity 0.5s ease 1s; }

/* Seyresse au centre */
.sec-map__ping,
.sec-map__home { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--orange); pointer-events: none; }
.sec-map__ping { width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: 0; animation: sec-ping 2.2s ease-out infinite; }
.sec-map__home { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #121212; box-sizing: border-box; z-index: 2; }

.sec-map__name {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(calc(-100% - 10px), -50%); pointer-events: none; opacity: 0;
  font-size: 0.69rem; font-weight: 800; color: var(--white); text-shadow: 0 1px 3px #000, 0 0 2px #000; transition: opacity 0.35s ease;
}
.sec-map.is-zoomed .sec-map__name { opacity: 1; transition-delay: 0.35s; }

/* Position de l'utilisateur après « Me localiser » */
.sec-map__geo {
  position: absolute; z-index: 5; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  background: #4ade80; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.25);
  transform: scale(calc(1 / var(--z))) translate(-50%, -50%); transform-origin: 0 0; pointer-events: none;
}

/* Bulle d'information */
.sec-tip {
  position: absolute; z-index: 6; left: var(--tl, 50%); top: var(--tt, 50%);
  transform: translate(var(--tx, -50%), calc(-100% - 14px));
  padding: 7px 12px; border-radius: 10px; background: var(--dark); border: 1px solid var(--c, var(--orange));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6); white-space: nowrap; pointer-events: none;
  animation: sec-tip-in 0.18s ease-out;
}
.sec-tip.is-below { transform: translate(var(--tx, -50%), 16px); }
.sec-tip strong { display: block; font-size: 0.82rem; font-weight: 800; color: var(--white); }
.sec-tip span { display: block; margin-top: 2px; font-size: 0.69rem; color: var(--text-muted); }
@keyframes sec-tip-in { from { opacity: 0; scale: 0.94; } }

.sec-map__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
  padding: 6px 12px; border-radius: 999px; background: rgba(15, 15, 15, 0.85); border: 1px solid #262626;
  font-size: 0.75rem; color: #c4cad3;
}
.sec-map__cap > span:first-child { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.sec-map__view:not(.is-live) .sec-map__sweep,
.sec-map__view:not(.is-live) .sec-map__ping,
.sec-map__view:not(.is-live) .sec-map__arc { animation-play-state: paused; }

/* Panneau : recherche, localisation, repère, liste triée par distance */
.sec-panel { container-type: inline-size; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; background: #141414; border: 1px solid #262626; overflow: hidden; }
.sec-panel__handle { display: none; }
.sec-panel__tools { padding: 1rem; border-bottom: 1px solid #262626; }
.sec-search { position: relative; }
.sec-search .ico { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.sec-search input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 10px 0 38px; border-radius: 12px;
  border: 1px solid #333; background: var(--dark); color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sec-search input::placeholder { color: #8a919c; }
.sec-search input:focus { outline: none; border-color: rgba(255, 140, 0, 0.7); box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15); }
.sec-locate {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px;
  border-radius: 12px; border: 1px solid #333; background: var(--dark-soft); color: var(--text);
  font-family: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sec-locate .ico { width: 18px; height: 18px; color: var(--orange); }
.sec-locate:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sec-locate.is-loading .ico { animation: sec-spin 1.2s linear infinite; }
@media (hover: hover) { .sec-locate:hover { border-color: rgba(255, 140, 0, 0.6); background: rgba(255, 140, 0, 0.1); } }
@keyframes sec-spin { to { transform: rotate(360deg); } }
.sec-geomsg {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 0.82rem; line-height: 1.5;
  background: rgba(160, 168, 180, 0.1); border: 1px solid rgba(160, 168, 180, 0.35); color: #c4cad3;
  animation: sec-msg-in 0.3s ease-out;
}
.sec-geomsg.is-ok { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); color: #c9f5da; }
@keyframes sec-msg-in { from { opacity: 0; transform: translateY(-4px); } }
.sec-target { margin-top: 12px; animation: sec-msg-in 0.3s ease-out; }
.sec-target__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 0.75rem; }
.sec-target__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: var(--white); }
.sec-target__km { flex: none; font-weight: 700; color: var(--mc, #4ade80); }
.sec-mini-ruler { position: relative; height: 34px; margin-top: 4px; }
.sec-mini-ruler__track { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #3a3a3a 0 6px, transparent 6px 10px); }
.sec-mini-ruler__fill { position: absolute; left: 0; top: 8px; width: 62%; height: 4px; border-radius: 4px; background: var(--orange); }
.sec-mark--mini { top: 3px; height: 14px; }
.sec-mark--mini .sec-mark__pin { width: 14px; height: 14px; border-width: 3px; }
.sec-mini-ruler__l { position: absolute; left: 0; top: 18px; font-size: 0.62rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.sec-mini-ruler__l--75 { left: 62%; transform: translateX(-50%); }
.sec-mini-ruler__l--far { left: auto; right: 0; color: #8a919c; }
.sec-panel__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 10px 0 0; font-size: 0.75rem; color: var(--text-muted); }
.sec-panel__meta span { white-space: nowrap; }
@container (max-width: 300px) { .sec-panel__meta [data-sec-sort] { display: none; } }
/* Ville choisie sur la carte : la liste ne garde qu'elle, ce bouton rend la liste complète */
.sec-reset {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; margin: -4px 0; padding: 0 2px; border: 0; background: none;
  font-family: inherit; font-size: 0.75rem; font-weight: 700; color: var(--orange-light); cursor: pointer; white-space: nowrap;
}
.sec-reset[hidden] { display: none; }
.sec-reset > span { position: relative; width: 10px; height: 10px; }
.sec-reset > span::before,
.sec-reset > span::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.sec-reset > span::after { transform: rotate(-45deg); }
.sec-reset:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .sec-reset:hover { color: var(--white); } }
.sec-list.is-picked .sec-item { animation: sec-msg-in 0.3s ease-out; }
.sec-hint { margin: 10px 10px 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); animation: sec-msg-in 0.3s ease-out 0.1s both; }

.sec-list { flex: 1 1 auto; height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.sec-list:focus { outline: none; }
.sec-list:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.sec-list::-webkit-scrollbar { width: 8px; }
.sec-list::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
.sec-band__h {
  position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 10px 6px;
  background: #141414; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-light);
}
.sec-band__h::after { content: ""; flex: 1 1 auto; height: 1px; background: #262626; }
.sec-band--far .sec-band__h { color: var(--text-muted); }
.sec-band__list { margin: 0; padding: 0; list-style: none; }
.sec-item {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 10px;
  color: var(--text); text-decoration: none; transition: background 0.15s ease, box-shadow 0.15s ease;
}
a.sec-item:visited { color: var(--text); }
.sec-item.is-on { background: #262626; box-shadow: inset 0 0 0 1px var(--c); }
.sec-item:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
@media (hover: hover) { .sec-item:hover { background: #242424; color: var(--white); } }
.sec-item__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sec-item__n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 600; }
.sec-item__km { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sec-none { margin: 14px 6px; padding: 14px 16px; border-radius: 14px; border: 1px dashed #3a3a3a; font-size: 0.875rem; line-height: 1.55; color: #c4cad3; }
.sec-none a { font-weight: 800; color: var(--orange-light); white-space: nowrap; }

/* Liste complète par secteur (liens servis dans le HTML, pour le référencement) */
.sec-all { margin-top: 1.25rem; border-radius: 20px; background: #141414; border: 1px solid #262626; interpolate-size: allow-keywords; }
.sec-all summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 22px;
  font-size: 0.95rem; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; border-radius: 20px;
}
.sec-all summary::-webkit-details-marker { display: none; }
.sec-all summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sec-all__plus { position: relative; flex: none; width: 14px; height: 14px; transition: transform 0.3s ease; }
.sec-all__plus::before,
.sec-all__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--orange); }
.sec-all__plus::after { transform: rotate(90deg); }
.sec-all[open] .sec-all__plus { transform: rotate(135deg); }
.sec-all::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.4s allow-discrete; }
.sec-all[open]::details-content { block-size: auto; }
/* Un bloc par secteur, titres alignés sur chaque rangée (5 colonnes, 3 en tablette, 2 au téléphone) */
.sec-all__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: start; gap: 1.5rem; padding: 4px 22px 24px; }
.sec-all__group { min-width: 0; }
.sec-all__h { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.sec-all__group ul { margin: 0; padding: 0; list-style: none; font-size: 0.82rem; line-height: 1.5; }
.sec-all__group a { display: inline-block; padding: 3px 0; color: #c4cad3; text-decoration: none; }
.sec-all__group a:hover { color: var(--orange-light); text-decoration: underline; }

/* Tablette : carte et liste restent côte à côte (liste plus étroite) */
@media (max-width: 960px) {
  .sec-explorer { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1rem; }
  /* Onglets en grille 3 × 2 régulière plutôt qu'une 2e ligne bancale */
  .sec-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-tab { justify-content: center; }
  .sec-zones__cards { grid-template-columns: minmax(0, 1fr); }
  /* Zone 2 en bandeau : texte à gauche, bouton à droite */
  .sec-zone--out { flex-direction: row; align-items: center; gap: 1.5rem; }
  .sec-zone--out .sec-zone__btn { align-self: center; flex: none; }
  .sec-zone--out[data-scroll] { transition-delay: 0s; }
}
/* Petites tablettes et téléphones : liste sous la carte */
@media (max-width: 699px) {
  .sec-explorer { grid-template-columns: minmax(0, 1fr); }
  .sec-panel__tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
  .sec-panel__tools > :not(.sec-search):not(.sec-locate):not(.sec-sr) { grid-column: 1 / -1; }
  .sec-locate { margin-top: 0; padding: 0 16px; width: auto; }
  .sec-list { height: 340px; }
  .sec-band__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
}
@media (max-width: 640px) {
  .sec-zones { padding-bottom: 3.5rem; }
  .sec-ruler { margin-top: 2.75rem; }
  .sec-ruler__l { font-size: 0.69rem; }
  .sec-zone { padding: 1.35rem; border-radius: 20px; }
  .sec-zone--out { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .sec-zone__perks { gap: 0.5rem; margin-top: 1rem; }
  .sec-zone__perks li { align-items: center; padding: 0.7rem 0.85rem; }
  .sec-zone__perks strong { display: inline; }
  .sec-zone__perks strong::after { content: " "; }
  .sec-zone--out .sec-zone__btn { align-self: stretch; }
  .sec-communes { padding-top: 1.5rem; }
  .sec-tabs {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1rem, 4vw, 1.5rem));
    padding: 0 clamp(1rem, 4vw, 1.5rem) 4px; scroll-padding-inline: clamp(1rem, 4vw, 1.5rem); margin-top: 1.5rem;
  }
  .sec-tabs::-webkit-scrollbar { display: none; }
  .sec-tab { flex: none; }
  .sec-map { border-radius: 20px; }
  .sec-map__cap { left: 10px; bottom: 10px; font-size: 0.69rem; }
  .sec-panel { border-radius: 20px; }
  /* Poignée « Afficher toute la liste / Réduire » */
  .sec-panel__handle {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 0 4px;
    border: 0; background: transparent; color: var(--text-muted); font-family: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
  }
  .sec-panel__handle > span:first-child { width: 40px; height: 4px; border-radius: 4px; background: #3a3a3a; transition: background 0.2s ease; }
  .sec-panel.is-open .sec-panel__handle > span:first-child { background: var(--orange); }
  .sec-panel__handle:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
  .sec-panel__tools { display: block; padding-top: 0.5rem; }
  .sec-locate { margin-top: 8px; width: 100%; }
  .sec-list { height: 260px; transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
  .sec-panel.is-open .sec-list { height: 62vh; }
  .sec-list.is-picked, .sec-panel.is-open .sec-list.is-picked { height: auto; }
  .sec-band__list { display: block; }
  .sec-all summary { padding: 0 18px; }
  .sec-all__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; padding: 4px 18px 20px; }
}
@media (max-width: 329px) {
  .sec-all__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sec-ruler__fill, .sec-ruler__launch, .sec-map__sweep, .sec-map__ping, .sec-map__arc, .sec-dot::after,
  .sec-tip, .sec-geomsg, .sec-target, .sec-hint, .sec-list.is-picked .sec-item, .sec-locate.is-loading .ico { animation: none !important; }
  .sec-ruler__launch { opacity: 0 !important; }
  .sec-ruler.is-armed .sec-ruler__fill { transform: none; }
  .sec-map.is-armed:not(.is-in) .sec-dot::after, .sec-map.is-armed:not(.is-in) .sec-label { opacity: 1; transform: none; }
  .sec-map__layer, .sec-mark, .sec-mark__tag, .sec-list, .sec-zone__perks li { transition: none !important; }
  .sec-all::details-content { transition: none; }
  .sec-zone[data-scroll]:not(.scroll-visible) .sec-zone__perks li { opacity: 1; transform: none; }
}
