/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   THEME — YELLOW (défaut)
   Pour changer la couleur accent il suffit de modifier ces 4 variables.
   ============================================================ */
:root {
  /* Couleurs neutres — ne changent jamais */
  --white:       #ffffff;
  --off:         #f7f7f5;
  --light:       #f0efe9;
  --dark:        #0d0d0d;
  --dark2:       #151515;
  --green:       #00c97a;
  --text:        #1a1a1a;
  --muted:       #888882;
  --border:      #e8e8e4;
  --border-dark: rgba(255,255,255,0.1);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --font-head:   'Bricolage Grotesque', sans-serif;
  --font-body:   'Inter', sans-serif;
  --max-w:       1300px;
  --px:          52px;
  --py:          96px;

  /* ── ACCENTS PAR UNIVERS ─────────────────────────────────────
     Pour changer la couleur d'un univers : modifier UNE seule ligne.
     --accent-work  = couleur de l'univers Travailler
     --accent-trade = couleur de l'univers Trade / Investir
  ─────────────────────────────────────────────────────────────── */
  --accent-work:       #8b5cf6;              /* ← Changer ici pour Travailler */
  --accent-work-glow:  rgba(139,92,246,0.30);
  --accent-work-bg:    rgba(139,92,246,0.12);
  --accent-work-bdr:   rgba(139,92,246,0.25);

  --accent-trade:      #1a6bff;              /* ← Changer ici pour Trade/Investir */
  --accent-trade-glow: rgba(26,107,255,0.30);
  --accent-trade-bg:   rgba(26,107,255,0.12);
  --accent-trade-bdr:  rgba(26,107,255,0.25);

  /* ── ACCENT LAVANDE (défaut — reste pour le reste du site) ── */
  --accent:      #8b5cf6;
  --accent2:     #a78bfa;
  --on-accent:   #ffffff;        /* texte posé sur fond accent */
  --accent-glow: rgba(139,92,246,0.35);
  --accent-glow2:rgba(139,92,246,0.45);
  --accent-bg:   rgba(139,92,246,0.12);  /* fond badge/pill */
  --accent-bdr:  rgba(139,92,246,0.25);  /* bordure badge */
  --accent-bg2:  rgba(139,92,246,0.08);  /* lueur hero */
}

/* ── ACCENT BLEU ── remplace uniquement les variables d'accent */
[data-theme="blue"] {
  --accent:      #1a6bff;        /* ← Changer ici pour correspondre à votre logo */
  --accent2:     #4d8fff;
  --on-accent:   #ffffff;
  --accent-glow: rgba(26,107,255,0.35);
  --accent-glow2:rgba(26,107,255,0.45);
  --accent-bg:   rgba(26,107,255,0.12);
  --accent-bdr:  rgba(26,107,255,0.25);
  --accent-bg2:  rgba(26,107,255,0.08);
}

/* ── UNIVERS TRAVAILLER — thème lavande (défaut, mais explicite) ── */
body.universe-travailler {
  --accent:      #8b5cf6;
  --accent2:     #a78bfa;
  --on-accent:   #ffffff;
  --accent-glow: rgba(139,92,246,0.35);
  --accent-glow2:rgba(139,92,246,0.45);
  --accent-bg:   rgba(139,92,246,0.12);
  --accent-bdr:  rgba(139,92,246,0.25);
  --accent-bg2:  rgba(139,92,246,0.08);
}

/* ── UNIVERS INVESTIR — thème bleu ── */
body.universe-investir {
  --accent:      #1a6bff;
  --accent2:     #4d8fff;
  --on-accent:   #ffffff;
  --accent-glow: rgba(26,107,255,0.35);
  --accent-glow2:rgba(26,107,255,0.45);
  --accent-bg:   rgba(26,107,255,0.12);
  --accent-bdr:  rgba(26,107,255,0.25);
  --accent-bg2:  rgba(26,107,255,0.08);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
section { padding: var(--py) 0; }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-title .accent { color: var(--accent); }

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
}
.section-sub.light { color: rgba(255,255,255,0.5); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes spinIn {
  from { transform: rotate(-180deg) scale(0.5); opacity: 0; }
  to   { transform: rotate(0deg) scale(1);     opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
#theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px 8px 8px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}
#theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.toggle-swatches {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 3px;
}
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.swatch-yellow { background: #8b5cf6; }
.swatch-blue   { background: #1a6bff; }
.swatch.active { border-color: #fff; transform: scale(1.15); }

.toggle-label { line-height: 1; }
