/* =========================================================
   ZAPHIR STUDIO — Feuille de style principale
   Design system "prestige" : noir profond + or champagne
   ========================================================= */

/* ---------- 1. TOKENS / VARIABLES ---------- */
:root {
  /* Couleurs */
  /* ===== THÈME SOMBRE LUMINEUX (nuit saphir) ===== */
  --bg:        #070a12;
  --bg-2:      #0b0f1a;
  --bg-3:      #121826;
  --surface:   #141a2a;
  --line:      rgba(43, 134, 255, 0.20);
  --line-soft: rgba(255, 255, 255, 0.09);

  --ivory:     #eef3fb;
  --ivory-dim: #aab4c6;
  --muted:     #6b7689;

  /* Accent saphir */
  --gold:      #2f8bff;
  --gold-soft: #82b8ff;
  --gold-deep: #0e3f9e;
  --gold-grad: linear-gradient(135deg, #a9d6ff 0%, #2f8bff 45%, #0e3f9e 100%);

  /* Typo */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-script:  "Italianno", "Segoe Script", "Brush Script MT", cursive;
  --font-body:    "Satoshi", system-ui, -apple-system, sans-serif;

  /* Mesures */
  --container: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 16px;
  --radius-lg: 26px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Halo lumineux subtil en haut (ambiance claire) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background: radial-gradient(120% 70% at 50% -8%, rgba(43, 134, 255, 0.07), transparent 55%);
}


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

/* Champ anti-spam (honeypot) : invisible pour les humains.
   En classe CSS et non en style="" : la politique de sécurité du site
   (.htaccess) bloque les styles écrits en dur dans le HTML. */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold); color: #fff; }

/* Scrollbar (discrète) */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(130, 184, 255, 0.45); }

/* ---------- 3. TYPO & UTILITAIRES ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.07; letter-spacing: -0.005em; }
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Accent manuscrit de luxe (mots importants).
   Les lettres de cette police (boucles, jambages) DÉBORDENT de leur boîte :
   sans cette marge intérieure, la dernière lettre est tronquée — visible
   notamment sur le « l » de « professionnel » avec le dégradé .gold. */
.script {
  font-family: var(--font-script); font-weight: 400; font-style: normal;
  font-size: 1.3em; line-height: 0.9; letter-spacing: 0;
  display: inline-block;
  padding: 0.10em 0.18em 0.08em 0.06em;
  margin: -0.10em -0.18em -0.08em -0.06em;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(80px, 12vh, 160px); }

.section__tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section__tag::before { content: "✦ "; opacity: 0.7; }
.section__title { font-size: clamp(2.1rem, 5.2vw, 4.4rem); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__sub { color: var(--ivory-dim); margin-top: 16px; font-size: 1.05rem; }
.br-desk { display: none; }
@media (min-width: 720px) { .br-desk { display: inline; } }

/* ---------- 4. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.01em; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn--gold { background: var(--gold-grad); color: #ffffff; box-shadow: 0 10px 30px -10px rgba(43,134,255,0.6); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(43,134,255,0.7); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line); color: var(--ivory); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-3px); }
.btn--block { width: 100%; margin-top: 8px; }

/* =========================================================
   5. PRÉLOADER — la fenêtre de prestige
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(120% 120% at 50% 40%, #0a1630 0%, #070a12 70%);
  display: grid; place-items: center;
}
.preloader__inner { text-align: center; width: min(340px, 70vw); }
.preloader__gem {
  width: 96px; height: 96px; object-fit: contain; margin: 0 auto 22px; display: block; mix-blend-mode: screen;
  filter: drop-shadow(0 12px 32px rgba(47, 139, 255, 0.55));
  opacity: 0; transform: scale(0.6);
  animation: gemPop 1s var(--ease-bounce) 0.05s forwards;
}
@keyframes gemPop { to { opacity: 1; transform: scale(1); } }
.preloader__brand { display: flex; flex-direction: column; line-height: 1; margin-bottom: 30px; }
.preloader__name {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: 0.16em; color: var(--ivory);
  opacity: 0; transform: translateY(20px);
  animation: rise .9s var(--ease) .1s forwards;
}
.preloader__sub {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.7em;
  font-size: 0.9rem; color: var(--gold); margin-left: 0.7em; margin-top: 8px;
  opacity: 0; transform: translateY(20px);
  animation: rise .9s var(--ease) .28s forwards;
}
.preloader__bar { height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--gold-grad); }
.preloader__count { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--muted); }
.preloader__pct { color: var(--gold); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   6. NAVIGATION
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,8,10,0.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft); padding-block: 12px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  width: 40px; height: 40px; object-fit: contain; mix-blend-mode: screen;
  filter: drop-shadow(0 4px 12px rgba(47, 139, 255, 0.5));
  transition: transform .5s var(--ease-bounce);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.08); }
.nav__logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; font-size: 0.95rem; }
.nav__logo-text em { font-style: normal; color: var(--gold); }

.nav__links { display: none; align-items: center; gap: 6px; }
@media (min-width: 1040px) { .nav__links { display: flex; } }
.nav__link {
  position: relative; padding: 10px 16px; font-size: 0.9rem; font-weight: 500;
  color: var(--ivory-dim); transition: color .3s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover, .nav__link.is-active { color: var(--ivory); }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

/* Dropdown Services */
.nav__dropdown { position: relative; }
.nav__arrow { transition: transform .4s var(--ease); }
.nav__dropdown.is-open .nav__arrow { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(16,16,21,0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-width: 280px;
  opacity: 0; visibility: hidden; transition: all .4s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.nav__dropdown.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  font-size: 0.9rem; color: var(--ivory-dim); transition: all .3s var(--ease);
}
.nav__menu a:hover { background: rgba(43,134,255,0.1); color: var(--ivory); }
.nav__menu a span { color: var(--gold); font-size: 1.15rem; display: inline-flex; flex-shrink: 0; }

.nav__cta {
  display: none; padding: 11px 22px; border-radius: 100px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid var(--gold); color: var(--gold-soft); transition: all .4s var(--ease);
}
@media (min-width: 1040px) { .nav__cta { display: inline-flex; } }
.nav__cta:hover { background: var(--gold); color: #ffffff; }

/* Bouton « Se connecter » (optionnel) — discret, à gauche du CTA */
.nav__login {
  display: none; margin-right: 4px; padding: 10px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; color: var(--ivory-dim);
  border: 1px solid var(--line-soft); transition: all .35s var(--ease);
}
@media (min-width: 1040px) { .nav__login { display: inline-flex; } }
.nav__login:hover { color: var(--ivory); border-color: var(--gold-soft); background: rgba(43,134,255,0.07); }
.nav__login[hidden] { display: none !important; }
/* Entrée « Se connecter » dans le menu mobile */
.nav__mobile-login {
  margin-top: 22px; align-self: flex-start; padding: 12px 26px; border-radius: 100px;
  border: 1px solid var(--gold); color: var(--gold-soft); font-weight: 700; font-size: 1rem;
  transition: all .35s var(--ease);
}
.nav__mobile-login:hover { background: var(--gold); color: #fff; }
.nav__mobile-login[hidden] { display: none; }

.nav__burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
@media (min-width: 1040px) { .nav__burger { display: none; } }
.nav__burger span { width: 26px; height: 2px; background: var(--ivory); transition: all .4s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.nav__mobile {
  position: fixed; inset: 0; z-index: 999; background: rgba(8,8,10,0.97); backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 80px var(--pad) 40px;
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a {
  font-family: var(--font-display); font-size: clamp(1.15rem, 4.5vw, 1.45rem); font-weight: 500;
  padding: 15px 2px; color: var(--ivory-dim); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; transition: color .3s var(--ease), padding .3s var(--ease);
}
.nav__mobile a::after { content: "→"; opacity: 0.35; font-size: 0.75em; }
.nav__mobile a:hover { color: var(--gold); padding-left: 8px; }

/* =========================================================
   7. HERO — porte de prestige
   ========================================================= */
.hero { position: relative; height: 300vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.hero__scene {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(72% 55% at 50% 38%, rgba(47,139,255,0.16) 0%, transparent 62%);
}
/* Hall de palais en fond (ta référence Stupinigi), assombri pour le luxe nocturne */
.hero__palace {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/palace.jpg") center 26% / cover no-repeat;
  filter: brightness(0.5) saturate(0.96) contrast(1.05);
}
.hero__palace::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 48% at 50% 30%, rgba(7,10,18,0.05) 0%, rgba(7,10,18,0.4) 72%, rgba(7,10,18,0.62) 100%),
    linear-gradient(180deg, rgba(7,10,18,0.18) 0%, rgba(7,10,18,0.34) 40%, rgba(7,10,18,0.66) 74%, var(--bg) 100%);
}
.hero__glow {
  position: absolute; top: 30%; left: 50%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(43,134,255,0.22) 0%, transparent 65%);
  filter: blur(30px); animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:translate(-50%,-50%) scale(1); opacity:.8} 50%{transform:translate(-50%,-50%) scale(1.12); opacity:1} }

/* Lumière de l'entrée "château" — révélée à l'ouverture des portes */
.hero__light {
  position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(42% 40% at 50% 28%, rgba(190, 222, 255, 0.78) 0%, rgba(80, 155, 255, 0.38) 38%, transparent 66%);
}
.hero__beam {
  position: absolute; top: -6%; bottom: -6%; left: 50%; width: 34%; transform: translateX(-50%);
  z-index: 1; opacity: 0; pointer-events: none; filter: blur(28px); mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(216, 234, 255, 0.95) 46%, rgba(216, 234, 255, 0.95) 54%, transparent);
}

.hero__logo { width: clamp(82px, 10.5vw, 132px); aspect-ratio: 1 / 1; margin: 0 auto 14px; perspective: 900px; display: grid; place-items: center; }
.hero__logo-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 20px 50px rgba(47, 139, 255, 0.5)); }
.hero__logo-halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(43, 134, 255, 0.4), transparent 65%); filter: blur(34px); animation: pulse 7s ease-in-out infinite; z-index: -1; }

