/* ==========================================================================
   ALPSJAA — base.css
   Jetons de design, reset, typographie, utilitaires, boutons, curseur,
   préchargement, navigation, pied de page.
   ========================================================================== */

:root {
  --teal-950: #022A25; --teal-900: #033F38; --teal-800: #04544B; --teal-700: #05665A; --teal-600: #0A7A6B; --teal-500: #159283;
  --teal-200: #B9DDD6; --teal-100: #E2F1EE;
  --yellow-500: #FFCC00; --yellow-400: #FFD633; --yellow-300: #FFE680; --yellow-100: #FFF6CC;
  --leaf-600: #2A8C00; --leaf-500: #3DA80F;
  --sun: #FFFF00;
  --red-600: #C8102E; --red-400: #EE5A5A;
  --cream: #FBF8EF; --paper: #FFFDF7; --ink: #0D1F1C; --ink-soft: #3C5450; --white: #fff;
  --f-display: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-in-out: cubic-bezier(.65,0,.35,1); --ease-back: cubic-bezier(.34,1.56,.64,1);
  --radius-sm: 10px; --radius: 18px; --radius-lg: 28px; --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(2,42,37,.08); --shadow: 0 12px 32px -8px rgba(2,42,37,.22); --shadow-lg: 0 30px 70px -20px rgba(2,42,37,.35);
  --gutter: clamp(16px, 4vw, 48px); --maxw: 1280px;
  --section-pad: clamp(80px, 12vw, 180px);

  /* internes */
  --nav-h: 76px;
  --z-grain: 60; --z-nav: 80; --z-menu: 90; --z-progress: 95; --z-cursor: 120; --z-preloader: 200;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--yellow-500); color: var(--teal-950); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(2, 42, 37, .55);
}

main:focus, section[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible:not(a):not(button) { outline: none; box-shadow: none; }

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 300;
  padding: .8rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--yellow-500); color: var(--teal-950); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; display: inline-block; vertical-align: middle; }

.section { position: relative; padding-block: var(--section-pad); }

/* Titres de section */
.section-head { margin-bottom: clamp(40px, 6vw, 88px); }
.section-head--center { text-align: center; }
.section-head--center .kicker { justify-content: center; }
.kicker {
  display: flex; align-items: center; gap: .75em;
  margin: 0 0 1.1rem;
  font-family: var(--f-body); font-weight: 600; font-size: .78rem; line-height: 1.2;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal-600);
}
.kicker::before {
  content: ""; flex: none; width: 2.6em; height: 2px; border-radius: 2px;
  background: currentColor; transform-origin: left center;
}
.kicker--light { color: var(--yellow-500); }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 2rem + 5.4vw, 7.5rem);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--teal-900);
}
.section-title--light { color: var(--white); }
.section-title em, .serif-accent {
  font-family: var(--f-serif); font-style: italic; font-weight: 900;
  text-transform: none; letter-spacing: -.01em;
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.prose p { margin-bottom: 1.1em; }
.prose strong { font-weight: 700; color: var(--teal-800); }
.prose a { color: var(--teal-700); font-weight: 600; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
/* Masques SplitText : marge pour les accents (É, À…) et les jambages */
.reveal-line-mask { padding-top: .18em; margin-top: -.18em; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--yellow-500); --btn-fg: var(--teal-950); --btn-hover-bg: var(--white); --btn-hover-fg: var(--teal-950);
  --btn-icon-bg: var(--teal-950); --btn-icon-fg: var(--yellow-500);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .85rem;
  min-height: 56px; padding: .5rem .55rem .5rem 1.6rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  overflow: hidden;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-hover-bg);
  transform: translate(-50%, 60%) scale(0); transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg); }
.btn__label { position: relative; display: inline-block; }
.btn__icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--btn-icon-bg); color: var(--btn-icon-fg);
  overflow: hidden; position: relative;
}
.btn__icon .icon { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.btn__icon .icon + .icon { position: absolute; transform: translateX(-180%); }
.btn:hover .btn__icon .icon:first-child { transform: translateX(180%); }
.btn:hover .btn__icon .icon + .icon { transform: translateX(0); }
.btn--icon-down .btn__icon .icon + .icon { transform: translateY(-180%); }
.btn--icon-down:hover .btn__icon .icon:first-child { transform: translateY(180%); }
.btn--icon-down:hover .btn__icon .icon + .icon { transform: translateY(0); }
.btn--no-icon { padding: .5rem 1.6rem; }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--white); --btn-hover-bg: var(--white); --btn-hover-fg: var(--teal-900);
  --btn-icon-bg: rgba(255,255,255,.14); --btn-icon-fg: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--outline:hover { border-color: var(--white); --btn-icon-bg: var(--teal-900); }
