/* ==========================================================================
   Paradiski — Le Bureau central des jours d'avril
   Mobile d'abord. Bureau (≥ 1024 px) : mise en page calée sur la maquette 1920,
   via l'unité --u (1px à 1920 px de large, proportionnelle en dessous).
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Citrus Gothic Texture"; src: url("../fonts/citrus-gothic-texture.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Citrus Gothic";         src: url("../fonts/citrus-gothic-solid.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tox Typewriter";        src: url("../fonts/tox-typewriter.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Helvetica Neue BCJA";   src: url("../fonts/helvetica-neue-roman.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Amarante";              src: url("../fonts/amarante.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Brush Script BCJA";     src: url("../fonts/brush-script.woff2") format("woff2"); font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --navy: #17425c;
  --ink: #23303d;
  --red: #bc3933;
  --red-dark: #9e2b26;
  --grey: #ada898;
  --paper: #f2ebe0;
  --cream: #f4efe5;
  --sky: #91bbcd;
  --brush: #0d4561;

  --f-title: "Citrus Gothic Texture", "Citrus Gothic", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-ui: "Citrus Gothic", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-type: "Tox Typewriter", "Courier New", Courier, monospace;
  --f-sans: "Helvetica Neue BCJA", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-deco: "Amarante", Georgia, serif;
  --f-brush: "Brush Script BCJA", "Brush Script MT", cursive;

  /* Échelle mobile : 1px à 375 px de large, plafonnée pour les tablettes */
  --m: clamp(1px, calc(100vw / 375), 1.7px);

  --paper-bg: url("../img/papier.webp");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.is-modal-open { overflow: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper) var(--paper-bg) repeat 0 0 / 1024px;
  color: var(--navy);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.4;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px;
  background: var(--navy); color: var(--cream);
  font-family: var(--f-ui); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.br-desktop { display: none; }

/* Les décors qui débordent (tampons, montagne, croquis) ne doivent jamais
   créer de défilement horizontal */
.site-header, .jours, .demande, .raisons, .bureau, .infos, .page {
  overflow-x: hidden;
  overflow-x: clip;
}

