/* ==========================================================================
   FULL EXCELLENCE DETAILING — Feuille de style principale
   Charte : noir profond / or #AA9763 / blanc cassé
   ========================================================================== */

/* ---------- 1. Variables ----------
   Deux thèmes : sombre (par défaut) et clair (html[data-theme="light"], assets/js/theme.js).
   Zones toujours sombres, quel que soit le thème :
     .theme-dark (vidéo d'accueil) et l'en-tête posé sur cette vidéo tant que la page n'a pas défilé. */
:root,
.theme-dark,
[data-theme="light"] .page-home:not(.is-locked) .site-top:not(.is-scrolled) {
  color-scheme: dark;
  --fg-rgb:      244 241 234;
  --gold-rgb:    170 151 99;

  --gold:        #AA9763;
  --gold-light:  #CDBB86;
  --gold-dark:   #857447;
  --gold-grad:   linear-gradient(135deg, #D6C590 0%, #AA9763 45%, #8C7A4B 100%);
  --on-gold:     #0A0A0A;

  --ink:         #0A0A0A;
  --ink-2:       #111111;
  --ink-3:       #181818;
  --bone:        #F4F1EA;
  --bone-70:     rgb(var(--fg-rgb) / .70);
  --bone-50:     rgb(var(--fg-rgb) / .50);
  --bone-35:     rgb(var(--fg-rgb) / .35);
  --line:        rgb(var(--fg-rgb) / .12);
  --line-gold:   rgb(var(--gold-rgb) / .28);

  --surface:     rgb(var(--fg-rgb) / .03);
  --topbar-bg:   #060606;
  --header-bg:   rgba(8, 8, 8, .82);
  --ghost-bg:    rgba(10, 10, 10, .18);
  --pop-bg:      rgba(10, 10, 10, .96);
  --pop-shadow:  0 30px 60px -20px rgba(0, 0, 0, .8);
  --menu-bg:     radial-gradient(120% 80% at 100% 0%, rgb(var(--gold-rgb) / .14), transparent 60%), #070707;
  --logo-filter: none;
}

/* Thème clair : ivoire / blanc, or plus profond pour rester lisible */
[data-theme="light"] {
  color-scheme: light;
  --fg-rgb:      23 21 17;
  --gold-rgb:    138 117 64;

  --gold:        #8A7540;
  --gold-light:  #6B5A2E;
  --gold-dark:   #5C4D26;
  --gold-grad:   linear-gradient(135deg, #D9C893 0%, #B39F68 45%, #917E4D 100%);
  --on-gold:     #0A0A0A;

  --ink:         #FBFAF7;
  --ink-2:       #F4F1EA;
  --ink-3:       #FFFFFF;
  --bone:        #171511;
  --bone-70:     rgb(var(--fg-rgb) / .74);
  --bone-50:     rgb(var(--fg-rgb) / .58);
  --bone-35:     rgb(var(--fg-rgb) / .42);
  --line:        rgb(var(--fg-rgb) / .12);
  --line-gold:   rgb(var(--gold-rgb) / .35);

  --surface:     #FFFFFF;
  --topbar-bg:   #F1ECE1;
  --header-bg:   rgba(251, 250, 247, .88);
  --ghost-bg:    rgba(255, 255, 255, .5);
  --pop-bg:      rgba(255, 255, 255, .98);
  --pop-shadow:  0 30px 60px -24px rgba(60, 45, 15, .3);
  --menu-bg:     radial-gradient(120% 80% at 100% 0%, rgb(var(--gold-rgb) / .14), transparent 60%), #FBFAF7;
  /* Logos blancs → foncés, l'or reste doré */
  --logo-filter: invert(1) hue-rotate(180deg) saturate(1.3);
}
.theme-dark,
[data-theme="light"] .page-home:not(.is-locked) .site-top:not(.is-scrolled) { color: var(--bone); }

:root {
  --f-display:   "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-body:      "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-accent:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-tech:      "Michroma", "Eurostile", "Arial Black", sans-serif;

  --topbar-h:    40px;
  --header-h:    92px;
  --gutter:      clamp(20px, 4vw, 64px);
  --maxw:        1480px;

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-cine:   cubic-bezier(.77, 0, .175, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--gold); color: var(--on-gold);
  font-weight: 600; transform: translateY(-200%); transition: transform .3s;
}
.skip-link:focus { transform: none; }

/* ---------- 3. Boutons ---------- */
.btn {
  --cut: 12px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px;
  padding: 0 30px;
  font-family: var(--f-tech);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

/* Or : coin coupé, écho aux diagonales de l'écusson */
.btn--gold {
  color: var(--on-gold);
  background: var(--gold-grad);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--gold:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--bone);
  border: 1px solid rgb(var(--fg-rgb) / .28);
  background: var(--ghost-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ==========================================================================
   4. TOPBAR + HEADER
   ========================================================================== */
.site-top {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .6s var(--ease-out);
}
.site-top.is-scrolled { transform: translateY(calc(var(--topbar-h) * -1)); }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line-gold);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--bone-70);
}
.topbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__info, .topbar__contact { display: flex; align-items: center; gap: 28px; }
.topbar__info li, .topbar__contact a { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.topbar .icon { width: 14px; height: 14px; color: var(--gold); }
.topbar__sep { color: var(--gold); margin-inline: 4px; }
.topbar__contact a { transition: color .3s; }
.topbar__contact a:hover { color: var(--gold-light); }
.topbar__social { display: flex; gap: 4px; padding-left: 24px; border-left: 1px solid var(--line); }
.topbar__social a { width: 28px; height: 28px; justify-content: center; }
.topbar__social .icon { color: var(--bone-70); transition: color .3s; }
.topbar__social a:hover .icon { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: relative;
  height: var(--header-h);
  transition: height .5s var(--ease-out), background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header::before { /* voile dégradé lisibilité au-dessus de la vidéo */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,5,.65) 0%, rgba(5,5,5,0) 100%);
  transition: opacity .5s;
}
.is-scrolled .header {
  height: 76px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-gold);
}
.is-scrolled .header::before { opacity: 0; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 16px; flex: none; }
.brand__emblem { height: 60px; width: auto; filter: var(--logo-filter); transition: height .5s var(--ease-out), filter .45s; }
.is-scrolled .brand__emblem { height: 50px; }
.brand__text {
  display: flex; flex-direction: column; gap: 7px;
  padding-left: 16px; border-left: 1px solid var(--line-gold);
}
.brand__wordmark { width: 138px; height: auto; filter: var(--logo-filter); transition: filter .45s; }
.brand__tag {
  font-family: var(--f-tech);
  font-size: 8.5px;
  letter-spacing: .72em;
  margin-right: -.72em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

/* Navigation */
.nav__list { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 0;
  font-family: var(--f-tech);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__chevron { width: 12px; height: 12px; transition: transform .4s var(--ease-out); }

/* Dropdown Prestations */
.nav__item--dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%;
  width: 440px;
  transform: translate(-50%, 10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.dropdown::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; } /* pont de survol */
.dropdown__inner {
  background: var(--pop-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-gold);
  border-top: 2px solid var(--gold);
  padding: 26px 12px 12px;
  box-shadow: var(--pop-shadow);
}
.dropdown__label {
  padding: 0 16px 14px;
  font-family: var(--f-tech); font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}
.dropdown__list a {
  display: flex; gap: 18px; align-items: baseline;
  padding: 14px 16px;
  transition: background-color .3s;
}
.dropdown__list a:hover { background: rgb(var(--gold-rgb) / .08); }
.dropdown__num { font-family: var(--f-tech); font-size: 10px; color: var(--gold); }
.dropdown__list strong { display: block; font-weight: 500; font-size: 15px; color: var(--bone); }
.dropdown__list small { display: block; font-size: 12.5px; color: var(--bone-50); margin-top: 2px; }

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown,
.nav__item--dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav__item--dropdown:hover .nav__chevron,
.nav__item--dropdown.is-open .nav__chevron { transform: rotate(180deg); }

/* Actions */
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__call {
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color .3s, color .3s, border-color .3s;
}
.header__call .icon { width: 18px; height: 18px; }
.header__call:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.header__cta { min-height: 48px; padding: 0 24px; }

/* Espace client */
.header__account {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; min-width: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-family: var(--f-tech);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  transition: border-color .3s, background-color .3s, color .3s;
}
.header__account .icon { width: 18px; height: 18px; color: var(--gold); transition: color .3s; }
.header__account:hover { border-color: var(--gold); background: rgb(var(--gold-rgb) / .1); color: var(--gold-light); }
/* Pastille « connecté » */
.header__account.is-connected::after {
  content: ""; position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px var(--ink);
}
.header__call { display: none; }
/* Info-bulle quand seul l'icône est visible */
.header__account::before {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, -4px);
  padding: 7px 12px;
  background: var(--ink-2); border: 1px solid var(--line-gold);
  font-family: var(--f-tech); font-size: 9px; letter-spacing: .18em; color: var(--bone);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .3s, transform .3s var(--ease-out);
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border: 1px solid var(--line-gold);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1px; background: var(--bone);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out), background-color .3s;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; left: 20px; }
.burger[aria-expanded="true"] span { background: var(--gold); left: 13px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--topbar-h) + var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--menu-bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow-y: auto;
  gap: 32px;
  transition: clip-path .8s var(--ease-cine), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.mobile-menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: clamp(10px, 2.2vh, 18px) 0;
  font-size: clamp(24px, 6.4vw, 40px);
  font-weight: 300;
  letter-spacing: -.01em;
  transform: translateY(100%);
  transition: transform .8s var(--ease-out), color .3s;
}
.mobile-menu__nav a span { font-family: var(--f-tech); font-size: 10px; color: var(--gold); letter-spacing: .1em; }
.mobile-menu__nav a:hover { color: var(--gold-light); }
.mobile-menu.is-open .mobile-menu__nav a { transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .31s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .37s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .43s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .49s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .55s; }
.mobile-menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mobile-menu__ctas .btn { padding: 0 16px; }
.mobile-menu__phone, .mobile-menu__place { justify-self: start; }
@media (max-width: 560px) { .mobile-menu__ctas { grid-template-columns: 1fr; } }
.mobile-menu__footer { display: grid; gap: 18px; justify-items: stretch; }
.mobile-menu__phone { display: inline-flex; gap: 10px; align-items: center; font-size: 18px; }
.mobile-menu__phone .icon { color: var(--gold); width: 18px; height: 18px; }
.mobile-menu__place { font-family: var(--f-tech); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-50); }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

