/* ─────────────────────────────────────────────────────────────
   Villemont — Sections
   Section-specific CSS added here as each section is built.
   Components shared across sections belong in components.css.
   ───────────────────────────────────────────────────────────── */

/* ── Hero cinematic ───────────────────────────────────────── */

.hero-cinematic {
  position: relative;
  /* svh = "small viewport height" : stable quand la barre d'URL mobile
     apparaît/disparaît (évite le saut de recadrage au scroll). */
  min-height: 100svh;
}

.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  /* L'affiche (image de la vidéo à data-start) est posée en fond : la vidéo
     reste invisible tant qu'elle n'est pas en lecture (main.js), puis remplace
     l'affiche sans fondu. */
  background-color: var(--ink);
  background-size: cover;
  background-position: var(--hero-position, center 38%);
}
.hero-cinematic__video[data-start] { opacity: 0; }
.hero-cinematic__video[data-start].is-ready { opacity: 1; }
.hero-cinematic .eyebrow { font-size: clamp(12px, 0.4vw + 10px, 15px); letter-spacing: 0.24em; }
.hero-cinematic__bg img,
.hero-cinematic__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center 38%);
  display: block;
}

.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(35,18,18,0.55) 0%,
    rgba(35,18,18,0.18) 35%,
    rgba(35,18,18,0.0)  60%,
    rgba(35,18,18,0.7)  100%
  );
}

.hero-cinematic .container {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 160px;
  padding-bottom: 100px;
  color: var(--bone);
}

/* Large enough for the home title's second line ("Château de Villemont") to
   stay on one line at the full display size. The lede keeps its own 560px cap. */
.hero-cinematic__content { max-width: 1160px; }
/* Lisible sur l'image comme sur la vidéo, claire ou sombre. */
.hero-cinematic__ctas .btn-bone { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.hero-cinematic__ctas .btn-bone:hover { background: var(--bone); }

.hero-cinematic__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

@media (max-width: 640px) {
  .hero-cinematic { min-height: 92svh; }
  .hero-cinematic .container { min-height: 92svh; padding-bottom: 56px; }
}

/* ── Hero — no background image fallback ─────────────────── */

.hero-cinematic:not(:has(.hero-cinematic__bg)) {
  background: linear-gradient(160deg, var(--ink) 0%, #3a1a0e 100%);
}

/* ── Chapters grid ────────────────────────────────────────── */

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .chapters-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Mobile : carrousel à swipe horizontal (scroll-snap natif, contenu dans la largeur) */
@media (max-width: 640px) {
  .chapters-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    scrollbar-width: none;
  }
  .chapters-grid::-webkit-scrollbar { display: none; }
  .chapters-grid > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  /* Flèches rondes, bordeaux translucide, centrées sur les images (--arrow-top posé par main.js). */
  .chapters-carousel { position: relative; }
  .carousel-arrow {
    position: absolute; z-index: 2; top: var(--arrow-top, 38%); transform: translateY(-50%);
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--burgundy) 72%, transparent); color: var(--bone);
    box-shadow: 0 2px 10px rgba(35, 26, 18, 0.18);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    transition: opacity var(--transition);
  }
  .carousel-arrow[hidden] { display: none; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
  .carousel-arrow:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
}
@media (min-width: 641px) { .carousel-arrow { display: none; } }

/* ── Before / After slider ────────────────────────────────── */

.ba-section { background: var(--burgundy); }
.ba-section--light { background: var(--paper); }
.ba-head { text-align: center; margin-bottom: 56px; }
.ba-head .eyebrow { margin-bottom: 18px; }
.ba-section:not(.ba-section--light) .ba-head .section-title { color: var(--bone); }
.ba-section--light .ba-head .section-title { color: var(--burgundy); }
.ba-caption { text-align: center; margin-top: 24px; color: var(--ochre-soft); }
.ba-section--light .ba-caption { color: var(--ink-soft); }

/* Onglets au-dessus du comparateur (à partir de deux comparaisons) */
.ba-tabs { margin-bottom: 24px; --scroll-hint-bg: var(--burgundy); }
.ba-section--light .ba-tabs { --scroll-hint-bg: var(--paper); }
.ba-tabs__list { display: flex; justify-content: safe center; gap: 8px; }
.ba-tabs .ba-tabs__tab {
  appearance: none; margin: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none;
  min-height: var(--tap-min); padding: 8px 18px; cursor: pointer; white-space: nowrap;
  font-family: var(--display); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ochre-soft); transition: color var(--transition), border-color var(--transition);
}
.ba-tabs .ba-tabs__tab:hover { color: var(--bone); background: none; }
.ba-tabs .ba-tabs__tab[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--ochre); }
.ba-section--light .ba-tabs .ba-tabs__tab { color: var(--ink-soft); }
.ba-section--light .ba-tabs .ba-tabs__tab:hover,
.ba-section--light .ba-tabs .ba-tabs__tab[aria-selected="true"] { color: var(--burgundy); }
.ba-tabs .ba-tabs__tab:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.ba-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .ba-tabs .ba-tabs__tab { font-size: var(--fs-label-sm); padding: 8px 12px; letter-spacing: .18em; }
}
/* En-tête « titre à gauche / bouton à droite » (accueil) */
.ba-section--split .ba-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  text-align: left; gap: 24px; flex-wrap: wrap; margin-bottom: 56px;
}

