/* ==========================================================================
   CONEX — Convention Excellence
   Système de design dérivé de l'affiche officielle 2027 (bleu · blanc · rouge).
   ========================================================================== */

:root {
  /* Couleurs de marque (échantillonnées sur le logo de l'affiche) */
  --navy: #0a1a5c;        /* bleu du logo « conex » */
  --royal: #12307f;       /* bleu principal */
  --royal-600: #1b44a8;
  --red: #c8102e;         /* rouge du globe et du X */
  --red-700: #a20c25;
  --white: #ffffff;
  --mist: #e8edf5;        /* gris clair bleuté */
  --mist-200: #f4f6fb;
  --ink: #1b2236;         /* texte courant */
  --ink-soft: #4a5370;
  --line: #d3dbea;
  --success: #17673a;
  --success-bg: #e6f4ec;
  --danger-bg: #fbe9ec;

  /* Typographie */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.938rem);
  --step-0: clamp(1.063rem, 1rem + 0.25vw, 1.188rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.125rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.25rem);
  --step-4: clamp(2.8rem, 2rem + 4.2vw, 5.75rem);

  /* Espacements */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --measure: 66ch;
  --wrap: 1200px;
  --radius: 4px;

  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--royal-600);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.05;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
::selection { background: var(--royal); color: var(--white); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
  font-family: var(--font-display); font-size: 1.1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist-200); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); color: var(--navy); }
.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); }
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__link {
  display: block; padding: 0.5rem 0.75rem;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500;
  color: var(--navy); text-decoration: none; border-radius: var(--radius);
}
.nav__link:hover { color: var(--red); }
.nav__link[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.4rem 0.9rem; cursor: pointer; background: var(--white);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius);
}

@media (max-width: 960px) {
  .site-header__inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .nav { flex-basis: 100%; margin-left: 0; padding-bottom: 1rem; }
  .js .site-header:not(.is-open) .nav { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.85rem 0; font-size: 1.3rem; border-bottom: 1px solid var(--mist); }
  .nav__link[aria-current="page"] { box-shadow: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(4rem, 3rem + 6vw, 9rem);
  background:
    radial-gradient(60% 70% at 50% -10%, #ffffff 30%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, rgba(200, 16, 46, 0.12) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgba(18, 48, 127, 0.14) 100%),
    var(--white);
}
.hero__grid { display: block; }
.hero__grid > div { max-width: 46rem; }
.hero__title { font-size: clamp(2.75rem, 1.5rem + 5.2vw, 6.25rem); line-height: 0.9; letter-spacing: -0.015em; margin-bottom: 0.35em; }
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--royal); }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }
.hero__note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }
.hero__ribbon { position: absolute; z-index: -1; right: -2vw; top: -8%; height: 120%; width: auto; aspect-ratio: 0.62; pointer-events: none; }
.hero__ribbon path { fill: none; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero__ribbon path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ribbon-draw 1.6s cubic-bezier(.6, .05, .25, 1) forwards; }
  .hero__ribbon path + path { animation-delay: 0.18s; }
}
@keyframes ribbon-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 1100px) { .hero__ribbon { right: -18vw; opacity: 0.35; } }
@media (max-width: 640px) { .hero__ribbon { right: -50vw; opacity: 0.18; } }

/* ---------- Bande scripturaire (Hébreux 8:6) ---------- */
.scripture { background: var(--navy); color: var(--white); padding-block: var(--section); }
.scripture__quote { margin: 0; max-width: 34ch; font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: var(--step-3); line-height: 1.25; }
.scripture__quote p { margin: 0; }
.scripture__quote p::before { content: "« "; }
.scripture__quote p::after { content: " »"; }
.scripture__ref {
  display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 2rem;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; font-style: normal; letter-spacing: 0.02em;
}
.scripture__ref::before { content: ""; width: 3rem; height: 3px; background: var(--red); }
.scripture__body { margin-top: 3rem; max-width: 60ch; color: rgba(255, 255, 255, 0.86); font-size: var(--step-0); }