/* ---------- Média ---------- */
.hero__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; user-select: none; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: contrast(1.06) saturate(.92) brightness(.92);
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease-out) forwards;
  pointer-events: none;
}
/* Masque tout contrôle natif résiduel (Safari / Chrome) */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-enclosure,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }

@keyframes heroZoom { to { transform: scale(1); } }

/* Étalonnage : dégradés directionnels */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.90) 0%, rgba(5,5,5,.72) 28%, rgba(5,5,5,.25) 62%, rgba(5,5,5,.40) 100%),
    linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.55) 22%, rgba(5,5,5,0) 50%),
    linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 28%);
}
/* Teinte dorée dans les hautes lumières */
.hero__tint {
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 80% 30%, rgb(var(--gold-rgb) / .22), transparent 70%);
  mix-blend-mode: soft-light;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 50%, rgba(0,0,0,.65) 100%);
}
/* Grain argentique */
.hero__grain {
  position: absolute; inset: -50%;
  opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Rideaux d'ouverture */
.hero__curtain {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #050505;
  z-index: 5;
  transition: transform 1.6s var(--ease-cine);
}
.hero__curtain--top    { top: 0;    transform-origin: top; }
.hero__curtain--bottom { bottom: 0; transform-origin: bottom; }
.is-loaded .hero__curtain { transform: scaleY(0); }

/* ---------- Contenu ---------- */
.hero__content {
  position: relative;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 32px);
  padding-bottom: clamp(36px, 6vh, 80px);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(18px, 3vh, 28px);
  font-family: var(--f-tech);
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__rule { width: 56px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.6rem, min(6vw, 9.6vh), 6.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--bone);
}
@media (min-width: 761px) { .hero__title .line { white-space: nowrap; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  letter-spacing: -.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}

.hero__lead {
  max-width: 520px;
  margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--bone-70);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 4vh, 40px); }

