/* ============================================================
   ELIE SY — style.css  (Refonte Audemars Piguet)
   ============================================================ */

/* Font loaded via <link> in HTML — no @import needed */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette AP-inspired */
  --black:      #0a0907;
  --black-warm: #100f0c;
  --black-mid:  #161410;
  --black-soft: #1c1a15;
  --cream:      #ede8df;
  --cream-dim:  rgba(237,232,223,0.55);
  --cream-faint:rgba(237,232,223,0.18);
  --gold:       #b8955a;
  --gold-light: #d4b07a;
  --gold-dark:  #8a6e3e;
  --gold-faint: rgba(184,149,90,0.12);
  --line:       rgba(184,149,90,0.18);
  --line-soft:  rgba(237,232,223,0.08);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-serif:   'Montserrat', sans-serif;
  --font-label:   'Montserrat', sans-serif;

  /* Spacing */
  --pad-h: 80px;
  --pad-v: 120px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 200;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* "Sy" doré */
.sy-gold { color: var(--gold); }

/* Default system cursor — no custom cursor */
/* Focus visible for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── GRAIN TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9997; mix-blend-mode: overlay;
}

/* Custom cursor removed — using default system cursor */

/* ════════════════════════════════════════
   PAGE TRANSITION
════════════════════════════════════════ */
.page-transition {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9990; pointer-events: none;
  transform: translateY(100%);
  will-change: transform;
}

/* Fade-in à l'entrée — accueil uniquement */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.is-home { animation: pageEnter .7s ease forwards; }

/* ════════════════════════════════════════
   HEADER — Ultra-minimal AP style
════════════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--pad-h);
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,149,90,.06);
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
header.scrolled {
  background: rgba(8,7,10,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(184,149,90,.12);
}

/* LOGO */
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.logo-img {
  height: 34px; max-width: 150px;
  object-fit: contain; display: block;
  transition: opacity .4s ease;
  /* PNG with transparency — no blend mode needed */
}
.logo-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 200;
  letter-spacing: 8px; text-transform: uppercase;
  color: var(--cream); line-height: 1;
}
.logo-sub {
  font-size: 7px; letter-spacing: 5px; text-transform: uppercase;
  color: rgba(237,232,223,.3); font-family: var(--font-label); font-weight: 100;
}

/* NAV LINKS */
nav {
  display: flex; align-items: center; gap: 48px;
}
nav a {
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(237,232,223,.55); text-decoration: none;
  transition: color .4s;
  font-weight: 200;
}
nav a:hover, nav a.active { color: var(--cream); }
nav a.active {
  position: relative;
}
nav a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold); opacity: .7;
}
.nav-cta {
  border: 1px solid rgba(184,149,90,.3) !important;
  padding: 9px 22px;
  color: rgba(184,149,90,.8) !important;
  transition: border-color .4s, color .4s, background .4s !important;
}
.nav-cta:hover {
  border-color: var(--gold) !important;
  color: var(--black) !important;
  background: var(--gold) !important;
}
.nav-cta::after { display: none !important; }

/* LANG TOGGLE */
.lang-toggle { display: flex; align-items: center; gap: 10px; margin-left: 32px; }
.lang-btn {
  background: none; border: none;
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(237,232,223,.4); cursor: pointer;
  transition: color .3s; padding: 2px 0;
  font-weight: 200;
}
.lang-btn:hover { color: var(--cream); }
.lang-btn.active { color: var(--gold); }
.lang-sep { font-size: 8px; color: rgba(184,149,90,.2); }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 7px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1px; background: var(--cream);
  transition: all .35s ease; opacity: .6;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); opacity: 1; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); opacity: 1; }

/* MOBILE NAV */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--black-warm);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 48px;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 36px; font-weight: 200;
  color: var(--cream); text-decoration: none; letter-spacing: 4px;
  cursor: pointer; transition: color .3s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ════════════════════════════════════════
   BOUTONS — Style AP
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 36px;
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none;
  transition: all .4s ease; font-weight: 200;
  border: 1px solid;
}
.btn-gold {
  background: var(--gold); color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--cream);
  border-color: rgba(237,232,223,.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border-color: rgba(184,149,90,.35);
}
.btn-ghost:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ════════════════════════════════════════
   TYPOGRAPHIE — AP style
════════════════════════════════════════ */
.eyebrow {
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); font-weight: 200;
  display: flex; align-items: center; gap: 20px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px;
  background: var(--gold); opacity: .6; flex-shrink: 0;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 200; line-height: 1.0;
  letter-spacing: 2px; color: var(--cream);
}
.display-title em {
  font-style: italic; color: var(--gold); font-weight: 200;
}

.section-label {
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(237,232,223,.5); font-weight: 200;
}

.body-text {
  font-family: var(--font-serif); font-size: 16px;
  font-weight: 300; line-height: 1.9;
  color: var(--cream-dim); letter-spacing: .3px;
}