.ba-slider {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  user-select: none;
  /* Laisse le navigateur gérer le défilement vertical au doigt ; seul le
     glissement horizontal est capté par le slider (évite de bloquer le scroll). */
  touch-action: pan-y;
}

.ba-slider__base,
.ba-slider__reveal {
  position: absolute;
  inset: 0;
}
.ba-slider__base img,
.ba-slider__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider__reveal {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

/* Libellés AVANT (haut gauche) / APRÈS (haut droite) ; rouge = actif, grisé = couvert */
.ba-slider__label {
  position: absolute;
  top: 24px;
  z-index: 3;
  padding: 8px 16px;
  font-family: var(--display);
  font-size: var(--fs-label-sm);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--burgundy);
  transition: background .25s ease, color .25s ease;
}
.ba-slider__label--avant { left: 24px; }
.ba-slider__label--apres { right: 24px; }
.ba-slider__label.is-covered {
  background: rgba(35, 26, 18, 0.55);
  color: rgba(245, 239, 227, 0.72);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--ochre);
  box-shadow: 0 0 24px rgba(201, 163, 90, 0.6);
  z-index: 2;
  will-change: left;
  cursor: ew-resize;
  /* Le geste sur la poignée est un drag horizontal, jamais un scroll */
  touch-action: none;
}
.ba-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ochre);
  color: var(--burgundy-deep);
  border: 2px solid var(--bone);
  display: grid;
  place-items: center;
  font-size: var(--fs-icon);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  touch-action: none;
}

@media (max-width: 640px) {
  .ba-slider { aspect-ratio: 4 / 3; }
}

/* ═══════════════════════════════════════════════════════════════
   INNER PAGES
   ═══════════════════════════════════════════════════════════════ */

/* ── Histoire — timeline ──────────────────────────────────── */

.histoire-timeline .container { margin-bottom: 64px; }

.timeline-chapter {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  column-gap: var(--gap-medium);
}

.timeline-chapter__spine {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-chapter__spine::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline-chapter:last-child .timeline-chapter__spine::before { bottom: 50%; }
.timeline-chapter:first-child .timeline-chapter__spine::before { top: 12px; }
.timeline-chapter__dot {
  width: 13px; height: 13px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid var(--paper);
  position: relative;
  z-index: 1;
}

.timeline-chapter__content { padding-bottom: 72px; }
.timeline-chapter__content.left  { text-align: right; }
.timeline-chapter__content.right { text-align: left; }

.timeline-chapter__year {
  font-family: var(--display);
  font-size: var(--fs-title-lg);
  color: var(--ochre-deep);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.timeline-chapter__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-title-lg);
  line-height: 1.1;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.timeline-chapter__text {
  font-family: var(--serif);
  font-size: var(--fs-text);
  line-height: 1.55;
  color: var(--ink-soft);
}
.timeline-chapter__content.left .timeline-chapter__text,
.timeline-chapter__content.left .timeline-chapter__title { margin-left: auto; max-width: 46ch; }

.timeline-chapter__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--burgundy); letter-spacing: .22em; transition: color var(--transition);
}
.timeline-chapter__more:hover { color: var(--ochre-deep); }
.timeline-chapter__imglink { display: block; transition: transform var(--transition); }
.timeline-chapter__imglink:hover { transform: translateY(-4px); }

/* Image dans la colonne OPPOSÉE au texte (alternée, comme la frise du design) */
.timeline-chapter__media { padding-bottom: 72px; align-self: start; }
.timeline-chapter__image { margin-top: 6px; aspect-ratio: 4/3; }

@media (max-width: 768px) {
  .timeline-chapter { grid-template-columns: 28px 1fr; padding: 0 24px; column-gap: 24px; }
  .timeline-chapter__spine { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-chapter__content { grid-column: 2; grid-row: 1; text-align: left !important; padding-bottom: 16px; }
  .timeline-chapter__content.left .timeline-chapter__text,
  .timeline-chapter__content.left .timeline-chapter__title { margin-left: 0; }
  .timeline-chapter__media { grid-column: 2; grid-row: 2; padding-bottom: 48px; }
  .timeline-chapter__media:empty { display: none; }
  .timeline-chapter__image { margin-top: 0; }
}

/* ── Restauration — phases ────────────────────────────────── */

.resto-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-medium);
}
.resto-phase {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--ochre);
  padding: var(--pad-block) 36px;
}
.resto-phase[data-status="progress"] { border-left-color: var(--burgundy); }
.resto-phase[data-status="planned"]  { border-left-color: var(--rule); }
.resto-phase__status {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--fs-label);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 16px;
}
.resto-phase[data-status="progress"] .resto-phase__status { color: var(--burgundy); }
.resto-phase[data-status="planned"]  .resto-phase__status { color: var(--ink-soft); }
.resto-phase__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-title-sm);
  line-height: 1.2;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.resto-phase__text {
  font-family: var(--serif);
  font-size: var(--fs-text);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Fondation — mission triptych ─────────────────────────── */

.mission-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-medium);
  margin-top: 64px;
}
.mission-card {
  text-align: center;
  padding: var(--pad-block) 32px;
  border: 1px solid var(--rule-soft);
  background: var(--paper);
}
.mission-card__icon {
  font-size: var(--fs-icon-lg);
  color: var(--ochre);
  margin-bottom: 20px;
  line-height: 1;
}
.mission-card__title {
  font-family: var(--display);
  font-size: var(--fs-caps-lg);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}