.hero__content { position: relative; z-index: 3; text-align: center; padding: 0 var(--pad); max-width: 900px; margin-top: 2vh; }
.hero__eyebrow {
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 22px; text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}
.hero__title { font-size: clamp(2.1rem, 5.4vw, 4.3rem); font-weight: 600; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5); }
.hero__lead {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px;
  max-width: 680px; margin: 0 auto 40px;
  font-size: clamp(0.76rem, 1.4vw, 0.95rem); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #c8d2e6; text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}
.hero__lead-sep { color: var(--gold-soft); font-weight: 700; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Les battants */
.door {
  /* Chaque battant déborde de 1px au centre ET en haut/bas : aucun interstice
     possible (arrondi sous-pixel) — la porte est TOTALEMENT fermée au départ. */
  position: absolute; top: -1px; bottom: -1px; width: calc(50% + 1px); z-index: 5; overflow: hidden;
  background: linear-gradient(180deg, #0e1016 0%, #070709 100%);
  display: grid; place-items: center; will-change: transform; backface-visibility: hidden;
}
.door--left  { left: 0;  box-shadow: inset -30px 0 60px -30px rgba(0,0,0,0.9); }
/* Le joint (fin liseré saphir) est posé sur le battant droit qui passe AU-DESSUS
   du gauche dans la zone de recouvrement → il repose toujours sur une surface
   opaque, plus aucune transparence vers le décor derrière. */
.door--right { right: 0; border-left: 1px solid rgba(43,134,255,0.30); box-shadow: inset 30px 0 60px -30px rgba(0,0,0,0.9); }
.door__panel { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.door--left .door__panel  { background: radial-gradient(120% 100% at 100% 50%, rgba(43,134,255,0.06), transparent 60%); }
.door--right .door__panel { background: radial-gradient(120% 100% at 0% 50%, rgba(43,134,255,0.06), transparent 60%); }
/* moulures dorées verticales */
.door__panel::before {
  content: ""; position: absolute; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-deep), transparent);
}
.door--left .door__panel::before { right: 12%; }
.door--right .door__panel::before { left: 12%; }

/* Nom de marque gris, réparti de part et d'autre de la fente */
.door__word {
  position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.42em; color: #8b95a8;
}
.door__word--l { right: 17%; }
.door__word--r { left: 17%; padding-left: 0.42em; }
.door__est { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--gold); letter-spacing: 0.1em; }
.door__emblem--right { gap: 18px; }

/* Indicateur scroll */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ivory-dim);
  transition: opacity .5s var(--ease);
}
.scroll-hint__mouse { width: 24px; height: 38px; border: 1.5px solid var(--gold-deep); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint__wheel { width: 3px; height: 7px; border-radius: 3px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0%{transform:translateY(0); opacity:1} 70%{transform:translateY(10px); opacity:0} 100%{opacity:0} }

/* =========================================================
   8. MARQUEE
   ========================================================= */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--bg-2); padding: 22px 0; }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: 0.06em; color: var(--ivory-dim); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   9. PILIERS
   ========================================================= */
