/* =============================================================
   SACEM-3 — Charte officielle (mars 2026), variante Sociétaires
   Fond n°7 : lavande → orange. Inter Variable en fallback Scale VF.
   ============================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/_theme/sacem-3/inter-wght.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/_theme/sacem-3/jetbrains-mono-wght.woff2") format("woff2-variations");
}

:root {
  /* Spectre rouge */
  --sacem-bordeaux: #ab1d4f;
  --sacem-pourpre: #d80046;
  --sacem-rouge: #fe4250;
  --sacem-rose: #f7456f;
  --sacem-peche: #ff905f;
  --sacem-orange: #fa6123;
  /* Spectre bleu */
  --sacem-fuchsia: #e632a0;
  --sacem-lavande: #8a5dc5;
  --sacem-indigo: #4c33b9;
  --sacem-azur: #5e80ce;
  /* Spectre vert */
  --sacem-jaune: #ffb518;
  --sacem-pistache: #89c865;
  --sacem-menthe: #4bbe90;
  --sacem-sapin: #005f62;
  /* Neutres */
  --sacem-noir: #000000;
  --sacem-blanc: #ffffff;

  /* Spacing — multiples de 8px (charte) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;

  /* Coin arrondi logo & sticker (6mm ≈ 22.7px ≈ 24px) */
  --r-sticker: 24px;
  --r-pill: 999px;
  --r-card: 16px;

  /* Fond n°7 — Sociétaires.
     Mesh gradient organique inspiré du brand guide (taches diffuses superposées
     façon "aurore"). Lavande → fuchsia → rose → pêche, avec un soupçon d'azur
     pour le contraste froid/chaud. L'ordre des couches compte : les taches sont
     posées au-dessus d'une base linéaire de fond. */
  --grad-7:
    radial-gradient(ellipse 60% 50% at 18% 22%, var(--sacem-lavande) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 78% 12%, var(--sacem-azur) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 52% 58%, var(--sacem-fuchsia) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 22% 85%, var(--sacem-rose) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 78%, var(--sacem-peche) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 95% 45%, var(--sacem-orange) 0%, transparent 55%),
    linear-gradient(135deg, var(--sacem-lavande) 0%, var(--sacem-rose) 50%, var(--sacem-peche) 100%);

  /* Version "soft" pour les sections claires — même mesh à opacité très basse */
  --grad-7-soft:
    radial-gradient(ellipse 60% 50% at 18% 22%, rgba(138, 93, 197, .12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 52% 58%, rgba(230, 50, 160, .08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 78%, rgba(255, 144, 95, .14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(138, 93, 197, .04) 0%, rgba(255, 144, 95, .06) 100%);

  /* Grain SVG inline — trame subtile (charte : "grain visible" mais pas dominant
     sur les mesh-gradients qui doivent rester lumineux/liquides) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
}

/* =========================  RESET  ========================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body { line-height: 1.5; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
textarea { resize: vertical; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { appearance: none; background: none; border: 0; cursor: pointer; }

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

/* =========================  BASE  ========================= */

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--sacem-blanc);
  color: var(--sacem-noir);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Approche "Scale VF" : variation stretch + weight */
  font-variation-settings: "wght" 450;
}

::selection { background: var(--sacem-noir); color: var(--sacem-peche); }

.skip-link {
  position: absolute;
  left: -10000px;
}
.skip-link:focus {
  position: static;
  background: var(--sacem-noir);
  color: var(--sacem-peche);
  padding: var(--s-1) var(--s-2);
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.u-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}
@media (min-width: 768px) { .u-container { padding: 0 var(--s-6); } }
@media (min-width: 1024px) { .u-container { padding: 0 var(--s-8); } }

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================  MASTHEAD  ========================= */

.masthead {
  position: relative;
  padding: var(--s-3) 0;
  background: var(--sacem-blanc);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  z-index: 10;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.masthead__logo {
  display: block;
  height: 44px;
  width: auto;
}
@media (min-width: 768px) {
  .masthead__logo { height: 56px; }
}
.masthead__ref {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-size: .75rem;
  color: var(--sacem-noir);
  letter-spacing: .14em;
  text-transform: lowercase;
}
.masthead__bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sacem-rouge);
  animation: rec-blink 1.8s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: .25; }
}