.mission-card__text {
  font-family: var(--serif);
  font-size: var(--fs-text);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .mission-triptych { grid-template-columns: 1fr; }
}

/* ── Fondation — fiscal stats (dark band) ─────────────────── */

.fondation-stats {
  background: var(--ink);
  padding: var(--pad-section) 0;
}
.fondation-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-medium);
  margin-top: 56px;
}
.stat-item { text-align: center; }
.stat-item__number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--ochre-soft);
  margin-bottom: 12px;
}
.stat-item__label {
  font-family: var(--serif);
  font-size: var(--fs-support);
  line-height: 1.5;
  color: var(--bone);
  opacity: .8;
}

@media (max-width: 768px) {
  .fondation-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px var(--gap-medium); }
}

/* ── Fondation — board ────────────────────────────────────── */

.ca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap-medium);
  margin-top: 56px;
}
.ca-card { text-align: center; }
.ca-card__photo {
  width: 120px; height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bone-warm);
}
.ca-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ca-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--burgundy);
}
.ca-card__role {
  font-family: var(--serif);
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ── Partenaires — tiers ──────────────────────────────────── */

.tier-block { margin-top: 56px; }
.tier-block__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.tier-badge {
  font-family: var(--display);
  font-size: var(--fs-label-sm);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ochre-deep);
  padding: 5px 12px;
}
.tier-block__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-title-lg);
  color: var(--burgundy);
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  text-align: center;
}
.logo-item img { max-width: 100%; max-height: 64px; object-fit: contain; }

/* ── Partenaires — founders wall (dark band) ──────────────── */

.fondateurs-wall {
  background: var(--burgundy);
  padding: var(--pad-section) 0;
}
.fondateurs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin-top: 48px;
}
.fondateur-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ochre-soft);
  line-height: 1.3;
}
.fondateur-item:not(:last-child)::after {
  content: "·";
  margin-left: 40px;
  color: rgba(245, 239, 227, .35);
}

/* ── Accueil — teaser visite : 1 ou 2 images décalées ─────── */
.visite-teaser__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visite-teaser__media .img-frame { aspect-ratio: 2 / 3; }
.visite-teaser__media .img-frame + .img-frame { margin-top: 48px; }
.visite-teaser__media--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.visite-teaser__media--single .img-frame { aspect-ratio: 3 / 4; }

/* ── Visite — practical info ──────────────────────────────── */

.visite-pratique .infos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-large) var(--gap-medium);
}
.info-block__heading {
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.info-block__content {
  font-family: var(--serif);
  font-size: var(--fs-text);
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .visite-pratique .infos-grid { grid-template-columns: 1fr; }
}

/* ── Visite — events ──────────────────────────────────────── */

.evenements-section { background: var(--bone-warm); }
.events-list { display: flex; flex-direction: column; }
.event-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: var(--gap-medium);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.event-item__date {
  text-align: center;
  border-right: 1px solid var(--rule);
  padding-right: var(--gap-medium);
}
.event-item__day {
  font-family: var(--serif);
  font-size: var(--fs-figure);
  line-height: 1;
  color: var(--burgundy);
}
.event-item__month {
  font-family: var(--display);
  font-size: var(--fs-label);
  letter-spacing: .18em;
  color: var(--ochre-deep);
  margin-top: 4px;
}
.event-item__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-title-sm);
  color: var(--ink);
}
.event-item__desc {
  font-family: var(--serif);
  font-size: var(--fs-support);
  color: var(--ink-soft);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .event-item { grid-template-columns: 64px 1fr; }
  .event-item .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* ── Contact ──────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap-large);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:last-child { padding-top: 0 !important; }
}

/* ── « L'histoire continue » — barre CTA bordeaux (blocs natifs) ── */
.vm-suite {
  background: var(--burgundy);
  color: var(--bone);
  padding: 72px 0;
  border-top: 6px solid var(--ochre-deep);
}
.vm-suite__bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  gap: var(--gap-medium);
}
.vm-suite__eyebrow { color: var(--ochre-soft); margin-bottom: 12px; }
.vm-suite__title {
  font-family: var(--serif); /* Cormorant (classe .display du design), pas Cinzel */
  font-weight: 400;
  text-transform: none;
  color: var(--bone);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
}
.vm-suite__title em { font-style: italic; color: var(--ochre-soft); }
.vm-suite .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-family: var(--display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--bone);
  border-radius: 0;
  transition: all .25s ease;
}
.vm-suite .wp-block-button__link:hover { background: var(--bone); color: var(--burgundy); }
@media (max-width: 640px) {
  .vm-suite__bar { padding: 0 24px; }
}

/* ── Visite — ancre du formulaire, sous le header collant ── */
#contact { scroll-margin-top: var(--header-h); }