/* Coordonnées verticales */
.hero__coords {
  position: absolute; right: calc(var(--gutter) - 6px); top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--f-tech);
  font-size: 9px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--bone-50);
  opacity: 0;
  transition: opacity 1.2s 2.4s;
}
.is-loaded .hero__coords { opacity: 1; }

/* ---------- Bande basse ---------- */
.hero__strip {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5,5,5,.2), rgba(5,5,5,.6));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero__strip-inner { display: flex; align-items: stretch; justify-content: space-between; }
.hero__services { display: flex; }
.hero__services li { border-right: 1px solid var(--line); }
.hero__services li:first-child a { padding-left: 0; }
.hero__services a {
  position: relative;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 26px clamp(22px, 3vw, 48px) 28px;
  transition: color .3s;
}
.hero__services a::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.hero__services li:first-child a::before { left: 0; }
.hero__services a:hover::before { transform: scaleX(1); }
.hero__services a:hover .label { color: var(--bone); }
.hero__services .num { font-family: var(--f-tech); font-size: 10px; color: var(--gold); padding-top: 3px; }
.hero__services .label {
  font-size: 13px; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bone-70); transition: color .3s;
}

.hero__scroll {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-tech); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bone-70);
}
.hero__scroll-line { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%;
  background: var(--gold);
  animation: scrollLine 2.2s var(--ease-cine) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Animations d'entrée ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: calc(1.1s + var(--d, 0) * .12s);
}
.hero__title .reveal { transform: translateY(105%); opacity: 1; }
.is-loaded .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 1560px) {
  .header__account { padding: 0; width: 48px; }
  .header__account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header__account:hover::before, .header__account:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
}