/* ---------- Mise en page de sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 40ch; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); column-gap: 1.5rem; border-top: 2px solid var(--navy); }
.pillar { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pillar h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--red); font-style: italic; color: var(--navy); }

/* ---------- Visionnaire ---------- */
.portrait { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 380px; background: var(--mist); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--placeholder {
  display: grid; place-items: center; text-align: center; padding: 2rem;
  font-family: var(--font-display); color: var(--royal); font-size: 1.1rem;
  background: linear-gradient(160deg, var(--mist-200), var(--mist));
}
.portrait--placeholder .initials { display: block; font-size: 6rem; font-weight: 800; line-height: 1; color: var(--navy); }
.org-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.org-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); font-weight: 600; }
.org-list li small { display: block; font-family: var(--font-text); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Édition (bloc 2027) ---------- */
.edition-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.year-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 3rem + 14vw, 15rem); line-height: 0.8; color: var(--navy); letter-spacing: -0.04em; }
.year-mark .zero { color: var(--red); }
@media (max-width: 760px) { .edition-feature { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem 2rem; margin: 1.75rem 0 0; }
.facts div { border-top: 2px solid var(--red); padding-top: 0.6rem; }
.facts dt { font-family: var(--font-display); font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); font-weight: 600; line-height: 1.2; }
.facts dd.pending { color: var(--ink-soft); font-weight: 500; }

/* Couverture d'une édition */
.edition-cover { margin: 0; background: var(--navy); }
.edition-cover img { width: 100%; max-height: min(60vh, 560px); object-fit: cover; }

/* ---------- Programme ---------- */
.program-day { margin-bottom: 3rem; }
.program-day > h3 { font-size: var(--step-1); color: var(--royal); border-bottom: 2px solid var(--navy); padding-bottom: 0.5rem; }
.program { list-style: none; margin: 0; padding: 0; }
.program__item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.program__time { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--red); white-space: nowrap; }
.program__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--navy); margin: 0; line-height: 1.2; }
.program__meta { margin: 0.25rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 560px) { .program__item { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Intervenants ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 2.5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.person a { text-decoration: none; color: inherit; }
.person__photo { aspect-ratio: 1; background: var(--mist); overflow: hidden; margin-bottom: 0.85rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; filter: saturate(0.95); }
.person__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--navy); line-height: 1.15; }
.person a:hover .person__name { color: var(--red); }
.person__org { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Médias ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.media-item a { text-decoration: none; color: inherit; display: block; }
.media-item__thumb { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.media-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-item__type {
  position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; padding: 0.2rem 0.6rem;
}
.media-item__thumb--empty { display: grid; place-items: center; color: rgba(255, 255, 255, 0.75); font-family: var(--font-display); font-size: 1.2rem; }
.media-item__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--navy); margin: 0.75rem 0 0.1rem; line-height: 1.2; }
.media-item a:hover .media-item__title { color: var(--red); }
.media-item__meta { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; padding: 1.25rem 0; margin-bottom: 2.5rem; border-block: 1px solid var(--line); }
.filters .field { margin: 0; min-width: 170px; flex: 1 1 170px; }
.filters .btn { flex: 0 0 auto; }

.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 0.75rem; font-family: var(--font-display); font-size: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Vignette de vidéo sans image */
.media-item__thumb--video { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--royal)); }
.media-item__thumb--video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); position: relative; }
.media-item__thumb--video .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid var(--red); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.media-item__thumb img + .play { position: absolute; }
.person__photo--empty { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--navy); background: linear-gradient(160deg, var(--mist-200), var(--mist)); }

/* Mosaïque de photos d'une édition */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.5rem; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.03); }

/* ---------- Formulaires ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } }
.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--royal); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.35rem; }
.field .required-mark { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="search"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.65rem 0.85rem;
  font: inherit; font-family: var(--font-text); font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #b4bfd6; border-radius: 2px;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(27, 68, 168, 0.25); }
.field .help { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.3rem; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--red); }
.form-error { color: var(--red-700); font-size: var(--step--1); margin: 0.35rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.form-error li::before { content: "⚠ "; }
.field--check { display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--royal); }
.field--check label { font-family: var(--font-text); font-weight: 400; font-size: var(--step--1); color: var(--ink); line-height: 1.5; margin: 0; }
.field--check .form-error { grid-column: 1 / -1; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 4px solid; font-size: var(--step--1); }
.alert--success { background: var(--success-bg); border-color: var(--success); color: #0e4426; }
.alert--error { background: var(--danger-bg); border-color: var(--red); color: var(--red-700); }
.alert--info { background: var(--mist-200); border-color: var(--royal); color: var(--navy); }
.alert p:last-child { margin: 0; }

/* ---------- Confirmation / billet ---------- */
.reference { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--navy); letter-spacing: 0.06em; padding: 0.25rem 0; border-bottom: 3px solid var(--red); }
.ticket { max-width: 420px; margin-inline: auto; text-align: center; border: 1px solid var(--line); border-top: 6px solid var(--red); padding: 2rem 1.5rem; }
.ticket img.qr { width: 260px; height: 260px; margin: 1.5rem auto; image-rendering: pixelated; }