.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--bg); padding: clamp(28px, 4vw, 46px); transition: background .5s var(--ease); position: relative; }
.pillar:hover { background: var(--bg-3); }
.pillar__num { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold); letter-spacing: 0.1em; }
.pillar h3 { font-size: 1.5rem; margin: 18px 0 12px; }
.pillar p { color: var(--ivory-dim); font-size: 0.96rem; }
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-grad); transition: width .6s var(--ease); }
.pillar:hover::after { width: 100%; }

/* =========================================================
   10. RÉALISATIONS — trésor sous vitre
   ========================================================= */
.works { padding: 0; }

/* Scène 3D (tapis rouge + vitrine-trésor) */
/* touch-action pan-y : le tap brise la vitre, mais le glissé vertical
   continue de faire défiler la page sur mobile (sinon on reste coincé). */
.scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-y; }
.scene3d__overlay { position: absolute; top: 13vh; left: 0; right: 0; text-align: center; padding: 0 var(--pad); z-index: 2; pointer-events: none; transition: opacity .35s var(--ease); }
.scene3d__overlay .treasure__eyebrow { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.scene3d__overlay .treasure__title { font-size: clamp(2rem, 6vw, 4.5rem); }
.scene3d__hint {
  position: absolute; bottom: 7vh; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ivory-dim);
  white-space: nowrap; transition: opacity .5s var(--ease);
}
.scene3d__hint span::before { content: "✦ "; color: var(--gold); }
.treasure { height: 250vh; position: relative; background: radial-gradient(100% 80% at 50% 40%, var(--bg-3), var(--bg)); }
.treasure__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.treasure__stage { text-align: center; position: relative; z-index: 2; width: 100%; padding: 0 var(--pad); }
.treasure__eyebrow { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.treasure__title { font-size: clamp(2rem, 6vw, 4.5rem); margin-bottom: 40px; }

.treasure__case { position: relative; width: min(680px, 86vw); aspect-ratio: 16/10; margin: 0 auto; border-radius: var(--radius-lg); }
.treasure__media { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.treasure__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) saturate(1.05); }
.treasure__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; color: #ffffff; background: var(--gold-grad);
  box-shadow: 0 0 0 10px rgba(43,134,255,0.12), 0 20px 50px -10px rgba(0,0,0,0.7);
}

/* Vitre */
.glass {
  position: absolute; inset: -2px; border-radius: var(--radius-lg); z-index: 3;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(2px); overflow: hidden;
  box-shadow: inset 0 0 60px rgba(255,255,255,0.08);
}
.glass__cracks { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }
.glass__glare { position: absolute; top: -60%; left: -20%; width: 60%; height: 220%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent); }
.glass__hint { position: absolute; bottom: -44px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-dim); white-space: nowrap; }

/* Éclats */
.shards { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.shard { position: absolute; background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(43,134,255,0.2)); border: 1px solid rgba(255,255,255,0.4); will-change: transform, opacity; }

/* Galerie */
.gallery { background: var(--bg); padding-block: clamp(60px, 9vh, 120px) clamp(80px,12vh,140px); position: relative; z-index: 5; }
.gallery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 48px; }

.catbar { display: flex; align-items: center; gap: 10px; }
.catbar__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ivory); transition: all .4s var(--ease); flex-shrink: 0;
}
.catbar__arrow:hover { background: var(--gold); color: #ffffff; border-color: var(--gold); transform: scale(1.08); }
.catbar__track {
  display: flex; gap: 8px; overflow: hidden; max-width: min(60vw, 560px); scroll-behavior: smooth;
  /* Fondu sur les bords : une bulle coupée s'estompe en douceur au lieu de
     laisser un petit trait clair (bord de bulle tranché) sur le côté */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38px, #000 calc(100% - 38px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38px, #000 calc(100% - 38px), transparent 100%);
}
.catbar__chip {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  /* Bordure teintée saphir (et non blanche) : plus de « trait blanc » flottant
     quand seule la tranche d'une bulle voisine reste visible au bord */
  white-space: nowrap; height: 42px; padding: 0 22px; border-radius: 100px; border: 1px solid rgba(130, 184, 255, 0.14);
  font-size: 0.85rem; font-weight: 500; color: var(--ivory-dim); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); flex-shrink: 0;
}
.catbar__chip:hover { border-color: var(--gold-deep); color: var(--ivory); }
/* background-origin: border-box → le dégradé couvre AUSSI la zone de la bordure
   transparente ; sans ça il se répète et laisse un trait bleu clair au bord droit */