/* =========================  HERO  ========================= */

.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-12);
  overflow: hidden;
  background-color: var(--sacem-lavande);
  background-image: url('/_theme/sacem-3/FondNum8-100.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: var(--sacem-blanc);
  isolation: isolate;
}
@media (min-width: 768px) {
  .hero { padding: var(--s-12) 0 calc(var(--s-12) + var(--s-4)); }
}

/* Grain overlay — discret, pour ne pas tuer le mesh-gradient lumineux */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: var(--s-1) var(--s-2);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__eyebrow-bar { display: none; }

/* Titre — Scale Extra Extended Bold (approximation Inter wght 900 + stretch) */
.hero__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-size: clamp(2.75rem, 8.5vw, 6.5rem);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--sacem-blanc);
  text-transform: lowercase;
  margin: 0 0 var(--s-2);
}
@media (min-width: 768px) {
  .hero__title { margin-bottom: var(--s-2); }
}
.hero__title-accent {
  display: inline-block;
  background: var(--sacem-noir);
  color: var(--sacem-blanc);
  padding: 0 .25em;
  border-radius: 8px;
  transform: rotate(-1deg);
  transform-origin: 10% bottom;
}

.hero__sub {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--sacem-blanc);
  max-width: 38rem;
  margin: 0 0 var(--s-5);
}
@media (min-width: 768px) {
  .hero__sub { font-size: 1.25rem; }
}
.hero__samples {
  display: block;
  margin: 0 0 var(--s-5);
  font-size: .9375rem;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  color: rgba(255, 255, 255, .82);
  font-style: italic;
  letter-spacing: .01em;
}
@media (min-width: 768px) {
  .hero__samples { font-size: 1rem; }
}

/* CTA "sticker" — bordure arrondie 6mm, charte */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-5);
  background: var(--sacem-blanc);
  color: var(--sacem-noir);
  border: 2px solid var(--sacem-noir);
  border-radius: var(--r-sticker);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: lowercase;
  line-height: 1;
  box-shadow: 5px 5px 0 0 var(--sacem-noir);
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1),
              box-shadow 200ms cubic-bezier(.2, .7, .2, 1),
              background-color 200ms ease;
}
.hero__cta:hover,
.hero__cta:focus-visible {
  outline: none;
  background: var(--sacem-lavande);
  color: var(--sacem-blanc);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 var(--sacem-noir);
}
.hero__cta:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 0 var(--sacem-noir);
}
.hero__cta-arrow {
  width: 1.05em;
  height: 1.05em;
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1);
}
.hero__cta:hover .hero__cta-arrow,
.hero__cta:focus-visible .hero__cta-arrow {
  transform: translateY(3px);
}

.hero__glyph { display: none; }

/* =========================  FORM ZONE  ========================= */

.form-zone {
  position: relative;
  padding: var(--s-10) 0 var(--s-12);
  background: var(--sacem-blanc);
}
.form-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-7-soft);
  pointer-events: none;
}
.form-zone__inner {
  position: relative;
  max-width: 48rem;
}
.form-zone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--sacem-noir);
}
.form-zone__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--sacem-noir);
  text-transform: lowercase;
  margin: 0;
}
.form-zone__ref {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: .8125rem;
  color: var(--sacem-noir);
  opacity: .65;
  letter-spacing: .12em;
  text-transform: lowercase;
}
.form-zone__ref-num {
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  color: var(--sacem-pourpre);
  font-weight: 600;
}

/* =========================  CREDITS (FORM)  ========================= */

.credits {
  display: grid;
  gap: var(--s-5);
}
.credits__row {
  display: grid;
  gap: var(--s-2);
}
.credits__row--video {
  gap: var(--s-3);
  margin-top: var(--s-2);
  padding-top: var(--s-5);
  border-top: 2px dashed rgba(0, 0, 0, .15);
}

.credits__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.credits__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .5rem;
  background: var(--sacem-pourpre);
  color: var(--sacem-blanc);
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .06em;
  line-height: 1;
  border-radius: 6px;
}
.credits__question {
  flex: 1;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--sacem-noir);
  padding-top: .15em;
  text-transform: lowercase;
}
@media (min-width: 768px) {
  .credits__question { font-size: 1.5rem; }
}
.credits__quote {
  display: inline-block;
  margin-top: .25rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  color: var(--sacem-pourpre);
}

