@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/Spectral-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --azur: #1d3f72;
  --azur-deep: #122a4d;
  --azur-night: #0c1a31;
  --azur-tint: #e7edf6;
  --or: #c99a2e;
  --or-light: #e8c766;
  --ink: #172033;
  --ink-2: #4a5466;
  --ink-on-dark: #c8d2e2;
  --rule: #d9dde4;
  --rule-dark: rgba(255, 255, 255, 0.16);
  --paper: #ffffff;
  --stone: #f1f3f5;
  --status-open: #1f6b47;
  --status-open-bg: #e3f1e9;
  --status-private-bg: #eef0f3;
  --status-partial: #7a5a10;
  --status-partial-bg: #f8efd6;
  --status-closed: #8a2e2e;
  --status-closed-bg: #f6e4e4;

  --ff-serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --ff-sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.625rem;
  --step-2: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --step-4: clamp(3rem, 1.7rem + 5.4vw, 5.75rem);

  --masthead-h: 4rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  accent-color: var(--azur);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h) + 1rem);
  scrollbar-color: var(--azur) var(--stone);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-serif);
  font-size: var(--step-0);
  line-height: 1.65;
  caret-color: var(--azur);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--or-light); color: var(--azur-night); }

img, svg { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
sup { font-size: 0.62em; line-height: 0; vertical-align: 0.42em; }
small { font-size: 0.8em; color: var(--ink-2); }

a { color: var(--azur); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 2px; }

button { font: inherit; color: inherit; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--azur); color: #fff; font-family: var(--ff-sans); border-radius: 4px; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top); }
@supports (backdrop-filter: blur(1px)) { .masthead { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); } }
.masthead__inner { height: var(--masthead-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); max-width: 86rem; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand img { width: 26px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a { display: block; padding: 0.5rem 0.8rem; font-family: var(--ff-sans); font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: 4px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--azur); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.8rem; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; font-family: var(--ff-sans); font-size: 1rem; cursor: pointer; }

@media (max-width: 879px) {
  .nav ul { overflow-x: auto; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(12, 26, 49, 0.35); display: none; }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .js .nav a { padding: 0.85rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .js .nav li:last-child a { border-bottom: 0; }
  .js .nav a::after { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 6px; font-family: var(--ff-sans); font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--azur-deep); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5); }
.btn--light:hover { background: var(--or-light); }
.btn--dark { background: var(--azur); color: #fff; }
.btn--dark:hover { background: var(--azur-deep); }
.link-light { display: inline-flex; align-items: center; gap: 0.35rem; color: #fff; font-family: var(--ff-sans); font-weight: 700; text-decoration: none; min-height: 48px; }
.link-light svg { transition: transform 0.3s var(--ease-out); }
.link-light:hover svg { transform: translateY(3px); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; background: var(--azur); color: #fff; }
.hero__text { padding: clamp(2.25rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero__lead { font-style: italic; font-size: var(--step-2); line-height: 1.3; color: var(--or-light); margin-bottom: 1.5rem; max-width: 22ch; }
.hero__intro { color: #dbe3ef; max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.hero__media { margin: 0; position: relative; order: -1; aspect-ratio: 3 / 2; overflow: hidden; background: var(--azur-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; animation: unveil 1.4s var(--ease-out) both; }
.hero__media figcaption { position: absolute; right: 0; bottom: 0; padding: 0.35rem 0.75rem; background: rgba(12, 26, 49, 0.72); color: #fff; font-family: var(--ff-sans); font-size: 0.8125rem; }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(26rem, 42fr) 58fr; min-height: min(calc(100svh - var(--masthead-h)), 52rem); }
  .hero__media { order: 0; aspect-ratio: auto; }
  .hero__text { padding-left: max(var(--gutter), calc((100vw - 86rem) / 2 + var(--gutter))); padding-right: clamp(2rem, 4vw, 4rem); }
}

/* Identity strip */
.idcard { border-bottom: 1px solid var(--rule); }
.idcard__list { margin: 0 auto; width: min(100% - 2 * var(--gutter), 76rem); display: grid; grid-template-columns: repeat(2, 1fr); }
.idcard__list > div { padding: 1.1rem 0.75rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.idcard dt { font-family: var(--ff-sans); font-size: 0.875rem; color: var(--ink-2); margin-bottom: 0.15rem; }
.idcard dd { margin: 0; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
@media (min-width: 720px) { .idcard__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .idcard__list { grid-template-columns: repeat(6, auto); justify-content: space-between; }
  .idcard__list > div { border-bottom: 0; padding: 1.5rem 1.5rem 1.5rem 0; }
  .idcard__list > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
}

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--continued { padding-top: 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-bottom: 1rem; }
.section__head p { color: var(--ink-2); font-size: 1.25rem; line-height: 1.55; }
.section__head--light p { color: var(--ink-on-dark); }
.prose { max-width: 40rem; }
.prose h2 { margin-bottom: 1.5rem; }
.note { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.tag { display: inline-block; margin-right: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 3px; font-family: var(--ff-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: 0.15em; }
.tag--tradition { background: var(--status-partial-bg); color: var(--status-partial); }
.tag--hypothese { background: var(--azur-tint); color: var(--azur); }

/* Village */
.village__grid { display: grid; gap: 3rem; align-items: start; }
.blason { background: var(--stone); padding: 2.25rem 2rem; border-radius: 6px; text-align: center; }
.blason img { width: 120px; margin: 0 auto 1.25rem; filter: drop-shadow(0 8px 14px rgba(12, 26, 49, 0.18)); }
.blason h3 { margin-bottom: 0.6rem; }
.blason p { font-size: 1rem; color: var(--ink-2); }
@media (min-width: 900px) { .village__grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 5rem; } .blason { margin-top: 5rem; } }

/* Histoire */
.histoire { background: var(--stone); }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { display: grid; gap: 0.5rem 3rem; padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.chapter:last-child { border-bottom: 1px solid var(--rule); }
.chapter__when { margin: 0; font-style: italic; font-size: 1.25rem; color: var(--azur); line-height: 1.3; }
.chapter__body { max-width: 42rem; }
.chapter__body h3 { margin-bottom: 0.75rem; }
.chapter__fig { margin: 0; max-width: 24rem; }
.chapter__fig img { border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(12, 26, 49, 0.45); }
.chapter__fig figcaption, .place__fig figcaption, .facade__plate figcaption, .plates figcaption, .carte__fig figcaption { margin-top: 0.6rem; font-family: var(--ff-sans); font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 820px) {
  .chapter { grid-template-columns: 12rem minmax(0, 1fr); }
  .chapter--figure { grid-template-columns: 12rem minmax(0, 1fr) 18rem; }
  .chapter__fig { margin-top: 0.4rem; }
}
.figures { margin-top: 3rem; display: grid; gap: 0.75rem 3rem; }
.figures ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.figures li { color: var(--ink-2); }
.figures li strong { color: var(--ink); font-weight: 600; }
@media (min-width: 820px) { .figures { grid-template-columns: 12rem minmax(0, 1fr); } }

/* Église */
.eglise { background: var(--azur-deep); color: #fff; }
.eglise a { color: var(--or-light); }
.facade { display: grid; gap: 2.5rem; align-items: start; }
.facade__plate { margin: 0; justify-self: center; width: min(100%, 26rem); }
.facade__frame { position: relative; border: 1px solid var(--rule-dark); background: #000; }
.facade__frame img { width: 100%; filter: contrast(1.05); }
.facade__plate figcaption, .plates figcaption, .plates__credit { color: var(--ink-on-dark); }
.spot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid #fff; background: var(--or); color: var(--azur-night); font-family: var(--ff-sans); font-weight: 700; font-size: 0.9375rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); transition: transform 0.3s var(--ease-out), background-color 0.2s; }
.spot::before { content: ""; position: absolute; inset: -0.55rem; }
.spot:hover, .spot.is-active { transform: translate(-50%, -50%) scale(1.18); background: #fff; }
.facade__read h3 { margin-bottom: 1.25rem; }
.facade__list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 0.25rem; }
.facade__list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 1rem 0.8rem 0.75rem; border-radius: 6px; color: var(--ink-on-dark); line-height: 1.5; transition: background-color 0.25s; cursor: default; }
.facade__list li strong { color: #fff; font-weight: 600; }
.facade__list .num { width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--or-light); color: var(--or-light); display: grid; place-items: center; font-family: var(--ff-sans); font-weight: 700; font-size: 0.9375rem; transition: background-color 0.25s, color 0.25s; }
.facade__list li.is-active { background: rgba(255, 255, 255, 0.07); }
.facade__list li.is-active .num { background: var(--or-light); color: var(--azur-night); }
.campaigns { margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.campaigns > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule-dark); }
.campaigns dt { font-family: var(--ff-sans); font-weight: 700; font-size: 0.9375rem; color: var(--or-light); }
.campaigns dd { margin: 0.2rem 0 0; color: var(--ink-on-dark); font-size: 1rem; line-height: 1.45; }
.eglise .note { color: var(--ink-on-dark); }
@media (min-width: 900px) { .facade { grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); gap: 4.5rem; } .facade__plate { position: sticky; top: calc(var(--masthead-h) + 1.5rem); } }

.plates { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--rule-dark); }
.plates > h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.plates > p:first-of-type { max-width: 42rem; color: var(--ink-on-dark); margin-bottom: 2.5rem; }
.plates__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.plates__row figure { margin: 0; }
.plates__row img { width: 100%; border: 1px solid var(--rule-dark); }
.plates__credit { margin-top: 1.5rem; font-family: var(--ff-sans); font-size: 0.875rem; }

/* Patrimoine */
.place { display: grid; gap: 1.25rem; align-content: start; }
.place__fig { margin: 0; }
.place__fig img { width: 100%; aspect-ratio: 720 / 511; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); background: #efe6d2; }
.place__body h3 { margin-bottom: 0.5rem; }
.place__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-family: var(--ff-sans); font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 0.9rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status--open { background: var(--status-open-bg); color: var(--status-open); }
.status--private { background: var(--status-private-bg); color: var(--ink-2); }
.status--private::before { background: transparent; border: 1.5px solid currentColor; }
.status--partial { background: var(--status-partial-bg); color: var(--status-partial); }
.status--closed { background: var(--status-closed-bg); color: var(--status-closed); }
.place__body > p:not(.place__meta) { color: var(--ink); }
.locate { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--azur); font-family: var(--ff-sans); font-weight: 700; font-size: 0.9375rem; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.locate::before { content: ""; width: 1.1rem; height: 1.1rem; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3'/%3E%3C/svg%3E") center / contain no-repeat; }
.locate:hover { text-decoration-color: currentColor; }

.place--wide { padding-bottom: clamp(3rem, 6vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.place--wide h3 { font-size: var(--step-2); }
@media (min-width: 900px) { .place--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; } }

.places { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 680px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); } .places--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.places--duo { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
@media (min-width: 1100px) { .places--duo .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; } }
.place--text { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 6px; background: var(--stone); }
@media (min-width: 1100px) { .places--duo .place--text { grid-template-columns: 1fr; } }

.traces { margin-top: clamp(3.5rem, 7vw, 5rem); padding: clamp(2rem, 4vw, 3rem); background: var(--stone); border-radius: 6px; }
.traces h3 { font-size: var(--step-2); margin-bottom: 1.75rem; }
.traces dl { margin: 0; display: grid; gap: 1.5rem 2.5rem; }
.traces dt { font-weight: 600; font-size: 1.1875rem; margin-bottom: 0.25rem; }
.traces dd { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (min-width: 720px) { .traces dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .traces dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Carte */
.carte { background: var(--stone); }
.carte__grid { display: grid; gap: 3rem; align-items: start; }
.carte__fig { margin: 0; }
.carte__open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; }
.carte__open img { width: 100%; border-radius: 3px; box-shadow: 0 24px 48px -24px rgba(12, 26, 49, 0.45), 0 2px 6px rgba(12, 26, 49, 0.12); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.carte__open:hover img { transform: translateY(-4px); box-shadow: 0 32px 56px -24px rgba(12, 26, 49, 0.5), 0 2px 6px rgba(12, 26, 49, 0.12); }
.carte__zoom { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(12, 26, 49, 0.82); color: #fff; font-family: var(--ff-sans); font-weight: 700; font-size: 0.875rem; }
.carte__text h2 { margin-bottom: 1.5rem; }
.carte__text h3 { margin: 2.25rem 0 1rem; }
.spots { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.spots .locate { margin: 0; min-height: 40px; padding: 0.35rem 0.85rem 0.35rem 0.65rem; border: 1px solid #c3cddc; border-radius: 999px; background: var(--paper); text-decoration: none; font-size: 0.9375rem; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.spots .locate:hover { background: var(--azur); border-color: var(--azur); color: #fff; }
@media (min-width: 960px) { .carte__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } .carte__fig { position: sticky; top: calc(var(--masthead-h) + 1.5rem); } }

/* Chronologie */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--rule); break-inside: avoid; }
.timeline time { font-family: var(--ff-sans); font-weight: 700; font-size: 1rem; color: var(--azur); font-variant-numeric: tabular-nums lining-nums; padding-top: 0.15rem; }
.timeline p { margin: 0; }
.timeline .tag { margin: 0 0 0 0.35rem; }
@media (min-width: 1000px) { .timeline { columns: 2; column-gap: 4rem; } }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 0.15rem; } }

.pop { margin: clamp(4rem, 8vw, 6rem) 0 0; display: grid; gap: 2rem 4rem; }
.pop figcaption h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.pop figcaption p { color: var(--ink-2); }
.pop__chart svg { width: 100%; overflow: visible; }
.pop__grid line { stroke: var(--rule); stroke-width: 1; }
.pop__grid text, .pop__years text { fill: var(--ink-2); stroke: none; font-family: var(--ff-sans); font-size: 15px; }
.pop__grid text { text-anchor: end; }
.pop__years text { text-anchor: middle; }
.pop__area { fill: var(--azur-tint); stroke: none; }
.pop__line { stroke: var(--azur); stroke-width: 2.5; }
.pop__marks circle { fill: var(--or); stroke: #fff; stroke-width: 2.5; }
.pop__marks text { fill: var(--ink); stroke: none; font-family: var(--ff-sans); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .pop__grid text, .pop__years text, .pop__marks text { font-size: 38px; }
  .pop__marks .pop__mark--below { transform: translateY(22px); }
  .pop__line { stroke-width: 4; }
  .pop__marks circle { r: 9px; }
}
.pop__data { grid-column: 1 / -1; font-family: var(--ff-sans); font-size: 0.9375rem; }
.pop__data summary { cursor: pointer; color: var(--azur); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.pop__data table { margin-top: 1rem; border-collapse: collapse; width: 100%; columns: 3; font-variant-numeric: tabular-nums; }
.pop__data caption { text-align: left; color: var(--ink-2); padding-bottom: 0.75rem; }
.pop__data tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); column-gap: 2rem; }
.pop__data thead { display: none; }
.pop__data tr { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.pop__data td:first-child { color: var(--ink-2); }
.pop__data td:last-child { font-weight: 700; }
@media (min-width: 960px) { .pop { grid-template-columns: 20rem minmax(0, 1fr); } }

/* Visiter */
.visit { display: grid; gap: 2.5rem 3rem; }
.visit > div { border-top: 2px solid var(--azur); padding-top: 1.5rem; }
.visit h3 { margin-bottom: 1rem; }
.visit ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.visit li::marker { color: var(--or); }
.ext::after { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: -0.05em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 900px) { .visit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sources */
.sources { background: var(--stone); font-size: 1rem; line-height: 1.6; }
.sources h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.sources ol, .sources ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; color: var(--ink-2); }
.sources__grid { display: grid; gap: 3rem 4rem; }
.sources__note { margin-top: 1.25rem; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 900px) { .sources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer */
.footer { background: var(--azur-night); color: var(--ink-on-dark); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); font-family: var(--ff-sans); font-size: 0.9375rem; }
.footer a { color: var(--or-light); }
.footer__inner { display: grid; gap: 0.75rem; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--ff-serif); font-weight: 600; font-size: 1.1875rem; margin-bottom: 0.5rem; }

/* Viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--azur-night); color: #fff; overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: viewer-in 0.35s var(--ease-out); }
.viewer::backdrop { background: rgba(6, 13, 25, 0.7); }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__bar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: calc(0.75rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left)); border-bottom: 1px solid var(--rule-dark); }
.viewer__bar h2 { font-size: 1.1875rem; letter-spacing: 0; }
.viewer__place { margin: 0; flex: 1; font-family: var(--ff-sans); font-weight: 700; color: var(--or-light); min-width: 8rem; }
.viewer__tools { display: flex; gap: 0.5rem; }
.viewer__tools button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--rule-dark); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.viewer__tools button:hover { background: rgba(255, 255, 255, 0.16); }
.viewer__tools button:disabled { opacity: 0.4; cursor: default; }
.viewer__stage { overflow: auto; overscroll-behavior: contain; cursor: grab; scrollbar-color: var(--or) var(--azur-night); }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__stage:focus-visible { outline-offset: -3px; }
.viewer__canvas { position: relative; margin: 0 auto; }
.viewer__canvas img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; background: #e9e1cf; }
.viewer__marker { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid var(--or); outline: 3px solid var(--azur-night); pointer-events: none; animation: marker 1.8s var(--ease-out) infinite; }
@keyframes marker { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

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

@media print {
  .masthead, .viewer, .locate, .carte__zoom, .hero__actions { display: none !important; }
  .hero, .eglise, .footer { background: none; color: #000; }
}
