/* ════════════════════════════════════════════════════════
   L'AVENTURE CONTINUE — Design System
   Palette : Encre · Or · Ivoire · Pierre
   Fonts   : Playfair Display · DM Sans · Great Vibes
════════════════════════════════════════════════════════ */

:root {
  --ink:        #0D0C0A;
  --ink-soft:   #181612;
  --gold:       #C9A84C;
  --gold-light: #E8C87A;
  --gold-dim:   #8B6914;
  --ivory:      #F5F0E8;
  --ivory-soft: #E8E0D0;
  --stone:      #7A7060;
  --stone-light:#A89880;
  --white:      #FFFFFF;
  --error:      rgba(220,50,50,0.85);

  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
  --script: 'Great Vibes', cursive;

  --max-w: 1180px;
  --rad:   16px;
  --rad-sm: 10px;

  --shadow-gold: 0 8px 40px rgba(201,168,76,0.18);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--ivory);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--sans); cursor: pointer; border: none; outline: none; }

.script { font-family: var(--script); }
.gold    { color: var(--gold); }
.stone   { color: var(--stone-light); }

/* ── LAYOUT ────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

section { position: relative; z-index: 1; }

/* ── NAVIGATION ────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 2rem;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(13,12,10,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.12);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-script {
  font-family: var(--script); font-size: 1.7rem; color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.35));
}
.nav-logo-sub {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--stone-light); margin-top: -2px;
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-link {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--stone-light); transition: color 0.25s;
}
.nav-link:hover { color: var(--ivory); }
.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 30px;
  color: var(--gold) !important;
  font-weight: 600;
  transition: all 0.3s;
  background: rgba(201,168,76,0.05);
}
.nav-cta:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px; border-radius: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--stone-light); border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--ink-soft); border-left: 1px solid rgba(201,168,76,0.15);
  z-index: 901; padding: 5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  padding: 0.9rem 1rem; border-radius: var(--rad-sm);
  font-size: 1rem; color: var(--stone-light);
  transition: all 0.2s; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-drawer a:hover { color: var(--ivory); background: rgba(255,255,255,0.04); }
.drawer-cta {
  margin-top: 1rem; padding: 1rem !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)) !important;
  color: var(--ink) !important; font-weight: 700 !important;
  border-radius: var(--rad) !important; text-align: center;
  border-bottom: none !important;
}
.nav-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--ink); font-family: var(--sans); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 40px; border: none; cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,0.35); }
.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(201,168,76,0.35); border-radius: 40px;
  color: var(--gold); font-family: var(--sans); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.05em;
  background: rgba(201,168,76,0.04);
  cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201,168,76,0.15);
}

.btn-ghost {
  background: none; border: none; color: var(--stone-light);
  font-size: 0.85rem; cursor: pointer; transition: color 0.2s;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--ivory); }

/* ── FORMS ─────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stone-light);
}
.field-input {
  width: 100%; padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rad-sm); color: var(--ivory);
  font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.field-input:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.field-input::placeholder { color: rgba(255,255,255,0.28); }
.field-input.error { border-color: var(--error); }
.field-hint {
  font-size: 0.72rem; color: var(--stone); line-height: 1.5;
}

/* ── SECTIONS (homepage) ───────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 30px; background: rgba(201,168,76,0.06);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem; color: var(--stone-light); line-height: 1.75;
  max-width: 560px;
}

/* ── DIVIDER ───────────────────────────────────── */
.divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
}

/* ── CARDS ─────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2rem;
  transition: all 0.35s;
}
.card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* ── FOOTER ────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 5rem 2rem 2rem; position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  margin-bottom: 3rem;
}
.footer-tagline {
  font-size: 0.88rem; color: var(--stone); line-height: 1.7; margin-top: 1rem;
}
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-title {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.footer-col a { font-size: 0.88rem; color: var(--stone-light); transition: color 0.2s; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: var(--stone); text-align: center;
}

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.6; }
}

.animate-fadeUp {
  opacity: 0; animation: fadeUp 0.7s ease-out forwards;
}

/* ── PHONE GATE MODAL ──────────────────────────── */
.email-gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}
.email-gate-overlay.hidden { display: none !important; }
.email-gate-card {
  background: rgba(20,18,14,0.98);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 24px; padding: 2.5rem 2rem 2rem;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--shadow-deep);
  animation: fadeUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.email-gate-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.email-gate-title {
  font-family: var(--serif); font-size: 1.6rem; color: var(--ivory);
  margin-bottom: 0.5rem;
}
.email-gate-desc {
  font-size: 0.85rem; color: var(--stone-light); line-height: 1.65; margin-bottom: 1.8rem;
}
.email-gate-desc strong { color: var(--gold); }
.email-input[type="email"] { width: 100%; margin-bottom: 0.6rem; }
.email-input-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; } /* legacy */
.email-flag-select {
  width: 85px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rad-sm); color: var(--ivory); font-family: var(--sans);
  font-size: 0.88rem; padding: 0.75rem 0.5rem; cursor: pointer; text-align: center;
  appearance: none;
}
.email-input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rad-sm); color: white; font-family: var(--sans); font-size: 1rem;
  padding: 0.75rem 1rem; outline: none; transition: border-color 0.25s;
}
.email-input:focus { border-color: rgba(201,168,76,0.5); }
.email-input.error { border-color: rgba(220,50,50,0.7); }
.email-input::placeholder { color: rgba(255,255,255,0.28); }
.email-hint { font-size: 0.71rem; color: var(--stone); margin-bottom: 1.5rem; text-align: left; line-height: 1.5; }
.email-hint.gold-hint { color: rgba(201,168,76,0.7); }
.btn-email-confirm {
  width: 100%; padding: 0.95rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--ink); border: none; border-radius: var(--rad-sm);
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s; margin-bottom: 0.8rem;
}
.btn-email-confirm:hover { filter: brightness(1.1); transform: translateY(-1px); }
.email-gate-cancel { font-size: 0.78rem; color: var(--stone); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  padding: 0.8rem 1.5rem; border-radius: 30px;
  background: rgba(20,18,14,0.95); border: 1px solid rgba(201,168,76,0.3);
  color: var(--ivory); font-size: 0.85rem; font-weight: 500;
  z-index: 9999; pointer-events: none;
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.2s forwards;
}
@keyframes toastIn  { from { opacity:0; transform: translateX(-50%) translateY(16px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .footer-links { grid-template-columns: 1fr; }
  .wrap { padding: 0 1.2rem; }
}