.credits__input {
  appearance: none;
  width: 100%;
  background: var(--sacem-blanc);
  color: var(--sacem-noir);
  border: 2px solid var(--sacem-noir);
  border-radius: var(--r-card);
  padding: var(--s-2) var(--s-3);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: 1.125rem;
  line-height: 1.4;
  transition: box-shadow 200ms cubic-bezier(.34, 1.56, .64, 1),
              border-color 200ms cubic-bezier(.2, .7, .2, 1),
              transform 200ms cubic-bezier(.34, 1.56, .64, 1);
}
.credits__input::placeholder {
  color: rgba(0, 0, 0, .45);
  font-style: italic;
  font-weight: 400;
}
.credits__input:focus-visible {
  outline: none;
  border-color: var(--sacem-pourpre);
  box-shadow: 4px 4px 0 0 var(--sacem-pourpre);
  transform: translate(-2px, -2px);
}

/* Erreur de validation affichée sous le champ concerné (remplace la
   bannière globale d'antan — voir show.html.twig). */
.credits__error {
  display: block;
  margin-top: var(--s-1);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-size: .875rem;
  color: var(--sacem-pourpre);
}
.credits__input[aria-invalid="true"] {
  border-color: var(--sacem-pourpre);
}

.credits__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Consent — checkbox custom (charte sticker / contraste noir) */
.credits__consent {
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 2px dashed rgba(0, 0, 0, .15);
}
.consent {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  user-select: none;
  padding: var(--s-2);
  border-radius: var(--r-card);
  transition: background-color 180ms ease;
}
.consent:hover {
  background: rgba(0, 0, 0, .03);
}
.consent__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent__box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--sacem-blanc);
  color: transparent;
  border: 2px solid var(--sacem-noir);
  border-radius: 8px;
  box-shadow: 3px 3px 0 0 var(--sacem-noir);
  transition: background-color 180ms cubic-bezier(.34, 1.56, .64, 1),
              color 180ms ease,
              transform 180ms cubic-bezier(.34, 1.56, .64, 1);
}
.consent__check {
  width: 18px;
  height: 18px;
}
.consent__input:checked + .consent__box {
  background: var(--sacem-pourpre);
  color: var(--sacem-blanc);
  transform: scale(1.04);
}
.consent__input:focus-visible + .consent__box {
  outline: 3px solid var(--sacem-peche);
  outline-offset: 3px;
}
.consent__text {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--sacem-noir);
  text-transform: lowercase;
}
/* Lien « règlement » dans la case de consentement : doit se lire comme un
   lien (pourpre marque + soulignement franc + plus gras) pour que le clic
   vers le PDF soit intentionnel et non subi. */
.consent__link {
  color: var(--sacem-pourpre);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  padding: 0 .1em;
  border-radius: 4px;
  transition: background-color 150ms ease, color 150ms ease;
}
.consent__link:hover {
  color: var(--sacem-noir);
  background: var(--sacem-peche);
}
.consent__link:focus-visible {
  outline: 2px solid var(--sacem-noir);
  outline-offset: 2px;
}

.credits__submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap-reverse;
  margin-top: var(--s-2);
  padding-top: var(--s-5);
  border-top: 2px solid var(--sacem-noir);
}

/* CTA submit — sticker pourpre */
.credits__submit {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-6);
  background: var(--sacem-pourpre);
  color: var(--sacem-blanc);
  border: 2px solid var(--sacem-noir);
  border-radius: var(--r-sticker);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow: 5px 5px 0 0 var(--sacem-noir);
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1),
              box-shadow 200ms cubic-bezier(.2, .7, .2, 1),
              background-color 200ms ease;
}
.credits__submit:hover,
.credits__submit:focus-visible {
  outline: none;
  background: var(--sacem-lavande);
  color: var(--sacem-blanc);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 var(--sacem-noir);
}
.credits__submit:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 0 var(--sacem-noir);
}
.credits__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 5px 5px 0 0 var(--sacem-noir);
}
.credits__submit-arrow {
  width: 1.4em;
  height: .7em;
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1);
}
.credits__submit:hover .credits__submit-arrow,
.credits__submit:focus-visible .credits__submit-arrow {
  transform: translateX(4px);
}