/* ── Hero — titre ── */
.hero-cinematic__title { font-size: var(--fs-hero); color: var(--bone); margin-bottom: 28px; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
/* Titre en <h1> : neutralise les styles h1 d'Astra (Cinzel 600, interligne 1.4). */
h1.hero-cinematic__title { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: -0.015em; text-transform: none; margin-top: 0; }

/* ── Accueil — vignettes « L'histoire de Villemont » : typographie du site ── */
.vignette__year { font-size: var(--fs-numeral); margin-bottom: 6px; }
.vignette__desc { font-family: var(--serif); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }

/* ── Soutenir (don) — tax cards ───────────────────────────── */
.don-tax .info-block {
  height: 100%; /* les 3 pavés à la même hauteur */
  padding: var(--pad-block) 36px;
  background: var(--bone-warm);
  border: 1px solid var(--rule-soft);
}
@media (max-width: 640px) {
  .don-tax { grid-template-columns: 1fr !important; }
}

/* ── Soutenir — « Autres façons d'aider » (4 cartes) ───────── */
.vm-aide { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); }
.vm-aide .section-title { text-align: center; margin-bottom: 16px; }
.vm-aide .lede { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.aide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-medium); }
.aide-grid .info-block { padding: var(--pad-block) 36px; background: var(--paper); border: 1px solid var(--rule-soft); }
/* neutralise le block-gap du layout flow de WP (sinon la 2e carte descend) */
.aide-grid > * { margin-block-start: 0; }
.vm-aide .aide-contact { text-align: center; margin-top: 40px; font-family: var(--serif); font-size: var(--fs-text); }
.vm-aide .aide-contact a { color: var(--link-color); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: var(--link-underline-offset); }
@media (max-width: 640px) { .aide-grid { grid-template-columns: 1fr; } }

/* ── CTA « Appel au don » (blocs natifs) ──────────────────── */

.vm-cta {
  background: var(--bone-warm);
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  padding: var(--pad-section) 0;
}
.vm-cta .fleur-rule { max-width: 380px; margin: 18px auto 24px; font-size: var(--fs-ornament); }
.vm-cta .section-title { margin-bottom: 24px; } /* compat ancien markup */
.vm-cta .lede { margin-bottom: 40px; }

/* Look « Devenez partenaire privilégié » (design accueil) */
.vm-cta__eyebrow { color: var(--ochre-deep); letter-spacing: .42em; margin-bottom: 22px; }
.vm-cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--burgundy);
  margin: 0 0 8px;
}
.vm-cta__title em { font-style: italic; color: var(--ochre-deep); }
.vm-cta__text { max-width: 620px; margin: 0 auto 36px; }
.vm-cta .wp-block-buttons { gap: 16px; }
.vm-cta__btn-outline .wp-block-button__link { background: transparent; color: var(--burgundy); }
.vm-cta__btn-outline .wp-block-button__link:hover { background: var(--burgundy); color: var(--bone); border-color: var(--burgundy); }

/* Bouton natif (core/button) aligné sur .btn-burgundy.solid */
.vm-cta .wp-block-button__link,
.vm-soutenir .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-family: var(--display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 0;
  transition: all .25s ease;
}
.vm-cta .wp-block-button__link:hover,
.vm-soutenir .wp-block-button__link:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
}