.title {
  font-family: var(--f-title);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  line-height: .96;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(169 * var(--m));
  height: calc(36 * var(--m));
  padding: 0 .5em;
  border: 2px solid currentColor;
  font-family: var(--f-ui);
  font-size: calc(14.5 * var(--m));
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--outline-red  { color: var(--red); }
.btn--outline-red:hover  { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn--outline-navy { color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn--red { background: var(--red); border-color: var(--red); color: #f6efe4; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: relative; z-index: 5; }
.site-header__inner { display: flex; flex-direction: column; align-items: center; }

.site-header__logo {
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding: calc(14 * var(--m)) 0 calc(13 * var(--m));
  background: linear-gradient(rgba(240, 200, 140, .2), rgba(240, 200, 140, .2)), var(--paper-bg) 0 0 / 1024px;
}
.site-header__logo img { width: calc(152 * var(--m)); }

.site-nav { align-self: stretch; background: rgba(255, 255, 255, .38); }
.site-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(42 * var(--m));
  padding: 0 calc(6 * var(--m));
}
.site-nav a {
  display: block;
  padding: .5em .2em;
  font-family: var(--f-ui);
  font-size: calc(12 * var(--m));
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a:hover { color: var(--red); }

.site-header__action {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding: calc(16 * var(--m)) 0 calc(26 * var(--m));
}
.site-header__stamp {
  position: absolute;
  right: calc(-30 * var(--m));
  top: calc(10 * var(--m));
  width: calc(80 * var(--m));
  height: calc(68 * var(--m));
  background: url("../img/tampon-lignes.webp") 0 0 / calc(64 * var(--m)) auto no-repeat,
              url("../img/tampon-bcja.webp") calc(8 * var(--m)) calc(12 * var(--m)) / calc(66 * var(--m)) auto no-repeat;
  pointer-events: none;
}

/* ==========================================================================
   Visuel d'en-tête
   ========================================================================== */
.hero { position: relative; background: #24160d; }
.hero__img { width: 100%; }
.hero__cta {
  position: absolute;
  left: 32.4%; top: 81.3%;
  width: 35.1%; height: 6.5%;
  display: flex; align-items: center; justify-content: center;
  border: .42vw solid var(--sky);
  color: var(--sky);
  font-family: var(--f-ui);
  font-size: 4.2vw;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.hero__cta:hover { background: rgba(145, 187, 205, .16); color: #d4e8f1; }

/* ==========================================================================
   Les jours d'avril n'attendent que vous
   ========================================================================== */
.jours__text { padding: calc(30 * var(--m)) calc(45 * var(--m)) 0; }
.jours .title { font-size: calc(28.2 * var(--m)); line-height: .96; }
.jours__text p {
  font-family: var(--f-type);
  font-size: calc(13.9 * var(--m));
  line-height: 1.18;
}
.jours__text p:first-of-type { margin-top: calc(9 * var(--m)); }
.jours__text p + p { margin-top: 1.1em; }

.jours__scene { position: relative; margin-top: calc(10 * var(--m)); }
.jours__montagne { width: 100%; }
.jours__carte {
  position: absolute;
  left: 27.7%;
  top: 0;
  width: 54%;
}

/* ==========================================================================
   Formulaire
   ========================================================================== */
.demande { padding: calc(36 * var(--m)) calc(14 * var(--m)) 0; }
.demande__board { position: relative; }

.demande__tampon,
.demande__lignes {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.demande__tampon {
  right: calc(-30 * var(--m));
  top: calc(16 * var(--m));
  width: calc(122 * var(--m));
  aspect-ratio: 1;
  background-image: url("../img/tampon-bcja.webp");
  transform: rotate(4deg);
}
.demande__lignes {
  right: calc(-24 * var(--m));
  top: calc(26 * var(--m));
  width: calc(128 * var(--m));
  aspect-ratio: 256 / 126;
  background-image: url("../img/tampon-lignes.webp");
}

.demande__form {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--navy);
  padding: calc(26 * var(--m)) calc(30 * var(--m)) calc(32 * var(--m));
}
/* Sur mobile, les mentions passent sous le bouton */
.demande__intro { display: contents; }
.demande__ref { display: none; }
.demande__intro .title { order: 1; position: relative; z-index: 3; font-size: calc(25.7 * var(--m)); line-height: .98; }
.demande__chapo {
  order: 2;
  max-width: calc(200 * var(--m));
  margin-top: calc(28 * var(--m));
  font-family: var(--f-type);
  font-size: calc(13.4 * var(--m));
  line-height: 1.2;
}
.demande__champs { order: 3; margin-top: calc(24 * var(--m)); }
.demande__motif  { order: 4; margin-top: calc(26 * var(--m)); }
.demande__legal {
  order: 5;
  margin-top: calc(26 * var(--m));
  font-size: 12.5px;
  line-height: 1.35;
  color: #8a8577;
}
.demande__legal a { color: inherit; text-underline-offset: 2px; }
.demande__legal a:hover { color: var(--navy); }

.field + .field { margin-top: calc(20 * var(--m)); }
.field label,
.radios legend {
  display: block;
  padding: 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy);
}
.req { color: var(--red); }

.field input {
  display: block;
  width: 100%;
  height: calc(40 * var(--m));
  margin-top: calc(6 * var(--m));
  padding: 0 calc(13 * var(--m));
  border: 1.5px solid var(--grey);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-family: var(--f-sans);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: var(--grey); opacity: 1; }
.field input:focus { outline: none; border-color: var(--navy); background: rgba(255, 255, 255, .35); }
.field input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }

.radios { margin: 0; padding: 0; border: 0; min-width: 0; }
.radios legend { margin-bottom: calc(20 * var(--m)); }
.radio {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--m));
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy);
}
.radio + .radio { margin-top: calc(12 * var(--m)); }
.radio input {
  flex: none;
  width: calc(22 * var(--m));
  height: calc(22 * var(--m));
  margin: 0;
  border: 2px solid var(--grey);
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color .2s;
}
.radio input::before {
  content: "";
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform .15s;
}
.radio input:checked { border-color: var(--red); }
.radio input:checked::before { transform: scale(1); }
.radio:hover input { border-color: var(--navy); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bouton tampon « Soumettre ma demande au bureau » */
.btn-tampon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--m));
  width: 100%;
  height: calc(100 * var(--m));
  margin-top: calc(30 * var(--m));
  border: 3px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--f-title);
  font-size: calc(22.5 * var(--m));
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(-2deg);
  transition: background-color .2s, transform .2s;
}
.btn-tampon__l2 { display: flex; align-items: center; gap: calc(10 * var(--m)); }
.btn-tampon__l2 img { width: calc(52 * var(--m)); }
.btn-tampon:hover { background: rgba(188, 57, 51, .07); transform: rotate(-2deg) scale(1.02); }
.btn-tampon:active { transform: rotate(-2deg) scale(.98); }