.btn--teal {
  --btn-bg: var(--teal-700); --btn-fg: var(--white); --btn-hover-bg: var(--teal-950); --btn-hover-fg: var(--white);
  --btn-icon-bg: var(--yellow-500); --btn-icon-fg: var(--teal-950);
}
.btn--dark-outline {
  --btn-bg: transparent; --btn-fg: var(--teal-900); --btn-hover-bg: var(--teal-900); --btn-hover-fg: var(--white);
  --btn-icon-bg: var(--teal-900); --btn-icon-fg: var(--yellow-500);
  border-color: var(--teal-900);
}
.btn--dark-outline:hover { --btn-icon-bg: var(--yellow-500); --btn-icon-fg: var(--teal-950); }
.btn--sm { min-height: 46px; font-size: .9rem; padding: .35rem .4rem .35rem 1.2rem; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn--sm.btn--no-icon { padding: .35rem 1.25rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; text-decoration: none; color: inherit;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .4s var(--ease-out); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Dé 3D (préchargement, hero, 404) ---------- */
.die {
  --s: 64px; --face: var(--yellow-500); --pip: var(--teal-900); --edge: rgba(2,42,37,.18);
  position: relative; display: block; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
}
.die--green { --face: var(--leaf-500); --pip: var(--white); --edge: rgba(0,0,0,.18); }
.die--white { --face: var(--white); --pip: var(--teal-800); }
.die__face {
  position: absolute; inset: 0;
  border-radius: 17%;
  background-color: var(--face);
  background-image: var(--pips);
  background-size: 33.34% 33.34%;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 11%;
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 -6px 12px rgba(0,0,0,.12), inset 0 6px 10px rgba(255,255,255,.3);
  backface-visibility: hidden;
}
.die__face {
  --p: radial-gradient(circle, var(--pip) 0 42%, transparent 46%);
}
.die__face:nth-child(1) { transform: rotateY(0deg) translateZ(calc(var(--s) / 2)); --pips: var(--p); background-position: 50% 50%; }
.die__face:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); --pips: var(--p), var(--p); background-position: 0 0, 100% 100%; }
.die__face:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); --pips: var(--p), var(--p), var(--p); background-position: 0 0, 50% 50%, 100% 100%; }
.die__face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); --pips: var(--p), var(--p), var(--p), var(--p); background-position: 0 0, 100% 0, 0 100%, 100% 100%; }
.die__face:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); --pips: var(--p), var(--p), var(--p), var(--p), var(--p); background-position: 0 0, 100% 0, 50% 50%, 0 100%, 100% 100%; }
.die__face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); --pips: var(--p), var(--p), var(--p), var(--p), var(--p), var(--p); background-position: 0 0, 100% 0, 0 50%, 100% 50%, 0 100%, 100% 100%; }
/* Plans internes : bouchent les arêtes arrondies pour un cube plein */
.die::before, .die::after {
  content: ""; position: absolute; inset: 1.5%;
  background: var(--face); border-radius: 8%;
  filter: brightness(.8);
}
.die::before { transform: rotateY(90deg); }
.die::after { transform: rotateX(90deg); }
@keyframes die-spin {
  from { transform: rotateX(-20deg) rotateY(0deg) rotateZ(10deg); }
  to   { transform: rotateX(340deg) rotateY(360deg) rotateZ(370deg); }
}
.die--spin { animation: die-spin 16s linear infinite; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none;
  background: url('/assets/img/grain.svg') repeat;
  opacity: .075;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); }
}

/* ---------- Barre de progression ---------- */
.progress {
  position: fixed; left: 0; top: 0; z-index: var(--z-progress);
  width: 100%; height: 3px; pointer-events: none;
  background: var(--yellow-500);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 204, 0, .6);
}

