/* =====================================================================
   base.css — Structure & composants V2 (tokens dans theme.css)
   HTML/CSS/JS vanilla · zéro !important · a11y (focus, clavier, AA).
   ===================================================================== */

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; }
img, svg, picture { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Accessibilité ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-family: var(--font-ui); }
.skip-link:focus { left: 0; }

:where(a, button, [tabindex], input, textarea, summary):focus-visible {
  outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 3px; }

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

/* ---------- Gabarit ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap--prose { max-width: calc(var(--measure) + 6rem); }

/* ---------- En-tête / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(9px); transition: background-color .3s ease, border-color .3s ease; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.75rem; flex-wrap: wrap; padding-block: .7rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; line-height: 1.05;
  letter-spacing: .01em; display: flex; flex-direction: column; }
.brand__name small { font-family: var(--font-ui); font-size: .62rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .18rem; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.15rem; justify-content: flex-end; }
.site-nav a { display: inline-block; text-decoration: none; color: var(--ink-2);
  font-size: .72rem; font-weight: 600; letter-spacing: .085em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; align-items: center; gap: .5rem; background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; cursor: pointer;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); }
.nav-toggle b { font-size: 1.1rem; line-height: 0; }

/* ---------- Sélecteur de langue FR · EN ----------
   Deux liens vers la page équivalente dans l'autre langue (chaque langue a son
   URL) — pas de bascule JS.
   Placement : le menu (10 rubriques) occupe déjà sa propre ligne sous la marque,
   qui laisse ~800 px vides à sa droite. Le sélecteur s'y loge (order 1 +
   margin-left auto) plutôt que d'ajouter une ligne à un en-tête collant. Même
   position en mobile, où il reste ainsi visible sans déplier le menu. */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem;
  order: 1; margin-left: auto; flex: none; }
.nav-toggle { order: 2; }
.site-nav { order: 3; }
.lang-switch__item { font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .085em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); padding: .4rem .3rem; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease; }
a.lang-switch__item:hover { color: var(--accent); border-bottom-color: var(--line); }
.lang-switch__item.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.lang-switch__sep { color: var(--muted); font-size: .7rem; line-height: 1; }

@media (max-width: 60rem) {
  .site-nav { flex-basis: 100%; margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  .site-header[data-nav-open="true"] .site-nav ul { max-height: 34rem; padding-top: .5rem; }
  .site-nav a { padding: .6rem 0; font-size: .8rem; }
  .site-header__inner { padding-block: .55rem; }
  /* Serré contre le bouton Menu, à droite de la marque. */
  .lang-switch { margin-left: auto; margin-right: .1rem; }
}

/* ---------- Bandeau « traduction en cours » (pages /en/ partielles) ---------- */
.lang-notice { margin: 1.15rem 0 0; padding: .7rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: var(--bg-2); color: var(--ink-2);
  font-family: var(--font-ui); font-size: .82rem; line-height: 1.45; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .78rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; transition: transform .12s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Bandeaux de section ---------- */
.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--bg); }   /* sous data-theme=dark → sombre */
.kicker { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem; }
.section__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.section__head h1, .section__head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; }
.rule { border: 0; height: 1px; background: var(--line); margin: 1.4rem 0; }

/* =====================================================================
   ACCUEIL — héros photo + titre (immersif, sombre)
   ===================================================================== */
.hero { position: relative; min-height: min(80vh, 660px); display: grid; align-items: end;
  overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,8,4,.92) 4%, rgba(10,8,4,.45) 42%, rgba(10,8,4,.25) 100%),
    radial-gradient(120% 90% at 80% 0%, rgba(10,8,4,.15), rgba(10,8,4,.6)); }