/* Entre 1181 et 1400 px, logo + menu + bouton ne tiennent pas sur une ligne :
   le bouton « Prendre rendez-vous » s'efface (accessible dans le contenu et le menu mobile) */
@media (max-width: 1400px) {
  .header__cta { display: none; }
}

@media (max-width: 1320px) {
  .topbar .topbar__hide-md { display: none; }
  .nav__list { gap: 24px; }
  .nav__link { letter-spacing: .14em; }
  .header__inner { gap: 20px; }
  .header__cta { padding: 0 18px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 80px; }
  .nav, .header__cta { display: none; }
  .header__call { display: grid; }
  .burger { display: block; }
  .hero__coords { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 36px; --header-h: 72px; }
  .topbar { font-size: 11.5px; }
  .topbar .topbar__hide-sm { display: none; }
  .topbar__inner { gap: 12px; }
  .brand { gap: 12px; }
  .brand__emblem { height: 48px; }
  .is-scrolled .brand__emblem { height: 42px; }
  .brand__text { padding-left: 12px; gap: 6px; }
  .brand__wordmark { width: 112px; }
  .brand__tag { font-size: 7px; letter-spacing: .66em; margin-right: -.66em; }
  .burger, .header__account { width: 44px; height: 44px; }
  .header__call { display: none; }
  .header__actions { gap: 10px; }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 25px; }
  .burger[aria-expanded="true"] span { top: 21px !important; }
  .is-scrolled .header { height: 66px; }

  .hero__video { object-position: 38% 50%; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.8) 38%, rgba(5,5,5,.25) 70%, rgba(5,5,5,.55) 100%);
  }
  .hero__eyebrow { font-size: 9px; letter-spacing: .26em; gap: 12px; margin-bottom: 20px; }
  .hero__rule { width: 32px; }
  .hero__lead { margin-top: 22px; }
  .hero__actions { margin-top: 30px; }
  .hero__actions .btn { width: 100%; }
  .hero__services { display: none; }
  .hero__strip-inner { justify-content: center; }
  .hero__scroll { padding: 18px 0; }
  .hero__scroll-line { height: 32px; }
}

@media (max-width: 380px) {
  .brand__text { display: none; }
}

/* Accessibilité : mouvement réduit (la vidéo reste en lecture, à la demande du client) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__title .reveal { opacity: 1; transform: none; transition: none; }
  .hero__curtain { display: none; }
  .hero__video { animation: none; transform: none; }
  .hero__grain, .hero__scroll-line::after { animation: none; }
  .hero__coords { opacity: 1; transition: none; }
}

/* ==========================================================================
   7. Thème clair / sombre, panier (en-tête)
   ========================================================================== */
/* Bascule : révélation circulaire (View Transitions) ou fondu des couleurs */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
.theme-fading, .theme-fading *, .theme-fading *::before, .theme-fading *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, filter .45s ease !important;
}