.credits__status {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: .9375rem;
  color: rgba(0, 0, 0, .65);
  margin: 0;
  flex: 1 1 14rem;
}
.credits__status[data-state=error] { color: var(--sacem-pourpre); font-weight: 600; }
.credits__status[data-state=success] { color: var(--sacem-menthe); font-weight: 600; }

/* =========================  REC BUTTON  ========================= */

.rec {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: var(--s-4) auto var(--s-2);
  cursor: pointer;
  isolation: isolate;
}
@media (min-width: 768px) {
  .rec { max-width: 320px; margin-top: var(--s-6); }
}
.rec__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.rec__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--grad-7);
  border: 3px solid var(--sacem-noir);
  box-shadow: 8px 8px 0 0 var(--sacem-noir);
  transition: transform 220ms cubic-bezier(.34, 1.56, .64, 1),
              box-shadow 220ms cubic-bezier(.2, .7, .2, 1),
              filter 220ms cubic-bezier(.2, .7, .2, 1);
  z-index: 1;
}
.rec__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: var(--grain);
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  opacity: .35;
  pointer-events: none;
}
.rec__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--sacem-pourpre);
  animation: rec-pulse 2.2s ease-out infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.rec__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--sacem-pourpre);
  animation: rec-pulse 2.2s ease-out infinite;
  animation-delay: 1.1s;
  opacity: 0;
}
.rec__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: var(--sacem-blanc);
  text-align: center;
  padding: 0 var(--s-3);
  pointer-events: none;
}
.rec__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sacem-blanc);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
  animation: rec-blink 1.6s ease-in-out infinite;
}
.rec__label {
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: .18em;
  line-height: 1;
}
.rec__hint {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: .8125rem;
  letter-spacing: .04em;
  line-height: 1.35;
  color: rgba(255, 255, 255, .92);
  text-transform: lowercase;
}
.rec__meta {
  margin: var(--s-3) auto 0;
  max-width: 28rem;
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-size: .75rem;
  color: rgba(0, 0, 0, .55);
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.5;
}
.rec__filename {
  margin: var(--s-2) auto 0;
  max-width: 28rem;
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sacem-peche);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.5;
  word-break: break-all;
}
.rec:hover .rec__ring,
.rec:focus-within .rec__ring {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 0 var(--sacem-noir);
}
.rec[data-state=dragover] .rec__ring {
  transform: translate(-4px, -4px) scale(1.03);
  box-shadow: 12px 12px 0 0 var(--sacem-noir);
  filter: brightness(1.05);
}
.rec[data-state=filled] .rec__ring {
  filter: saturate(1.2) brightness(.9);
}
.rec[data-state=filled] .rec__dot {
  background: var(--sacem-peche);
  animation: none;
}
@keyframes rec-pulse {
  0% { opacity: 0; transform: scale(.96); }
  18% { opacity: .7; }
  100% { opacity: 0; transform: scale(1.22); }
}

/* =========================  PREVIEW / PROGRESS / BANNER  ========================= */