/* ── Soutenir (don) — pattern blocs natifs ────────────────── */
.vm-soutenir .fleur-rule { max-width: 420px; margin: 0 auto 22px; font-size: var(--fs-ornament); }
.vm-soutenir .section-title { margin-bottom: 24px; }
.vm-soutenir .lede { margin-bottom: 40px; }
.vm-soutenir .don-note { margin-top: 16px; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: var(--fs-text); }
.vm-soutenir .don-tax { margin-top: 56px; max-width: var(--content-wide); }
.vm-soutenir .don-attrib {
  margin-top: 48px;
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.vm-soutenir .don-attrib a { color: var(--burgundy); }

/* ── Visite — infos pratiques (image + liste) ── */
.vp-head { margin-bottom: 48px; }
.vp-head .section-title { margin-top: 14px; }
/* La photo s'étire sur la hauteur de la liste : début au niveau de la 1re ligne,
   fin (légende comprise) au niveau du dernier filet. */
.vp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap-large); align-items: stretch; }
.vp-media { display: flex; flex-direction: column; }
.vp-media .img-frame { flex: 1; min-height: 360px; }
.vp-media .img-frame img { position: absolute; inset: 0; } /* la liste fixe la hauteur, pas l'image */
.vp-media__caption { margin-top: 14px; }
/* Ordinateur : la photo s'arrête sur le dernier filet de la liste, la légende passe dessous. */
@media (min-width: 1025px) {
  .vp-media { position: relative; }
  .vp-media__caption { position: absolute; top: 100%; left: 0; right: 0; }
}
.vp-list { margin: 0; border-top: 1px solid var(--rule-soft); }
.vp-row { display: grid; grid-template-columns: 170px 1fr; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.vp-row__label { color: var(--ochre-deep); margin: 0; }
.vp-row__value { font-size: var(--fs-text); margin: 0; }
.vp-info .btn { margin-top: 36px; }
@media (max-width: 768px) {
  .vp-grid { grid-template-columns: 1fr; gap: var(--gap-medium); }
  .vp-media .img-frame { flex: none; min-height: 0; aspect-ratio: 4/5; }
}
@media (max-width: 640px) { .vp-row { grid-template-columns: 1fr; gap: 4px; } }

/* ── Visite — agenda événements ── */
.evenements-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.evenements-head__title { margin-top: 16px; }
.evenements-head__count { color: var(--ochre-deep); margin: 0; }
.evenements-section .events-list { gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.event-row { background: var(--paper); padding: 26px 36px; display: grid; grid-template-columns: 120px 1fr auto auto; align-items: center; gap: 36px; }
.event-day { display: flex; align-items: baseline; gap: 8px; }
.event-day__d { font-family: var(--serif); font-size: var(--fs-figure-lg); line-height: 1; color: var(--burgundy); }
.event-day__m { color: var(--ochre-deep); }
.event-title { font-family: var(--serif); font-size: var(--fs-title-sm); color: var(--ink); line-height: 1.2; }
.event-kind { color: var(--ink-soft); }
.event-book { color: var(--burgundy); text-decoration: none; white-space: nowrap; }
.event-book:hover { color: var(--burgundy-deep); }
@media (max-width: 768px) {
  .event-row { grid-template-columns: 80px 1fr; gap: 6px 20px; }
  .event-day__d { font-size: var(--fs-title-xl); }
  .event-kind, .event-book { grid-column: 2; }
}

/* ── Restauration — phases (cartes / frise) + badges + stats ── */
.resto-phases-block { background: var(--paper); }

.section-tight { padding: 72px 0; }

/* Légende */
.resto-legend-bar { padding: 36px 0; border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.resto-legend { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.resto-legend__counts {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--display); font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.resto-legend__all { color: var(--burgundy); }
.resto-legend__range { color: var(--ochre-deep); }

/* Badge de statut */
.resto-badge {
  display: inline-block; font-family: var(--display); font-size: var(--fs-label);
  letter-spacing: .24em; text-transform: uppercase; padding: 5px 12px; border: 1px solid;
}
.resto-badge--done     { color: var(--olive); border-color: var(--olive); background: rgba(91, 90, 58, .08); }
.resto-badge--progress { color: var(--ochre-deep); border-color: var(--ochre-deep); background: rgba(158, 126, 61, .10); }
.resto-badge--planned  { color: var(--ink-soft); border-color: var(--rule); border-style: dashed; }

/* Variante CARTES */
.resto-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-large) var(--gap-medium); }
.resto-card { display: flex; flex-direction: column; }
.resto-card__img { aspect-ratio: 4/3; margin-bottom: 22px; }
.resto-card__body { display: flex; flex-direction: column; align-items: flex-start; }
.resto-card .resto-badge { margin-bottom: 16px; }
.resto-card__year { font-family: var(--serif); font-size: var(--fs-title-md); color: var(--burgundy); margin-bottom: 2px; }
.resto-card__cat { color: var(--ochre-deep); margin-bottom: 10px; }
.resto-card__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-title-md); line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.resto-card__text { font-size: var(--fs-text); }
/* Carte cliquable → page détaillée */
.resto-card--link {
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.resto-card--link:hover { transform: translateY(-4px); }
.resto-card--link:hover .resto-card__img { box-shadow: 0 16px 32px rgba(35, 26, 18, .16); }
.resto-card--link:hover .resto-card__title { color: var(--burgundy); }
.resto-card__more {
  margin-top: 14px; color: var(--burgundy); letter-spacing: .22em;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 1024px) { .resto-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .resto-cards { grid-template-columns: 1fr; } }

/* Variante FRISE VERTICALE */
.resto-rail { max-width: 940px; margin: 0 auto; }
.resto-rail__item {
  display: grid; grid-template-columns: 40px 1fr 240px; gap: var(--gap-medium);
  align-items: start; padding-bottom: 56px;
}
.resto-rail__marker { display: flex; justify-content: center; position: relative; }
.resto-rail__marker::before { content: ""; position: absolute; top: 8px; bottom: -56px; width: 1px; background: var(--rule); }
.resto-rail__item:last-child .resto-rail__marker::before { display: none; }
.resto-rail__dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--burgundy);
  background: var(--paper); margin-top: 4px; position: relative; z-index: 1;
}
.resto-rail__dot--done { background: var(--burgundy); }
.resto-rail__dot--progress { background: var(--ochre); }
.resto-rail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.resto-rail__year { font-family: var(--serif); font-size: var(--fs-title-lg); color: var(--burgundy); }
.resto-rail__cat { color: var(--ochre-deep); margin-bottom: 8px; }
.resto-rail__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-title-lg); line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.resto-rail__text { font-size: var(--fs-text); }
.resto-rail__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: var(--burgundy); letter-spacing: .22em; text-decoration: none;
}
.resto-rail__more:hover { color: var(--burgundy-deep); }
.resto-rail__media { aspect-ratio: 4/3; align-self: center; }
@media (max-width: 768px) {
  .resto-rail__item { grid-template-columns: 28px 1fr; }
  .resto-rail__media { grid-column: 2; margin-top: 16px; max-width: 360px; }
}