/* ---------- Liste générique ---------- */
.stack-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.stack-list > li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.stack-list h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.stack-list h3 a { color: var(--navy); text-decoration: none; }
.stack-list h3 a:hover { color: var(--red); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-size: 1.8rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 1.25rem; max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-lines .label { display: block; font-family: var(--font-display); color: var(--ink-soft); font-size: 1rem; }
.contact-lines a { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-lines a:hover { color: var(--red); }

/* ---------- Appel à l'action ---------- */
.cta-band { background: var(--royal); color: var(--white); padding-block: clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -4rem; top: -30%; bottom: -30%; width: 7rem; transform: skewX(-24deg); background: linear-gradient(90deg, var(--navy) 0 45%, transparent 45% 58%, var(--red) 58%); opacity: 0.9; }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 50ch; font-size: var(--step-1); line-height: 1.5; }
.cta-band .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band::after { display: none; } }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 1.5vw, 3rem); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(200, 16, 46, 0.06), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(18, 48, 127, 0.07)); }
.page-head h1 { font-size: var(--step-3); margin-bottom: 0.2em; }
.page-head .lead { margin: 0; }
.breadcrumb { font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.empty-state { padding: 2.5rem; background: var(--mist-200); border-left: 4px solid var(--royal); max-width: var(--measure); }
.empty-state h3 { font-size: var(--step-1); }
.empty-state p:last-child { margin-bottom: 0; }
.provisional { display: inline-block; font-family: var(--font-display); font-size: 0.95rem; background: #fff4d6; color: #6b4b00; padding: 0.1rem 0.5rem; border-radius: 2px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding-block: 4rem 2rem; font-size: var(--step--1); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #ff8a96; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-credit { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-credit a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-credit__heart { color: #ff4b5c; }

/* ---------- Pages d'erreur ---------- */
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 4rem + 10vw, 12rem); line-height: 0.85; color: var(--navy); }
.error-code span { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .hero__ribbon { display: none; }
}

