/* Les Dérideurs — global stylesheet. Vanilla CSS, custom properties, no build step. */

/* Skribblugh — the company's hand-drawn face, used ONLY for section headings
   (in UPPERCASE, which reads best in this face). Everything else uses the plain
   body font — the client asked for just two typefaces and found the script face
   hard to read in running text. */
@font-face {
  font-family: 'Skribblugh';
  src: url('../fonts/skribbligh.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8ee;
  --bg-alt: #ffffff;
  --ink: #26190f;
  --ink-soft: #6d5d4f;
  --red: #d8432c;
  --red-dark: #b23320;
  --gold: #e9a820;
  --teal: #175c55;
  --font-title: 'Skribblugh', Georgia, serif;              /* hand-drawn — section headings only */
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;  /* everything else */
  --pad: clamp(3.5rem, 9vw, 7rem);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 25, 15, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
/* Show/article names use the plain body font (client: only two typefaces). */
h3 { font-family: var(--font-body); font-weight: 800; }

/* Section headings (and the hero title) in the hand-drawn face, UPPERCASE —
   it reads far better in caps than in running mixed-case. */
h1, h2 { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; }

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: .01em;
}

.section { padding: var(--pad) var(--pad-x); max-width: 1200px; margin: 0 auto; }

/* Anchored sections clear the fixed nav when reached via a menu link. */
:where(section[id]) { scroll-margin-top: 72px; }

/* Keyboard focus — visible ring everywhere (a11y). Mouse clicks stay clean. */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Skip link — first tab stop, hidden until focused. */
.skip_link {
  position: absolute;
  left: .5rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip_link:focus { top: .5rem; }

.section_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section_head h2::after {
  content: '';
  display: block;
  width: 68px;
  height: 5px;
  margin-top: .35em;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site_nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem var(--pad-x);
  transition: background .3s ease, box-shadow .3s ease;
}
.site_nav.is-solid { background: rgba(255, 248, 238, .95); box-shadow: 0 2px 18px rgba(38,25,15,.08); backdrop-filter: blur(8px); }

.nav_brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  transition: color .3s ease;
}
.site_nav.is-solid .nav_brand { color: var(--ink); }
/* Small logo mark beside the wordmark in the nav — light over the dark hero,
   swapped for the dark version once the bar turns solid (cream). */
.nav_logo { width: 34px; height: auto; }
.site_nav.is-solid .nav_logo { content: url('/uploads/logo-mark-dark.png'); }

.nav_links { margin-left: auto; display: flex; gap: 1.35rem; flex-wrap: wrap; }
.nav_links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .3s ease;
}
.site_nav.is-solid .nav_links a { color: var(--ink); }
.nav_links a:hover { color: var(--gold); }
.nav_links a.is-current { color: var(--gold); }
.site_nav.is-solid .nav_links a.is-current { color: var(--red); }

.nav_toggle { display: none; }

@media (max-width: 840px) {
  .nav_toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .4rem;
  }
  .nav_toggle span { width: 24px; height: 3px; border-radius: 2px; background: currentColor; color: #fff; }
  .site_nav.is-solid .nav_toggle span { color: var(--ink); }
  .nav_links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 248, 238, .98);
    box-shadow: var(--shadow);
  }
  .nav_links.is-open { display: flex; }
  .nav_links a { color: var(--ink) !important; padding: .9rem var(--pad-x); border-top: 1px solid rgba(38,25,15,.07); }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* Fullscreen background photo with a warm overlay, centred content. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  /* Content sits in the lower third (client: « deux tiers, pas tout en bas »),
     not dead-centre — the face in the photo keeps the top. */
  justify-items: center;
  align-items: end;
  text-align: center;
  color: #fff;
  background-color: #23130a; /* dark fallback → white text stays readable */
  background-image:
    linear-gradient(180deg, rgba(24, 12, 4, .55), rgba(24, 12, 4, .35) 45%, rgba(24, 12, 4, .65)),
    var(--hero-bg, none);
  background-position: var(--hero-pos, center 30%);
  background-size: cover;
  background-repeat: no-repeat;
}
.hero_inner {
  padding: 6rem var(--pad-x) clamp(5rem, 15vh, 11rem);
  max-width: 900px;
  /* two-layer shadow — a tight dark edge for weight + a wider halo — so the
     white text keeps good contrast over the lighter parts of the photo */
  text-shadow: 0 2px 3px rgba(0, 0, 0, .85), 0 3px 22px rgba(0, 0, 0, .7);
}

