/* ÉCHECS 3D — LANDING — Éditorial / Luxe */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #120f0b;
  color: #faf6ee;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: radial-gradient(circle at 50% 40%, #221c14, #120f0b 75%);
  transition: opacity 0.4s ease;
}
.loader__crown {
  font-size: 3.4rem; color: #e0b96f;
  animation: loader-bob 1.6s ease-in-out infinite;
}
@keyframes loader-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.loader__text {
  font-family: 'Cinzel', serif; letter-spacing: 0.22em; text-transform: uppercase;
  color: #b8924f; font-size: 0.9rem; margin: 0;
}

/* ===== GRAIN ===== */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem clamp(1.2rem, 5vw, 3.5rem);
  transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s;
}
.nav.is-scrolled {
  background: rgba(18, 15, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(224, 185, 111, 0.14);
}
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.nav__crown { font-size: 1.5rem; color: #e0b96f; }
.nav__name {
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.12em; font-size: 1.1rem;
}
.nav__name em { font-style: normal; color: #e0b96f; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  color: rgba(250, 246, 238, 0.72); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: #e0b96f; transition: width 0.3s;
}
.nav__links a:hover { color: #faf6ee; }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  background: linear-gradient(135deg, #e0b96f, #b8924f); color: #1a1206; border: 0;
  padding: 0.7rem 1.5rem; border-radius: 100px; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224, 185, 111, 0.3); }

@media (max-width: 760px) { .nav__links { display: none; } }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(7rem, 14vh, 10rem) clamp(1.2rem, 5vw, 3.5rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__orbs .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.orb--1 { width: 420px; height: 420px; background: radial-gradient(circle, #e6c98a, transparent 70%); top: -6%; left: -8%; animation: float1 14s ease-in-out infinite; }
.orb--2 { width: 360px; height: 360px; background: radial-gradient(circle, #cdb6e0, transparent 70%); bottom: -8%; right: 4%; animation: float2 18s ease-in-out infinite; }
.orb--3 { width: 280px; height: 280px; background: radial-gradient(circle, #a8c5e0, transparent 70%); top: 40%; left: 45%; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,40px); } }

.hero__inner { max-width: 620px; }
.hero__eyebrow {
  font-family: 'Cinzel', serif; letter-spacing: 0.26em; text-transform: uppercase;
  color: #b8924f; font-size: 0.78rem; margin: 0 0 1.4rem;
}
.hero__title {
  font-family: 'Fraunces', serif; font-weight: 900; line-height: 0.95;
  font-size: clamp(2.8rem, 8vw, 6rem); margin: 0 0 1.6rem;
}
.hero__title .line { display: block; }
.hero__title em { font-style: italic; color: #e0b96f; }
.hero__lead {
  color: rgba(250, 246, 238, 0.7); font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.6;
  max-width: 480px; margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero__meta {
  color: rgba(250, 246, 238, 0.5); font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0;
}
.hero__meta b { color: rgba(250, 246, 238, 0.78); font-weight: 600; }
.hero__meta .dot { color: #b8924f; }

/* ----- Plateau Hero (canvas 3D) ----- */
.hero__board {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vh, 600px);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 100px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn--primary { background: linear-gradient(135deg, #e0b96f, #b8924f); color: #1a1206; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(224, 185, 111, 0.34); }
.btn--ghost { background: rgba(255,255,255,0.04); border-color: rgba(224, 185, 111, 0.34); color: #e0b96f; }
.btn--ghost:hover { background: rgba(224, 185, 111, 0.14); transform: translateY(-2px); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== KICKER / SECTION HEAD ===== */
.kicker {
  font-family: 'Cinzel', serif; letter-spacing: 0.24em; text-transform: uppercase;
  color: #b8924f; font-size: 0.74rem; display: block; margin-bottom: 0.9rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section-title {
  font-family: 'Fraunces', serif; font-weight: 900; line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3.4rem); margin: 0;
}
.section-title em { font-style: italic; color: #e0b96f; }

/* ===== MANIFESTE ===== */
.manifeste {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 3.5rem);
  text-align: center;
}
.manifeste__text {
  font-family: 'Fraunces', serif; font-size: clamp(1.3rem, 3.4vw, 2rem); line-height: 1.5;
  font-weight: 400; color: rgba(250, 246, 238, 0.9); margin: 0 0 1.5rem;
}
.manifeste__text em { font-style: italic; color: #e0b96f; }
.dropcap {
  float: left; font-family: 'Fraunces', serif; font-size: 4.2rem; line-height: 0.8;
  color: #e0b96f; padding: 0.1em 0.12em 0 0; font-weight: 900;
}
.manifeste__sign { font-family: 'Cinzel', serif; letter-spacing: 0.1em; color: #b8924f; font-size: 0.9rem; margin: 0; }

/* ===== MODES ===== */
.modes { position: relative; z-index: 2; padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 5vw, 3.5rem); max-width: 1240px; margin: 0 auto; }
.modes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.mode {
  background: rgba(26, 20, 16, 0.6); border: 1px solid rgba(224, 185, 111, 0.16);
  border-radius: 20px; padding: 2rem 1.8rem; transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.mode:hover { transform: translateY(-6px); border-color: rgba(224, 185, 111, 0.4); background: rgba(26, 20, 16, 0.85); }
.mode--feature { background: linear-gradient(160deg, rgba(224,185,111,0.14), rgba(26,20,16,0.6)); border-color: rgba(224, 185, 111, 0.3); }
.mode__num { font-family: 'Cinzel', serif; color: #b8924f; font-size: 0.9rem; letter-spacing: 0.1em; }
.mode__title { font-family: 'Fraunces', serif; font-size: 1.5rem; margin: 0.8rem 0 0.7rem; }
.mode__text { color: rgba(250, 246, 238, 0.68); line-height: 1.6; font-size: 0.95rem; margin: 0 0 1.4rem; }
.mode__link { background: none; border: 0; color: #e0b96f; font: inherit; font-weight: 600; cursor: pointer; padding: 0; transition: gap 0.2s, opacity 0.2s; }
.mode__link:hover { opacity: 0.8; }

@media (max-width: 880px) { .modes__grid { grid-template-columns: 1fr; } }

/* ===== GALERIE ===== */
.galerie { position: relative; z-index: 2; padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 5vw, 3.5rem); max-width: 1240px; margin: 0 auto; }
.galerie__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1.2rem; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(224,185,111,0.14); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  font-family: 'Fraunces', serif; font-size: 1.1rem; font-style: italic;
  background: linear-gradient(transparent, rgba(8,6,4,0.8));
}
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }

@media (max-width: 880px) {
  .galerie__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .shot--wide { grid-column: span 2; }
  .shot--tall { grid-row: span 1; }
}

/* ===== CHIFFRES ===== */
.chiffres { position: relative; z-index: 2; padding: clamp(3rem, 8vh, 5rem) clamp(1.2rem, 5vw, 3.5rem); }
.chiffres__inner {
  max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(224, 185, 111, 0.16); border-bottom: 1px solid rgba(224, 185, 111, 0.16);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.stat { text-align: center; }
.stat__num { display: block; font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); color: #e0b96f; line-height: 1; }
.stat__label { color: rgba(250, 246, 238, 0.6); font-size: 0.85rem; margin-top: 0.5rem; display: block; }

@media (max-width: 720px) { .chiffres__inner { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA ===== */
.cta { position: relative; z-index: 2; padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 3.5rem); text-align: center; }
.cta__inner {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(224,185,111,0.16), rgba(26,20,16,0.7));
  border: 1px solid rgba(224, 185, 111, 0.3); border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4rem);
}
.cta__title { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.cta__title em { font-style: italic; color: #e0b96f; }
.cta__text { color: rgba(250, 246, 238, 0.7); line-height: 1.6; margin: 0 0 2rem; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2rem clamp(1.2rem, 5vw, 3.5rem); border-top: 1px solid rgba(224, 185, 111, 0.14);
}
.footer__brand { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.12em; }
.footer__brand em { font-style: normal; color: #e0b96f; }
.footer__note { color: rgba(250, 246, 238, 0.5); font-size: 0.85rem; margin: 0; }
.footer__link { background: none; border: 0; color: #e0b96f; font: inherit; font-weight: 600; cursor: pointer; }

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: clamp(6rem, 12vh, 8rem);
  }
  .hero__inner { order: 1; }
  .hero__board { order: 2; height: clamp(320px, 60vw, 460px); }
  .hero__meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  html { scroll-behavior: auto; }
}