.hero__inner { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__eyebrow { font-family: var(--font-ui); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { color: #fdf7ec; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em;
  max-width: 16ch; text-wrap: balance; }
.hero__lede { color: #ece2cf; font-size: clamp(1.05rem, 2.4vw, 1.4rem); margin-top: 1.1rem; max-width: 46ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.7rem;
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #d8ccb4; }
.hero__meta span { display: inline-flex; align-items: center; gap: .55rem; }
.hero__meta span + span::before { content: "◆"; color: var(--accent); margin-right: .9rem; font-size: .6rem; }

/* =====================================================================
   PROSE — contenu verbatim des rubriques
   ===================================================================== */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.16; margin-top: 2.4rem; }
.prose h3 { font-size: 1.28rem; line-height: 1.25; margin-top: 2rem; color: var(--ink); }
.prose h4 { font-size: 1.02rem; letter-spacing: .02em; margin-top: 1.5rem; color: var(--ink-2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.3rem; color: var(--ink-2); }
.prose li { margin-top: .4rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.4rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 3px solid var(--accent);
  color: var(--ink-2); font-style: italic; }
.prose figure { margin: 1.8rem 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose > img, .prose p img { width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-block: 1.4rem; }
.prose figcaption { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.prose dl { display: grid; gap: .3rem .9rem; }
.prose dt { font-weight: 700; color: var(--ink); }
.prose dd { color: var(--ink-2); margin-bottom: .6rem; }

/* Chapô de rubrique (1re ligne verbatim mise en avant) */
.page-hero { padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 3vw, 2rem); background: var(--bg-2);
  border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.01em; }
.page-hero .kicker { color: var(--gold); }

/* Média d'appui d'une rubrique (photo pleine largeur douce) */
.figure-band { margin: 0; }
.figure-band img { width: 100%; max-height: 60vh; object-fit: cover; }
.figure-band figcaption { font-family: var(--font-ui); font-size: .78rem; color: var(--muted);
  padding: .6rem clamp(1.1rem, 4vw, 2.5rem); background: var(--bg-2); }

/* =====================================================================
   LES VILLES — sections par ville (mix éditorial B + immersif C)
   ===================================================================== */
.city { border-top: 1px solid var(--line); padding-block: clamp(2.2rem, 5vw, 3.6rem); scroll-margin-top: 5rem; }
.city:first-of-type { border-top: 0; }
.city__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.city__index { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--on-accent); background: var(--accent); border-radius: 999px;
  width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; flex: none; }
.city__name { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; }
.city__body { max-width: var(--measure); }
.city__body h3 { font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-ui);
  font-weight: 700; color: var(--gold); margin-top: 1.7rem; }
.city__body h3:first-child { margin-top: 0; }
.city__body p { color: var(--ink-2); margin-top: .55rem; }
.city__body ul { margin-top: .7rem; padding-left: 1.3rem; color: var(--ink-2); }
.city__body li { margin-top: .35rem; }
.city__back { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* =====================================================================
   CARTE INTERACTIVE — SVG épuré, tracé routier réel
   ===================================================================== */
.routemap { position: relative; margin-inline: auto; max-width: 620px; }
.routemap__frame { position: relative; width: 100%; background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.routemap svg { width: 100%; height: auto; display: block; }
.route-casing { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 7;
  stroke-linecap: round; stroke-linejoin: round; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 0; }
.city-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 3; cursor: pointer;
  transition: r .15s ease, fill .15s ease; }
.city-node:hover .city-dot, .city-node:focus-visible .city-dot,
.city-node.is-active .city-dot { fill: var(--accent); r: 11; }
.city-node:focus-visible { outline: none; }
.city-node:focus-visible .city-halo { opacity: 1; }
.city-halo { fill: none; stroke: var(--ring); stroke-width: 2.5; opacity: 0; }
.city-label { font-family: var(--font-ui); font-size: 22px; font-weight: 600; fill: var(--ink);
  paint-order: stroke; stroke: var(--bg); stroke-width: 5px; pointer-events: none; }
.city-num { font-family: var(--font-ui); font-size: 16px; font-weight: 700; fill: var(--on-accent); pointer-events: none; }

.routemap__card { position: absolute; z-index: 5; min-width: 220px; max-width: 280px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: .85rem .95rem 1rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
.routemap__card[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.routemap__card h3 { font-size: 1.15rem; line-height: 1.1; }
.routemap__dist { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }
.routemap__dist b { color: var(--accent); font-weight: 700; }
.routemap__card .btn { margin-top: .8rem; padding: .55rem 1rem; font-size: .7rem; }
.routemap__legend { font-family: var(--font-ui); font-size: .75rem; color: var(--muted);
  text-align: center; margin-top: 1rem; letter-spacing: .04em; }
.routemap__legend b { color: var(--ink); font-weight: 700; }

@media (hover: none) { .city-label { font-size: 24px; } }

/* ---------- « La route » : intro + segments ---------- */
.route-intro { max-width: var(--measure); color: var(--ink-2); margin: 0 auto 1.4rem; }
.route-legs { list-style: none; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2rem 0 0; padding: 0; }
.route-legs li { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .9rem 1rem; }
.route-legs h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.route-legs p { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* En-tête : ombre une fois défilé */
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(20, 15, 8, .12); }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.4rem) 1.6rem;
  margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr; }
.footer-col h4 { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem; }
.footer-col p { color: var(--ink-2); font-size: .95rem; max-width: 40ch; }
.footer-col a { display: block; text-decoration: none; color: var(--ink-2); padding: .28rem 0; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .5rem; color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: .76rem; color: var(--muted); }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* =====================================================================
   WIDGET CONTACT FIXE (bas-gauche ; le widget « Commenter » est à droite)
   ===================================================================== */
.contact-fab { position: fixed; left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 180;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 0; border-radius: 999px;
  cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow-lg); transition: transform .12s ease; }
.contact-fab:hover { transform: translateY(-2px); }
.contact-fab svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.contact-panel { position: fixed; left: max(1rem, env(safe-area-inset-left));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.4rem); z-index: 181;
  width: min(340px, calc(100vw - 2rem)); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.15rem 1.2rem; display: none; }
.contact-panel[data-open="true"] { display: block; }
.contact-panel h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.contact-panel p { font-size: .9rem; color: var(--ink-2); margin: .3rem 0 0; }
.contact-panel .contact-line { display: flex; gap: .6rem; align-items: baseline; margin-top: .75rem;
  font-size: .92rem; color: var(--ink-2); }
.contact-panel .contact-line span { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); flex: none; width: 4.6rem; }
.contact-panel a { color: var(--accent); }
.contact-panel .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.contact-panel__close { position: absolute; top: .6rem; right: .7rem; background: transparent; border: 0;
  cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.contact-todo { font-family: var(--font-ui); font-size: .68rem; color: var(--muted); margin-top: .9rem;
  padding-top: .7rem; border-top: 1px dashed var(--line); }

/* ---------- Divers ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}

/* =====================================================================
   V2.1 — sous-navs, scrollspy villes, réseaux, accueil 3 zones,
   carte Leaflet, sous-rubriques patrimoine
   ===================================================================== */

/* ---- Sous-navigation en chips ---- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  max-width: var(--wrap); margin-inline: auto; padding: .7rem clamp(1.1rem, 4vw, 2.5rem); }
.subnav a { display: inline-block; text-decoration: none; color: var(--ink-2);
  font-family: var(--font-ui); font-size: .73rem; font-weight: 600; letter-spacing: .04em;
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.subnav a:hover, .subnav a[aria-current="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.subnav--sticky { position: sticky; top: var(--header-h, 4rem); z-index: 40; }

.page-hero__lede { margin-top: .6rem; color: var(--ink-2); font-size: 1.05rem; max-width: var(--measure); }

/* Bloc « réponse » (GEO) — synthèse autonome, citable, en tête de page.
   Vide par défaut (aucun rendu) ; alimenté via le champ « Réponse courte » du CMS. */
.lede-answer-wrap { padding-top: clamp(1.2rem, 3vw, 1.8rem); }
.lede-answer { border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
  padding: .95rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lede-answer p { margin: 0; color: var(--ink); font-size: 1.06rem; line-height: 1.6;
  font-family: var(--font-body); }

/* ---- Encarts « dates clés » / « sources » (crème, bordure fine) ---- */
.keybox, .sourcesbox { border-radius: var(--radius); padding: 1.05rem 1.15rem 1.15rem; }
.keybox { background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line)); }
.sourcesbox { background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.keybox :is(h3, h4):first-child, .sourcesbox :is(h3, h4):first-child {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 .65rem; }
.keybox ul, .sourcesbox ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.keybox li, .sourcesbox li { color: var(--ink-2); margin-top: .32rem; line-height: 1.45; }
.keybox li { font-size: .95rem; }
.sourcesbox li { font-size: .88rem; }
.keybox li::marker, .sourcesbox li::marker { color: var(--accent); }
.keybox strong { color: var(--ink); }

/* ---- Patrimoine : accordéon HORIZONTAL (colonnes qui se déplient) ---- */
.heritage-cols { display: flex; gap: .5rem; align-items: stretch;
  height: clamp(440px, 66vh, 640px); scroll-margin-top: calc(var(--header-h, 4rem) + 3.5rem); }
.heritage-col { position: relative; flex: 1 1 0%; min-width: 2.9rem;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: flex-grow .45s cubic-bezier(.4, 0, .2, 1), background-color .2s ease, border-color .2s ease; }
.heritage-col.is-open { flex-grow: 12; }
.heritage-col:not(.is-open) { cursor: pointer; }
.heritage-col:not(.is-open):hover, .heritage-col:not(.is-open):focus-within {
  background: var(--bg-2); border-color: var(--accent); }

.heritage-col__tab { display: flex; align-items: center; width: 100%; background: transparent;
  border: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.heritage-col__title { font-family: var(--font-head); line-height: 1.12; color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: -.01em; }

/* Colonne OUVERTE : titre horizontal + corps défilant */
.heritage-col.is-open > .heritage-col__tab { padding: 1rem 1.2rem; gap: .8rem;
  border-bottom: 1px solid var(--line); cursor: default; }
.heritage-col.is-open .heritage-col__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.heritage-col__scroll { padding: 1.4rem clamp(1rem, 2vw, 1.8rem) 1.8rem; }
.heritage-col__scroll > .prose { max-width: var(--measure); }

/* Colonnes FERMÉES : étroites, titre vertical, toute la hauteur cliquable */
.heritage-col:not(.is-open) > .heritage-col__tab { flex-direction: column; justify-content: flex-start;
  height: 100%; padding: 1.15rem .3rem; gap: 1rem; }
.heritage-col:not(.is-open) .heritage-col__title { writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; }
.heritage-col:not(.is-open) .heritage-col__body { display: none; }

/* Repère « déplier » (petit +) au bas des colonnes fermées */
.heritage-col__mark { flex: none; }
.heritage-col:not(.is-open) .heritage-col__mark { width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1.5px solid var(--accent); position: relative; margin-top: auto; }
.heritage-col:not(.is-open) .heritage-col__mark::before,
.heritage-col:not(.is-open) .heritage-col__mark::after { content: ""; position: absolute;
  background: var(--accent); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.heritage-col:not(.is-open) .heritage-col__mark::before { width: .7rem; height: 1.5px; }
.heritage-col:not(.is-open) .heritage-col__mark::after { width: 1.5px; height: .7rem; }
.heritage-col.is-open .heritage-col__mark { display: none; }

/* Carrières : texte à gauche, encarts empilés à droite (dans la colonne ouverte) */
.heritage-split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.heritage-split__text { max-width: none; }
.heritage-split__asides { display: flex; flex-direction: column; gap: 1.1rem; }
@media (min-width: 56rem) {
  .heritage-split { grid-template-columns: 1.1fr .9fr; gap: 2.2rem; align-items: start; }
}

/* Smartphone / étroit : repli en accordéon VERTICAL empilé */
@media (max-width: 55rem) {
  .heritage-cols { flex-direction: column; height: auto; gap: .6rem; }
  .heritage-col { flex: none; min-width: 0; }
  .heritage-col:not(.is-open) > .heritage-col__tab { flex-direction: row; height: auto;
    justify-content: space-between; padding: .95rem 1.1rem; gap: 1rem; }
  .heritage-col:not(.is-open) .heritage-col__title { writing-mode: horizontal-tb; transform: none; }
  .heritage-col:not(.is-open) .heritage-col__mark { margin-top: 0; }
  .heritage-col.is-open .heritage-col__body { overflow: visible; }
  .heritage-col__scroll { padding: 1.1rem 1.1rem 1.4rem; }
}

.fold__body.prose { max-width: var(--measure); }

/* Accordéons repliables (Cimetières, Rituel, Langage… et pages de prose) */
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "›"; font-family: var(--font-ui); font-weight: 700;
  font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; transition: transform .2s ease; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold__body { margin-top: 1.1rem; }

/* ---- Histoire : intro condensée (photo + 1er paragraphe) + dates clés ---- */
.history-intro { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
.history-intro__media { margin: 0; }
.history-intro__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-intro__text { max-width: none; }
.history-intro__text > * + * { margin-top: 1rem; }
@media (min-width: 52rem) {
  .history-intro { grid-template-columns: minmax(0, 22rem) 1fr; gap: 2.2rem; align-items: center; }
}
.history-body { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: clamp(1.8rem, 4vw, 2.8rem); }
.history-body__main { max-width: none; }
.history-body__aside .keybox { margin: 0; }
@media (min-width: 62rem) {
  .history-body { grid-template-columns: minmax(0, 42rem) 17rem; justify-content: start; gap: 2.6rem; align-items: start; }
  .history-body__main { grid-column: 1; grid-row: 1; }
  .history-body__aside { grid-column: 2; grid-row: 1;
    position: sticky; top: calc(var(--header-h, 4rem) + 1.4rem); }
}

/* ---- Villes : visuel photo en tête de section (photo ou cadre « à venir ») ---- */
.city__figure { margin: 0 0 1.5rem; }
.city__figure img { width: 100%; aspect-ratio: 16 / 8; max-height: 46vh; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); }
.city__figure figcaption { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); margin-top: .5rem; }
/* Cadrage « photo entière » (choix NZ dans le CMS) : plus de bande imposée ni de
   rognage — la photo garde ses proportions naturelles (utile pour un portrait),
   centrée, avec une hauteur plafonnée pour ne pas dominer la section. */
.city__figure--full img { width: auto; aspect-ratio: auto; max-width: 100%; height: auto;
  max-height: 60vh; object-fit: contain; display: block; margin-inline: auto; }
/* Emplacement en attente de la photo (remplacé par NZ via le CMS) */
.city__figure--todo .city__ph { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; aspect-ratio: 16 / 8; max-height: 46vh; border-radius: var(--radius);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--surface) 14px 28px); }
.city__figure--todo svg { color: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
.city__figure--todo span { font-family: var(--font-ui); font-size: .82rem; letter-spacing: .02em; }

/* ---- Réseaux (icônes) ---- */
.social { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.social--page { margin-top: .6rem; }
.social__link { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.social__link:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.social__link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.contact-panel .social { margin: .85rem 0; }
.contact-fab svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ---- Villes : disposition + scrollspy vertical ---- */
.villes-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; }
.cityspy { display: none; }
.city { scroll-margin-top: calc(var(--header-h, 4rem) + 4rem); }
@media (min-width: 62rem) {
  .villes-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .cityspy { display: block; position: sticky; top: calc(var(--header-h, 4rem) + 1.6rem); align-self: start; }
}
.cityspy ol { list-style: none; position: relative; margin: 0; padding: 0; }
.cityspy__rail { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); overflow: hidden; }
.cityspy__fill { display: block; width: 100%; background: var(--accent); height: 0; transition: height .25s ease; }
.cityspy a { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; text-decoration: none;
  color: var(--muted); font: 600 .82rem/1.15 var(--font-ui); }
.cityspy__dot { position: relative; z-index: 1; width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line);
  color: var(--muted); font-size: .72rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.cityspy a:hover .cityspy__label { color: var(--ink); }
.cityspy a.is-active { color: var(--ink); }
.cityspy a.is-active .cityspy__dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (min-width: 62rem) { .subnav--cities { display: none; } }

/* ---- La route : carte Leaflet + actions ---- */
.route-intro { max-width: var(--measure); color: var(--ink-2); margin-bottom: 1.4rem; }
.route-map__wrap { margin: 1.4rem 0 1.8rem; }
.route-map { height: clamp(300px, 48vh, 480px); width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  /* Contexte d'empilement propre : sinon les panneaux/contrôles Leaflet (z-index
     élevé) débordent PAR-DESSUS l'en-tête collant quand la carte défile dessous. */
  position: relative; z-index: 0; }
.route-map__fallback { padding: 1.4rem; color: var(--muted); font-size: .9rem; }
.route-map__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.leaflet-popup-content { font-family: var(--font-body); font-size: .92rem; }
.leaflet-popup-content b { font-family: var(--font-head); }
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }

/* ---- Accueil : héros 3 zones ---- */
.home-hero { position: relative; min-height: min(94svh, 900px); display: grid; align-items: center;
  overflow: hidden; isolation: isolate; }
.home-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Accueil LUMINEUX (retour NZ : « encore trop sombre, la faire plus lumineuse,
   quitte à choisir un truc pas dark mode »). La photo passe sous un VOILE
   PARCHEMIN CLAIR → fond bright, texte encre. L'accueil n'est plus en data-theme
   sombre (cf. build.mjs). Contraste AA du titre/lede garanti par le voile clair. */
.home-hero__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(246,241,231,.88) 0%, rgba(246,241,231,.66) 44%, rgba(246,241,231,.84) 100%); }
.home-hero__grid { display: grid; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem);
  grid-template-areas: "actus title map"; grid-template-columns: 1fr 1.3fr 1fr; padding-block: clamp(1.5rem, 4vw, 3rem); }
.home-actus { grid-area: actus; align-self: center; }
.home-title { grid-area: title; text-align: center; color: var(--ink);
  /* Halo clair derrière le titre pour le détacher de la photo (aide au contraste). */
  padding: clamp(1rem, 3vw, 2rem) clamp(.5rem, 2vw, 1.4rem);
  background: radial-gradient(78% 120% at 50% 48%, rgba(253,251,246,.72) 0%, rgba(253,251,246,.32) 52%, rgba(253,251,246,0) 80%); }
