/* ==========================================================================
   COMO — Système de Design Global
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Inter:wght@200;300;400;500&display=swap');

/* ── Bon Vivant Serif — police titre personnalisée ───── */
@font-face {
  font-family: 'Bon Vivant';
  src: url('../assets/fonts/BonVivantSerif.eot');
  src:
    url('../assets/fonts/BonVivantSerif.eot?#iefix') format('embedded-opentype'),
    url('../assets/fonts/BonVivantSerif.woff2')      format('woff2'),
    url('../assets/fonts/BonVivantSerif.woff')       format('woff'),
    url('../assets/fonts/BonVivantSerif.ttf')        format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bon Vivant';
  src: url('../assets/fonts/BonVivantSerifBold.eot');
  src:
    url('../assets/fonts/BonVivantSerifBold.eot?#iefix') format('embedded-opentype'),
    url('../assets/fonts/BonVivantSerifBold.woff2')      format('woff2'),
    url('../assets/fonts/BonVivantSerifBold.woff')       format('woff'),
    url('../assets/fonts/BonVivantSerifBold.ttf')        format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* ── Palette ───────────────────────────────── */
  --bg:             #faf6ed;
  --dark:           #0e0c0a;
  --dark-2:         #1a1815;
  --dark-3:         #252220;
  --text:           #2a2826;
  --text-muted:     #8a8880;
  --gold:           #6a6d46;
  --gold-light:     #8a8d5a;
  --gold-pale:      #eeeee6;
  --green:          #1c2a1c;
  --green-2:        #283828;
  --cream:          #faf6ed;

  /* ── Typographie ───────────────────────────── */
  --font-display:   'Bon Vivant', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Couleur d'accentuation ─────────────────── */
  --accent:         #6a6d46;
  --accent-hover:   #7c7f54;

  /* ── Espacement ────────────────────────────── */
  --section-v:      clamp(80px, 10vw, 140px);
  --container-max:  1240px;
  --container-pad:  clamp(24px, 5vw, 72px);

  /* ── Mouvement ─────────────────────────────── */
  --radius:         12px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);
  --dur:            0.7s;
  --dur-fast:       0.3s;

  /* ── Bordures vertes ────────────────────────────── */
  --border-gold:    rgba(106, 109, 70, 0.15);
  --border-light:   rgba(42, 40, 38, 0.12);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════
   Transition de page
   ══════════════════════════════════════════════ */

#page-overlay {
  position: fixed;
  inset: 0;
  background: #faf6ed;
  z-index: 99997;
  opacity: 1;
  pointer-events: all;
  transition: opacity 1s var(--ease-out);
}

#page-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   Typographie de base
   ══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}

a         { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button     { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ══════════════════════════════════════════════
   Utilitaires
   ══════════════════════════════════════════════ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.deco-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  display: block;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════
   Scroll Reveal
   ══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s;  }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s;  }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ══════════════════════════════════════════════
   Language Switcher
   ══════════════════════════════════════════════ */

.lang-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 490;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 3px;
  backdrop-filter: blur(8px);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 9px;
  border-radius: 36px;
  line-height: 1;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lang-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* Landing page override — identique au style de base (fond vert) */

/* ── Responsive \u2014 Lang Switcher ────────────────── */

/* On mobile the lang switcher lives inside the overlay menu */
@media (max-width: 768px) {
  .lang-switcher { display: none; }
}
