/* ═══════════════════════════════════════════════════════════
   ANNUAIRE GEOFIXE — Mobile-first, empathique, accessible
   Cible : familles de détenus sur mobile, souvent stressées
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Variables couleurs types ────────────────────────────── */
:root {
  --c-ma:   #ef4444; --c-ma-bg:   rgba(239,68,68,.12);
  --c-cp:   #f59e0b; --c-cp-bg:   rgba(245,158,11,.12);
  --c-cd:   #3b82f6; --c-cd-bg:   rgba(59,130,246,.12);
  --c-mc:   #a855f7; --c-mc-bg:   rgba(168,85,247,.12);
  --c-epm:  #22c55e; --c-epm-bg:  rgba(34,197,94,.12);
  --c-csl:  #14b8a6; --c-csl-bg:  rgba(20,184,166,.12);
  --c-accent: #6D3BEB;
  --c-accent-bg: rgba(109,59,235,.12);
}

/* ── Breadcrumb bar (bande pleine largeur sous le header fixe) ── */
.an-breadcrumb-bar {
  /* Header sticky (dans le flux) : pas d'offset 72px nécessaire, sinon double espace */
  margin-top: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.an-breadcrumb-bar .an-breadcrumb {
  border-bottom: none;
  padding: 9px 0;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.an-breadcrumb {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.an-breadcrumb__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px; list-style: none; margin: 0; padding: 0;
  font-size: .78rem; color: var(--muted);
}
.an-breadcrumb__list a { color: var(--ink-soft); text-decoration: none; }
.an-breadcrumb__list a:hover { color: var(--ink); }
.an-breadcrumb__list [aria-current="page"] { color: var(--ink-soft); }
.an-breadcrumb__sep { color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   PAGE INDEX — Hub principal
   ══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────── */
.an-hero {
  padding: 22px 0 36px;
  background: linear-gradient(160deg, rgba(109,59,235,.1) 0%, rgba(168,85,247,.06) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.an-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--brand-600);
  margin-bottom: 14px;
}
.an-hero__eyebrow::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #6D3BEB;
}
.an-hero__title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800; color: var(--ink);
  line-height: 1.18; margin: 0 0 12px;
}
.an-hero__sub {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  color: var(--ink-soft); line-height: 1.6;
  max-width: 560px; margin: 0 0 28px;
}

/* ── Barre de recherche ──────────────────────────────────── */
.an-searchbar {
  position: relative; max-width: 540px; margin-bottom: 16px;
}
.an-searchbar__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  width: 20px; height: 20px;
}
.an-searchbar__input {
  width: 100%; height: 54px;
  padding: 0 48px 0 50px;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  border-radius: 14px; color: var(--ink);
  font-size: 1rem; font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.an-searchbar__input::placeholder { color: var(--muted); }
.an-searchbar__input:focus {
  border-color: var(--brand-600);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(109,59,235,.12);
}
.an-searchbar__input::-webkit-search-cancel-button { display: none; }
.an-searchbar__clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: var(--surface-2); border: none; border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer;
  color: var(--ink-soft); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.an-searchbar__clear:hover { background: var(--surface-2); }

/* ── Chips filtre ────────────────────────────────────────── */
.an-chips {
  display: flex; gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto; padding: 2px 0 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.an-chips::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .an-chips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}
.an-chip {
  flex-shrink: 0; height: 36px;
  padding: 0 14px; border-radius: 18px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--ink-soft);
  font-size: .8rem; font-weight: 500; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.an-chip:hover  { border-color: var(--muted); color: var(--ink); }
.an-chip.active { background: rgba(109,59,235,.2); border-color: var(--brand-600); color: var(--ink); }

/* ── Compteur résultats ──────────────────────────────────── */
.an-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.an-results-count {
  font-size: .82rem; color: var(--muted);
}

/* ── Grille régions ──────────────────────────────────────── */
.an-regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .an-regions { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 1024px) {
  .an-regions { grid-template-columns: repeat(4, 1fr); }
}

/* Carte région — structure verticale compacte */
.an-region {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .22s, background .22s, transform .16s;
  min-height: 86px;
  position: relative;
  overflow: hidden;
}
.an-region::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(109,59,235,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .22s;
}
.an-region:hover {
  border-color: var(--brand-600);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.an-region:hover::before { opacity: 1; }
.an-region:active { transform: translateY(0); }

/* Ligne du haut : nom + chevron */
.an-region__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.an-region__name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}
.an-region__arr {
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
  transition: color .2s, transform .2s;
}
.an-region:hover .an-region__arr {
  color: var(--brand-600);
  transform: translateX(2px);
}

/* Ligne du bas : count + dép. */
.an-region__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.an-region__count {
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
}
.an-region__dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--surface-2);
  flex-shrink: 0;
}
.an-region__ndep {
  font-size: .72rem;
  color: var(--muted);
}

/* Mini-barre de composition par type */
.an-region__bar {
  display: flex;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  gap: 1px;
  opacity: .55;
  transition: opacity .2s;
}
.an-region:hover .an-region__bar { opacity: 1; }
.an-region__bar-seg { border-radius: 1px; min-width: 3px; }
.an-region__bar-seg--maison-arret         { background: var(--c-ma); }
.an-region__bar-seg--centre-penitentiaire { background: var(--c-cp); }
.an-region__bar-seg--centre-detention     { background: var(--c-cd); }
.an-region__bar-seg--maison-centrale      { background: var(--c-mc); }
.an-region__bar-seg--epm                  { background: var(--c-epm); }
.an-region__bar-seg--centre-semi-liberte  { background: var(--c-csl); }

/* ── Liste établissements ────────────────────────────────── */
.an-list { display: flex; flex-direction: column; gap: 6px; }

.an-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none;
  transition: border-color .2s, background .2s;
  min-height: 62px;
}
.an-item:hover {
  border-color: var(--brand-600);
  background: rgba(109,59,235,.05);
}
.an-item[hidden] { display: none; }