.preview {
  margin: var(--s-3) auto 0;
  max-width: 28rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-2);
  align-items: center;
  padding: var(--s-2) var(--s-3);
  background: var(--sacem-blanc);
  border: 2px solid var(--sacem-noir);
  border-radius: var(--r-card);
  box-shadow: 4px 4px 0 0 var(--sacem-noir);
}
.preview[hidden] { display: none; }
.preview__thumb {
  width: 32px;
  height: 32px;
  background: var(--grad-7);
  color: var(--sacem-blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.preview__meta { display: grid; gap: 1px; min-width: 0; }
.preview__name {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--sacem-noir);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview__details {
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-size: .75rem;
  color: rgba(0, 0, 0, .55);
  letter-spacing: .06em;
}
.preview__remove {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--sacem-pourpre);
  padding: .25rem .5rem;
  transition: color 180ms ease, transform 180ms ease;
}
.preview__remove:hover,
.preview__remove:focus-visible {
  color: var(--sacem-bordeaux);
  transform: rotate(90deg);
}

.progress {
  margin: var(--s-3) auto 0;
  max-width: 28rem;
  display: grid;
  gap: .5rem;
}
.progress[hidden] { display: none; }
.progress__track {
  width: 100%;
  height: 10px;
  background: var(--sacem-blanc);
  border: 2px solid var(--sacem-noir);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress__bar {
  width: 0%;
  height: 100%;
  background: var(--grad-7);
  transition: width 150ms linear;
}
.progress__label {
  font-family: "JetBrains Mono", "SF Mono", menlo, monospace;
  font-size: .8125rem;
  color: var(--sacem-noir);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.banner {
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: .9375rem;
  border: 2px solid var(--sacem-noir);
  border-left-width: 6px;
  border-radius: var(--r-card);
  display: none;
}
.banner[data-state=error] {
  display: block;
  background: rgba(216, 0, 70, .08);
  border-left-color: var(--sacem-pourpre);
  color: var(--sacem-noir);
}
.banner[data-state=success] {
  display: block;
  background: rgba(75, 190, 144, .12);
  border-left-color: var(--sacem-menthe);
  color: var(--sacem-noir);
}

/* =========================  THANKS  ========================= */

.thanks[hidden] { display: none; }
.thanks {
  position: relative;
  padding: var(--s-8) 0 var(--s-4);
  overflow: hidden;
}
.thanks__glyph { display: none; }
.thanks__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: -0.035em;
  color: var(--sacem-pourpre);
  text-transform: lowercase;
  margin: 0 0 var(--s-3);
}
.thanks__body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--sacem-noir);
  max-width: 32rem;
}

/* =========================  COLOPHON / FOOTER  ========================= */

.colophon {
  position: relative;
  padding: var(--s-5) 0;
  background-color: var(--sacem-lavande);
  background-image: url('/_theme/sacem-3/FondNum8-100.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: var(--sacem-blanc);
  overflow: hidden;
  isolation: isolate;
}
.colophon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  opacity: .3;
  pointer-events: none;
  z-index: 0;
}
.colophon__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.colophon__logo {
  display: block;
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.colophon__legal {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: .75rem;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .04em;
  flex: 1 1 24rem;
  text-align: right;
  line-height: 1.5;
}
.colophon__meta {
  position: relative;
  z-index: 1;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-size: .75rem;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .04em;
  line-height: 1.5;
}
.colophon__credit { text-align: right; }
.colophon__link {
  color: var(--sacem-blanc);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 150ms ease;
}
.colophon__link:hover { opacity: .8; }
.colophon__link:focus-visible {
  outline: 2px solid var(--sacem-blanc);
  outline-offset: 2px;
}

/* =========================  REVEAL ANIMATIONS  ========================= */

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__sub,
  .hero__title,
  .hero__samples,
  .hero__cta {
    opacity: 0;
    animation: reveal-rise .6s cubic-bezier(.2, .7, .2, 1) forwards;
  }
  .hero__eyebrow { animation-delay: .08s; }
  .hero__sub { animation-delay: .2s; }
  .hero__title { animation-delay: .35s; }
  .hero__samples { animation-delay: .45s; }
  .hero__cta { animation-delay: .55s; }
}

/* =========================  MOBILE POLISH (≤ 767px)  =========================
   Ajustements ciblés petits écrans (rapport mobile, juin 2026), isolés dans une
   max-width pour ne pas toucher au layout desktop mobile-first ci-dessus. */
@media (max-width: 767.98px) {
  /* #1 — légal du footer aligné à gauche : le `text-align:right` desktop
     produit un bord gauche en escalier une fois le bloc passé sur 2 lignes. */
  .colophon__legal { text-align: left; }

  /* #2 — CTA primaires en pleine largeur (cible tactile + hiérarchie claire). */
  .hero__cta,
  .credits__submit { width: 100%; justify-content: center; }
  .credits__submit-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  /* En colonne, le `flex-basis: 14rem` du statut devient une HAUTEUR de 224px
     (base sur l'axe principal vertical) → écart fantôme avant le bouton. On
     remet le statut à sa hauteur de contenu. */
  .credits__status { flex: 0 0 auto; }

  /* #3 — référence éditoriale du formulaire masquée pour dégager l'en-tête. */
  .form-zone__ref { display: none; }
}
