/* ═══════════════════════════════════════════════════════════════
   VBCDI — DESIGN SYSTEM
   Version 1.0 · Mars 2026
   Auteur : Vincent Bully / Claude Code
   Usage  : importer ce fichier en premier dans chaque page HTML
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   1. RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────────────────
   2. DESIGN TOKENS (CSS Variables)
───────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --navy:       #0d1117;
  --navy-mid:   #161b22;
  --navy-lgt:   #21262d;

  /* Accent primaire — Gold/Orange */
  --gold:       #FFaa50;
  --gold-lgt:   #FFBE82;
  --gold-pale:  rgba(255, 170, 80, 0.12);

  /* Accent secondaire — Bleu électrique */
  --blue:       #5B8FFF;
  --blue-lgt:   #7BA4FF;
  --blue-pale:  rgba(91, 143, 255, 0.10);

  /* Texte */
  --cream:      #F2EDE4;
  --cream-dim:  #8B949E;
  --white:      #FFFFFF;

  /* Bordures */
  --border:     rgba(91, 143, 255, 0.18);

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Syne', sans-serif;

  /* Animation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Espacement — échelle 4px */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-30: 120px;

  /* Border-radius */
  --radius-sharp: 2px;   /* boutons, tags, badges */
  --radius-card:  4px;   /* cartes, blocs */
  --radius-icon:  8px;   /* icônes carrées */
  --radius-pill:  40px;  /* lang toggle uniquement */
}

/* ─────────────────────────────────────────────────────
   3. BODY & AMBIANCE
───────────────────────────────────────────────────── */
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture — ambiance cinématographique */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ─────────────────────────────────────────────────────
   4. LANGUE (FR/EN)
───────────────────────────────────────────────────── */
[data-lang="en"] .fr { display: none !important; }
[data-lang="fr"] .en { display: none !important; }

/* ─────────────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 24px 0;
  transition: padding .3s var(--ease), background .3s;
}
#nav.solid {
  padding: 14px 0;
  background: rgba(13, 17, 23, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 var(--space-8);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-wrap {
  display: flex; flex-direction: column; gap: var(--space-1);
  text-decoration: none;
}
.nav-logo {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: .06em; color: var(--cream);
  text-decoration: none; line-height: 1;
}
.nav-logo span { color: var(--blue); }
.nav-tagline {
  font-family: var(--font-ui); font-size: 8px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); opacity: 0.65; line-height: 1;
}
.nav-right { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-dim);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.nav-current { color: var(--blue); }

/* Toggle langue */
.lang-toggle {
  display: flex; gap: var(--space-1);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px;
}
.lang-toggle button {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; border: none; cursor: pointer;
  background: transparent; color: var(--cream-dim);
  transition: all .25s var(--ease);
}
.lang-toggle button.active { background: var(--gold); color: var(--navy); }

/* ─────────────────────────────────────────────────────
   6. FOOTER
───────────────────────────────────────────────────── */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 var(--space-8);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--cream-dim);
  flex-wrap: wrap; gap: var(--space-3);
}
.footer-logo {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; color: var(--cream);
}
.footer-logo span { color: var(--blue); }
.footer-links { display: flex; gap: var(--space-6); }
.footer-links a {
  color: var(--cream-dim); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

/* ─────────────────────────────────────────────────────
   7. LAYOUT UTILITAIRES
───────────────────────────────────────────────────── */
.wrap        { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-8); }
.wrap-narrow { max-width: 780px;  margin: 0 auto; padding: 0 var(--space-8); }

/* ─────────────────────────────────────────────────────
   8. TYPOGRAPHIE — COMPOSANTS
───────────────────────────────────────────────────── */

/* Section eye — label de catégorie avec ligne */
.section-eye {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: 18px;
}
.section-eye::before {
  content: ''; width: 28px; height: 1px; background: var(--blue);
  flex-shrink: 0;
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300; line-height: 1.1; color: var(--white);
}
.section-title em { color: var(--gold); font-style: italic; }