/* ---------- Curseur personnalisé ---------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor], html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor [contenteditable] { cursor: text; }
html.has-cursor select, html.has-cursor input[type="checkbox"], html.has-cursor input[type="radio"], html.has-cursor input[type="submit"], html.has-cursor input[type="file"] { cursor: pointer; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-visible .cursor__dot, .cursor.is-visible .cursor__ring { opacity: 1; }
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--yellow-500);
  box-shadow: 0 0 0 1.5px var(--teal-900);
}
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--white);
  mix-blend-mode: difference;
  transition: transform .45s var(--ease-out), background-color .35s, border-color .35s, opacity .3s;
}
.cursor__label {
  position: relative;
  font: 700 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-950);
  opacity: 0; transform: scale(.4);
  transition: opacity .25s, transform .45s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring::before { transform: scale(1.6); background: rgba(255,255,255,.12); }
.cursor.is-label .cursor__ring::before { transform: scale(2.3); background: var(--yellow-500); border-color: var(--yellow-500); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(.8); }
.cursor.is-text .cursor__ring, .cursor.is-text .cursor__dot { opacity: 0; }

/* ---------- Préchargement ---------- */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: block;
  pointer-events: auto;
}
html.js.is-ready .preloader, html.js.preloader-done .preloader { display: none; }
.preloader__layer { position: absolute; inset: 0; }
.preloader__layer--yellow { background: var(--yellow-500); }
.preloader__layer--teal {
  background:
    radial-gradient(1200px 700px at 50% 45%, var(--teal-600), transparent 70%),
    var(--teal-700);
  display: grid; place-items: center;
}
.preloader__inner { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; color: var(--white); }
.preloader__logo { width: clamp(110px, 16vw, 168px); aspect-ratio: 750 / 800; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.preloader__logo img { width: 100%; height: 100%; object-fit: contain; }
.preloader__die { position: absolute; right: -30px; top: -6px; perspective: 600px; }
.preloader__die .die { --s: 34px; }
.preloader__brand { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .14em; line-height: 1; }
.preloader__tag { font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: clamp(16px, 4vh, 40px);
  font-family: var(--f-display); font-size: clamp(5rem, 14vw, 12rem); line-height: .8;
  color: var(--yellow-500);
  font-variant-numeric: tabular-nums;
}
.preloader__count span { font-size: .35em; vertical-align: top; margin-left: .05em; }
.preloader__bar {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 5vh, 52px);
  width: min(240px, 40vw); height: 2px; background: rgba(255,255,255,.18); overflow: hidden; border-radius: 2px;
}
.preloader__bar i { position: absolute; inset: 0; background: var(--yellow-500); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .preloader { display: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: var(--z-nav);
  padding-top: 14px;
  transition: transform .6s var(--ease-out), padding .5s var(--ease-out);
  pointer-events: none;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__inner {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 24px;
  width: calc(100% - var(--gutter) * 2); max-width: 1440px;
  margin-inline: auto;
  height: 64px;
  padding: 0 8px 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--white);
  transition: background-color .5s var(--ease-out), border-color .5s, box-shadow .5s, max-width .7s var(--ease-out), backdrop-filter .5s;
}
.nav.is-scrolled .nav__inner {
  max-width: 1180px;
  background: rgba(3, 63, 56, .72);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px -18px rgba(2, 42, 37, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; border-radius: var(--radius-pill); }
.nav__logo { width: 46px; height: 49px; object-fit: contain; transition: transform .6s var(--ease-back); }
.nav__brand:hover .nav__logo { transform: rotate(-10deg) scale(1.06); }
.nav__name { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .08em; line-height: 1; padding-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; list-style: none; }
.nav__link {
  position: relative; display: block;
  padding: .55rem .85rem;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,.86);
  transition: color .3s, background-color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--yellow-500);
  transform: scale(0); transition: transform .4s var(--ease-back);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav:not(.is-scrolled) .nav__link { text-shadow: 0 1px 2px rgba(2, 42, 37, .7), 0 0 14px rgba(2, 42, 37, .6); }
.nav__link.is-active { color: var(--yellow-500); }
.nav__link.is-active::after { transform: scale(1); }
.nav__cta { flex: none; }
.nav__burger {
  display: none; position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow-500); color: var(--teal-950);
  z-index: 2;
}
.nav__burger span {
  position: absolute; left: 14px; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease-out), opacity .3s, width .4s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 23px; width: 14px; }