.hero_kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 400;
  margin: 0 0 .1em; /* tagline hugs the title — they read as one block */
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .8), 0 4px 30px rgba(0, 0, 0, .6);
  overflow-wrap: anywhere;
}
.hero_tagline {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600;
  /* This gap is what splits the hero into two blocks (client request): the three
     lines above — kicker, title, tagline — read as one group, clearly detached
     from the subtitle + buttons below. Since .hero_inner is bottom-anchored,
     widening it lifts the upper group rather than pushing the buttons down. */
  margin: 0 0 clamp(3rem, 9vh, 6.5rem);
}
.hero_subtitle { font-size: clamp(.95rem, 2vw, 1.05rem); opacity: .9; margin: 0 0 2rem; }

.hero_actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero_scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ── Buttons & chips ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn_primary { background: var(--red); color: #fff; }
.btn_primary:hover { background: var(--red-dark); }
.btn_ghost { border-color: #fff; color: #fff; }
.btn_ghost:hover { background: rgba(255, 255, 255, .15); }
.btn_ghost_dark { border-color: var(--teal); color: var(--teal); }
.btn_ghost_dark:hover { background: rgba(23, 92, 85, .1); }
.btn_small { padding: .45rem 1rem; font-size: .85rem; background: var(--teal); color: #fff; }
.btn_outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn_gold { background: var(--gold); color: var(--ink); }
.btn_gold:hover { background: #d69712; }

.chip {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(23, 92, 85, .1);
  color: var(--teal);
  font-size: .82rem;
  font-weight: 600;
}
.chip_btn { border: 0; cursor: pointer; transition: background .2s, color .2s; }
.chip_btn:hover { background: rgba(23, 92, 85, .22); }
.chip_btn.is-active { background: var(--teal); color: #fff; }

/* ── La compagnie ─────────────────────────────────────────────────────────── */
.company_grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.company_text p { margin: 0 0 1em; }
.company_photo { margin: 0; }
.company_photo img { border-radius: var(--radius); box-shadow: var(--shadow); rotate: 2deg; }
@media (max-width: 840px) { .company_grid { grid-template-columns: 1fr; } }

/* ── Carousels (generic) ──────────────────────────────────────────────────── */
/* Index-based: the track is translated one item per swipe/click (no free
   momentum scroll), wrapping to the first at the end. JS drives it. */
.carousel_viewport { overflow: hidden; padding-bottom: 1rem; }
.carousel {
  display: flex;
  gap: 1.4rem;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  touch-action: pan-y; /* allow vertical page scroll; we handle horizontal swipe */
}
.carousel > * { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .carousel { transition: none; } }

.carousel_nav { display: flex; gap: .5rem; }
.carousel_nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.carousel_nav button:hover { background: var(--ink); color: var(--bg); }
/* Mobile: no arrows — swipe only (client request). */
@media (max-width: 760px) { .carousel_nav { display: none; } }

/* ── Spectacles ───────────────────────────────────────────────────────────── */
.section_shows { max-width: none; }
.section_shows .section_head { max-width: 1200px; margin-inline: auto; }
.carousel_wrap { position: relative; max-width: 1200px; margin-inline: auto; }

.show_card {
  width: min(420px, 86vw);
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.show_cover { aspect-ratio: 16 / 10; overflow: hidden; }
.show_cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.show_card:hover .show_cover img { transform: scale(1.045); }

.show_body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.show_body h3 { font-size: 1.6rem; margin: 0; color: var(--red); }
.show_meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.show_desc { font-size: .95rem; color: var(--ink-soft); }
.show_desc p { margin: 0 0 .7em; }
.show_desc p:first-child { font-weight: 600; color: var(--ink); font-size: .88rem; }
.show_files { display: flex; gap: .6rem; flex-wrap: wrap; margin: auto 0 0; padding-top: .4rem; }

/* ── Radial "Informations" menu ───────────────────────────────────────────── */
.doc_dial { position: relative; margin: auto 0 0; padding-top: .5rem; align-self: flex-start; }


.doc_dial_btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.doc_dial_btn:hover { background: #12463f; }
.doc_dial_icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: .9rem;
  line-height: 1;
}
.doc_dial.is-open .doc_dial_btn { background: var(--red); }

/* items fan out in a quarter arc up-and-right from the button. When open the
   list is portalled to <body> (position:fixed set by JS) so it escapes the
   carousel's transform/clip; when closed it lives inside .doc_dial (absolute). */
.doc_dial_items {
  position: absolute;
  left: 28px;
  bottom: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 5;
  /* Stacked upwards from the button. This replaced a fixed-radius arc whose
     y was clamped at the radius: from the 4th document on, every extra item
     landed on the same coordinates and the pills sat on top of each other.
     A column simply grows, so the client can add as many documents as she
     likes — which is exactly what she asked for. */
  display: flex;
  flex-direction: column-reverse; /* first document nearest the button */
  align-items: flex-start;
  gap: .5rem;
  width: max-content;
  max-width: min(78vw, 320px);
  pointer-events: none; /* gaps between pills must not swallow carousel swipes */
}
/* Invisible hover bridge covering the arc, so the pointer can cross from the
   button to a fanned item without the menu closing. POINTER DEVICES ONLY: on
   touch the dial opens by tap (no hover), and this 340×240 zone — portalled to
   <body>, fixed over the carousel — would swallow swipes and trap the user on
   the current card. Confined to (hover: hover) so it never exists on phones. */
@media (hover: hover) {
  .doc_dial_items.is-open::before {
    content: '';
    position: absolute;    /* absolute → not a flex item, no effect on the stack */
    inset: -8px -14px -48px -34px; /* wraps the pills + the gap down to the button */
    pointer-events: auto;  /* the list itself is none; the bridge must still catch hover */
  }
}
.doc_dial_items li {
  /* Items rise in sequence (--i staggers the delay), which keeps the playful
     fan-out feel of the old arc without its fixed-radius geometry. */
  transform: translateY(14px) scale(.85);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.34, 1.4, .5, 1), opacity .24s ease;
}
.doc_dial_items.is-open li {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  transition-delay: calc(var(--i) * 45ms);
}
.doc_dial_link {
  display: block;
  white-space: nowrap;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink);
  border: 2px solid var(--teal);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background .2s ease, color .2s ease;
}
.doc_dial_link:hover { background: var(--teal); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .doc_dial_items li { transition: opacity .2s ease; }
}

/* ── Teasers ──────────────────────────────────────────────────────────────── */
.section_videos { max-width: none; }
.section_videos .section_head { max-width: 1200px; margin-inline: auto; }
.videos_track { padding-inline: var(--pad-x); }

.video_facade {
  position: relative;
  margin: 0;
  width: min(460px, 86vw);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video_facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; }
.video_facade iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.video_play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.video_play span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.6rem;
  padding-left: 5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  transition: transform .2s ease, background .2s ease;
}
.video_play:hover span { transform: scale(1.1); background: var(--red-dark); }

.video_facade figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.video_facade.is-playing figcaption, .video_facade.is-playing .video_play { display: none; }

/* Teaser modal — large responsive 16:9 player. */
.video_modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(15, 8, 3, .92);
  padding: 1rem;
}
.video_modal[hidden] { display: none; }
.video_modal_frame {
  width: min(94vw, 1100px);
  aspect-ratio: 16 / 9;
  max-height: 84vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.video_modal_frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video_modal_close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: background .2s ease;
}
.video_modal_close:hover { background: var(--red); }

/* ── Photos ───────────────────────────────────────────────────────────────── */
.section_photos { max-width: none; }
.section_photos .section_head, .section_photos .photo_filters { max-width: 1200px; margin-inline: auto; }
.photo_filters { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-inline: var(--pad-x); }
.section_photos .section_head { padding-inline: var(--pad-x); }
.section_photos .carousel_wrap { max-width: 1280px; }

/* Photos carousel — a filmstrip of fixed-height slides. */
.photo_track { gap: 1rem; padding-inline: var(--pad-x); }
.photo_slide {
  display: block;
  height: clamp(240px, 46vh, 440px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo_slide img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.photo_slide:hover img { transform: scale(1.04); filter: brightness(1.06); }
.photo_slide.is-hidden { display: none; }

/* ── Transmission ─────────────────────────────────────────────────────────── */
.section_transmission { background: var(--bg-alt); max-width: none; }
.section_transmission > * { max-width: 1200px; margin-inline: auto; }

.article_block { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.article_block h3 { color: var(--teal); font-size: 1.9rem; }
.article_text ul { padding-left: 1.2rem; color: var(--ink-soft); }
.article_photo { margin: 0; }
.article_photo img { border-radius: var(--radius); box-shadow: var(--shadow); rotate: -2deg; }
@media (max-width: 840px) { .article_block { grid-template-columns: 1fr; } }

/* ── Presse ───────────────────────────────────────────────────────────────── */
.section_press {
  background: var(--ink);
  color: var(--bg);
  max-width: none;
  text-align: center;
}
.section_press .section_head { justify-content: center; }
.section_press h2::after { margin-inline: auto; }

.press_carousel { position: relative; max-width: 860px; margin: 0 auto; min-height: 11em; }
.press_quote {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: grid;
  place-items: center;
  padding: 0 1rem;
}
.press_quote.is-active { opacity: 1; }
.press_quote p {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}
.press_quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--gold); }

.press_dots { display: flex; gap: .6rem; justify-content: center; margin-top: 1.8rem; }
.press_dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 248, 238, .35);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.press_dots button.is-active { background: var(--gold); transform: scale(1.25); }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact_grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 840px) { .contact_grid { grid-template-columns: 1fr; } }

.contact_info h3 { color: var(--red); font-size: 1.5rem; }
.contact_info address { font-style: normal; color: var(--ink-soft); margin-bottom: 1rem; }
.contact_links a { color: var(--teal); font-weight: 700; text-decoration: none; }
.contact_links a:hover { text-decoration: underline; }

.contact_form { display: flex; flex-direction: column; gap: 1rem; }
.contact_form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.contact_form input, .contact_form textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 2px solid rgba(38, 25, 15, .15);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color .2s;
}
.contact_form input:focus, .contact_form textarea:focus { outline: none; border-color: var(--teal); }
.contact_form button { align-self: flex-start; }