.an-item__badge {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em;
}
/* couleurs par type */
.an-item__badge--maison-arret         { background: var(--c-ma-bg);  color: var(--c-ma); }
.an-item__badge--centre-penitentiaire { background: var(--c-cp-bg);  color: var(--c-cp); }
.an-item__badge--centre-detention     { background: var(--c-cd-bg);  color: var(--c-cd); }
.an-item__badge--maison-centrale      { background: var(--c-mc-bg);  color: var(--c-mc); }
.an-item__badge--epm                  { background: var(--c-epm-bg); color: var(--c-epm); }
.an-item__badge--centre-semi-liberte  { background: var(--c-csl-bg); color: var(--c-csl); }

.an-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.an-item__name { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-item__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-item__city { font-size: .75rem; color: var(--muted);
  display: flex; align-items: center; gap: 4px; }
.an-item__city svg { flex-shrink: 0; }
.an-item__region-tag {
  font-size: .68rem; padding: 1px 7px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.an-item__tel {
  font-size: .72rem; color: var(--brand-600);
  display: flex; align-items: center; gap: 3px;
}
.an-item__arr { color: var(--muted); flex-shrink: 0; font-size: .9rem; }

/* ── Section ─────────────────────────────────────────────── */
.an-section { padding: 40px 0; }
.an-section + .an-section { padding-top: 0; }
.an-section__title {
  font-size: 1.05rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 16px;
}
.an-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.an-section__header .an-section__title { margin: 0; }
.an-section__all {
  font-size: .78rem; color: var(--brand-600);
  text-decoration: none;
}
.an-section__all:hover { color: var(--brand-600); }

/* ── Résultats de recherche ──────────────────────────────── */
#an-search-results { padding-top: 24px; }

/* ══════════════════════════════════════════════════════════
   PAGE RÉGION
   ══════════════════════════════════════════════════════════ */

.an-region-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
}
.an-region-hero__title {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0 0 8px;
}
.an-region-hero__sub {
  font-size: .92rem; color: var(--ink-soft);
  margin: 0 0 20px; line-height: 1.5;
}

/* ── Groupes par type ────────────────────────────────────── */
.an-typegroup { margin-bottom: 36px; }
.an-typegroup__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.an-typegroup__label {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-soft);
}
.an-typegroup__count {
  font-size: .72rem; padding: 1px 8px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted);
}

/* ── CTA inline ──────────────────────────────────────────── */
.an-cta-strip {
  margin: 32px 0;
  padding: 24px; border-radius: 16px;
  background: rgba(109,59,235,.08);
  border: 1.5px solid rgba(109,59,235,.2);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.an-cta-strip__text h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.an-cta-strip__text p  { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.an-cta-strip__text p strong { color: var(--trust); }
.an-cta-strip__btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #6D3BEB, #8b5cf6);
  color: var(--ink); font-weight: 700; font-size: .88rem;
  text-decoration: none; white-space: nowrap;
  min-height: 44px; transition: opacity .2s, transform .15s;
}
.an-cta-strip__btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Autres régions ──────────────────────────────────────── */
.an-other-regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.an-other-region {
  padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; transition: border-color .2s, background .2s;
  min-height: 44px;
}
.an-other-region:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}
.an-other-region__name  { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.an-other-region__count { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   PAGE FICHE
   ══════════════════════════════════════════════════════════ */

/* ── Header fiche ────────────────────────────────────────── */
.an-fiche-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}
.an-fiche-type {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}
.an-fiche-type--maison-arret         { background: var(--c-ma-bg);  color: var(--c-ma); }
.an-fiche-type--centre-penitentiaire { background: var(--c-cp-bg);  color: var(--c-cp); }
.an-fiche-type--centre-detention     { background: var(--c-cd-bg);  color: var(--c-cd); }
.an-fiche-type--maison-centrale      { background: var(--c-mc-bg);  color: var(--c-mc); }
.an-fiche-type--epm                  { background: var(--c-epm-bg); color: var(--c-epm); }
.an-fiche-type--centre-semi-liberte  { background: var(--c-csl-bg); color: var(--c-csl); }

.an-fiche-title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0 0 10px;
}
.an-fiche-loc {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .88rem; color: var(--ink-soft); margin: 0;
}
.an-fiche-loc svg { flex-shrink: 0; }

/* ── Infos clés (2 colonnes sur mobile → 4 sur desktop) ─── */
.an-key-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; margin: 24px 0;
}
@media (min-width: 640px) {
  .an-key-infos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .an-key-infos { grid-template-columns: repeat(4, 1fr); }
}

