/* =========================================================
   ALPHA ΩPERA — Design System partagé (sous-pages)
   ========================================================= */
:root {
  --noir: #0A0A0A;
  --noir-90: rgba(10,10,10,0.92);
  --noir-soft: #121212;
  --midnight: #0D0F1A;
  --burgundy: #1A0A10;
  --or: #C9A84C;
  --or-clair: #E8C97E;
  --or-soft: rgba(201,168,76,0.18);
  --or-line: rgba(201,168,76,0.35);
  --ivoire: #F5F0E8;
  --champagne: #D4B96E;
  --grey-soft: rgba(245,240,232,0.55);
  --grey-line: rgba(245,240,232,0.12);

  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --serif-alt: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1440px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 14vh, 180px);

  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--noir);
  color: var(--ivoire);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Force cursor invisible PARTOUT — image 2x2 transparente + none en fallback. */
html, body, *, *::before, *::after,
a, a:hover, a:active, a:focus, a:visited,
button, button:hover, button:active, button:focus,
input, input:hover, input:focus, input:active,
textarea, textarea:hover, textarea:focus,
select, label, video, audio, iframe, img, svg, canvas,
::-webkit-scrollbar, ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAEklEQVR42mNkYGD4z0AEYBxVCAAY/QH/iukDmAAAAABJRU5ErkJggg==") 0 0, none !important;
}
@media (hover: none) and (max-width: 768px) {
  html, body, *, *::before, *::after { cursor: auto !important; }
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--or); color: var(--noir); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--or); display: inline-block; }
.eyebrow.center { gap: 14px; }
.eyebrow.center::after { content: ''; width: 32px; height: 1px; background: var(--or); }

/* CURSOR */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--or-clair);
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-luxe), height 0.3s var(--ease-luxe);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--or);
  transition: width 0.4s var(--ease-luxe), height 0.4s var(--ease-luxe), border-color 0.3s, transform 0.15s ease-out;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--or-clair); background: rgba(232,201,126,0.08); }
.cursor-dot.is-hover { width: 10px; height: 10px; }
@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* PAGE PROGRESS BAR */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px clamp(28px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.0) 100%);
  transition: padding 0.6s var(--ease-luxe), background 0.6s var(--ease-luxe);
}
.nav > .nav-logo { justify-self: start; }
.nav > .nav-links { justify-self: center; }
.nav > .nav-right { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--or) 35%, var(--or-clair) 50%, var(--or) 65%, transparent 100%);
  transform: translateX(-50%);
}
.nav.scrolled {
  padding: 14px clamp(28px, 5vw, 80px);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.nav-logo { display: block; }
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(201,160,74,0.25));
  transition: transform 0.6s var(--ease-luxe), filter 0.6s, height 0.5s var(--ease-luxe);
  user-select: none;
  -webkit-user-drag: none;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(245,214,136,0.4)); }
.nav.scrolled .nav-logo-img { height: 52px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 2.6vw, 44px); }
.nav-links a {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivoire);
  opacity: 0.82;
  padding: 14px 2px;
  transition: opacity 0.3s, color 0.4s, letter-spacing 0.4s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 6px; left: 50%;
  width: 0; height: 1px; background: var(--or-clair);
  transform: translateX(-50%);
  transition: width 0.5s var(--ease-cinema);
  box-shadow: 0 0 6px var(--or-clair);
}
.nav-links a:hover { opacity: 1; color: var(--or-clair); letter-spacing: 0.36em; }
.nav-links a:hover::after { width: 24px; }
.nav-links li { position: relative; display: flex; align-items: center; }
.nav-links li:not(:last-child)::after {
  content: ''; position: absolute;
  right: calc(-1 * clamp(14px, 1.7vw, 26px)); top: 50%;
  width: 3px; height: 3px;
  background: var(--or);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.45;
}
.nav-cta { padding: 13px 26px !important; font-size: 12px !important; letter-spacing: 0.32em !important; }
.nav-burger { display: flex; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; cursor: none; }
.nav-burger span { width: 22px; height: 1px; background: var(--or); transition: transform 0.4s var(--ease-luxe), opacity 0.3s; margin-left: auto; }
.nav-burger span:nth-child(2) { width: 16px; }
.nav-burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); width: 22px; }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s var(--ease-luxe);
  }
  .nav-links li:not(:last-child)::after { display: none; }
  .nav-links.is-open { pointer-events: auto; opacity: 1; }
  .nav-links a { font-size: 14px; }
  .nav-cta-wrap { display: none; }
  .nav-burger { display: flex; }
}

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 38px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or-clair);
  border: 1px solid var(--or);
  background: transparent;
  cursor: none;
  overflow: hidden;
  transition: color 0.5s var(--ease-luxe);
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-cinema);
  z-index: -1;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,240,200,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-cinema);
}
.btn:hover { color: var(--noir); }
.btn:hover::before { transform: translateY(0); }
.btn:hover::after { left: 150%; }
.btn .arrow { width: 14px; height: 14px; display: inline-flex; }

