/* ============================================================
   BASE.CSS — Tokens · Reset · Typographie
   Foil Explore Cruising — FR only — v2.0
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --c-black:   #0A0A0A;
  --c-white:   #FFFFFF;
  --c-sand:    #F4F3F0;
  --c-sand-2:  #ECEAE4;
  --c-gold:    #C9A96E;
  --c-gold-2:  #B8924A;
  --c-ink-1:   rgba(10,10,10,0.92);
  --c-ink-2:   rgba(10,10,10,0.68);
  --c-ink-3:   rgba(10,10,10,0.42);
  --c-light-1: rgba(255,255,255,0.92);
  --c-light-2: rgba(255,255,255,0.65);
  --c-light-3: rgba(255,255,255,0.35);

  /* Typographie */
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Jost', sans-serif;

  /* Espacements */
  --s-xs:  8px;
  --s-sm:  16px;
  --s-md:  32px;
  --s-lg:  64px;
  --s-xl:  96px;
  --s-2xl: 140px;

  /* Conteneur */
  --container: clamp(24px, 5vw, 80px);

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Nav height */
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar { display: none; } /* Chrome/Safari */

body {
  font-family: var(--f-sans);
  font-weight: 400;
  background: var(--c-black);
  color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ── Typographie globale ─────────────────────────────────── */
.t-tag {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.t-tag--light {
  color: var(--c-light-2);
}

.t-tag--dark {
  color: var(--c-ink-2);
}

.t-display {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.t-display em {
  font-style: italic;
  color: inherit;
  opacity: 0.65;
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-black);
  padding: 14px 32px;
}

.btn--white {
  background: var(--c-white);
  color: var(--c-black);
  padding: 14px 32px;
}

.btn--outline-white {
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--c-white);
  padding: 13px 30px;
}

.btn--outline-white:hover {
  border-color: var(--c-white);
  opacity: 1;
}

.btn--outline-dark {
  border: 1px solid rgba(10,10,10,0.35);
  color: var(--c-ink-1);
  padding: 13px 30px;
}

.btn--solid-dark {
  background: var(--c-black);
  color: var(--c-white);
  padding: 14px 32px;
}

.btn--ghost-light {
  color: var(--c-light-2);
  border: 0.5px solid var(--c-light-3);
  padding: 13px 28px;
}

.btn--ghost-light:hover {
  color: var(--c-white);
  border-color: var(--c-light-2);
  opacity: 1;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.sr.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr.d1 { transition-delay: 80ms; }
.sr.d2 { transition-delay: 160ms; }
.sr.d3 { transition-delay: 240ms; }
.sr.d4 { transition-delay: 320ms; }

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

/* ── Utilitaires ─────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Réduction mouvements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sr { opacity: 1; transform: none; }
}