/* En-tête de chapitre (numéral + plage + titre + chapeau) */
.resto-chapter {
  padding: var(--pad-block) 0 0;
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.resto-chapter__inner {
  display: grid;
  grid-template-columns: minmax(96px, 160px) 1fr;
  gap: var(--gap-medium);
  align-items: start;
  padding-bottom: var(--pad-block);
  border-bottom: 1px solid var(--rule-soft);
}
.resto-chapter__numeral {
  font-family: var(--serif);
  font-size: clamp(88px, 12vw, 168px);
  line-height: .85;
  color: var(--ochre);
  opacity: .55;
  letter-spacing: -.04em;
}
.resto-chapter__range { margin-bottom: 14px; }
.resto-chapter__title { margin-bottom: 18px; }
.resto-chapter__lede { max-width: 640px; }
@media (max-width: 768px) {
  .resto-chapter__inner { grid-template-columns: 1fr; gap: 8px; }
  .resto-chapter__numeral { font-size: var(--fs-figure-xl); }
}
/* Badges de statut (Achevé / En cours / À venir) : affichés quand la frise a
   une légende (chantiers mêlés) ; masqués sinon, comme pour « Stopper
   l'hémorragie » 1995-2009, entièrement achevée (retour client, nov. 2026). */
.resto-phases-block--no-legend .resto-badge { display: none; }
/* Toute cible d'ancre située après la sous-nav doit atterrir sous header + sous-nav
   (hauteur de la sous-nav ≈ 69px : tap-min 44 + 2×8 de padding + bordure) */
.chapter-nav ~ [id] { scroll-margin-top: calc(var(--header-h) + 88px); }

/* Sous-navigation de chapitres (collante sous le header) */
.chapter-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.chapter-nav__list {
  list-style: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chapter-nav__list::-webkit-scrollbar { display: none; }
.chapter-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 8px 18px;
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.chapter-nav__link:hover { color: var(--burgundy); }
.chapter-nav__link.is-active { color: var(--burgundy); border-bottom-color: var(--ochre); }
@media (max-width: 640px) {
  .chapter-nav__inner { padding: 0 16px; }
  .chapter-nav__link { font-size: var(--fs-label-sm); padding: 8px 12px; letter-spacing: .18em; }
}

/* Stats */
.resto-stats-section { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); }
.resto-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-medium); }
.resto-stat { text-align: center; }
.resto-stat__n { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--burgundy); margin-bottom: 8px; }
.resto-stat__l { color: var(--ink-soft); }
@media (max-width: 768px) { .resto-stats { grid-template-columns: repeat(2, 1fr); gap: var(--gap-large) var(--gap-medium); } }
/* Petits téléphones : les nombres côte à côte deviennent serrés → 1 colonne */
@media (max-width: 400px) { .resto-stats, .fondation-stats .stats-grid { grid-template-columns: 1fr; } }

/* ── Partenaires — grilles de logos + légendes ───────────── */
.partners-section { background: var(--paper); }
.partners-section--alt { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); }
.partners-section--compact { padding-top: 0; }
.partners-section--centered .partners-head { text-align: center; }

.partners-head { margin-bottom: 48px; }
.partners-head .section-title { margin-top: 14px; }
.partners-head__sub {
  color: var(--ochre-deep); margin-top: 18px; margin-bottom: 0;
  letter-spacing: .28em;
}
.partners-head__intro { max-width: 680px; margin-top: 18px; color: var(--ink-soft); }
.partners-section--centered .partners-head__intro { margin-left: auto; margin-right: auto; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.partner-cell {
  background: var(--paper);
  padding: 34px 22px;
  min-height: 168px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
}
.partner-cell__media { display: grid; place-items: center; min-height: 60px; width: 100%; }
.partner-cell__media img { max-height: 64px; max-width: 82%; object-fit: contain; display: block; }
.partner-cell__placeholder { font-family: var(--serif); font-size: var(--fs-notice); color: var(--burgundy); line-height: 1.2; }
.partner-cell__name { font-family: var(--serif); font-size: var(--fs-caption); color: var(--ink-soft); margin: 0; line-height: 1.25; }
.partner-cell__sub { color: var(--ochre-deep); margin: 0; }
a.partner-cell__media { transition: opacity .2s ease; }
a.partner-cell__media:hover { opacity: .65; }

.partners-caption { text-align: center; margin-top: 24px; }

@media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Lettres — archive (grille : voir lettres.css) ───────────────────────────────── */

.lettres-intro { max-width: 640px; margin: 0 0 var(--gap-medium); }

/* ── Cibles tactiles ≥44px — liens/actions cliquables des sections ──
   (WCAG 2.5.5) : garantit une zone de touche confortable sur mobile. */
.event-book,
.resto-card__more,
.resto-rail__more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

/* ── Lettres — single (reading) ───────────────────────────── */

.lettre-single { padding: var(--pad-section) 0; background: var(--paper); }
.lettre-single__head { text-align: center; margin-bottom: 8px; }
.lettre-single__head .section-title { margin: 12px auto 0; max-width: 18ch; }
.lettre-single__body {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-soft);
}
.lettre-single__body h2,
.lettre-single__body h3 {
  font-family: var(--serif);
  color: var(--burgundy);
  margin: 2em 0 .5em;
}
.lettre-single__body p { margin: 0 0 1.2em; }
.lettre-single__body img { width: 100%; height: auto; margin: 1.5em 0; }
.lettre-single__body figure { margin: 1.5em 0; }
.lettre-single__body a { color: var(--link-color); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: var(--link-underline-offset); }