/* Boutons ronds de l'en-tête (thème, panier) */
.header__icon {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line-gold); border-radius: 50%;
  color: var(--bone);
  transition: border-color .3s, color .3s, background-color .3s, transform .5s var(--ease-out);
}
.header__icon .icon { width: 19px; height: 19px; transition: transform .6s var(--ease-out), opacity .4s; }
.header__icon:hover { border-color: var(--gold); color: var(--gold); background: rgb(var(--gold-rgb) / .08); }

.theme-toggle { overflow: hidden; }
.theme-toggle .icon { position: absolute; }
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle .icon--moon { opacity: 0; transform: rotate(90deg) scale(.3); }
[data-theme="light"] .theme-toggle .icon--sun  { opacity: 0; transform: rotate(-90deg) scale(.3); }
[data-theme="light"] .theme-toggle .icon--moon { opacity: 1; transform: none; }
/* Sur la vidéo d'accueil (zone sombre), l'icône suit le thème réellement actif */
[data-theme="light"] .page-home .site-top:not(.is-scrolled) .theme-toggle .icon--sun { opacity: 0; transform: rotate(-90deg) scale(.3); }
[data-theme="light"] .page-home .site-top:not(.is-scrolled) .theme-toggle .icon--moon { opacity: 1; transform: none; }

/* Panier + pastille du nombre d'articles */
.header__cart-count {
  position: absolute; top: -4px; right: -4px;
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--gold-grad); color: var(--on-gold);
  box-shadow: 0 0 0 2px var(--ink);
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.header__cart-count[hidden] { display: none; }
.header__cart-count.is-bump { animation: bump .6s var(--ease-out); }
.header__cart.is-bump .icon { animation: cartShake .6s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.45); } }
@keyframes cartShake { 20% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-4deg); } }

.mobile-menu__theme {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  font-family: var(--f-tech); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-70);
}
.mobile-menu__theme .theme-toggle { width: 44px; height: 44px; }

@media (max-width: 1180px) {
  .header__actions > .theme-toggle { display: none; }
}
@media (max-width: 760px) {
  .header__icon { width: 44px; height: 44px; }
}

/* ==========================================================================
   8. Tiroir du panier (construit par assets/js/cart.js)
   ========================================================================== */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  display: flex; flex-direction: column;
  width: min(440px, 94vw);
  background: radial-gradient(120% 50% at 100% 0%, rgb(var(--gold-rgb) / .12), transparent 60%), var(--ink);
  border-left: 1px solid var(--line-gold);
  color: var(--bone);
  transform: translateX(104%);
  transition: transform .6s var(--ease-cine), box-shadow .5s;
}
.cart-drawer.is-open { transform: none; box-shadow: -40px 0 90px -30px rgba(0, 0, 0, .7); }
.cart-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 5, 5, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .45s;
}
.cart-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.cart-drawer__title { font-family: var(--f-tech); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.cart-drawer__title span { margin-left: 8px; color: var(--gold); }
.cart-x {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--bone-70);
  transition: color .3s, border-color .3s, transform .5s var(--ease-out);
}
.cart-x:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.cart-x svg { width: 16px; height: 16px; }

/* Jauge « livraison offerte » */
.cart-ship { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--bone-70); }
.cart-ship strong { color: var(--bone); }
.cart-ship__bar { height: 3px; margin-top: 10px; background: var(--line); overflow: hidden; }
.cart-ship__bar span { display: block; height: 100%; background: var(--gold-grad); transition: width .8s var(--ease-out); }
.cart-ship.is-free { color: var(--gold); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 6px 26px; scrollbar-width: thin; scrollbar-color: var(--line-gold) transparent; }
.cart-notice { margin: 14px 0 4px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgb(var(--gold-rgb) / .08); font-size: 12.5px; color: var(--bone-70); }
.cart-maintenance { display: grid; gap: 4px; margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--line-gold); border-left: 2px solid var(--gold); background: rgb(var(--gold-rgb) / .08); font-size: 12.5px; line-height: 1.55; color: var(--bone-70); }
.cart-maintenance strong { font-weight: 500; font-size: 13px; color: var(--bone); }
.cart-drawer__foot .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Boutique en maintenance (assets/js/maintenance.js) ---------- */
.shop-closed { display: grid; place-items: center; min-height: 62vh; padding: 150px 16px 90px; text-align: center; }
.shop-closed__inner { display: grid; justify-items: center; gap: 18px; max-width: 560px; }
.shop-closed__icon { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold); }
.shop-closed__icon svg { width: 32px; height: 32px; }
.shop-closed__kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.shop-closed__title { margin: 0; font-weight: 300; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; color: var(--bone); }
.shop-closed__title em { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--gold); }
.shop-closed__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--bone-70); }
.shop-closed__until { margin: 0; padding: 8px 16px; border: 1px solid var(--line-gold); font-size: 13px; color: var(--bone-70); }
.shop-closed__until strong { font-weight: 500; color: var(--bone); }
.shop-closed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
body.is-shop-closed .shop-filters, body.is-shop-closed .shop-backdrop { display: none; }