.nav__burger span:nth-child(3) { top: 29px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
html.menu-open .nav { transform: none; z-index: calc(var(--z-menu) + 1); }
html.menu-open .nav__inner { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 1100px) {
  .nav__link { padding: .55rem .6rem; font-size: .85rem; }
  .nav__inner { gap: 14px; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__inner { height: 60px; }
}

/* Menu mobile plein écran */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--teal-800);
  color: var(--white);
  overflow: hidden auto;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 44px);
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 44px); transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__band {
  position: absolute; left: -20%; right: -20%; bottom: 130px; height: 110px;
  background: var(--yellow-500);
  transform: rotate(-14deg) scaleX(0); transform-origin: 0 50%;
  transition: transform 1s var(--ease-out) .15s;
  pointer-events: none;
}
.menu__band::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 70px; background: var(--teal-700); }
.menu.is-open .menu__band { transform: rotate(-14deg) scaleX(1); }
.menu__list { position: relative; list-style: none; display: grid; gap: 2px; }
.menu__item { overflow: hidden; }
.menu__link {
  display: inline-flex; align-items: baseline; gap: .4em;
  font-family: var(--f-display); font-size: clamp(2.8rem, 12vw, 4.6rem); line-height: 1; letter-spacing: .01em;
  text-decoration: none; color: var(--white);
  transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s;
}
.menu__link small { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--yellow-500); letter-spacing: .1em; }
.menu__link:hover, .menu__link.is-active { color: var(--yellow-500); }
.menu.is-open .menu__link { transform: none; }
.menu.is-open .menu__item:nth-child(1) .menu__link { transition-delay: .18s; }
.menu.is-open .menu__item:nth-child(2) .menu__link { transition-delay: .23s; }
.menu.is-open .menu__item:nth-child(3) .menu__link { transition-delay: .28s; }
.menu.is-open .menu__item:nth-child(4) .menu__link { transition-delay: .33s; }
.menu.is-open .menu__item:nth-child(5) .menu__link { transition-delay: .38s; }
.menu.is-open .menu__item:nth-child(6) .menu__link { transition-delay: .43s; }
.menu.is-open .menu__item:nth-child(7) .menu__link { transition-delay: .48s; }
.menu__foot {
  position: relative; margin-top: auto; padding-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  font-size: .9rem;
  opacity: 0; transform: translateY(20px); transition: opacity .6s .5s, transform .8s var(--ease-out) .5s;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__foot a { color: var(--white); text-decoration: none; font-weight: 600; display: inline-flex; gap: .5em; align-items: center; }
.menu__foot > a .icon { color: var(--yellow-500); }
.menu__foot .socials { margin-left: auto; }
@media (min-width: 961px) { .menu { display: none; } }

/* ---------- Réseaux sociaux ---------- */
.socials { display: flex; gap: 10px; list-style: none; }
.social {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--white);
  border: 1px solid rgba(255,255,255,.16);
  transition: background-color .3s, color .3s, transform .5s var(--ease-back);
}
.social:hover { background: var(--yellow-500); color: var(--teal-950); transform: translateY(-3px) rotate(-8deg); }
.social .icon { width: 22px; height: 22px; }
.menu .social { background: var(--teal-900); border-color: transparent; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed; right: max(16px, var(--gutter)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-900); color: var(--yellow-500);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-back), background-color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-700); }
.to-top .icon { width: 22px; height: 22px; position: relative; z-index: 1; transition: transform .4s var(--ease-out); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 3; }
.to-top__ring .bg { stroke: rgba(255,255,255,.12); }
.to-top__ring .fg { stroke: var(--yellow-500); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }

/* ---------- Badge mode démo ---------- */
.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 70;
  padding: 4px 10px 4px 8px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .68rem/1.4 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(2, 42, 37, .82); color: var(--yellow-300);
  border: 1px solid rgba(255, 204, 0, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: auto;
}
.demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-500); box-shadow: 0 0 0 3px rgba(255,204,0,.25); }

/* ---------- Pied de page ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--teal-950); color: rgba(255,255,255,.78);
  padding-top: clamp(72px, 9vw, 120px);
  font-size: .95rem;
}
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--yellow-500); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer__brand img { width: 84px; height: auto; }
.footer__brand p { font-size: .92rem; }
.footer__title {
  margin: 0 0 1.1rem;
  font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .08em; color: var(--yellow-500); line-height: 1;
}
.footer__list { list-style: none; display: grid; gap: .55rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .6em; }
.footer__list .icon { width: 1.1em; height: 1.1em; color: var(--yellow-500); }
.footer__wordmark {
  position: relative; display: block;
  margin: 0 auto; padding-inline: var(--gutter);
  font-family: var(--f-display); line-height: .78;
  font-size: clamp(5rem, 25.5vw, 30rem);
  letter-spacing: .01em; text-align: center;
  user-select: none;
  white-space: nowrap;
}
.footer__wordmark-outline { display: block; color: transparent; -webkit-text-stroke: 2px rgba(255, 204, 0, .55); }
.footer__wordmark-fill {
  position: absolute; inset: 0; padding-inline: inherit;
  color: var(--yellow-500);
  -webkit-text-stroke: 2px var(--yellow-500);
  clip-path: inset(-25% 100% -25% -2%);
  transition: clip-path 1.2s var(--ease-in-out);
}
.footer__wordmark:hover .footer__wordmark-fill, .footer__wordmark.is-filled .footer__wordmark-fill { clip-path: inset(-25% -2% -25% -2%); }
.footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-right: 76px; }
@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__wordmark-outline { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- Pages simples (404, mentions légales) ---------- */
.simple-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(3, 63, 56, .94); color: var(--white);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.simple-header .nav__brand { color: var(--white); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .die--spin { animation: none; transform: rotateX(-24deg) rotateY(35deg); }
}