/* ════════════════════════════════════════
   SÉPARATEURS
════════════════════════════════════════ */
.rule {
  width: 100%; height: 1px;
  background: var(--line);
}
.rule-short {
  width: 48px; height: 1px; background: var(--gold); opacity: .5;
}

/* ════════════════════════════════════════
   CHAPITRES — numéros AP style
════════════════════════════════════════ */
.chapter-num {
  font-family: var(--font-display); font-size: clamp(80px, 12vw, 160px);
  font-weight: 200; color: rgba(184,149,90,.07);
  line-height: 1; letter-spacing: -4px;
  pointer-events: none; user-select: none;
}

/* ════════════════════════════════════════
   CTA BAND — style AP
════════════════════════════════════════ */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px var(--pad-h);
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
  background: var(--black-warm);
}
.cta-band-text h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 200; color: var(--cream); letter-spacing: 2px; margin-bottom: 14px;
}
.cta-band-text h2 em { font-style: italic; color: var(--gold); }
.cta-band-text p {
  font-size: 13px; letter-spacing: 1px; color: var(--cream-dim);
  font-family: var(--font-label); font-weight: 200;
}

/* ════════════════════════════════════════
   MARQUEE — discret, AP style
════════════════════════════════════════ */
.marquee-wrap {
  padding: 22px 0; overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.marquee-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--font-label); font-size: 10px;
  letter-spacing: 5px; text-transform: uppercase;
  color: rgba(237,232,223,.35); flex-shrink: 0; font-weight: 200;
}
.marquee-item::before {
  content: ''; width: 20px; height: 1px;
  background: var(--gold); opacity: .3; flex-shrink: 0;
}

/* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); will-change: auto; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
.reveal-d4 { transition-delay: .48s; }

/* Reveal from left */
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════
   CARD IMG (shared)
════════════════════════════════════════ */
.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .9s cubic-bezier(.25,.46,.45,.94);
  z-index: 0;
}
*:hover > .card-img { transform: scale(1.04); }

/* ════════════════════════════════════════
   3D SCENE SECTIONS (Three.js)
════════════════════════════════════════ */
.scene-3d-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: transparent;
}
.scene-3d-section canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.scene-3d-section .scene-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 var(--pad-h);
}
.scene-3d-section .scene-overlay .eyebrow {
  margin-bottom: 16px;
}
.scene-3d-section .scene-overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 200;
  color: var(--cream);
  letter-spacing: 2px;
}
.scene-3d-section .scene-overlay p {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cream-dim);
  font-weight: 200;
  max-width: 500px;
}
/* Fade edges */
.scene-3d-section::before,
.scene-3d-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}
.scene-3d-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black), transparent);
}
.scene-3d-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black), transparent);
}
@media (max-width: 768px) {
  .scene-3d-section { height: 70vh; min-height: 400px; }
}

/* ════════════════════════════════════════
   FOOTER — AP style
════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  background: var(--black-warm);
  padding: 72px var(--pad-h) 48px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 200;
  letter-spacing: 6px; color: var(--cream); text-transform: uppercase; margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(237,232,223,.4); font-weight: 200; margin-bottom: 20px;
}
.footer-brand p {
  font-size: 11px; line-height: 1.9; color: rgba(237,232,223,.3);
  font-family: var(--font-label); font-weight: 200; max-width: 220px;
  letter-spacing: .5px;
}
.footer-col h4 {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px; font-weight: 200;
  font-family: var(--font-label);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col ul li a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(237,232,223,.45); text-decoration: none;
  transition: color .4s; font-family: var(--font-label); font-weight: 200;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(237,232,223,.35); font-family: var(--font-label); font-weight: 200;
}
.footer-bottom a {
  color: rgba(237,232,223,.35); text-decoration: none; transition: color .3s;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-palladium { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }

/* ════════════════════════════════════════
   FORMULAIRE — AP style
════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(237,232,223,.5); font-weight: 200; font-family: var(--font-label);
}
.form-input, .form-textarea, .form-select {
  background: none;
  border: none; border-bottom: 1px solid var(--line);
  color: var(--cream); font-family: var(--font-serif);
  font-size: 15px; font-weight: 300; padding: 14px 0;
  outline: none; width: 100%;
  transition: border-color .4s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-bottom-color: var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(237,232,223,.2); font-style: italic;
}
.form-textarea { resize: none; min-height: 100px; }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --pad-h: 60px; }
  nav { gap: 28px; }
  nav a { font-size: 9px; letter-spacing: 3px; }
}
@media (max-width: 1024px) {
  nav { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 40px; }
  :root { --pad-h: 40px; --pad-v: 80px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  :root { --pad-h: 24px; --pad-v: 64px; }
  header { padding: 22px 24px; }
  header.scrolled { padding: 14px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 60px 24px; }
}