.cart-line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  animation: cartIn .5s var(--ease-out) both;
}
.cart-line.is-removing { animation: cartOut .4s var(--ease-cine) forwards; }
@keyframes cartIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes cartOut { to { opacity: 0; transform: translateX(30px); height: 0; padding: 0; } }
.cart-line__img { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--line); background: var(--surface); }
.cart-line__img img { width: 64px; height: 64px; object-fit: contain; }
.cart-line__brand { font-family: var(--f-tech); font-size: 7.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-50); }
.cart-line__name { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--bone); transition: color .3s; }
.cart-line__name:hover { color: var(--gold); }
.cart-line__unit { margin-top: 4px; font-size: 12px; color: var(--bone-50); }
.cart-line__total { font-weight: 600; font-size: 15px; text-align: right; white-space: nowrap; }
.cart-line__remove { margin-top: 8px; font-size: 12px; color: var(--bone-50); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.cart-line__remove:hover { color: #D96A5B; }

/* Sélecteur de quantité (panier + fiche produit) */
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); background: var(--surface); }
.qty button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--bone-70); transition: color .3s, background-color .3s; }
.qty button:hover:not(:disabled) { color: var(--gold); background: rgb(var(--gold-rgb) / .08); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty button svg { width: 14px; height: 14px; }
.qty output, .qty input {
  width: 38px; height: 34px; border: 0; background: none; color: var(--bone); text-align: center;
  font: inherit; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
/* <output> est un élément « en ligne » : sans cela sa hauteur est ignorée et le chiffre n'est pas centré */
.qty output { display: grid; place-items: center; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-empty { display: grid; justify-items: center; gap: 14px; padding: 70px 10px; text-align: center; color: var(--bone-50); }
.cart-empty svg { width: 46px; height: 46px; color: var(--gold); }
.cart-empty strong { font-weight: 300; font-size: 1.4rem; color: var(--bone); }

.cart-drawer__foot { padding: 20px 26px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--bone-70); }
.cart-row--total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; color: var(--bone); }
.cart-row--total strong { font-size: 20px; }
.cart-drawer__foot .btn { width: 100%; margin-top: 8px; }
.cart-drawer__note { font-size: 12px; line-height: 1.6; color: var(--bone-50); text-align: center; }
.cart-drawer__note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cart-drawer.is-busy .cart-drawer__body { opacity: .6; pointer-events: none; transition: opacity .2s; }

/* Visuel qui « vole » jusqu'au panier */
.cart-fly {
  position: fixed; z-index: 300; pointer-events: none;
  object-fit: contain; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 1px var(--line-gold), 0 20px 40px -10px rgba(0, 0, 0, .6);
}

/* Notification */
.fe-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 320;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 14px 20px;
  border: 1px solid var(--line-gold); border-left: 2px solid var(--gold);
  background: var(--pop-bg); box-shadow: var(--pop-shadow);
  color: var(--bone); font-size: 14px;
  transform: translateX(-50%);
  animation: toastIn .5s var(--ease-out);
}
.fe-toast.is-error { border-left-color: #D96A5B; }
.fe-toast.is-leaving { animation: toastOut .4s var(--ease-cine) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 20px); } }

@media (prefers-reduced-motion: reduce) {
  .cart-line, .cart-line.is-removing, .fe-toast, .header__cart-count.is-bump, .header__cart.is-bump .icon { animation: none; }
}