.home-map { grid-area: map; }
.home-title h1 { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -.015em;
  color: var(--ink); text-wrap: balance; text-shadow: 0 1px 3px rgba(253,251,246,.9); }
.home-title__lede { color: var(--ink-2); font-size: clamp(1rem, 1.7vw, 1.3rem); margin-top: .9rem;
  text-shadow: 0 1px 2px rgba(253,251,246,.9); }
.home-title__cta { display: inline-block; margin-top: 1.3rem; text-decoration: none; color: var(--accent);
  font-family: var(--font-ui); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid var(--accent); padding-bottom: .2rem; }
.home-actus__kicker { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.home-actus__list { display: flex; flex-direction: column; gap: .7rem; }
.actu-card { display: block; text-decoration: none; background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem;
  box-shadow: 0 4px 14px rgba(20,15,8,.06);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.actu-card:hover { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.actu-card time { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.actu-card h3 { font-size: 1rem; line-height: 1.2; margin-top: .2rem; color: var(--ink); }
.actu-card p { font-size: .82rem; color: var(--ink-2); margin-top: .25rem; }
.home-actus__all { display: inline-block; margin-top: .85rem; text-decoration: none; color: var(--muted);
  font-family: var(--font-ui); font-size: .76rem; letter-spacing: .04em; }
.home-actus__all:hover { color: var(--accent); }
.home-actus__empty { color: var(--muted); font-size: .85rem; }
.home-map .routemap { max-width: 330px; margin-inline: auto; }
.home-map .city-label { font-size: 44px; fill: var(--ink); stroke: var(--bg); stroke-width: 9px; }
.home-map .routemap__frame { background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-color: var(--line); }
.home-map .route-casing { stroke: rgba(253,251,246,.9); stroke-width: 15; }
.home-map .route-line { stroke-width: 6; }
.home-map .city-dot { r: 10; stroke-width: 4.5; filter: drop-shadow(0 1px 2px rgba(20,15,8,.35)); }

@media (max-width: 68rem) {
  .home-hero__grid { grid-template-areas: "title title" "actus map"; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 44rem) {
  .home-hero { min-height: auto; }
  /* Smartphone : les actualités (contenu cliquable, apprécié de NZ) passent avant
     la carte (décorative au doigt, sans survol) pour être atteintes sans défiler. */
  .home-hero__grid { grid-template-areas: "title" "actus" "map"; grid-template-columns: 1fr;
    padding-block: 2rem; gap: 1.6rem; }
  .home-hero__scrim { background: linear-gradient(to top, rgba(246,241,231,.82) 0%, rgba(246,241,231,.9) 100%); }
  .home-map .routemap { max-width: 260px; }
}

/* ---- Actualités : index + retour ---- */
.actu-back { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .06em; margin-bottom: .6rem; }
.actu-back a { text-decoration: none; color: var(--muted); }
.actu-back a:hover { color: var(--accent); }
.actu-index { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.actu-item { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
.actu-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.actu-item time { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.actu-item h2 { font-size: 1.2rem; line-height: 1.2; margin-top: .3rem; color: var(--ink); }
.actu-item p { color: var(--ink-2); margin-top: .4rem; font-size: .95rem; }

/* ---- /traductions : état de la version anglaise (page de travail, noindex) ----
   Outil interne pour NZ : liste ce qui reste à traduire, avec un lien direct vers
   l'entrée du CMS correspondante. Volontairement sobre — ce n'est pas une page du
   site public. */
.tr-intro, .tr-count, .tr-done { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-2); }
.tr-count { margin-top: .7rem; }
.tr-done { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg-2);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.tr-groups { display: grid; gap: 1.1rem; }
.tr-group { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.tr-group h2 { font-size: 1.15rem; line-height: 1.2; }
.tr-group--review { border-left: 3px solid var(--accent); }
.tr-path { font-family: var(--font-ui); font-size: .76rem; color: var(--muted); margin-top: .25rem; }
.tr-fields { list-style: none; display: grid; gap: .55rem; margin-top: .9rem; }
.tr-field { border-top: 1px solid var(--line); padding-top: .55rem; }
.tr-field--meta { opacity: .82; }
.tr-label { font-family: var(--font-ui); font-size: .87rem; font-weight: 600; color: var(--ink); }
.tr-tag { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .08rem .4rem; margin-left: .45rem; vertical-align: .08em; }
.tr-fr { font-size: .87rem; color: var(--ink-2); margin-top: .2rem; }
.tr-fr span { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.tr-cms { display: inline-block; font-family: var(--font-ui); font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; margin-top: .3rem; margin-right: .8rem; }
.tr-nocms { display: inline-block; font-family: var(--font-ui); font-size: .74rem;
  color: var(--muted); margin-top: .3rem; font-style: italic; }