/* ---------- Pointage (personnel d'accueil, mobile d'abord) ---------- */
.checkin-body { background: var(--mist-200); min-height: 100vh; }
.checkin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: 1.15rem; position: sticky; top: 0; z-index: 10; }
.checkin-header a { color: var(--white); }
.checkin-user { font-size: 0.95rem; opacity: 0.8; }
.checkin-main { max-width: 560px; margin: 0 auto; padding: 1rem; }
.checkin-card { background: var(--white); border-top: 6px solid var(--royal); padding: 1.25rem; margin-bottom: 1.25rem; }
.checkin-card h1 { font-size: var(--step-3); margin: 0.1rem 0 1rem; }
.checkin-ref { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--red); letter-spacing: 0.06em; margin: 0; }
.checkin-card dl { margin: 0 0 1.25rem; }
.checkin-card dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--mist); }
.checkin-card dt { font-family: var(--font-display); color: var(--ink-soft); }
.checkin-card dd { margin: 0; font-weight: 600; }
.checkin-card .status-confirmed { color: var(--success); }
.checkin-card .status-cancelled, .checkin-card .status-pending { color: var(--red-700); }
.checkin-go { min-height: 64px; font-size: 1.5rem; }
.checkin-result { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.checkin-result span { font-size: 2rem; line-height: 1; }
.checkin-result--ok { background: var(--success); color: var(--white); }
.checkin-result--warn { background: #fff1c2; color: #5c4200; border-left: 6px solid #d99a00; }
.checkin-result--error { background: var(--red); color: var(--white); }
.checkin-search { background: var(--white); padding: 1.25rem; }
.checkin-search h2 { font-size: var(--step-1); }
.checkin-video { width: 100%; margin-top: 1rem; background: #000; aspect-ratio: 1; object-fit: cover; }

/* ---------- Pages d'administration hors EasyAdmin (photos) ---------- */
.adm { background: var(--mist-200); min-height: 100vh; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.6rem var(--gutter); background: var(--navy); color: var(--white); font-family: var(--font-display); }
.adm-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.adm-brand img { height: 30px; width: auto; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.adm-nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 1.05rem; padding: 0.2rem 0; }
.adm-nav a:hover, .adm-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); }
.adm-user { margin-left: auto; font-size: 0.95rem; opacity: 0.8; }
.adm-main { width: min(100% - 2 * var(--gutter), 1320px); margin: 0 auto; padding-block: 1.75rem 4rem; }
.adm-title { font-size: var(--step-2); margin: 0.25rem 0 0.25rem; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.adm-head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.adm-years { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.adm-years a { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 0.2rem 0.65rem; border-radius: var(--radius); text-decoration: none; color: var(--royal); border: 1px solid var(--line); background: var(--white); }
.adm-years a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.adm-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-panel { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; min-width: 0; }
.adm-panel h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.adm-upload { position: sticky; top: 1rem; border-top: 4px solid var(--red); }
@media (max-width: 900px) { .adm-upload { position: static; } }
.adm-library { border-top: 4px solid var(--royal); }

.dropzone { position: relative; display: grid; gap: 0.35rem; justify-items: center; text-align: center; padding: 1.75rem 1rem; border: 2px dashed #a9b6d3; background: var(--mist-200); cursor: pointer; margin-bottom: 1rem; transition: border-color 0.15s, background-color 0.15s; }
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--royal); background: #edf1fb; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.dropzone__hint { font-size: var(--step--1); color: var(--ink-soft); }
.dropzone__count { font-family: var(--font-display); font-weight: 600; color: var(--red); }
.upload-preview { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
.upload-preview li { aspect-ratio: 1; overflow: hidden; background: var(--mist); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem; margin-bottom: 1rem; background: var(--mist-200); border: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.bulkbar__all, .bulkbar__rights { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-size: 1.02rem; color: var(--navy); }
.bulkbar__rights { flex-basis: 100%; font-size: 0.95rem; color: var(--ink-soft); }
.bulkbar input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--royal); }
.bulkbar__buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.btn--sm { min-height: 38px; padding: 0.35rem 0.8rem; font-size: 1rem; }
.btn--danger { background: var(--white); color: var(--red-700); border-color: var(--red); }
.btn--danger:hover { background: var(--red); color: var(--white); }

.photo-admin-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0.75rem; }
.photo-card { background: var(--white); border: 1px solid var(--line); }
.photo-card__select { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--mist); }
.photo-card__select img { width: 100%; height: 100%; object-fit: cover; }
.photo-card__select input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; z-index: 1; accent-color: var(--royal); }
.photo-card__select:has(input:checked) { outline: 3px solid var(--royal); outline-offset: -3px; }
.photo-card__select:has(input:checked) img { opacity: 0.82; }
.photo-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.45rem; }
.photo-card__edit { margin-left: auto; font-family: var(--font-display); font-size: 0.95rem; }
.chip { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; padding: 0.05rem 0.45rem; border-radius: 2px; line-height: 1.5; }
.chip--ok { background: var(--success-bg); color: #0e4426; }
.chip--draft { background: var(--mist); color: var(--ink-soft); }
.chip--warn { background: #fff1c2; color: #5c4200; }
.cover-current { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cover-current img { width: 160px; height: 100px; object-fit: cover; }
.cover-current p { margin: 0; }

.adm-editions { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.adm-editions a { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.adm-editions a:hover { border-color: var(--royal); }
.adm-editions__year { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.adm-editions__year .zero { color: var(--red); }
.adm-footer { text-align: center; padding: 0 var(--gutter) 2rem; font-size: 0.85rem; color: var(--ink-soft); }
.adm-footer span { color: var(--red); }
.adm-footer a { color: var(--royal); }