/* ==========================================================================
   Pourquoi demander vos jours d'avril ?
   ========================================================================== */
.raisons { position: relative; z-index: 1; padding-top: calc(40 * var(--m)); }
.raisons__title { text-align: center; font-size: calc(25.7 * var(--m)); line-height: .98; }
.raisons__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(22 * var(--m));
  margin-top: calc(18 * var(--m));
}
.raison { position: relative; width: 85%; max-width: 536px; }
.raison img { width: 100%; }
.raison__text {
  position: absolute;
  left: 0; right: 0;
  top: 64%;
  text-align: center;
}
.raison h3 {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: calc(22.6 * var(--m));
  line-height: 1;
  text-transform: uppercase;
}
.raison p {
  margin-top: calc(5 * var(--m));
  font-family: var(--f-type);
  font-size: calc(11.8 * var(--m));
  line-height: 1.2;
}

/* ==========================================================================
   Vidéo + registre
   ========================================================================== */
.bureau { position: relative; z-index: 0; padding-top: calc(28 * var(--m)); }
.bureau__registre img { width: 97.5vw; max-width: none; margin-left: 4.8vw; }

.bureau__tv { position: relative; height: 96vw; }
.bureau__scene {
  position: absolute;
  left: -36.4vw; top: -19.2vw;
  width: 144vw; max-width: none;
  pointer-events: none;
}
.bureau__legende {
  position: absolute;
  z-index: 2;
  left: 11vw; top: 4vw;
  font-family: var(--f-brush);
  font-size: 5.6vw;
  line-height: .8;
  color: var(--brush);
  transform: rotate(-7deg);
  transform-origin: left bottom;
  pointer-events: none;
}
.tv {
  position: absolute;
  left: -5.2vw; top: 7.49vw;
  width: 111.07vw;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Zoom léger au survol, ancré au niveau des pieds pour que l'ombre du décor reste en place */
.tv img { width: 100%; max-width: none; transition: transform .35s ease; transform-origin: 50% 94.5%; }
.tv:hover img, .tv:focus-visible img { transform: scale(1.04); }
.tv:focus-visible { outline: none; }
.tv:focus-visible img { filter: drop-shadow(0 0 4px var(--red)) drop-shadow(0 0 2px var(--red)); }

/* ==========================================================================
   Infos pratiques
   ========================================================================== */
.infos {
  padding: calc(30 * var(--m)) 0 calc(66 * var(--m));
  background: #4b88c9 url("../img/infos-fond-mobile-750.webp") center bottom / cover no-repeat;
}
@media (min-resolution: 1.5dppx) and (min-width: 500px), (min-width: 750px) {
  .infos { background-image: url("../img/infos-fond-mobile-1122.webp"); }
}
.infos__title { text-align: center; color: #f4efe5; font-size: calc(25 * var(--m)); line-height: 1; }

.infos__cadre {
  width: 92%;
  max-width: 640px;
  margin: calc(25 * var(--m)) auto 0;
  padding: calc(34 * var(--m)) calc(20 * var(--m)) calc(72 * var(--m));
  text-align: center;
  background:
    url("../img/cadre-mobile-haut.webp") center top / 100% auto no-repeat,
    url("../img/cadre-mobile-bas.webp") center bottom / 100% auto no-repeat,
    url("../img/cadre-mobile-milieu.webp") center / 100% auto repeat-y;
}
.infos__bureau {
  font-family: var(--f-deco);
  font-size: calc(29.5 * var(--m));
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}
.infos__le { display: block; margin-bottom: calc(10 * var(--m)); font-size: .8em; }
.infos__ouvre {
  margin-top: calc(14 * var(--m));
  font-family: var(--f-title);
  font-size: calc(24.6 * var(--m));
  line-height: 1;
  text-transform: uppercase;
}
.infos__dates {
  margin-top: calc(4 * var(--m));
  font-family: var(--f-ui);
  font-size: calc(13.8 * var(--m));
  line-height: 1.15;
  text-transform: uppercase;
}
.infos__dates .sep { display: none; }
.infos__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(13 * var(--m));
  margin-top: calc(24 * var(--m));
}
.infos .btn { width: calc(228 * var(--m)); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { padding: calc(38 * var(--m)) calc(16 * var(--m)) calc(32 * var(--m)); color: var(--navy); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer__logo { order: 1; }
.site-footer__logo img { width: calc(210 * var(--m)); }
.site-footer__links {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: calc(22 * var(--m));
  font-size: 12.5px;
  line-height: 1.6;
}
.site-footer__links li + li::before { content: "|"; margin: 0 calc(11 * var(--m)); }
@media (max-width: 479px) {
  .site-footer__links li:last-child { flex-basis: 100%; }
  .site-footer__links li:last-child::before { content: none; }
}
.site-footer__links a,
.site-footer__social a { text-decoration: none; transition: color .2s; }
.site-footer__links a:hover,
.site-footer__social a:hover { color: var(--red); }
.site-footer__social {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12 * var(--m));
  margin-top: calc(10 * var(--m));
  font-size: 12.5px;
}
.site-footer__social ul { display: flex; gap: calc(16 * var(--m)); }
.site-footer__social a { display: block; color: var(--ink); }
.site-footer__social svg { display: block; width: calc(28 * var(--m)); height: calc(28 * var(--m)); }

/* ==========================================================================
   Fenêtre vidéo
   ========================================================================== */
.video-modal {
  width: min(1640px, 94vw, calc((100vh - 150px) * 1.78 + 276px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  overflow: visible;
}
.video-modal::backdrop { background: rgba(197, 190, 173, .94); }
.video-modal__panel {
  position: relative;
  padding: 52px 14px 14px;
  background: var(--cream);
  border: 5px solid #eee3ce;
}
.video-modal__player { aspect-ratio: 16 / 9; background: #000; }
.video-modal__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__soon {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 1em;
  color: var(--cream);
  font-family: var(--f-type);
  text-align: center;
}
.video-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 38px; height: 38px;
  display: grid;
  place-content: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-family: var(--f-ui);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.video-modal__close:hover { background: var(--navy); color: var(--cream); }

/* ==========================================================================
   Tablette (768–1023) : même empilement que le mobile, contenu centré
   ========================================================================== */
@media (min-width: 640px) and (max-width: 1023px) {
  .jours__text, .demande__board { max-width: 640px; margin-left: auto; margin-right: auto; }
  .jours__text { padding-left: 0; padding-right: 0; }
  .demande__chapo { max-width: 60%; }
  .bureau__registre { max-width: 700px; margin: 0 auto; }
  .bureau__registre img { width: 100%; margin-left: 0; }
  .bureau__tv { height: 76vw; }
  .bureau__scene { left: -20vw; top: -15vw; width: 112vw; }
  .tv { left: 4.27vw; top: 5.76vw; width: 86.38vw; }
  .bureau__legende { left: 12vw; top: 3vw; font-size: 4.4vw; }
}

/* ==========================================================================
   Bureau (≥ 1024 px) — maquette 1920
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --u: min(1px, calc(100vw / 1920)); }

  .br-mobile { display: none; }
  .br-desktop { display: inline; }

  .board { position: relative; width: calc(1920 * var(--u)); margin: 0 auto; }

  .btn {
    width: calc(294 * var(--u));
    height: calc(70 * var(--u));
    min-height: 40px;
    border-width: max(2px, calc(3 * var(--u)));
    font-size: max(14px, calc(26 * var(--u)));
  }

  /* En-tête */
  .site-header { background: linear-gradient(rgba(240, 200, 140, .2), rgba(240, 200, 140, .2)), var(--paper-bg) 0 0 / 1024px; }
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    width: calc(1920 * var(--u));
    height: calc(123 * var(--u));
    min-height: 72px;
    margin: 0 auto;
    padding: 0 calc(92 * var(--u)) 0 calc(186 * var(--u));
  }
  .site-header__logo { align-self: center; padding: 0; background: none; }
  .site-header__logo img { width: calc(315 * var(--u)); min-width: 150px; }
  .site-nav { align-self: center; margin-left: calc(42 * var(--u)); background: none; }
  .site-nav ul { height: auto; gap: calc(95 * var(--u)); padding: 0; }
  .site-nav a { font-size: max(13px, calc(19 * var(--u))); color: var(--ink); padding: .6em 0; }
  .site-header__action { align-self: center; width: auto; padding: 0; }
  .site-header__action .btn { font-size: max(14px, calc(28 * var(--u))); }
  .site-header__stamp { display: none; }

  /* Visuel */
  .hero__cta {
    left: 46.35%; top: 78.9%;
    width: 7.81%; height: 3.37%;
    border-width: .2vw;
    font-size: max(10px, 1.04vw);
  }

  /* Les jours d'avril */
  .jours__board { min-height: max(calc(952 * var(--u)), 49.58vw); }
  .jours__text {
    position: relative;
    z-index: 2;
    padding: calc(119 * var(--u)) 0 0 calc(140 * var(--u));
    max-width: calc(900 * var(--u));
  }
  .jours .title { font-size: max(34px, calc(80 * var(--u))); line-height: .975; }
  .jours__text p { max-width: calc(760 * var(--u)); font-size: max(15px, calc(26 * var(--u))); line-height: 1.46; }
  .jours__text p:first-of-type { margin-top: calc(11 * var(--u)); }
  .jours__text p + p { margin-top: 0; }
  .jours__scene { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .jours__montagne {
    position: absolute;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    max-width: none;
  }
  .jours__carte { left: calc(956 * var(--u)); top: auto; bottom: calc(25 * var(--u)); width: calc(761 * var(--u)); }

  /* Formulaire */
  .demande { padding: calc(56 * var(--u)) 0 0; }
  .demande__tampon {
    left: calc(6 * var(--u)); right: auto;
    top: calc(-84 * var(--u));
    width: calc(240 * var(--u));
    transform: none;
  }
  .demande__lignes {
    left: 0; right: auto;
    top: calc(-25 * var(--u));
    width: calc(256 * var(--u));
  }
  .demande__form {
    display: grid;
    grid-template-columns: calc(580 * var(--u)) calc(110 * var(--u)) calc(398 * var(--u)) calc(154 * var(--u)) calc(396 * var(--u));
    align-items: start;
    width: calc(1738 * var(--u));
    min-height: calc(524 * var(--u));
    margin-left: calc(91 * var(--u));
    padding: calc(44 * var(--u)) calc(46 * var(--u)) calc(41 * var(--u)) calc(45 * var(--u));
    border-width: max(2px, calc(4 * var(--u)));
  }
  .demande__intro { display: flex; flex-direction: column; grid-column: 1; align-self: stretch; }
  .demande__ref {
    display: block;
    position: relative; z-index: 3;
    font-family: var(--f-ui);
    font-size: max(12px, calc(20 * var(--u)));
    line-height: 1;
    text-transform: uppercase;
  }
  .demande__intro .title { margin-top: calc(34 * var(--u)); font-size: max(30px, calc(72 * var(--u))); line-height: .93; }
  .demande__chapo { max-width: none; margin-top: calc(55 * var(--u)); font-size: max(15px, calc(26 * var(--u))); line-height: 1.46; }
  .demande__legal { margin-top: auto; padding-top: 1em; font-size: max(11px, calc(14.5 * var(--u))); }
  .demande__champs { grid-column: 3; margin-top: 0; }
  .demande__motif { grid-column: 5; margin-top: 0; }

  .field + .field { margin-top: calc(30 * var(--u)); }
  .field label, .radios legend { font-size: max(14px, calc(20.5 * var(--u))); }
  .field input {
    height: max(36px, calc(55 * var(--u)));
    margin-top: calc(4 * var(--u));
    padding: 0 calc(18 * var(--u));
    border-width: max(1.5px, calc(2 * var(--u)));
    font-size: max(14px, calc(20.5 * var(--u)));
  }
  .radios legend { margin-bottom: calc(26 * var(--u)); }
  .radio { gap: calc(16 * var(--u)); font-size: max(14px, calc(20.5 * var(--u))); }
  .radio + .radio { margin-top: calc(15 * var(--u)); }
  .radio input { width: max(18px, calc(28 * var(--u))); height: max(18px, calc(28 * var(--u))); border-width: max(1.5px, calc(2 * var(--u))); }

  .btn-tampon {
    width: calc(391 * var(--u));
    height: calc(126 * var(--u));
    min-height: 72px;
    margin-top: calc(48 * var(--u));
    gap: calc(6 * var(--u));
    border-width: max(2px, calc(4 * var(--u)));
    font-size: max(18px, calc(36 * var(--u)));
  }
  .btn-tampon__l2 { gap: calc(14 * var(--u)); }
  .btn-tampon__l2 img { width: calc(72 * var(--u)); min-width: 36px; }

  /* Pourquoi */
  .raisons { padding-top: calc(77 * var(--u)); }
  .raisons__title { font-size: max(30px, calc(72 * var(--u))); line-height: 1; }
  .raisons__list { flex-direction: row; justify-content: center; align-items: flex-start; gap: calc(16 * var(--u)); margin-top: calc(63 * var(--u)); }
  .raison { width: calc(536 * var(--u)); max-width: none; }
  .raison__text { top: calc(271 * var(--u)); }
  .raison h3 { font-size: max(20px, calc(44 * var(--u))); }
  .raison p { margin-top: calc(7 * var(--u)); font-size: max(13px, calc(26 * var(--u))); line-height: 1.15; }

  /* Vidéo + registre */
  .bureau { padding-top: 0; }
  .bureau__board { height: calc(755 * var(--u)); }
  .bureau__tv { position: static; height: auto; margin: 0; }
  .bureau__scene { left: 0; top: calc(-136 * var(--u)); width: calc(1110 * var(--u)); }
  .tv { left: calc(240.5 * var(--u)); top: calc(69.75 * var(--u)); width: calc(856 * var(--u)); }
  .bureau__legende {
    left: calc(142 * var(--u));
    top: calc(258 * var(--u));
    font-size: max(26px, calc(55 * var(--u)));
    line-height: .8;
  }
  .bureau__registre { position: absolute; left: calc(1128 * var(--u)); top: calc(177 * var(--u)); width: calc(700 * var(--u)); }
  .bureau__registre img { width: 100%; margin: 0; }

  /* Infos pratiques */
  .infos { padding: 0; background-image: url("../img/infos-fond-1920.webp"); }
  .infos__board { height: max(calc(739 * var(--u)), 38.49vw); }
  .infos__title { padding-top: calc(77 * var(--u)); font-size: max(30px, calc(72 * var(--u))); }
  .infos__cadre {
    position: absolute;
    left: calc(416 * var(--u));
    top: calc(168 * var(--u));
    width: calc(1088 * var(--u));
    max-width: none;
    min-height: calc(510 * var(--u));
    margin: 0;
    padding: calc(54 * var(--u)) calc(60 * var(--u)) calc(100 * var(--u));
    background:
      url("../img/cadre-haut.webp") center top / 100% auto no-repeat,
      url("../img/cadre-bas.webp") center bottom / 100% auto no-repeat,
      url("../img/cadre-milieu.webp") center / 100% auto repeat-y;
  }
  .infos__bureau { font-size: max(24px, calc(52 * var(--u))); }
  .infos__le { margin-bottom: calc(6 * var(--u)); font-size: .885em; }
  .infos__ouvre { margin-top: calc(38 * var(--u)); font-size: max(24px, calc(51 * var(--u))); }
  .infos__dates { margin-top: calc(4 * var(--u)); font-size: max(14px, calc(31 * var(--u))); line-height: 1; }
  .infos__dates .sep { display: inline; }
  .infos__actions { flex-direction: row; justify-content: center; gap: calc(84 * var(--u)); margin-top: calc(30 * var(--u)); }
  .infos .btn { width: calc(294 * var(--u)); }

  /* Fenêtre vidéo */
  .video-modal__panel { padding: 51px 138px 85px; padding-inline: clamp(60px, 7.2vw, 138px); }
  .video-modal__close { top: 30px; right: 30px; width: 42px; height: 42px; font-size: 22px; }
}

/* Pied de page en trois colonnes à partir de 1280 px */
@media (min-width: 1280px) {
  .site-footer { padding: 0; }
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: calc(1920 * var(--u));
    height: calc(219 * var(--u));
    min-height: 130px;
    margin: 0 auto;
    padding: 0 calc(140 * var(--u));
    text-align: left;
  }
  .site-footer__links { order: 0; justify-self: start; margin: 0; font-size: max(12px, calc(15 * var(--u))); }
  .site-footer__links li + li::before { margin: 0 calc(18 * var(--u)); }
  .site-footer__logo { order: 0; }
  .site-footer__logo img { width: calc(420 * var(--u)); min-width: 200px; }
  .site-footer__social { order: 0; justify-self: end; flex-direction: row; gap: calc(16 * var(--u)); margin: 0; font-size: max(12px, calc(15 * var(--u))); }
  .site-footer__social ul { gap: calc(14 * var(--u)); }
  .site-footer__social svg { width: max(24px, calc(31 * var(--u))); height: max(24px, calc(31 * var(--u))); }

}

/* Écrans plus larges que la maquette : on adoucit le bord gauche du croquis */
@media (min-width: 1921px) {
  .bureau__scene { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%); mask-image: linear-gradient(to right, transparent, #000 12%); }
}

/* ==========================================================================
   Compteur « Il reste N journées » (sur l'ardoise du visuel)
   ========================================================================== */
.hero { overflow: hidden; }
.hero__compteur {
  position: absolute;
  left: 97.37vw;
  top: 37.55vw;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--f-deco);
  font-size: 10.04vw;
  line-height: 1;
  letter-spacing: -.03em;
  color: #f2e7d9;
  -webkit-text-stroke: .012em #f2e7d9;
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero__compteur { left: 76.61vw; top: 22.95vw; font-size: 5.58vw; }
}

/* ==========================================================================
   Formulaire : erreurs, états, réponses
   ========================================================================== */
[hidden] { display: none !important; }

.field__erreur {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--red);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.radios[aria-invalid="true"] .radio input { border-color: var(--red); }
.radios .field__erreur { margin-top: 10px; }

.turnstile { margin-top: calc(14 * var(--m)); }
.turnstile:empty { margin: 0; }

.demande__statut {
  margin-top: calc(16 * var(--m));
  padding: 10px 12px;
  border: 2px solid var(--red);
  background: rgba(188, 57, 51, .06);
  color: var(--red);
  font-size: 14px;
  line-height: 1.35;
}
.demande__statut--info { border-color: var(--navy); background: rgba(23, 66, 92, .05); color: var(--navy); }

.demande__form.is-envoi .btn-tampon { opacity: .55; cursor: progress; }
.demande__sansjs { margin-top: calc(14 * var(--m)); font-size: 14px; line-height: 1.35; color: var(--red); }

.demande__form.is-envoye .demande__champs,
.demande__form.is-envoye .demande__motif,
.demande__form.is-ferme .demande__champs,
.demande__form.is-ferme .demande__motif { display: none; }

.demande__reponse {
  order: 3;
  margin-top: calc(28 * var(--m));
  outline: none;
}
.demande__reponse-tampon {
  display: inline-block;
  padding: .15em .55em .1em;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: var(--f-title);
  font-size: calc(26 * var(--m));
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.demande__reponse-titre {
  margin-top: calc(22 * var(--m));
  font-family: var(--f-title);
  font-size: calc(22 * var(--m));
  line-height: 1;
  text-transform: uppercase;
}
.demande__reponse-texte {
  margin-top: calc(12 * var(--m));
  font-family: var(--f-type);
  font-size: calc(14 * var(--m));
  line-height: 1.45;
}
.demande__reponse-note { margin-top: calc(12 * var(--m)); font-size: 14px; color: #6f6a5c; }

@media (min-width: 1024px) {
  .field__erreur { font-size: max(12px, calc(16 * var(--u))); margin-top: calc(6 * var(--u)); }
  .turnstile { margin-top: calc(20 * var(--u)); }
  .demande__statut { margin-top: calc(22 * var(--u)); font-size: max(13px, calc(17 * var(--u))); }
  .demande__reponse { grid-column: 3 / 6; align-self: center; margin-top: 0; padding-right: calc(40 * var(--u)); }
  .demande__reponse-tampon { font-size: max(24px, calc(48 * var(--u))); border-width: max(3px, calc(5 * var(--u))); }
  .demande__reponse-titre { margin-top: calc(36 * var(--u)); font-size: max(22px, calc(44 * var(--u))); }
  .demande__reponse-texte { margin-top: calc(18 * var(--u)); font-size: max(15px, calc(24 * var(--u))); }
  .demande__reponse-note { margin-top: calc(14 * var(--u)); font-size: max(13px, calc(17 * var(--u))); }
}

.video-modal__note { margin-top: 10px; font-size: 12px; line-height: 1.3; color: #6f6a5c; text-align: center; }

/* ==========================================================================
   Pages de contenu (règlement, confidentialité, résultat)
   ========================================================================== */
.page { position: relative; padding-bottom: calc(56 * var(--m)); }
.page__entete { position: relative; padding: calc(64 * var(--m)) calc(24 * var(--m)) 0; text-align: center; }
.page__retour {
  position: absolute;
  left: calc(16 * var(--m));
  top: calc(18 * var(--m));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
}
.page__retour img { width: 40px; filter: grayscale(1) brightness(.42); }
.page__retour:hover span { text-decoration: underline; text-underline-offset: 3px; }
.page__titre { font-size: calc(30 * var(--m)); line-height: .975; }
.page__tampon {
  position: absolute;
  right: calc(-14 * var(--m));
  top: calc(4 * var(--m));
  width: calc(84 * var(--m));
  height: calc(84 * var(--m));
  background: url("../img/tampon-lignes.webp") 0 0 / 100% auto no-repeat,
              url("../img/tampon-bcja.webp") 6% 40% / 92% auto no-repeat;
  pointer-events: none;
  display: none; /* le tampon de l'en-tête suffit sur mobile */
}
.page__corps { padding: calc(36 * var(--m)) calc(24 * var(--m)) 0; }
.page__provisoire {
  display: inline-block;
  margin-bottom: calc(28 * var(--m));
  padding: 6px 12px;
  border: 2px dashed var(--red);
  color: var(--red);
  font-family: var(--f-ui);
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.a-completer { padding: 0 .25em; background: #f6e2a6; color: var(--ink); font-style: italic; }

.prose { color: var(--navy); }
.prose h2 {
  margin-top: calc(36 * var(--m));
  font-family: var(--f-title);
  font-weight: 400;
  font-size: calc(24 * var(--m));
  line-height: 1;
  text-transform: uppercase;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: calc(22 * var(--m));
  font-family: var(--f-title);
  font-weight: 400;
  font-size: calc(18 * var(--m));
  line-height: 1;
  text-transform: uppercase;
  color: #678191;
}
.prose p, .prose li { font-size: 16px; line-height: 1.55; }
.prose h2 + p, .prose h2 + .colonnes, .prose h3 + p { margin-top: calc(14 * var(--m)); }
.prose p + p { margin-top: .8em; }
.prose ul { margin-top: .8em; padding-left: 1.2em; list-style: disc; }
.prose a:not(.btn) { color: var(--navy); text-underline-offset: 2px; }
.colonnes { display: grid; gap: .8em; }
.page__lignes {
  display: block;
  width: calc(140 * var(--m));
  height: calc(70 * var(--m));
  margin-top: calc(44 * var(--m));
  background: url("../img/tampon-lignes.webp") 0 0 / 100% auto no-repeat;
}
.resultat .btn { width: auto; padding: 0 1.4em; margin-top: 1.4em; }
.resultat--erreur > p:first-child { color: var(--red); }

@media (min-width: 1024px) {
  .page { padding-bottom: calc(120 * var(--u)); }
  .page__entete { padding: calc(88 * var(--u)) 0 0; }
  .page__retour { left: calc(140 * var(--u)); top: calc(108 * var(--u)); gap: calc(10 * var(--u)); font-size: max(15px, calc(20 * var(--u))); }
  .page__retour img { width: max(32px, calc(50 * var(--u))); }
  .page__titre { font-size: max(34px, calc(80 * var(--u))); }
  .page__tampon { display: block; right: calc(55 * var(--u)); top: calc(37 * var(--u)); width: calc(215 * var(--u)); height: calc(230 * var(--u)); }
  .page__corps { padding: calc(108 * var(--u)) 0 0 calc(279 * var(--u)); }
  .page__provisoire { margin-bottom: calc(40 * var(--u)); font-size: max(13px, calc(18 * var(--u))); }
  .prose { max-width: calc(1357 * var(--u)); }
  .prose h2 { margin-top: calc(72 * var(--u)); font-size: max(26px, calc(46 * var(--u))); }
  .prose h3 { margin-top: calc(44 * var(--u)); font-size: max(19px, calc(30 * var(--u))); }
  .prose p, .prose li { font-size: max(15px, calc(20 * var(--u))); line-height: 1.5; }
  .prose h2 + p, .prose h2 + .colonnes { margin-top: calc(40 * var(--u)); }
  .prose h3 + p { margin-top: calc(36 * var(--u)); }
  .colonnes { grid-template-columns: 1fr 1fr; column-gap: calc(20 * var(--u)); }
  .colonnes p + p { margin-top: 0; }
  .page__lignes { width: calc(256 * var(--u)); height: calc(126 * var(--u)); margin-top: calc(90 * var(--u)); }
}

/* Bandeau du mode test (visible uniquement par le super-admin) */
.bandeau-test {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 16px;
  background: #c98a12;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
}


/* Règlement : en-tête officiel */
.reglement__entete { margin-bottom: calc(30 * var(--m)); padding: calc(16 * var(--m)) calc(18 * var(--m)); border: 2px solid var(--navy); }
.reglement__entete p { margin: 0; }
.reglement__entete p + p { margin-top: .5em; }
.reglement h2 { scroll-margin-top: 20px; }
@media (min-width: 1024px) {
  .reglement__entete { margin-bottom: calc(60 * var(--u)); padding: calc(26 * var(--u)) calc(34 * var(--u)); border-width: max(2px, calc(3 * var(--u))); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
