/* =========================================================
   Voyage en Chine — Variante 1 : Three.js / Rose poudré
   ========================================================= */

:root {
  --rose:        #ef9bb8;
  --rose-fonce:  #d96e92;
  --rose-clair:  #fbe1ea;
  --blanc-casse: #fff8f5;
  --creme:       #fdeef2;
  --or:          #c9a24b;
  --or-clair:    #e3c27e;
  --encre:       #3b2b32;
  --encre-doux:  #6e5660;

  --font-titre: "Cormorant Garamond", Georgia, serif;
  --font-corps: "Manrope", system-ui, sans-serif;
  --font-cn:    "Ma Shan Zheng", "Cormorant Garamond", serif;

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  color: var(--encre);
  background:
    radial-gradient(1200px 700px at 50% -10%, #ffffff 0%, var(--blanc-casse) 35%, var(--creme) 70%, #fbdfe9 100%);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Canvas 3D fixé en fond --- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

main { position: relative; z-index: 2; }

.container { width: min(var(--max), 90vw); margin-inline: auto; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 248, 245, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(217, 110, 146, 0.12);
}
.nav__brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--encre); }
.nav__cn { font-family: var(--font-cn); font-size: 1.5rem; color: var(--rose-fonce); line-height: 1; }
.nav__fr { font-family: var(--font-titre); font-size: 1.25rem; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a { text-decoration: none; color: var(--encre-doux); font-size: .92rem; letter-spacing: .04em; transition: color .3s; }
.nav__links a:hover { color: var(--rose-fonce); }
.nav__cta {
  border: 1px solid var(--rose);
  padding: .5rem 1.2rem;
  border-radius: 999px;
  color: var(--rose-fonce) !important;
}
.nav__cta:hover { background: var(--rose); color: #fff !important; }

/* =========================================================
   Section 1 — Hero / fleur
   ========================================================= */
.hero-scroll { height: 280vh; position: relative; z-index: 2; }

.hero-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  gap: 1.1rem;
  will-change: opacity, transform;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .72rem;
  color: var(--rose-fonce);
  font-weight: 500;
}
.hero__title { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.hero__cn { font-family: var(--font-cn); font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--rose-fonce); line-height: 1; opacity: .92; }
.hero__main {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--encre);
}
.hero__subtitle {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--encre-doux);
  max-width: 34ch;
}
.scroll-hint {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
.scroll-hint__arrow { font-size: 1.2rem; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(8px); opacity: 1; } }

/* =========================================================
   Sections de contenu
   ========================================================= */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--rose-fonce);
  margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: .01em;
  margin-bottom: 1.2rem;
}
.lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--encre-doux); max-width: 60ch; }
.lead--center { margin-inline: auto; text-align: center; }

/* --- Section 2 : arrivée --- */
.arrivee {
  position: relative;
  background: linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
  padding: clamp(6rem, 14vh, 11rem) 0 clamp(5rem, 12vh, 9rem);
  overflow: hidden;
  box-shadow: 0 -30px 60px rgba(217, 110, 146, 0.08);
}
.arrivee__inner { text-align: center; }
.plane { position: absolute; top: 12%; left: -140px; color: var(--rose-fonce); opacity: .85; will-change: transform; }
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4.5rem);
  margin-top: 2.8rem;
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__num { font-family: var(--font-titre); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--rose-fonce); }
.stat__label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-doux); }

/* --- Section 3 : incontournables --- */
.incontournables { background: #ffffff; padding: clamp(5rem, 11vh, 8rem) 0; text-align: center; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
  text-align: left;
}
.card {
  background: var(--blanc-casse);
  border: 1px solid rgba(217, 110, 146, 0.14);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(217, 110, 146, 0.18); }
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--rose-clair), #f9d3e0 60%, #f3bcd0);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card h3 { font-family: var(--font-titre); font-weight: 600; font-size: 1.5rem; margin: 1.1rem 1.3rem .4rem; }
.card p { margin: 0 1.3rem 1.4rem; color: var(--encre-doux); font-size: .98rem; }

/* --- Section 4 : galerie --- */
.galerie { background: linear-gradient(180deg, #ffffff, #fff4f8); padding: clamp(5rem, 11vh, 8rem) 0; text-align: center; }
.gallery-grid {
  width: min(var(--max), 92vw);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7cbdb, #efa9c4);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* --- Section 5 : CTA --- */
.cta {
  background: linear-gradient(135deg, var(--rose-fonce), #b8527a 60%, #8e3d63);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 13vh, 9rem) 0;
}
.cta__title { font-family: var(--font-titre); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta__text { color: rgba(255,255,255,.85); margin: 1rem auto 2.2rem; max-width: 46ch; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn--primary { background: #fff; color: var(--rose-fonce); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.26); }
.btn--ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* --- Footer --- */
.footer { background: #2b1c22; color: #f4dde6; padding: 3.5rem 0; text-align: center; }
.footer__brand { font-family: var(--font-cn); font-size: 1.6rem; color: var(--rose); margin-bottom: .8rem; }
.footer__note { max-width: 52ch; margin: 0 auto .8rem; color: #d9bcc7; font-size: .92rem; }
.footer__legal { font-size: .8rem; color: #a98a96; }

/* =========================================================
   Animations d'apparition (GSAP gère, fallback ci-dessous)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .hero-scroll { height: 240vh; }
}

/* =========================================================
   Accessibilité — mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint__arrow { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