/* ─────────────────────────────────────────────────────
   9. BOUTONS
───────────────────────────────────────────────────── */

/* Primaire — gold/orange */
.btn-gold {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--gold); color: var(--navy);
  font-family: var(--font-ui); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 15px var(--space-8); border-radius: var(--radius-sharp);
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-gold:hover {
  background: var(--gold-lgt); transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 170, 80, .3);
}
.btn-gold svg { transition: transform .2s; }
.btn-gold:hover svg { transform: translateX(4px); }

/* Secondaire — contour */
.btn-outline {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--cream);
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 15px var(--space-8); border-radius: var(--radius-sharp);
  border: 1px solid rgba(245, 240, 232, .2);
  text-decoration: none; transition: all .25s var(--ease);
}
.btn-outline:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-pale);
}

/* ─────────────────────────────────────────────────────
   10. TAGS
───────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-pale); border: 1px solid rgba(91, 143, 255, .25);
  padding: 3px 9px; border-radius: var(--radius-sharp);
  display: inline-block;
}
.tag-gold {
  color: var(--gold);
  background: var(--gold-pale); border-color: rgba(255, 170, 80, .25);
}

/* ─────────────────────────────────────────────────────
   11. CARTES — BASE
───────────────────────────────────────────────────── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  border-color: rgba(91, 143, 255, .35);
}
/* Carte mise en avant (featured) */
.card--featured {
  border-color: rgba(255, 170, 80, .45);
  box-shadow: 0 0 0 1px rgba(255, 170, 80, .18), 0 4px 24px rgba(255, 170, 80, .08);
}
.card--featured::before {
  content: ''; display: block; height: 2px; background: var(--gold);
}

/* ─────────────────────────────────────────────────────
   12. ICÔNES — CONTENEURS
───────────────────────────────────────────────────── */
.icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-icon);
  display: flex; align-items: center; justify-content: center;
}
.icon-wrap--blue { background: var(--blue-pale); border: 1px solid rgba(91, 143, 255, .2); color: var(--blue); }
.icon-wrap--gold { background: var(--gold-pale); border: 1px solid rgba(255, 170, 80, .25); color: var(--gold); }
.icon-wrap svg { width: 22px; height: 22px; }

/* ─────────────────────────────────────────────────────
   13. BLOCS D'ACCENT
───────────────────────────────────────────────────── */

/* Bloc gold — garantie, mise en avant */
.accent-gold {
  background: var(--gold-pale);
  border: 1px solid rgba(255, 170, 80, .25);
  border-radius: var(--radius-card);
  padding: 18px 24px;
}
.accent-gold strong { color: var(--gold); }

/* Bloc bleu — info, structure */
.accent-blue {
  background: var(--blue-pale);
  border: 1px solid rgba(91, 143, 255, .22);
  border-radius: var(--radius-card);
  padding: 18px 24px;
}
.accent-blue strong { color: var(--blue); }

/* Citation avec bordure gold */
.quote-block {
  padding: 28px var(--space-8);
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.quote-block p {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 400; font-style: italic;
  color: var(--cream); line-height: 1.65;
}
.quote-block cite {
  display: block; margin-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); font-style: normal;
}

/* ─────────────────────────────────────────────────────
   14. ANIMATIONS (reveal au scroll)
───────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ─────────────────────────────────────────────────────
   15. HERO — ÉLÉMENTS DE FOND
───────────────────────────────────────────────────── */
.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(91, 143, 255, .08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255, 170, 80, .10) 0%, transparent 50%);
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(91, 143, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 143, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ─────────────────────────────────────────────────────
   16. RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-tagline { display: none; }
  .wrap, .wrap-narrow { padding: 0 var(--space-6); }
}

@media (max-width: 480px) {
  .btn-gold, .btn-outline { width: 100%; justify-content: center; }
}