.an-kinfo {
  padding: 16px; border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.an-kinfo__icon  { font-size: 1.3rem; line-height: 1; }
.an-kinfo__label { font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); }
.an-kinfo__val   { font-size: .88rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.an-kinfo__val a { color: var(--ink); text-decoration: none; }
.an-kinfo__val a:hover { text-decoration: underline; }
.an-kinfo__val--muted { color: var(--muted); font-weight: 400; font-style: italic; font-size: .82rem; }
.an-kinfo__sub   { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.an-kinfo__link  {
  font-size: .72rem; color: var(--brand-600);
  text-decoration: none; margin-top: 2px;
}
.an-kinfo__link:hover { color: var(--brand-600); text-decoration: underline; }

/* ── Tarifs ──────────────────────────────────────────────── */
.an-section--accent {
  background: linear-gradient(135deg, rgba(109,59,235,.07) 0%, rgba(168,85,247,.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.an-tarifs-wrap {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) {
  .an-tarifs-wrap { grid-template-columns: 1fr 300px; align-items: start; }
}

.an-tarifs-text p {
  font-size: .92rem; color: var(--ink-soft);
  line-height: 1.65; margin: 0 0 14px;
}

.an-tarifs-table {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 14px;
}
.an-tarifs-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; padding: 12px 16px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.an-tarifs-row:last-child { border-bottom: none; }
.an-tarifs-row--head {
  background: var(--surface-2);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted);
}
.an-tarifs-row--good { background: rgba(34,197,94,.05); }
.price-bad  { color: #fca5a5; font-weight: 700; }
.price-good { color: var(--trust); font-weight: 700; }

.an-tarifs-note {
  font-size: .82rem; color: var(--muted); line-height: 1.5;
}
.an-tarifs-note strong { color: var(--trust); }

/* ── CTA box ─────────────────────────────────────────────── */
.an-cta-box {
  padding: 20px; border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid rgba(109,59,235,.25);
  display: flex; flex-direction: column; gap: 12px;
}
.an-cta-box__pill {
  display: inline-flex; width: fit-content;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(109,59,235,.2); color: var(--brand-600);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.an-cta-box__title { font-size: .98rem; font-weight: 700; color: var(--ink); margin: 0; }
.an-cta-box__body  { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.an-cta-box__body strong { color: var(--trust); }
.an-cta-box__list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.an-cta-box__list li { font-size: .82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.an-cta-box__btn {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #6D3BEB, #8b5cf6);
  color: var(--ink); font-weight: 700; font-size: .9rem;
  text-decoration: none; min-height: 48px;
  transition: opacity .2s, transform .15s;
}
.an-cta-box__btn:hover { opacity: .92; transform: translateY(-1px); }
.an-cta-box__note { font-size: .7rem; color: var(--muted); text-align: center; }

/* ── Étapes ──────────────────────────────────────────────── */
.an-steps { display: flex; flex-direction: column; }
.an-step  {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.an-step:last-child { border-bottom: none; }
.an-step__num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(109,59,235,.15); border: 2px solid rgba(109,59,235,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: var(--brand-600);
}
.an-step__content { padding-top: 6px; }
.an-step__title { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.an-step__desc  { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ── Notice ──────────────────────────────────────────────── */
.an-notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-top: 20px;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 10px;
}
.an-notice__icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.an-notice p { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.an-notice strong { color: var(--warm); }

/* ── FAQ ─────────────────────────────────────────────────── */
.an-faq { display: flex; flex-direction: column; gap: 6px; }
.an-faq details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.an-faq details[open] { border-color: var(--brand-600); }
.an-faq summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; cursor: pointer; gap: 12px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  list-style: none; min-height: 50px;
}
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 1.2rem; color: var(--muted);
}
.an-faq details[open] summary::after { content: '−'; }
.an-faq__ans {
  padding: 0 18px 15px;
  font-size: .86rem; color: var(--ink-soft); line-height: 1.65; margin: 0;
}

/* ── Voisins / cards ─────────────────────────────────────── */
.an-voisins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.an-voisin {
  padding: 14px; border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, background .2s, transform .15s;
  min-height: 72px;
}
.an-voisin:hover {
  border-color: var(--brand-600); background: rgba(109,59,235,.06);
  transform: translateY(-2px);
}
.an-voisin:active { transform: translateY(0); }
.an-voisin__name { font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.an-voisin__city { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.an-voisin--more {
  align-items: center; justify-content: center;
  flex-direction: row; border-style: dashed;
  font-size: .84rem; font-weight: 600; color: var(--muted);
}
.an-voisin--more:hover { color: var(--ink); }

/* ── Description type ────────────────────────────────────── */
.an-type-desc {
  padding: 14px 16px; border-radius: 10px;
  background: var(--surface-2);
  border-left: 3px solid rgba(109,59,235,.4);
  font-size: .85rem; color: var(--ink-soft); line-height: 1.6;
  margin: 0;
}

/* ── Hubs par type (index) ───────────────────────────────── */
.an-type-hubs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 560px) {
  .an-type-hubs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .an-type-hubs { grid-template-columns: repeat(6, 1fr); }
}

.an-type-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 10px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
  min-height: 90px;
}
.an-type-hub:hover {
  border-color: var(--brand-600);
  background: rgba(109,59,235,.06);
  transform: translateY(-2px);
}
.an-type-hub:active { transform: translateY(0); }

.an-type-hub__badge {
  width: 36px !important; height: 36px !important;
  font-size: .6rem !important;
  border-radius: 10px !important;
  flex-shrink: 0;
}
.an-type-hub__label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
  flex: 1;
}
.an-type-hub__count {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Guides pratiques (liste) ────────────────────────────── */
.an-section--guides {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.an-guides {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.an-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  min-height: 48px;
  transition: background .18s, border-color .18s;
}
.an-guide:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
.an-guide__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.an-guide__text {
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}
.an-guide__arr {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.an-guide:hover .an-guide__arr {
  color: var(--brand-600);
  transform: translateX(2px);
}

/* ── Types grille (index) ────────────────────────────────── */
.an-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.an-type-card {
  padding: 18px; border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.an-type-card__abrev {
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 6px;
}
.an-type-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.an-type-card__label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}
.an-type-card__name { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.an-type-card__desc { font-size: .8rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ── Section "À quoi sert cet annuaire" ─────────────────── */
.an-section--about {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.an-about__intro {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 1.5rem;
}
.an-about__intro strong { color: var(--ink); }
.an-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .an-about__grid { grid-template-columns: repeat(4, 1fr); }
}
.an-about__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.an-about__icon { font-size: 1.25rem; line-height: 1; }
.an-about__item div { display: flex; flex-direction: column; gap: 4px; }
.an-about__item strong { font-size: .82rem; font-weight: 600; color: var(--ink); }
.an-about__item span  { font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* ── Section types d'établissements (explainer) ──────────── */
.an-section--types-explainer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ── Focus visible accessibility ────────────────────────── */
.an-region:focus-visible,
.an-item:focus-visible,
.an-voisin:focus-visible,
.an-chip:focus-visible,
.an-cta-box__btn:focus-visible,
.an-cta-strip__btn:focus-visible,
.an-searchbar__input:focus-visible,
.an-faq summary:focus-visible,
.an-other-region:focus-visible {
  outline: 2px solid #6D3BEB; outline-offset: 2px;
}

/* ── Responsive ajustements ──────────────────────────────── */
@media (max-width: 400px) {
  .an-hero { padding: 16px 0 24px; }
  .an-key-infos { grid-template-columns: 1fr 1fr; }
  .an-tarifs-row { grid-template-columns: 1fr auto; font-size: .8rem; }
  .an-tarifs-row > span:last-child { display: none; }
}
/* ══════════════════════════════════════════════════════════
   FICHE — Nouvelles sections
   ══════════════════════════════════════════════════════════ */

/* ── Titre de section avec icône ──────────────────────────── */
.an-section__title {
  display: flex; align-items: center; gap: 10px;
}
.an-section__icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Note sous le titre de la fiche ──────────────────────── */
.an-fiche-note {
  margin: 6px 0 0; font-size: .82rem;
  color: var(--muted); font-style: italic;
}

/* ── Parloirs & visites ───────────────────────────────────── */
.an-parloir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .an-parloir-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .an-parloir-grid { grid-template-columns: repeat(3, 1fr); }
}

.an-parloir-card {
  padding: 18px 20px; border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.an-parloir-card--primary {
  background: rgba(109,59,235,.06);
  border-color: var(--brand-600);
}
.an-parloir-card__title {
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0;
}
.an-parloir-card__main {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin: 0; line-height: 1.4;
}
.an-parloir-card__detail {
  font-size: .85rem; color: var(--ink-soft);
  line-height: 1.65; margin: 0;
}
.an-parloir-card__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.an-parloir-card__row:last-of-type { border-bottom: none; }
.an-parloir-card__row-label {
  font-size: .8rem; color: var(--muted); flex-shrink: 0;
}
.an-parloir-card__row-val {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  text-align: right;
}
.an-parloir-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; min-height: 44px;
  background: rgba(109,59,235,.15); border: 1px solid rgba(109,59,235,.3);
  color: var(--brand-600); font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.an-parloir-card__cta:hover {
  background: rgba(109,59,235,.25); border-color: var(--brand-600);
}
.an-parloir-card__cta-label {
  font-size: .72rem; color: var(--muted);
  text-align: center; margin-top: -4px;
}

/* ── Contacts utiles ──────────────────────────────────────── */
.an-contacts-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) {
  .an-contacts-grid { grid-template-columns: 1fr 1fr; }
}

.an-contact-block {
  padding: 20px; border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.an-contact-block__title {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  margin: 0 0 10px;
}
.an-contact-block__desc {
  font-size: .8rem; color: var(--muted);
  line-height: 1.55; margin: 0 0 10px;
}
.an-contact-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.an-contact-row:last-child { border-bottom: none; }
.an-contact-row__label {
  font-size: .78rem; color: var(--muted); flex-shrink: 0;
}
.an-contact-row__val {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  text-align: right; text-decoration: none;
  transition: color .15s;
}
a.an-contact-row__val { color: var(--brand-600); }
a.an-contact-row__val:hover { color: var(--brand-600); text-decoration: underline; }

/* ── Envoyer de l'argent ──────────────────────────────────── */
.an-money-wrap {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 700px) {
  .an-money-wrap { grid-template-columns: 1fr 280px; align-items: start; }
}

.an-money-info p {
  font-size: .88rem; color: var(--ink-soft);
  line-height: 1.65; margin: 0 0 16px;
}
.an-money-info strong { color: var(--ink); }

.an-iban-block {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.an-iban-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.an-iban-row:last-child { border-bottom: none; }
.an-iban-label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
  flex-shrink: 0; width: 38px;
}
.an-iban-val {
  font-family: 'Courier New', monospace;
  font-size: .88rem; color: var(--brand-600); letter-spacing: .04em;
  word-break: break-all;
}

.an-money-note {
  font-size: .8rem; color: var(--muted); line-height: 1.5;
}

.an-money-aside {
  padding: 18px; border-radius: 12px;
  background: rgba(109,59,235,.06);
  border: 1px solid rgba(109,59,235,.18);
  display: flex; flex-direction: column; gap: 10px;
}
.an-money-aside__icon { font-size: 1.4rem; }
.an-money-aside p {
  font-size: .83rem; color: var(--ink-soft);
  line-height: 1.6; margin: 0;
}

/* ── Accès ────────────────────────────────────────────────── */
.an-acces-wrap {
  display: flex; flex-direction: column; gap: 16px;
}
.an-acces-text {
  font-size: .88rem; color: var(--ink-soft);
  line-height: 1.75;
}

.an-acces-maps {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px; width: fit-content; min-height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-soft); font-size: .88rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.an-acces-maps:hover {
  background: rgba(109,59,235,.1); border-color: var(--brand-600); color: var(--ink);
}
.an-acces-maps__icon { font-size: 1.1rem; }

@media (max-width: 480px) {
  .an-cta-strip { flex-direction: column; }
  .an-cta-strip__btn { width: 100%; justify-content: center; }
}

/* ── Horaires en liste ────────────────────────────────────── */
.an-horaires-list,
.an-acces-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.an-horaires-list li {
  padding: 7px 10px; border-radius: 8px;
  background: var(--surface-2);
  font-size: .83rem; color: var(--ink-soft);
  line-height: 1.5;
}
.an-horaires-list li:first-child {
  background: rgba(109,59,235,.1);
  color: var(--ink);
}
.an-acces-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .86rem; color: var(--ink-soft);
  line-height: 1.6;
}
.an-acces-list li:last-child { border-bottom: none; }
.an-acces-list li::before {
  content: '→ '; color: var(--brand-600); font-weight: 700;
}

/* ── Bouton copier IBAN ───────────────────────────────────── */
.an-copy-btn {
  margin-left: auto; flex-shrink: 0;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(109,59,235,.15); border: 1px solid rgba(109,59,235,.25);
  color: var(--brand-600); font-size: .72rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
  white-space: nowrap;
}
.an-copy-btn:hover { background: rgba(109,59,235,.3); color: var(--ink); }
.an-copy-btn.copied { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.3); color: var(--trust); }

/* ── IBAN row avec bouton ─────────────────────────────────── */
.an-iban-row { flex-wrap: wrap; }
.an-iban-val { flex: 1; min-width: 0; word-break: break-all; }


/* ═══════════════════════════════════════════════════════════
   SECTIONS ENRICHIES (fiches sémantiques)
   ═══════════════════════════════════════════════════════════ */

/* ── Intro éditoriale ──────────────────────────────────────── */
.an-intro-edito {
  margin: 20px 0 8px;
  padding: 20px 24px;
  background: rgba(109,59,235,.07);
  border: 1px solid rgba(109,59,235,.18);
  border-radius: 12px;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--ink);
}
.an-intro-edito p + p { margin-top: 10px; }
.an-intro-edito__tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(109,59,235,.08);
  border-left: 3px solid #6D3BEB;
  border-radius: 0 8px 8px 0;
  font-size: .87rem;
  color: var(--ink-soft);
}

/* ── Horaires détaillés (par bâtiment) ────────────────────── */
.an-horaires-detail { margin-top: 6px; }
.an-horaires-bat {
  margin-bottom: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: .85rem;
}
.an-horaires-bat strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand-600);
  margin-bottom: 6px;
}
.an-horaires-bat ul { margin: 0; padding: 0 0 0 6px; list-style: none; }
.an-horaires-bat li { padding: 2px 0; color: var(--ink); }
.an-horaires-jour { color: var(--ink-soft); font-size: .82rem; }

/* ── Permis de visite ─────────────────────────────────────── */
.an-permis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.an-permis-block {
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.6;
}
.an-permis-block--full { grid-column: 1 / -1; }
.an-permis-block__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.an-permis-block__note {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.an-permis-docs { margin: 0; padding-left: 18px; }
.an-permis-docs li { padding: 2px 0; color: var(--ink); }

/* ── Règlement visiteurs ──────────────────────────────────── */
.an-reglement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.an-reglement-block {
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.6;
}
.an-reglement-block--full { grid-column: 1 / -1; }
.an-reglement-block__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 8px;
}
.an-reglement-block__badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 8px;
}
.an-reglement-linge {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 12px;
  margin: 0;
  padding-left: 16px;
  font-size: .84rem;
}
.an-reglement-linge li { padding: 1px 0; color: var(--ink-soft); }

/* ── Aide aux familles ────────────────────────────────────── */
.an-familles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.an-familles-block {
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.6;
}
.an-familles-block__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(34,197,94,.7);
  margin: 0 0 8px;
}
.an-familles-block__sub {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ── Notes importantes ────────────────────────────────────── */
.an-notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.an-notes-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: 10px;
  font-size: .87rem;
  line-height: 1.55;
  color: var(--ink);
}
.an-notes-item__bullet {
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════
   FINITION THÈME CLAIR — Refonte V2 (surcouche)
   ════════════════════════════════════════════════════════════ */
.an-hero, .an-region-hero {
  background: linear-gradient(160deg, var(--brand-50), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.an-hero__eyebrow { color: var(--brand-600) !important; }
.an-hero__eyebrow::before { background: var(--brand) !important; }
.an-hero__title, .an-region-hero__title, .an-fiche-title,
.an-region__name, .an-item__name, .an-step__title, .an-faq summary,
.an-voisin__name, .an-type-card__label, .an-type-card__name,
.an-parloir-card__main, .an-contact-block__title,
.an-kinfo__val, .an-kinfo__val a, .an-section__title {
  color: var(--ink) !important;
}
.an-searchbar__input {
  background: var(--surface) !important; color: var(--ink) !important;
  border-color: var(--border-strong) !important;
}
.an-searchbar__input::placeholder { color: var(--faint) !important; }
.an-searchbar__icon, .an-searchbar__clear { color: var(--muted) !important; }
.an-searchbar__input:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px var(--ring) !important; }

/* Cartes -> surface blanche nette, bien détachée du fond.
   NB : on ne cible que de VRAIES cartes, pas les conteneurs (an-faq,
   an-notes-list, an-money-wrap, an-key-infos) sinon cadre en double. */
.an-region, .an-type-hub, .an-type-card, .an-item, .an-kinfo,
.an-parloir-card, .an-contact-block, .an-guide,
.an-permis-block, .an-about__item, .an-familles-block,
.an-iban-block, .an-horaires-bat {
  background: var(--surface) !important;
  border: var(--card-border) !important;
  box-shadow: var(--shadow-sm);
}
.an-region:hover, .an-type-hub:hover, .an-item:hover, .an-guide:hover {
  border-color: var(--brand) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.an-region__count, .an-region__ndep, .an-item__meta, .an-item__city,
.an-item__tel, .an-type-hub__count, .an-kinfo__label, .an-kinfo__sub,
.an-kinfo__val--muted, .an-contact-row__label, .an-breadcrumb__list,
.an-breadcrumb__list [aria-current], .an-fiche-loc, .an-money-note {
  color: var(--muted) !important;
}
.an-breadcrumb__list a { color: var(--ink-soft) !important; }
.an-breadcrumb__list a:hover { color: var(--brand-600) !important; }
.an-breadcrumb-bar { background: var(--surface) !important; border-bottom: 1px solid var(--border) !important; }

/* Chips de filtre */
.an-chip { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--ink-soft) !important; }
.an-chip.active, .an-chip:hover { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }

/* CTA / boutons (texte blanc conservé sur fond coloré) */
.an-cta-box { background: linear-gradient(135deg, var(--brand), var(--brand-700)) !important; border: none !important; color: #fff !important; }
.an-cta-box__title, .an-cta-box__body, .an-cta-box__note, .an-cta-box__list, .an-cta-box__list li, .an-cta-box__pill { color: #fff !important; }
.an-cta-box__body strong, .an-cta-box__list li strong { color: #fff !important; }
.an-cta-box__pill { background: rgba(255,255,255,.16) !important; }
.an-cta-box__btn { background: #fff !important; color: var(--brand-700) !important; }
.an-cta-strip { background: var(--brand-50) !important; border: 1px solid var(--brand-100) !important; }
.an-cta-strip__text h3 { color: var(--ink) !important; }
.an-cta-strip__btn { background: var(--brand) !important; color: #fff !important; }
.an-copy-btn { background: var(--surface-2) !important; color: var(--ink-soft) !important; border: 1px solid var(--border) !important; }
.an-copy-btn:hover { background: var(--brand) !important; color: #fff !important; }
.an-parloir-card--primary { border-color: var(--brand) !important; }
.an-parloir-card__cta { background: var(--brand) !important; color: #fff !important; }
.an-notice { background: var(--brand-50) !important; border: 1px solid var(--brand-100) !important; color: var(--ink-soft) !important; }
.an-intro-edito__tip { background: var(--trust-100) !important; color: var(--trust) !important; }


/* ════════════════════════════════════════════════════════════
   FICHE ÉTABLISSEMENT — TABLEAU DE BORD (préfixe fx-)
   Refonte du 03/10/2026. Mobile d'abord, jetons du design system.
   Bloc autonome : aucune règle an-* n'est modifiée.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Fond des boutons pleins : var(--brand) ne tient pas 4,5:1 sous
     texte blanc en thème sombre — on fige une teinte par thème. */
  --fx-fill:       var(--brand);
  --fx-fill-hover: var(--brand-600);
  --fx-warn-ink:   #8F4316;
  --fx-warn-bg:    var(--warm-100);
  --fx-warn-bd:    #F6D3BB;
}
html[data-theme="dark"] {
  --fx-fill:       #7C4DF0;
  --fx-fill-hover: #8E63F5;
  --fx-warn-ink:   #F8A06A;
  --fx-warn-bg:    rgba(248,160,106,.10);
  --fx-warn-bd:    rgba(248,160,106,.26);
}

.fx-i { display: block; flex: 0 0 auto; }

/* ── Identité ───────────────────────────────────────────── */
.fx-hero { padding: 18px 0 14px; }
.fx-type {
  display: inline-block; margin-bottom: 9px;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-100);
  border: 1px solid var(--border-strong); border-radius: var(--r-full);
  padding: 5px 11px;
}
.fx-title {
  margin: 0 0 9px; font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 800; color: var(--ink);
}
.fx-loc { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); }
.fx-loc .fx-i { color: var(--brand); }
.fx-loc a { color: var(--brand-600); font-weight: 600; }

/* ── Boutons ────────────────────────────────────────────── */
.fx-actions { display: flex; flex-direction: column; gap: 9px; }
.fx-actions__pair { display: flex; gap: 9px; }
.fx-actions__pair .fx-btn { flex: 1 1 0; min-width: 0; }
.fx-btn {
  min-height: 52px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--r-sm); font-size: .95rem; font-weight: 700;
  text-decoration: none; text-align: center; border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.fx-btn span:not(.fx-btn__ico) { min-width: 0; }
.fx-btn--primary { background: var(--fx-fill); color: #fff; box-shadow: var(--shadow-brand); }
.fx-btn--primary:hover { background: var(--fx-fill-hover); color: #fff; }
.fx-btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.fx-btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.fx-btn--sm { min-height: 44px; font-size: .85rem; }
.fx-btn__ico { display: flex; }
.fx-btn__ico--brand { color: var(--brand); }
.fx-btn__ico--trust { color: var(--trust); }

/* ── Carte générique ────────────────────────────────────── */
.fx-card {
  background: var(--surface); border: var(--card-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.fx-essentiel { margin-top: 14px; overflow: hidden; }
.fx-essentiel > .fx-row,
.fx-essentiel > .fx-row--stack { border-bottom: 1px solid var(--border); }

/* ── Ligne de donnée : libellé au-dessus, valeur pleine largeur ── */
.fx-row { display: flex; align-items: flex-end; gap: 12px; padding: 12px 15px; }
.fx-rows > .fx-row + .fx-row { border-top: 1px solid var(--border); }
.fx-row--stack { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 13px 15px; }
.fx-row__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fx-row__label {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.fx-row__val { font-size: .9rem; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.fx-row__val--big { font-size: 1rem; font-weight: 700; }
.fx-row__val a { color: var(--brand-600); }
.fx-row__sub { font-size: .78rem; color: var(--ink-soft); }
.fx-num { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.fx-muted { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ── Boutons d'action d'une ligne (44 px) ───────────────── */
.fx-act {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-xs); color: var(--ink-soft); text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.fx-act:hover { background: var(--brand-100); color: var(--brand-700); }
.fx-act--brand { background: var(--brand-100); border-color: var(--border-strong); color: var(--brand-700); }
.fx-act.is-copied { background: var(--trust-100); color: var(--trust); border-color: var(--trust); }

/* ── Avertissement ──────────────────────────────────────── */
.fx-warn {
  margin: 0; padding: 11px 15px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--fx-warn-bg); font-size: .8rem; line-height: 1.5; color: var(--ink-soft);
}
.fx-warn .fx-i { color: var(--fx-warn-ink); margin-top: 1px; }
.fx-warn strong { color: var(--fx-warn-ink); }
.fx-warn--strong { border: 1px solid var(--fx-warn-bd); border-radius: var(--r-sm); margin-top: 12px; }

/* ── Barre de missions ──────────────────────────────────── */
.fx-nav {
  position: sticky; top: 0; z-index: 30; margin-top: 16px;
  background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .fx-nav { background: rgba(8,8,15,.92); backdrop-filter: blur(10px); }
.fx-nav__inner {
  display: flex; gap: 7px; padding-top: 10px; padding-bottom: 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fx-nav__inner::-webkit-scrollbar { display: none; }
.fx-nav__inner a {
  flex: 0 0 auto; padding: 8px 13px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.fx-nav__inner a.is-active { background: var(--brand-100); border-color: var(--brand); color: var(--brand-700); font-weight: 700; }

/* ── Grille principale ──────────────────────────────────── */
.fx-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; margin-top: 16px; }
.fx-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fx-rail { display: none; }

/* ── Module ─────────────────────────────────────────────── */
.fx-mod { padding: 16px; scroll-margin-top: 120px; }
.fx-mod__head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.fx-mod__ico {
  flex: 0 0 auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs);
}
.fx-mod__ico--brand { background: var(--brand-100); color: var(--brand); }
.fx-mod__ico--trust { background: var(--trust-100); color: var(--trust); }
.fx-mod__ico--warm  { background: var(--fx-warn-bg); color: var(--fx-warn-ink); }
.fx-mod__title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.fx-mod__sub { margin: 1px 0 0; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.fx-mod--trust { border-color: var(--trust); }
.fx-mod p { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px; }
.fx-mod p:last-child { margin-bottom: 0; }
.fx-lead { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 12px; }
.fx-lead--tight { margin: 10px 0 0; font-size: .82rem; }
.fx-sub {
  margin: 14px 0 8px; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}

/* ── Chiffres clés ──────────────────────────────────────── */
.fx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 11px 12px; min-width: 0; }
.fx-stat__k { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fx-stat__v { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ── Créneaux horaires ──────────────────────────────────── */
.fx-slots {
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px;
  background: var(--surface-2); font-size: .82rem; line-height: 1.7; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.fx-slots .an-horaires-bat { margin-bottom: 10px; }
.fx-slots .an-horaires-bat:last-child { margin-bottom: 0; }
.fx-slots .an-horaires-bat strong { display: block; color: var(--brand-700); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.fx-slots ul { list-style: none; margin: 0; padding: 0; }
.fx-slots .an-horaires-jour { font-weight: 700; color: var(--ink); }

/* ── Encadrés ───────────────────────────────────────────── */
.fx-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 13px 14px; margin-top: 12px; }
.fx-note__title { margin: 0 0 7px; font-size: .88rem; font-weight: 700; color: var(--ink); font-family: var(--font-body); }
.fx-note--trust { background: var(--trust-100); border-color: var(--trust); }
.fx-delai { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); margin: 10px 0 0 !important; }

/* ── Listes ─────────────────────────────────────────────── */
.fx-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fx-ul li { position: relative; padding-left: 18px; font-size: .85rem; line-height: 1.55; color: var(--ink-soft); }
.fx-ul li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.fx-arrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fx-arrows li { display: flex; gap: 9px; font-size: .85rem; line-height: 1.55; color: var(--ink-soft); }
.fx-arrows li > span:first-child { flex: 0 0 auto; color: var(--brand); font-weight: 800; }
.fx-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fx-check li { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
.fx-check__box { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border: 1.7px solid var(--border-strong); border-radius: 5px; }
.fx-check strong { color: var(--ink); }

/* ── Pastilles d'interdiction ───────────────────────────── */
.fx-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 12px; }
.fx-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px;
  background: var(--fx-warn-bg); border: 1px solid var(--fx-warn-bd); border-radius: var(--r-full);
  font-size: .76rem; font-weight: 600; color: var(--fx-warn-ink);
}
.fx-pill .fx-i { stroke-width: 2.6; }

/* ── Sélecteur prévenu / condamnée ──────────────────────── */
.fx-seg__btns {
  display: flex; gap: 5px; padding: 4px; margin-bottom: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.fx-seg__btns button {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 10px;
  border: none; border-radius: var(--r-xs); background: transparent;
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
}
.fx-seg__btns button[aria-pressed="true"] { background: var(--fx-fill); color: #fff; }
.fx-pane { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 13px 14px; }
.fx-pane + .fx-pane { margin-top: 8px; }
.fx-pane p { margin: 5px 0 0 !important; font-weight: 600; color: var(--ink) !important; }
.fx-seg[data-statut="prevenu"] .fx-pane--condamne,
.fx-seg[data-statut="condamne"] .fx-pane--prevenu { display: none; }
.fx-seg[data-statut] .fx-pane + .fx-pane { margin-top: 0; }

/* ── IBAN ───────────────────────────────────────────────── */
.fx-iban { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.fx-iban__val {
  display: block; margin: 6px 0 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95rem; font-weight: 600;
  line-height: 1.45; color: var(--ink); overflow-wrap: anywhere;
}
.fx-iban__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.fx-iban__actions .fx-btn { flex: 1 1 180px; }
.fx-bic {
  flex: 0 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 6px 13px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xs);
}
.fx-bic code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; font-weight: 600; color: var(--ink); }
.fx-iban__holder { margin: 10px 0 0 !important; font-size: .8rem; }

/* ── Modules dépliables ─────────────────────────────────── */
.fx-dets { display: flex; flex-direction: column; gap: 8px; }
.fx-det {
  background: var(--surface); border: var(--card-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-xs); scroll-margin-top: 120px;
}
.fx-det > summary {
  list-style: none; cursor: pointer;
  min-height: 56px; padding: 11px 14px; display: flex; align-items: center; gap: 11px;
}
.fx-det > summary::-webkit-details-marker { display: none; }
.fx-det__t { flex: 1 1 0; min-width: 0; }
.fx-det__title { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); }
.fx-det__sub { display: block; font-size: .72rem; color: var(--muted); }
.fx-det > summary > .fx-i:last-child { color: var(--muted); transition: transform var(--t-fast); }
.fx-det[open] > summary > .fx-i:last-child { transform: rotate(180deg); }
.fx-det__body { padding: 0 14px 15px; }
.fx-det__body > p { font-size: .85rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 9px; }
.fx-det__body > p:last-child { margin-bottom: 0; }
.fx-det__body .fx-row__label { display: block; margin-bottom: 3px; }
.fx-det--inline { margin-top: 12px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: none; }
.fx-det--inline > summary { min-height: 48px; font-size: .85rem; font-weight: 700; color: var(--brand-700); justify-content: space-between; }

/* ── Intro éditoriale ───────────────────────────────────── */
.fx-edito { margin-top: 22px; border-left: 2px solid var(--brand-100); padding-left: 16px; }
.fx-edito p { font-size: .9rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 10px; }
.fx-edito__tip { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem !important; color: var(--trust) !important; }
.fx-edito__tip .fx-i { margin-top: 2px; }

/* ── Rail latéral & deux colonnes (desktop) ─────────────── */
@media (min-width: 640px) {
  .fx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fx-mod { padding: 20px; }
  .fx-actions { flex-direction: row; }
  .fx-actions .fx-btn--primary { flex: 1 1 280px; }
  .fx-actions__pair { flex: 1 1 320px; }
}
@media (min-width: 1024px) {
  .fx-hero { padding: 28px 0 16px; }
  .fx-rail {
    display: flex; flex-direction: column; gap: 14px;
    flex: 1 1 300px; min-width: 290px;
    position: sticky; top: calc(var(--header-h) + 54px);
  }
  .fx-rail__card { padding: 16px; }
  .fx-rail__title {
    margin: 0 0 11px; font-family: var(--font-body);
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .fx-tel {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xs);
    text-decoration: none;
  }
  .fx-tel + .fx-tel { margin-top: 7px; }
  .fx-tel:hover { border-color: var(--brand); }
  .fx-tel > span:first-child { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .fx-tel__ico { flex: 0 0 auto; color: var(--brand); }
  .fx-toc { display: flex; flex-direction: column; gap: 2px; }
  .fx-toc a {
    padding: 9px 12px; border-radius: var(--r-xs); font-size: .85rem; font-weight: 500;
    color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent;
  }
  .fx-toc a:hover { color: var(--brand-600); }
  .fx-toc a.is-active { background: var(--brand-100); border-left-color: var(--brand); color: var(--brand-700); font-weight: 700; }
  .fx-ul--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
}

/* ── Fenêtre « Réserver un parloir » ────────────────────── */
.fx-modal {
  border: none; padding: 0; background: transparent; color: var(--ink);
  width: calc(100% - 32px); max-width: 420px;
}
.fx-modal::backdrop { background: rgba(8, 6, 18, .66); }
.fx-modal__box {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: var(--card-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px 18px 18px;
}
.fx-modal__x {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: var(--r-xs); color: var(--muted);
}
.fx-modal__x:hover { background: var(--surface-2); color: var(--ink); }
.fx-modal h2 {
  margin: 0 0 6px; padding-right: 38px; font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.fx-modal__intro { margin: 0 0 16px; font-size: .85rem; line-height: 1.55; color: var(--ink-soft); }
.fx-modal .fx-btn { width: 100%; }
.fx-modal__lbl {
  display: block; margin: 7px 0 15px; text-align: center;
  font-size: .72rem; line-height: 1.45; color: var(--muted);
}
.fx-modal__lbl:last-of-type { margin-bottom: 10px; }
.fx-modal__note {
  margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: .74rem; line-height: 1.5; color: var(--muted);
}

/* ── Espacements : le collant se place sous l'en-tête ───── */
.fx-nav { top: var(--header-h); }
.fx-mod, .fx-det, .fx-essentiel { scroll-margin-top: calc(var(--header-h) + 74px); }
@media (min-width: 1024px) { .fx-rail { top: calc(var(--header-h) + 74px); } }

/* collant : coller juste sous la bordure basse de l en-tete */
.fx-nav { top: calc(var(--header-h) + 1px); }
@media (min-width: 1024px) { .fx-rail { top: calc(var(--header-h) + 76px); } }

/* ── Centrage de la fenêtre ──────────────────────────────
   Le reset global « *{margin:0} » écrase le margin:auto que le
   navigateur pose sur <dialog> : sans ces règles la fenêtre se
   colle en haut à gauche. */
.fx-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100% - 32px);
  overflow: auto;
}

/* ── « Tous les contacts » remonté sous les actions ────── */
.fx-contacts-top { margin-top: 10px; }
.fx-contacts-top .fx-det { scroll-margin-top: calc(var(--header-h) + 74px); }

/* ── « Tous les contacts » : 3e action, dessinée comme un bouton ── */
.fx-contacts-top { margin-top: 9px; }
.fx-contacts-top .fx-det {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
}
.fx-contacts-top .fx-det > summary {
  min-height: 48px; padding: 0 16px; gap: 9px; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.fx-contacts-top .fx-det > summary:hover { border-color: var(--brand); color: var(--brand-600); }
.fx-contacts-top .fx-det[open] > summary {
  border-radius: var(--r-sm) var(--r-sm) 0 0; border-bottom-color: transparent;
}
.fx-contacts-top .fx-det__t { flex: 0 1 auto; min-width: 0; }
.fx-contacts-top .fx-det__title { font-size: .95rem; font-weight: 600; }
.fx-contacts-top .fx-det__sub { display: none; }
.fx-contacts-top .fx-mod__ico {
  width: auto; height: auto; background: none; border-radius: 0; color: var(--brand);
}
.fx-contacts-top .fx-det__body {
  background: var(--surface); border: 1px solid var(--border-strong); border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 2px 14px 14px;
}

/* Déplié : la bordure devient violette sur tout le pourtour */
.fx-contacts-top .fx-det[open] > summary { border-color: var(--brand); border-bottom-color: transparent; }
.fx-contacts-top .fx-det[open] > summary:hover { border-color: var(--brand); border-bottom-color: transparent; }
.fx-contacts-top .fx-det[open] .fx-det__body { border-color: var(--brand); }