/* honeypot — positioned off-screen, NOT display:none (bots detect that) */
.cf_extra { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.form_status { min-height: 1.4em; margin: 0; font-weight: 600; }
.form_status.ok { color: var(--teal); }
.form_status.err { color: var(--red); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site_footer {
  padding: 3rem var(--pad-x) 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
  border-top: 1px solid rgba(38, 25, 15, .08);
}
.footer_logo { width: min(320px, 70vw); height: auto; margin: 0 auto 1rem; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(15, 8, 3, .92);
}
.lightbox[hidden] { display: none; }
.lightbox_fig { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.lightbox_count { color: var(--gold); font-variant-numeric: tabular-nums; font-size: .9rem; }
.lightbox_dl {
  color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700;
  padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .16);
  transition: background .2s ease;
}
.lightbox_dl:hover { background: var(--red); }
.lightbox_close, .lightbox_prev, .lightbox_next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox_close:hover, .lightbox_prev:hover, .lightbox_next:hover { background: var(--red); }
.lightbox_close { top: 1rem; right: 1rem; }
.lightbox_prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox_next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox_prev { left: .3rem; }
  .lightbox_next { right: .3rem; }
  .lightbox img { max-height: 74vh; }
}

/* Back-to-top — appears after scrolling, bottom-right. */
.to_top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to_top.is-shown { opacity: 1; transform: none; }
.to_top:hover { background: var(--red-dark); }
.to_top[hidden] { display: none; }

/* ── « Soutenir la compagnie » (dons.php) ─────────────────────────────────────
   Standalone page reached by QR code, so it stands on its own: a centred card
   under the solid nav, no carousels, no scripts. */
.dons_page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem var(--pad-x) 3rem;
}
.dons_card {
  max-width: 620px;
  width: 100%;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
}
.dons_kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .75rem;
}
.dons_card h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 .6em;
}
.dons_lead { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.dons_text { color: var(--ink-soft); margin: 0 0 2rem; }
.dons_action { margin: 0 0 .9rem; }
.dons_action .btn { font-size: 1.05rem; padding: .95rem 2.2rem; }
.dons_note { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1.75rem; }
.dons_back a { color: var(--teal); font-weight: 700; text-decoration: none; }
.dons_back a:hover { text-decoration: underline; }

/* Donation form (dons.php) — amount chips + outcome banners. */
.don_form { margin: 0 0 1.5rem; }
.don_amounts {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.don_amounts legend {
  padding: 0;
  margin: 0 0 .7rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}
.don_chip input { position: absolute; opacity: 0; pointer-events: none; }
.don_chip span {
  display: block;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.don_chip input:checked + span { background: var(--teal); color: #fff; }
.don_chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.don_free_amount { display: block; margin: 0 0 1.2rem; text-align: left; }
/* an explicit display: block would otherwise beat the [hidden] UA rule */
.don_free_amount[hidden] { display: none; }
.don_free_amount span { display: block; font-weight: 700; margin-bottom: .3rem; }
.don_free_amount input {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 2px solid rgba(38, 25, 15, .18);
  font: inherit;
}
.don_free_amount input:focus { border-color: var(--teal); outline: none; }

.dons_state {
  border-radius: 12px;
  padding: .85rem 1.1rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
}
.dons_state.ok   { background: #e7f4ec; color: #17603a; }
.dons_state.err  { background: #fdecea; color: #a52a1a; }
.dons_state.warn { background: #fdf4e3; color: #8a6410; }
.dons_note code { font-size: .85rem; background: #f3ece1; padding: .15rem .4rem; border-radius: 5px; }