.catbar__chip.is-active { background: var(--gold-grad); background-origin: border-box; color: #ffffff; border-color: transparent; font-weight: 700; }

/* Reel horizontal */
.reel { overflow: hidden; padding-block: 20px; cursor: grab; touch-action: pan-y; }
.reel:active { cursor: grabbing; }
/* align-items: flex-start = chaque carte garde SON format (16:9 ou Short).
   Sans ça, les cartes 16:9 s'étirent à la hauteur des Shorts verticaux
   placés à côté et deviennent presque carrées. */
.reel__track { display: flex; align-items: flex-start; gap: 28px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.reel__hint { text-align: center; margin-top: 26px; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
/* Catégorie sans vidéo pour l'instant */
.reel__empty {
  padding: 70px var(--pad); color: var(--ivory-dim); font-size: 0.95rem; letter-spacing: 0.04em;
  animation: workIn .55s var(--ease) backwards;
}
.reel__empty span { color: var(--gold); margin-right: 8px; }

.work {
  position: relative; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.work--16x9 { width: clamp(300px, 46vw, 620px); aspect-ratio: 16/9; }
.work--9x16 { width: clamp(220px, 28vw, 340px); aspect-ratio: 9/16; }
.work--1x1  { width: clamp(280px, 36vw, 460px); aspect-ratio: 1/1; }
/* Lueur de chargement : visible tant que la miniature n'est pas arrivée */
.work__media {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--surface) 40%, rgba(130,184,255,0.08) 50%, var(--surface) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }
/* Apparition en cascade des miniatures au changement de catégorie */
.reel__track.is-in .work { animation: workIn .55s var(--ease) backwards; }
.reel__track.is-in .work:nth-child(2) { animation-delay: .07s; }
.reel__track.is-in .work:nth-child(3) { animation-delay: .14s; }
.reel__track.is-in .work:nth-child(4) { animation-delay: .21s; }
.reel__track.is-in .work:nth-child(n+5) { animation-delay: .28s; }
@keyframes workIn { from { opacity: 0; transform: translateY(22px) scale(0.96); } }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); filter: brightness(0.78) saturate(1.05); }
.work:hover { border-color: var(--gold); box-shadow: 0 30px 70px -28px rgba(0,0,0,0.8); }
.work:hover .work__media img { transform: scale(1.06); filter: brightness(0.95); }
.work__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,8,10,0.92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.work__cat { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.work__title { font-family: var(--font-display); font-size: 1.25rem; }
.work__meta { font-size: 0.8rem; color: var(--ivory-dim); margin-top: 4px; }
.work__play {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(8,8,10,0.5); backdrop-filter: blur(8px); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ivory);
  transition: all .18s var(--ease);   /* réaction quasi instantanée */
}
/* Dès que le curseur entre sur la vignette, le bouton passe au bleu :
   on voit immédiatement que toute la carte est cliquable. */
.work:hover .work__play {
  background: var(--gold-grad); background-origin: border-box;
  color: #fff; border-color: transparent; transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(43, 134, 255, 0.18), 0 10px 26px -8px rgba(43, 134, 255, 0.85);
}
/* Voile saphir très léger sur toute la vignette au survol */
.work__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 40%, rgba(43,134,255,0.16), transparent 70%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.work:hover .work__media::after { opacity: 1; }
.work__badge { position: absolute; top: 18px; left: 18px; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: rgba(8,8,10,0.6); border: 1px solid var(--line); color: var(--gold-soft); }

/* Pastille crédit monteur : une icône ⓘ seule, tout en bas de la carte.
   Le nom du monteur n'apparaît QU'AU CLIC (le visiteur découvre l'info). */
.work__credit {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border-radius: 100px; cursor: pointer;
  background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line);
  color: var(--ivory-dim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0.75; overflow: hidden;
  transition: width .4s var(--ease), opacity .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.work:hover .work__credit { opacity: 1; }
.work__credit:hover { color: #fff; border-color: var(--gold); background: rgba(43, 134, 255, 0.3); }
.work__credit:active { transform: scale(0.94); }
.work__credit svg { flex-shrink: 0; }
.work__credit-text {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  transition: max-width .4s var(--ease), margin-left .4s var(--ease), opacity .25s var(--ease);
}
/* Ouverte : la pastille s'élargit et révèle « Made by … » */
.work__credit.is-open {
  width: auto; padding: 0 13px; gap: 7px; opacity: 1; color: #fff; border-color: transparent;
  background: var(--gold-grad); background-origin: border-box;
  box-shadow: 0 6px 20px -6px rgba(43, 134, 255, 0.7);
}
.work__credit.is-open .work__credit-text { max-width: 160px; margin-left: 1px; opacity: 1; }
@media (max-width: 720px) {
  .work__credit { right: 10px; bottom: 10px; width: 28px; height: 28px; }
  .work__credit.is-open { width: auto; padding: 0 11px; }
  .work__credit-text { font-size: 0.56rem; }
}

/* =========================================================
   11. SERVICES
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.service {
  position: relative; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: linear-gradient(160deg, var(--bg-3), var(--bg));
  overflow: hidden; transition: transform .6s var(--ease), border-color .5s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--gold); }
.service::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold-grad); opacity: 0; transition: opacity .5s var(--ease); }
.service:hover::before { opacity: 1; }
.service__icon { font-size: 1.7rem; color: var(--gold); margin-bottom: 18px; display: block; }
.service__icon svg { display: block; }
.service h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service p { color: var(--ivory-dim); font-size: 0.95rem; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service__tags span { font-size: 0.72rem; padding: 5px 11px; border-radius: 100px; background: rgba(43,134,255,0.08); border: 1px solid var(--line); color: var(--gold-soft); }

/* =========================================================
   12. AVIS CLIENTS — ordinateur qui pivote
   ========================================================= */
.reviews { padding: 0; height: 230vh; }
.reviews__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.reviews__sticky > .container { position: relative; height: 100%; }
.reviews .section__head { position: absolute; top: 7vh; left: var(--pad); right: var(--pad); z-index: 3; }
.mac3d { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.mac3d__canvas { width: 100%; height: 100%; display: block; }
.mac__display { /* l'écran : zone de défilement des avis */ }
.laptop__reviews { will-change: transform; }
/* MacBook 3D (CSS) — fermé de dos, s'ouvre + pivote au scroll */
.mac { width: min(600px, 82vw); margin: 30px auto 0; transform-style: preserve-3d; }
.mac__device {
  position: relative; width: 100%; transform-style: preserve-3d;
  transform: translateY(var(--ty, 0px)) rotateX(8deg) rotateY(var(--ry, 180deg)) scale(var(--s, 0.84)); will-change: transform;
}
.mac__lid {
  position: relative; width: 100%; aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform-origin: center bottom; transform: rotateX(var(--open, -86deg));
}
.mac__display, .mac__lid-back { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; overflow: hidden; }
.mac__display { background: radial-gradient(130% 120% at 50% 0%, #141a28, #070a12); border: 9px solid #08080b; box-shadow: inset 0 0 30px rgba(0,0,0,0.65); }
.mac__lid-back { transform: rotateY(180deg); background: linear-gradient(150deg, #2c3441 0%, #1a2029 60%, #10151c 100%); border: 1px solid #2a323e; display: grid; place-items: center; }
.mac__lid-back::after { content: ""; width: 20%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a636f, #282f39); box-shadow: 0 0 34px rgba(120,150,200,0.22); }
.mac__base {
  position: absolute; left: -2%; top: 99%; width: 104%; aspect-ratio: 16 / 10.5;
  transform-origin: center top; transform: rotateX(-80deg);
  background: linear-gradient(180deg, #232a34 0%, #11151b 72%); border-radius: 16px;
  box-shadow: 0 50px 70px -24px rgba(0,0,0,0.85);
}
.mac__keyboard {
  position: absolute; left: 7%; right: 7%; top: 12%; height: 54%; border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, #2b323d 0 5.4%, #13171e 5.4% 6.2%),
    repeating-linear-gradient(0deg, #2b323d 0 15%, #13171e 15% 17%);
  background-blend-mode: multiply; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.mac__trackpad {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: 36%; height: 26%;
  border-radius: 9px; background: linear-gradient(180deg, #1d242e, #12161d); border: 1px solid #2b323d;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}
.laptop__reviews { position: absolute; inset: 0; padding: 6%; display: flex; flex-direction: column; gap: 11px; }

.review-card { background: rgba(22,22,29,0.9); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; text-align: left; }
.review-card__stars { color: var(--gold); letter-spacing: 2px; font-size: 0.85rem; }
.review-card__text { font-size: 0.92rem; color: var(--ivory); margin: 8px 0; }
.review-card__author { font-size: 0.8rem; color: var(--ivory-dim); }
.review-card__author b { color: var(--gold-soft); font-weight: 700; }

/* =========================================================
   13. À PROPOS
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
@media (min-width: 920px) { .about__grid { grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: center; } }
.about__intro p { color: var(--ivory-dim); margin-bottom: 18px; max-width: 60ch; }
.about__lead { font-size: 1.2rem; color: var(--ivory) !important; font-weight: 500; }
.about__card { padding: 36px; border-radius: var(--radius-lg); background: var(--gold-grad); color: #ffffff; box-shadow: 0 30px 60px -24px rgba(43,134,255,0.5); }
.about__card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.about__card p { font-size: 1.05rem; font-weight: 500; }
.about__values-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 36px; text-align: center; }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.value { padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line-soft); text-align: center; background: var(--bg-2); transition: all .5s var(--ease); }
.value:hover { border-color: var(--gold); transform: translateY(-5px); }
.value__icon { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: 14px; }
.value h4 { font-size: 1.2rem; margin-bottom: 8px; }
.value p { color: var(--ivory-dim); font-size: 0.92rem; }

/* =========================================================
   14. F.A.Q
   ========================================================= */
.faq__wrap { max-width: 880px; }
.faq__list { display: flex; flex-direction: column; gap: 16px; counter-reset: faq; }
.faq__item {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg)); overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* barre d'accent qui se déploie à l'ouverture */
.faq__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold-grad); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.faq__item:hover { border-color: var(--gold-deep); transform: translateX(3px); }
.faq__item[open] { border-color: var(--gold); box-shadow: 0 22px 55px -26px rgba(43,134,255,0.45); }
.faq__item[open]::before { transform: scaleY(1); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 28px; display: flex; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2.3vw, 1.3rem); font-weight: 600; transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  counter-increment: faq; content: "0" counter(faq);
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--gold); flex-shrink: 0; min-width: 1.7em; transition: color .3s var(--ease);
}
.faq__item[open] summary { color: var(--gold-soft); }
.faq__plus {
  position: relative; width: 34px; height: 34px; flex-shrink: 0; margin-left: auto;
  border-radius: 50%; border: 1px solid var(--line); transition: all .45s var(--ease);
}
.faq__item[open] .faq__plus { background: var(--gold-grad); background-origin: border-box; border-color: transparent; transform: rotate(180deg); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); border-radius: 2px; transition: all .45s var(--ease); }
.faq__plus::before { width: 13px; height: 2px; transform: translate(-50%, -50%); }
.faq__plus::after { width: 2px; height: 13px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: #fff; }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.faq__item[open] .faq__answer { max-height: 500px; }
.faq__answer p { color: var(--ivory-dim); line-height: 1.75; max-width: 64ch; margin: 0; padding: 2px 28px 28px; }

/* =========================================================
   15. CONTACT
   ========================================================= */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 920px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; } }
.contact__sub { color: var(--ivory-dim); margin: 18px 0 30px; font-size: 1.05rem; max-width: 44ch; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__info li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.contact__info span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__info a, .contact__info strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-soft); }

.contact__form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.field { position: relative; margin-bottom: 22px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 18px 16px 8px; color: var(--ivory); font-family: var(--font-body); font-size: 1rem; resize: vertical;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field textarea { padding-top: 22px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(43,134,255,0.12); }
.field label {
  position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none;
  transition: all .3s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.contact__feedback { margin-top: 16px; text-align: center; font-size: 0.95rem; min-height: 1.4em; transition: all .4s; }
.contact__feedback.is-success { color: var(--gold-soft); }
.contact__feedback.is-error { color: #e07a6b; }
.contact__form.is-sent { position: relative; }

/* =========================================================
   16. FOOTER
   ========================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(60px, 8vh, 90px); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; } }
.footer__logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.1em; }
.footer__logo em { font-style: normal; color: var(--gold); }
.footer__brand p { color: var(--ivory-dim); margin-top: 14px; max-width: 32ch; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--ivory-dim); transition: color .3s; width: fit-content; }
.footer__nav a:hover { color: var(--gold); }
.footer__social-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 16px; }
.footer__icons { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__icons a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ivory-dim); transition: all .4s var(--ease);
}
.footer__icons a:hover { background: var(--gold); color: #ffffff; border-color: var(--gold); transform: translateY(-4px); }
.footer__icons a svg { width: 18px; height: 18px; fill: currentColor; }
.footer__tagline { margin-top: 12px; }
.footer__tagline .script { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--gold-soft); line-height: 1; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 0.85rem; color: var(--muted); }
.footer__legal a:hover { color: var(--gold); }

/* =========================================================
   17. REVEAL & ANIMATIONS AU SCROLL
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   18. RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .hero { height: 240vh; }
  .hero__logo { width: clamp(76px, 12vw, 116px); }
}
@media (max-width: 720px) {
  .hero__logo { width: clamp(70px, 18vw, 96px); }
  .hero__content { margin-top: 16vh; }
  .gallery__head { flex-direction: column; align-items: flex-start; }
  /* Le sélecteur occupe toute la largeur : plus de flèche coupée au bord */
  .catbar { width: 100%; }
  .catbar__track { flex: 1; min-width: 0; max-width: none; }
  .door__panel::before { display: none; }

  /* ---- Mobile apaisé (esprit Apple) : simple, aéré, sans friction ---- */
  /* Les séquences scrollées gardent leur effet mais deviennent courtes :
     la porte s'ouvre vite, la caméra avance vite, l'ordinateur s'ouvre vite. */
  .hero { height: 150vh; }
  .treasure { height: 160vh; }
  .reviews { height: 150vh; }
  /* Les trois arguments s'empilent calmement, sans séparateurs */
  .hero__lead { flex-direction: column; gap: 8px; letter-spacing: 0.16em; margin-bottom: 32px; }
  .hero__lead-sep { display: none; }
  /* Boutons pleine largeur, faciles au pouce, empilés */
  .hero__actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero__actions .btn { width: min(100%, 320px); }
  .btn--block { max-width: none; }
}

/* =========================================================
   MOBILE COMPACT — tout est réduit d'un cran pour caser plus
   d'éléments à l'écran : typo, marges, boutons, cartes.
   ========================================================= */
@media (max-width: 720px) {
  html { font-size: 15px; }

  /* Sections : moins d'air vertical, plus de contenu visible */
  .section { padding-block: clamp(52px, 8vh, 84px); }
  .section__head { margin-bottom: 28px; }
  .section__tag { font-size: 0.66rem; margin-bottom: 10px; }
  .section__title { font-size: clamp(1.65rem, 7vw, 2.3rem); }
  .section__sub { font-size: 0.92rem; margin-top: 10px; }

  /* Hero resserré */
  .hero__logo { width: clamp(56px, 14vw, 76px); margin-bottom: 10px; }
  .hero__eyebrow { font-size: 0.64rem; margin-bottom: 13px; }
  .hero__title { font-size: clamp(1.75rem, 7.4vw, 2.5rem); margin-bottom: 14px; }
  .hero__lead { font-size: 0.68rem; gap: 6px; margin-bottom: 22px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: min(100%, 270px); }

  /* Boutons plus fins */
  .btn { padding: 12px 22px; font-size: 0.85rem; }

  /* Scène 3D : titres réduits */
  .scene3d__overlay .treasure__title { font-size: clamp(1.65rem, 7.2vw, 2.5rem); }
  .scene3d__overlay .treasure__eyebrow { font-size: 0.66rem; }
  .scene3d__hint, .reel__hint { font-size: 0.62rem; }

  /* Galerie : cartes plus petites → on en voit plusieurs à la fois */
  .gallery { padding-block: 40px 60px; }
  .gallery__head { margin-bottom: 24px; gap: 16px; }
  .catbar__chip { height: 36px; padding: 0 15px; font-size: 0.76rem; }
  .catbar__arrow { width: 36px; height: 36px; }
  .work--16x9 { width: min(76vw, 420px); }
  .work--9x16 { width: min(44vw, 210px); }
  .work--1x1  { width: min(60vw, 310px); }
  .work__overlay { padding: 13px; }
  .work__cat { font-size: 0.58rem; margin-bottom: 5px; }
  .work__title { font-size: 1rem; }
  .work__meta { font-size: 0.7rem; }
  .work__play { width: 36px; height: 36px; top: 11px; right: 11px; }
  .work__badge { font-size: 0.54rem; padding: 4px 8px; top: 11px; left: 11px; }
  .reel__track { gap: 14px; }
  .reel__hint { margin-top: 14px; }

  /* Services : cartes denses */
  .services__grid { gap: 10px; }
  .service { padding: 18px 16px; }
  .service__icon { font-size: 1.35rem; margin-bottom: 10px; }
  .service h3 { font-size: 1.1rem; margin-bottom: 6px; }
  .service p { font-size: 0.86rem; }
  .service__tags { gap: 6px; margin-top: 12px; }
  .service__tags span { font-size: 0.62rem; padding: 4px 9px; }

  /* À propos */
  .about__grid { gap: 22px; margin-bottom: 36px; }
  .about__lead { font-size: 1.02rem; }
  .about__intro p { margin-bottom: 12px; font-size: 0.92rem; }
  .about__card { padding: 22px; }
  .about__card h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .about__card p { font-size: 0.94rem; }

  /* FAQ compacte */
  .faq__list { gap: 10px; }
  .faq__item summary { padding: 15px 16px; gap: 12px; font-size: 0.98rem; }
  .faq__plus { width: 27px; height: 27px; }
  .faq__plus::before { width: 11px; }
  .faq__plus::after { height: 11px; }
  .faq__answer p { padding: 0 16px 16px; font-size: 0.9rem; line-height: 1.6; }

  /* Contact serré */
  .contact__grid { gap: 26px; }
  .contact__sub { font-size: 0.92rem; margin: 10px 0 18px; }
  .contact__info { gap: 10px; }
  .contact__info li { padding-bottom: 10px; }
  .contact__info a, .contact__info strong { font-size: 0.98rem; }
  .contact__form { padding: 18px 15px; }
  .field { margin-bottom: 12px; }
  /* 16px mini sur les champs : évite le zoom automatique d'iOS à la saisie */
  .field input, .field textarea { font-size: 16px; padding: 16px 14px 7px; }
  .field label { font-size: 0.92rem; left: 14px; top: 14px; }

  /* Pied de page dense */
  .footer { padding-top: 40px; }
  .footer__top { gap: 24px; padding-bottom: 26px; }
  .footer__logo { font-size: 1.2rem; }
  .footer__tagline .script { font-size: 1.35rem; }
  .footer__nav { gap: 7px; font-size: 0.9rem; }
  .footer__icons { gap: 8px; }
  .footer__icons a { width: 37px; height: 37px; }
  .footer__icons a svg { width: 14px; height: 14px; }
  /* Espace réservé en bas : le bouton son flottant ne recouvre plus les liens légaux */
  .footer__bottom { padding-block: 16px 84px; font-size: 0.76rem; }

  /* Navigation fine */
  .nav { padding: 12px 18px; }
  .nav__logo-mark { width: 31px; height: 31px; }
  .nav__logo-text { font-size: 0.84rem; }
  .nav__mobile a { font-size: 1.08rem; padding: 12px 2px; }
  .nav__mobile-login { margin-top: 16px; padding: 10px 22px; font-size: 0.92rem; }
}

/* Écrans bas (téléphone en paysage) : le hero se compacte pour tenir */
@media (max-height: 560px) {
  .hero__logo { width: 64px; margin-bottom: 8px; }
  .hero__eyebrow { margin-bottom: 10px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 18px; }
  .hero__content { margin-top: 0; }
  .scroll-hint { bottom: 14px; }
}

/* Hauteurs d'écran mobiles : 100svh ignore la barre d'adresse du navigateur
   (sinon le bas des sections plein écran est masqué au chargement). */
@supports (height: 100svh) {
  .hero__sticky, .treasure__sticky, .reviews__sticky { height: 100svh; }
}

/* Indications adaptées au tactile (souris = molette, doigt = glisser) */
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-mouse { display: none; }
  .only-touch { display: inline; }
  .scroll-hint__mouse { display: none; }
}

/* =========================================================
   19. ACCESSIBILITÉ — préférence mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero { height: 100vh; }
  .hero__sticky { position: relative; }
  .treasure { height: auto; }
  .treasure__sticky { position: relative; height: auto; padding-block: 80px; }
  [data-reveal] { opacity: 1; transform: none; }
  .door { display: none; }
}

/* Classe utilitaire : bloque le scroll pendant le préloader */
body.is-locked { overflow: hidden; height: 100vh; }

/* Compatibilité iPhone/Safari : les flous d'arrière-plan exigent le préfixe -webkit- */
.nav.is-scrolled { -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav__menu { -webkit-backdrop-filter: blur(20px); }
.nav__mobile { -webkit-backdrop-filter: blur(22px); }
.btn--ghost { -webkit-backdrop-filter: blur(6px); }
.glass { -webkit-backdrop-filter: blur(2px); }
.work__play { -webkit-backdrop-filter: blur(8px); }
.lightbox { -webkit-backdrop-filter: blur(14px); }
.sound-toggle { -webkit-backdrop-filter: blur(10px); }
.cookie { -webkit-backdrop-filter: blur(14px); }

/* =========================================================
   20. LIGHTBOX VIDÉO
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: rgba(4, 4, 6, 0.86); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .4s var(--ease); padding: var(--pad);
}
.lightbox.is-open { opacity: 1; }
.lightbox__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.9);
  transform: scale(0.94); transition: transform .5s var(--ease-bounce);
}
.lightbox.is-open .lightbox__frame { transform: scale(1); }
/* Enchaînement d'une vidéo à l'autre : le cadre glisse, le lecteur ne se ferme jamais */
.lightbox.is-open .lightbox__frame.is-out-left  { transform: translateX(-6%) scale(0.94); opacity: 0; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.lightbox.is-open .lightbox__frame.is-out-right { transform: translateX(6%) scale(0.94);  opacity: 0; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.lightbox.is-open .lightbox__frame.is-in-right  { transform: translateX(6%) scale(0.94);  opacity: 0; transition: none; }
.lightbox.is-open .lightbox__frame.is-in-left   { transform: translateX(-6%) scale(0.94); opacity: 0; transition: none; }
.lightbox__frame.work--16x9 { width: min(1100px, 92vw); aspect-ratio: 16/9; }
/* La hauteur est aussi plafonnée par la largeur d'écran (téléphones) : la vidéo verticale ne déborde jamais */
.lightbox__frame.work--9x16 { width: auto; height: min(84vh, 880px, calc(92vw * 16 / 9)); aspect-ratio: 9/16; }
.lightbox__frame.work--1x1  { width: min(720px, 92vw); aspect-ratio: 1/1; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__placeholder { position: relative; width: 100%; height: 100%; }
.lightbox__placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.lightbox__placeholder p {
  position: absolute; inset: auto 0 0 0; padding: 22px; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: var(--ivory-dim); font-size: 0.9rem;
}
.lightbox__placeholder code { color: var(--gold-soft); }
/* =========================================================
   CONTRÔLES DU LECTEUR — pastilles rondes à menu déroulant
   Une icône par action ; les choix multiples (reculer, avancer,
   vitesse, qualité) se déroulent au clic. Rien ne se chevauche.
   ========================================================= */
.lightbox__ctrl {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 8px;
  opacity: 0.75; transition: opacity .3s var(--ease);
}
.lightbox__frame:hover .lightbox__ctrl, .lightbox__ctrl:focus-within { opacity: 1; }

.ctrl-pod { position: relative; }

.ctrl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(8, 8, 10, 0.72); border: 1px solid var(--line);
  color: var(--ivory-dim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .28s var(--ease);
}
.ctrl-btn:hover { color: #fff; border-color: var(--gold); background: rgba(43, 134, 255, 0.3); }
.ctrl-btn:active { transform: scale(0.93); }
.ctrl-pod.is-open .ctrl-btn {
  color: #fff; border-color: transparent;
  background: var(--gold-grad); background-origin: border-box;
  box-shadow: 0 6px 20px -6px rgba(43, 134, 255, 0.7);
}
.ctrl-val { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; }

/* Bouton central lecture / pause */
.ctrl-btn--play { width: 46px; height: 46px; color: var(--ivory); background: rgba(43, 134, 255, 0.28); border-color: var(--gold-deep); }
.ctrl-btn--play .ico-play { display: none; }
.ctrl-btn--play.is-paused .ico-pause { display: none; }
.ctrl-btn--play.is-paused .ico-play { display: block; }

/* Menu déroulant */
.ctrl-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 14px;
  background: rgba(10, 12, 18, 0.93); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.85);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.ctrl-pod.is-open .ctrl-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.ctrl-menu button {
  min-width: 72px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  font-size: 0.75rem; font-weight: 700; color: var(--ivory-dim); white-space: nowrap;
  transition: all .2s var(--ease);
}
.ctrl-menu button:hover { color: #fff; background: rgba(43, 134, 255, 0.24); }
.ctrl-menu button.is-on { color: #fff; background: var(--gold-grad); background-origin: border-box; }

/* Mobile : pastilles un peu plus compactes, tout reste sur une ligne */
@media (max-width: 720px) {
  .lightbox__ctrl { top: 12px; gap: 6px; opacity: 1; }
  .ctrl-btn { width: 36px; height: 36px; }
  .ctrl-btn--play { width: 42px; height: 42px; }
  .ctrl-val { font-size: 0.64rem; }
  .ctrl-menu button { min-width: 64px; padding: 9px 12px; font-size: 0.72rem; }
  .lightbox__close { top: 10px; right: 12px; width: 38px; height: 38px; }
}

/* Pastille crédit DANS le lecteur vidéo : icône ⓘ en bas à droite,
   le nom du monteur n'apparaît qu'au clic. */
.lightbox__credit {
  /* En HAUT à DROITE, sous le bouton fermer : n'encombre ni les contrôles
     (en haut au centre) ni les flèches de navigation (sur les côtés). */
  position: absolute; right: 16px; top: 16px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 100px; cursor: pointer;
  background: rgba(8, 8, 10, 0.72); border: 1px solid var(--line);
  color: var(--ivory-dim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0.7; overflow: hidden;
  transition: width .4s var(--ease), opacity .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.lightbox__frame:hover .lightbox__credit { opacity: 1; }
.lightbox__credit:hover { color: #fff; border-color: var(--gold); background: rgba(43, 134, 255, 0.3); }
.lightbox__credit:active { transform: scale(0.94); }
.lightbox__credit svg { flex-shrink: 0; }
.lightbox__credit-text {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  transition: max-width .4s var(--ease), margin-left .4s var(--ease), opacity .25s var(--ease);
}
.lightbox__credit.is-open {
  width: auto; padding: 0 14px; gap: 8px; opacity: 1; color: #fff; border-color: transparent;
  background: var(--gold-grad); background-origin: border-box;
  box-shadow: 0 6px 22px -6px rgba(43, 134, 255, 0.75);
}
.lightbox__credit.is-open .lightbox__credit-text { max-width: 180px; margin-left: 1px; opacity: 1; }
@media (max-width: 720px) {
  .lightbox__credit { right: 12px; top: 12px; width: 30px; height: 30px; }
  .lightbox__credit.is-open { width: auto; padding: 0 12px; }
  .lightbox__credit-text { font-size: 0.6rem; }
}

/* Flèches latérales : vidéo précédente / suivante, sans quitter le lecteur */
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  display: grid; place-items: center; cursor: pointer;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(8, 8, 10, 0.55); border: 1px solid var(--line); color: var(--ivory);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0.45;
  transition: opacity .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease-bounce);
}
.lightbox:hover .lightbox__nav { opacity: 0.85; }
.lightbox__nav:hover {
  opacity: 1; color: #fff; border-color: transparent;
  background: var(--gold-grad); background-origin: border-box;
  box-shadow: 0 10px 30px -8px rgba(43, 134, 255, 0.8);
}
.lightbox__nav--prev { left: clamp(10px, 3vw, 40px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 40px); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-4px) scale(1.06); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(4px) scale(1.06); }
.lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
@media (max-width: 720px) {
  .lightbox__nav { width: 44px; height: 44px; opacity: 0.8; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

.lightbox__close {
  position: absolute; top: 22px; right: 26px; z-index: 6; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(8,8,10,0.6); color: var(--ivory); font-size: 1.1rem;
  transition: all .4s var(--ease);
}
.lightbox__close:hover { background: var(--gold); color: #ffffff; transform: rotate(90deg); }

/* =========================================================
   21. BOUTON SON (mute / unmute)
   ========================================================= */
.sound-toggle {
  position: fixed; left: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(8,8,10,0.55); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: border-color .4s var(--ease), transform .4s var(--ease); overflow: hidden;
}
.sound-toggle:hover { border-color: var(--gold); transform: scale(1.08); }
.sound-toggle__bars { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.sound-toggle__bars i { width: 2.5px; height: 5px; border-radius: 2px; background: var(--gold); }
.sound-toggle.is-on .sound-toggle__bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(2) { animation-delay: .18s; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(3) { animation-delay: .36s; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(4) { animation-delay: .12s; }
.sound-toggle:not(.is-on) .sound-toggle__bars i { height: 4px; opacity: 0.45; }
.sound-toggle:not(.is-on)::after {
  content: ""; position: absolute; width: 132%; height: 1.5px; background: var(--muted); transform: rotate(-45deg);
}
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* =========================================================
   22. ACCESSIBILITÉ — lien d'évitement + focus clavier
   ========================================================= */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 10001;
  background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 700; font-size: 0.9rem; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; outline: none; }
/* Anneau de focus net et cohérent au clavier (n'apparaît pas à la souris) */
:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px; border-radius: 4px;
}
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-soft); outline-offset: 3px;
}

/* =========================================================
   23. PORTE D'ACCUEIL — connexion Google / invité
   ========================================================= */
body.gate-locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center;
  padding: var(--pad); opacity: 0; transition: opacity .5s var(--ease);
}
/* Fermée = vraiment retirée : sinon `display:grid` écrase l'attribut hidden
   et cette couche invisible bloque TOUS les clics du site. */
.gate[hidden] { display: none; }
.gate.is-open { opacity: 1; }
.gate__backdrop {
  position: absolute; inset: 0; background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.gate__card {
  position: relative; width: min(440px, 100%); text-align: center;
  padding: clamp(30px, 5vw, 46px) clamp(24px, 5vw, 40px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.96), rgba(11, 15, 26, 0.96));
  box-shadow: 0 50px 130px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 0 80px -30px rgba(43, 134, 255, 0.5);
  transform: translateY(18px) scale(0.97); opacity: 0;
  transition: transform .6s var(--ease-bounce), opacity .5s var(--ease);
}
.gate.is-open .gate__card { transform: translateY(0) scale(1); opacity: 1; }
.gate__close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory-dim); font-size: 0.95rem;
  border: 1px solid var(--line-soft); transition: all .3s var(--ease);
}
.gate__close:hover { color: var(--ivory); border-color: var(--gold-soft); transform: rotate(90deg); }
.gate__logo { width: 62px; height: auto; margin: 0 auto 16px; filter: drop-shadow(0 8px 22px rgba(43, 134, 255, 0.45)); }
.gate__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 10px;
}
.gate__title { font-size: clamp(1.5rem, 4.4vw, 2rem); margin-bottom: 12px; }
.gate__sub { color: var(--ivory-dim); font-size: 0.95rem; line-height: 1.55; margin: 0 auto 26px; max-width: 32ch; }
.gate__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gate__google { min-height: 44px; display: flex; justify-content: center; }
.gate__google-fallback,
.gate__guest {
  width: 100%; max-width: 300px; min-height: 46px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; transition: all .3s var(--ease);
}
.gate__google-fallback {
  background: #11151f; color: var(--ivory); border: 1px solid var(--line);
}
.gate__google-fallback:hover { border-color: var(--gold); transform: translateY(-1px); }
.gate__guest {
  background: transparent; color: var(--ivory-dim); border: 1px solid var(--line-soft);
}
.gate__guest:hover { color: var(--ivory); border-color: var(--gold-soft); background: rgba(43, 134, 255, 0.06); }
.gate__note { margin-top: 22px; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.gate__note.is-warn { color: var(--gold-soft); }

/* Pastille « compte » dans la navigation */
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(43, 134, 255, 0.08);
  color: var(--ivory); font-size: 0.85rem; font-weight: 600; transition: all .3s var(--ease);
}
.account-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.account-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.account-chip__initial {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #fff; font-size: 0.8rem; font-weight: 800;
}
.account-chip__name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   24. BANDEAU COOKIES (RGPD)
   ========================================================= */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 18px; margin: 0 auto; max-width: 680px;
  transform: translateY(180%); z-index: 940;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.97), rgba(11, 15, 26, 0.97));
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  transition: transform .5s var(--ease-bounce);
}
.cookie.is-open { transform: translateY(0); }
.cookie__text { font-size: 0.84rem; color: var(--ivory-dim); line-height: 1.5; flex: 1 1 280px; }
.cookie__link { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie__btn { border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.85rem; transition: all .3s var(--ease); }
.cookie__btn--ghost { background: transparent; border: 1px solid var(--line-soft); color: var(--ivory-dim); }
.cookie__btn--ghost:hover { color: var(--ivory); border-color: var(--gold-soft); }
.cookie__btn--ok { background: var(--gold-grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(43, 134, 255, 0.8); }
.cookie__btn--ok:hover { transform: translateY(-1px); filter: brightness(1.08); }

@media (max-width: 540px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie__actions { justify-content: center; }
}
/* Tant que le bandeau est affiché, le bouton son remonte au-dessus (sinon il est recouvert sur mobile) */
body.cookie-open .sound-toggle { bottom: calc(var(--cookie-h, 96px) + 32px); }

/* =========================================================
   25. PAGE LÉGALE (mentions & confidentialité)
   ========================================================= */
.legal { padding-top: clamp(110px, 16vh, 160px); min-height: 70vh; }
.legal__wrap { max-width: 820px; }
.legal h1.section__title { margin: 10px 0 14px; }
.legal__block { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.legal__block h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 26px 0 10px; }
.legal__block h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--gold-soft); margin: 20px 0 6px; }
.legal__block p { color: var(--ivory-dim); margin-bottom: 10px; }
.legal__block ul { margin: 8px 0 10px; padding-left: 0; }
.legal__block li { color: var(--ivory-dim); padding: 4px 0 4px 18px; position: relative; }
.legal__block li::before { content: "•"; color: var(--gold); position: absolute; left: 2px; }
.legal__block a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-top: 44px; }