.lettre-single__actions { text-align: center; margin-top: 48px; }

.lettre-single__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-medium);
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .1em;
}
.lettre-single__nav a { color: var(--ink-soft); text-decoration: none; transition: color var(--transition); }
.lettre-single__nav a:hover { color: var(--burgundy); }
.lettre-single__nav-prev { text-align: left; flex: 1; }
.lettre-single__nav-all  { text-align: center; color: var(--ochre-deep); text-transform: uppercase; }
.lettre-single__nav-next { text-align: right; flex: 1; }

@media (max-width: 640px) {
  .lettre-single__nav { flex-direction: column; gap: 14px; text-align: center; }
  .lettre-single__nav-prev, .lettre-single__nav-next { text-align: center; }
}

/* ── Galerie de page (archives, plans, presse, architecture) ─ */
.vm-gallery--alt { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.vm-gallery__head { margin-bottom: 48px; } /* texte sur toute la largeur de la page (choix client) */
.vm-gallery__head .eyebrow { margin-bottom: 16px; }
.vm-gallery__head .section-title { margin-bottom: 24px; }
.vm-gallery__text p { margin: 0 0 1em; }
.vm-gallery__text p:last-child { margin-bottom: 0; }
.vm-gallery__grid { display: grid; gap: var(--gap-large) var(--gap-medium); }
.vm-gallery__grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.vm-gallery__grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.vm-gallery__grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.vm-gallery__frame { aspect-ratio: 4 / 3; background: var(--bone-warm); }
.vm-gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
/* Documents et archives : image entière sur un fond « passe-partout » */
.vm-gallery--contain .vm-gallery__frame { border: 1px solid var(--rule-soft); }
.vm-gallery--contain .vm-gallery__frame img { object-fit: contain; padding: 6px; }
.vm-gallery--contain .vm-gallery__frame::after { display: none; }
.vm-gallery__link { display: block; transition: transform var(--transition); }
.vm-gallery__link:hover { transform: translateY(-4px); }
.vm-gallery__link:hover .vm-gallery__frame { box-shadow: 0 16px 32px rgba(35, 26, 18, .16); }
.vm-gallery__item .img-caption { margin-top: 12px; }
@media (max-width: 1024px) { .vm-gallery__grid.is-4 { grid-template-columns: repeat(2, 1fr); } .vm-gallery__grid.is-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vm-gallery__grid { grid-template-columns: 1fr !important; } }

/* ── Vidéos (façades YouTube, chargement au clic) ─────────── */
.vm-videos--alt { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); }
.vm-videos__head { margin-bottom: 48px; }
.vm-videos__head .eyebrow { margin-bottom: 16px; }
.vm-videos__head .section-title { margin-bottom: 24px; }
.vm-videos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-large) var(--gap-medium); }
.vm-video { margin: 0; }
.vm-video__facade {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); border: 1px solid var(--rule-soft);
}
.vm-video__poster { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity var(--transition), transform .6s ease; }
.vm-video__facade:hover .vm-video__poster { opacity: 1; transform: scale(1.03); }
.vm-video__play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--burgundy); color: var(--bone);
  font-size: var(--fs-icon); padding-left: 4px; box-shadow: 0 8px 24px rgba(35, 26, 18, .35);
  transition: background var(--transition);
}
.vm-video__facade:hover .vm-video__play { background: var(--burgundy-deep); }
.vm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-video__facade:fullscreen { aspect-ratio: auto; border: 0; }
.vm-video__caption { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.vm-video__title { font-family: var(--serif); font-size: var(--fs-title-sm); color: var(--ink); line-height: 1.2; }
.vm-video__meta { color: var(--ochre-deep); }
.vm-video__desc { display: block; margin-top: 6px; font-family: var(--serif); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.vm-videos__note { margin-top: 32px; color: var(--ink-soft); }
@media (max-width: 640px) { .vm-videos__grid { grid-template-columns: 1fr; } }

/* ── Pages enfants : fil d'Ariane + navigation entre périodes ── */
.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--rule-soft); }
.breadcrumb__list {
  list-style: none; display: flex; flex-wrap: nowrap; gap: 6px 10px; min-height: 48px; align-items: center; white-space: nowrap;
  font-family: var(--display); font-size: var(--fs-label); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__item a { transition: color var(--transition); }
.breadcrumb__item a:hover { color: var(--burgundy); }
.breadcrumb__item [aria-current] { color: var(--burgundy); }
.breadcrumb__sep { color: var(--ochre); }

.period-nav { background: var(--bone-warm); border-top: 1px solid var(--rule-soft); }
.period-nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gap-medium);
  padding-top: 40px; padding-bottom: 40px;
}
.period-nav a { display: inline-flex; flex-direction: column; gap: 8px; color: var(--ink-soft); transition: color var(--transition); }
.period-nav a:hover { color: var(--burgundy); }
.period-nav .caps-label { color: var(--ochre-deep); }
.period-nav__title { font-family: var(--serif); font-size: var(--fs-title-md); line-height: 1.15; color: var(--burgundy); }
.period-nav__prev { text-align: left; }
.period-nav__up { text-align: center; }
.period-nav__next { text-align: right; }
.period-nav__next a { align-items: flex-end; }
.period-nav__next .period-nav__also {
  display: block; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: var(--fs-support);
  color: var(--ochre-deep); text-decoration: underline; text-underline-offset: 3px;
  min-height: var(--tap-min); padding-top: 10px;
}
/* Mobile (≤ 640px) : pagination à la place des trois liens empilés. */
.period-pager { display: none; }
@media (max-width: 640px) {
  .period-nav__inner { display: none; }
  .period-nav .period-pager { display: block; padding-top: 24px; padding-bottom: 24px; }
  .period-nav .period-pager__bar { display: flex; align-items: center; justify-content: space-between; }
  .period-nav .period-pager__arrow {
    width: var(--pager-btn); height: var(--pager-btn); flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
    border: 1px solid var(--rule); font-family: var(--serif); font-size: var(--fs-pager-arrow); line-height: 1; color: var(--burgundy);
  }
  .period-nav .period-pager__arrow--next { background: var(--burgundy); border-color: var(--burgundy); color: var(--bone); }
  .period-nav .period-pager__arrow.is-off { opacity: .3; }
  .period-nav .period-pager__mid { text-align: center; }
  .period-nav .period-pager__mid .caps-label { color: var(--ochre-deep); }
  .period-nav .period-pager__dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
  .period-nav .period-pager__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
  .period-nav .period-pager__dot.is-on { background: var(--burgundy); }
  .period-nav .period-pager__labels { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
  .period-nav .period-pager__labels a { display: inline-flex; flex-direction: row; gap: 0; align-items: center; min-height: var(--tap-min); font-family: var(--serif); font-size: var(--fs-note); line-height: 1.2; color: var(--burgundy); }
  .period-nav .period-pager__next { text-align: right; justify-content: flex-end; }
  .period-nav .period-pager__also { display: block; text-align: right; font-family: var(--serif); font-style: italic; font-size: var(--fs-note); color: var(--ochre-deep); text-decoration: underline; text-underline-offset: 3px; }
  .period-nav .period-pager__up { display: flex; flex-direction: row; align-items: center; justify-content: center; min-height: var(--tap-min); margin-top: 8px; color: var(--ink-soft); }
}

/* ── Page légale (Mentions légales & confidentialité) ───────
   Même largeur que les autres pages (.container) ; chaque section est une
   grille « intitulé | texte » pour garder une mesure lisible sur toute la largeur. */
.legal {
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal > .body-note { color: var(--ochre-deep); margin-bottom: var(--pad-block); }
.legal-section {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  column-gap: var(--gap-large);
  padding: var(--pad-block) 0;
  border-top: 1px solid var(--rule-soft);
}
.legal-section h2 {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: .3em 0 0;
}
.legal-section > :not(h2) { grid-column: 2; max-width: 72ch; }
.legal p, .legal ul { margin: 0 0 1.1em; }
.legal-section > :last-child { margin-bottom: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--link-color); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: var(--link-underline-offset); }
.legal code { font-family: inherit; font-size: 1em; }
@media (max-width: 768px) {
  .legal-section { grid-template-columns: 1fr; row-gap: 12px; }
  .legal-section > :not(h2) { grid-column: 1; }
}

/* ── Sources d'une page d'histoire : encart repliable (bloc Détails natif) ──
 * Contenu : groupe .container.vm-sources > details.vm-sources__details > liste.
 */
.vm-sources { margin-top: var(--pad-block); margin-bottom: var(--pad-block); }
.vm-sources__details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-soft); }
.vm-sources__details > summary {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap-min);
  font-family: var(--display); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ochre-deep);
  cursor: pointer; list-style: none;
}
.vm-sources__details > summary::-webkit-details-marker { display: none; }
.vm-sources__details > summary::after {
  content: "+"; margin-left: auto; font-family: var(--serif); font-size: var(--fs-small);
  letter-spacing: 0; color: var(--ochre-deep);
}
.vm-sources__details[open] > summary::after { content: "–"; }
.vm-sources__details > summary:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }
.vm-sources__list {
  margin: 4px 0 20px; padding-left: 1.2em;
  font-family: var(--serif); font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft);
}
.vm-sources__list li + li { margin-top: 8px; }

/* Coordonnées GPS sous l'adresse (fiche pratique Visite) : petite ligne en
   capitales, cliquable vers la carte — n'ajoute qu'une demi-ligne à la liste. */
.vp-gps {
  display: block; margin-top: 0; line-height: 1.5;
  font-family: var(--display); font-size: var(--fs-label-sm); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ochre-deep); text-decoration: none;
}
.vp-gps:hover, .vp-gps:focus-visible { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }

/* Images ouvrables en grand (vignettes, cartes de restauration) : le lien remplit le cadre. */
.img-frame > .lb-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.img-frame > .lb-link img { transition: transform .6s ease; }
@media (hover: hover) { .img-frame > .lb-link:hover img { transform: scale(1.03); } }