/* SECTIONS COMMUNES */
section { position: relative; padding: var(--section-y) var(--pad-x); }
.container { max-width: var(--container); margin: 0 auto; }
.section-head {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 1000px;
}
.section-head h2 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--or-clair), var(--or));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif-alt);
}
.section-head p { max-width: 620px; color: var(--grey-soft); font-size: 15px; line-height: 1.7; }

/* REVEALS */
.fade-up {
  opacity: 0; transform: translateY(50px);
  transition: opacity 1.2s var(--ease-luxe), transform 1.2s var(--ease-luxe);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
}
.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.in-view > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.in-view > *:nth-child(7) { transition-delay: 0.65s; }
.stagger.in-view > *:nth-child(8) { transition-delay: 0.75s; }

/* FOOTER */
footer {
  background: #050505;
  padding: 80px var(--pad-x) 32px;
  border-top: 1px solid var(--grey-line);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  transform: translateX(-50%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 110px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 0 22px rgba(201,168,76,0.2)); }
.footer-brand p { font-size: 12.5px; color: var(--grey-soft); line-height: 1.7; max-width: 320px; }
.footer-col-title { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--or); margin-bottom: 22px; }
.footer-col a, .footer-col li { display: block; font-size: 15px; color: var(--grey-soft); padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--or-clair); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--grey-soft);
  text-transform: uppercase;
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* BACK LINK */
.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or);
  padding: 8px 0;
  margin-bottom: 32px;
  transition: color 0.4s, transform 0.4s var(--ease-luxe);
}
.back-link::before {
  content: '←';
  transition: transform 0.4s var(--ease-luxe);
}
.back-link:hover { color: var(--or-clair); }
.back-link:hover::before { transform: translateX(-6px); }

/* SECONDARY OVERLAY MENU (burger) — toujours visible sur desktop ET mobile */
.nav-secondary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.96);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-luxe);
}
.nav-secondary-overlay.is-open { pointer-events: auto; opacity: 1; }
.nav-secondary-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: 1100px;
  text-align: center;
  padding: 80px 40px;
  transform: translateY(30px);
  transition: transform 0.7s var(--ease-cinema);
}
.nav-secondary-overlay.is-open .nav-secondary-content { transform: translateY(0); }
.nav-secondary-eyebrow { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--or); margin-bottom: 24px; }
.nav-secondary-link {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  color: var(--ivoire);
  cursor: none;
  position: relative;
  transition: color 0.4s, letter-spacing 0.4s var(--ease-luxe);
  font-weight: 400;
  line-height: 1.1;
}
.nav-secondary-link em { font-style: italic; background: linear-gradient(110deg, var(--or-clair), var(--or)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--serif-alt); }
.nav-secondary-link:hover { color: var(--or-clair); letter-spacing: 0.01em; }
.nav-secondary-divider { width: 60px; height: 1px; background: var(--or-line); margin: 12px 0; }
.nav-secondary-tertiary { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.nav-secondary-tertiary a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey-soft);
  transition: color 0.3s;
}
.nav-secondary-tertiary a:hover { color: var(--or-clair); }

/* Page-internal close button (legal pages, FAQ, contact-direct) */
.page-close {
  position: fixed;
  top: 100px;
  right: clamp(20px, 4vw, 40px);
  z-index: 95;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--or-line);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--or-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: none;
  transition: all 0.4s var(--ease-luxe);
}
.page-close:hover {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
  transform: rotate(90deg);
}
.page-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }

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