/* CDS 70 - feuille de style unique, mobile first */
:root {
  --bg: #16110d;
  --surface: #211a14;
  --surface-2: #2b2219;
  --line: #4a3c2f;
  --text: #efe6da;
  --muted: #c9baa6;
  --accent: #e8b46a;      /* ocre : 9,6:1 sur --bg */
  --accent-strong: #f3c98a;
  --red: #e0623f;          /* rappel des combinaisons rouges */
  --focus: #ffd38a;
  --radius: 14px;
  --maxw: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; color: #fff7ec; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
strong { color: #fff7ec; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #16110d; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 17, 13, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(22, 17, 13, .82); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .8rem; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .8rem; font: inherit; font-size: .95rem; cursor: pointer;
  min-height: 44px;
}
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.no-js .nav-toggle { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem 1rem; color: var(--text); text-decoration: none; border-radius: 10px;
  min-height: 44px;
}
.site-nav a:hover { background: var(--surface-2); color: #fff; }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

/* Mobile : menu repliable (seulement si JavaScript est actif) */
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav { border-top: 1px solid var(--line); padding: .5rem 0 1rem; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .site-nav { width: 100%; }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; border: 0; padding: 0; width: auto; }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav a { padding: .55rem .85rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; }
  .no-js .header-inner { flex-wrap: nowrap; }
}
.js .header-inner { flex-wrap: wrap; }
.js .site-nav { width: 100%; }
@media (min-width: 52rem) { .js .header-inner { flex-wrap: nowrap; } .js .site-nav { width: auto; } }

/* ---------- Bandeau ---------- */
.hero { position: relative; isolation: isolate; min-height: 78vh; display: flex; align-items: flex-end; }
.hero--page { min-height: 52vh; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,17,13,.15) 0%, rgba(22,17,13,.35) 45%, rgba(22,17,13,.96) 100%);
}
.hero-content { padding-top: 6rem; padding-bottom: 2.5rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .5rem; }
.lead { font-size: 1.2rem; color: #f6ece0; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: #1b140e; border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #1b140e; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(239,230,218,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.prose { max-width: 44rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent); }

.split { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--reverse > :first-child { order: 2; }
}
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.figure--wide img { aspect-ratio: 3 / 2; object-fit: cover; }

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.card h3 { font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--muted); font-size: .95rem; }
.contact-line { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }

.callout {
  border-left: 4px solid var(--red); background: var(--surface-2);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checklist li {
  position: relative; padding: .7rem .9rem .7rem 2.6rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.checklist li::before {
  content: ""; position: absolute; left: .95rem; top: 1.05rem; width: .9rem; height: .5rem;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}

.tribute {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem;
}
@media (min-width: 40rem) { .tribute { padding: 2rem 2.25rem; } }
.tribute h2 { font-style: italic; }
.tribute p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; }
.tribute .dates { color: var(--muted); font-family: var(--font); font-size: .95rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.timeline .year { display: block; font-weight: 700; color: var(--accent); }

.facts { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0; }
@media (min-width: 52rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.fact b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .92rem; }

.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- Pied de page ---------- */
.site-footer { background: #100c09; border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; font-family: var(--font); color: var(--text); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

@media print {
  .site-header, .site-footer, .hero::after, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; }
  .hero img { position: static; }
  h1, h2, h3, strong { color: #000; }
  a { color: #000; }
}
