/* ========================
   DESIGN TOKENS
======================== */
:root {
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Dark theme (default) */
  --bg:        #080c12;
  --bg-rgb:    8,12,18;
  --bg-card:   #0e1420;
  --bg-card2:  #111826;
  --bg-glass:  rgba(14,20,32,0.7);
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.12);
  --text:      #e8eef8;
  --text-2:    #8899b4;
  --text-3:    #56657e;
  --accent:    #38bdf8;
  --accent-2:  #818cf8;
  --accent-3:  #34d399;
  --accent-warn: #fbbf24;
  --accent-rgb: 56,189,248;
  --accent2-rgb: 129,140,248;
  --glow:      rgba(56,189,248,0.15);
  --glow2:     rgba(129,140,248,0.12);
  --shadow:    0 2px 40px rgba(0,0,0,0.6);
  --radius:    20px;
  --radius-sm: 12px;
}

[data-theme="light"] {
  --bg:        #f4f7fb;
  --bg-rgb:    244,247,251;
  --bg-card:   #ffffff;
  --bg-card2:  #f0f4fa;
  --bg-glass:  rgba(255,255,255,0.8);
  --border:    rgba(0,0,0,0.07);
  --border-md: rgba(0,0,0,0.12);
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;
  --accent:    #0284c7;
  --accent-2:  #4f46e5;
  --accent-3:  #059669;
  --accent-warn: #d97706;
  --accent-rgb: 2,132,199;
  --accent2-rgb: 79,70,229;
  --glow:      rgba(2,132,199,0.08);
  --glow2:     rgba(79,70,229,0.06);
  --shadow:    0 2px 24px rgba(0,0,0,0.08);
}

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ========================
   BACKGROUND EFFECTS
======================== */
.bg-blobs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-blobs::before {
  content: '';
  position: absolute;
  width: 800px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb),0.08) 0%, transparent 70%);
  border-radius: 50%;
  transition: background 0.3s;
}
.bg-blobs::after {
  content: '';
  position: absolute;
  width: 600px; height: 500px;
  top: 50px; right: -100px;
  background: radial-gradient(ellipse, rgba(var(--accent2-rgb),0.07) 0%, transparent 70%);
  border-radius: 50%;
  transition: background 0.3s;
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
  opacity: 0.5;
  transition: opacity 0.3s;
}
[data-theme="light"] .bg-grid { opacity: 0.4; }

/* ========================
   LAYOUT
======================== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ========================
   NAVBAR
======================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* Logo SVG adaptatif — V2 fill subtil */
.logo-svg-stroke { stroke: #38bdf8; }
.logo-svg-fill   { fill: rgba(56,189,248,0.15); }
.logo-svg-bt     { fill: #e8eef8; }
[data-theme="light"] .logo-svg-stroke { stroke: #0284c7; }
[data-theme="light"] .logo-svg-fill   { fill: rgba(2,132,199,0.12); }
[data-theme="light"] .logo-svg-bt     { fill: #0f172a; }
.logo-mark { display: none; }

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px; line-height: 1.1;
}
.brand-text .tag {
  font-size: 11px; color: var(--text-2); line-height: 1;
}

/* Nav links — desktop uniquement */
.desktop-nav .nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.desktop-nav .nav-links a {
  font-size: 14px; color: var(--text-2);
  padding: 7px 12px; border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  display: block;
}
.desktop-nav .nav-links a:hover { color: var(--text); background: var(--border); }

/* Menu mobile — div indépendant, caché sur desktop */
#mobileMenu { display: none; }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-md);
  background: transparent; color: var(--text-2);
  cursor: pointer; display: grid; place-items: center;
  font-size: 16px; transition: all 0.15s;
}
.theme-toggle:hover { color: var(--text); background: var(--border); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none; background: transparent; border: 1px solid var(--border-md);
  border-radius: 10px; width: 36px; height: 36px;
  color: var(--text-2); cursor: pointer; place-items: center;
}

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-md);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }

[data-theme="light"] .btn {
  background: #ffffff; border-color: rgba(0,0,0,0.15);
  color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
[data-theme="light"] .btn:hover {
  background: #f1f5f9; border-color: rgba(0,0,0,0.22);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 12px rgba(var(--accent-rgb),0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 12px rgba(2,132,199,0.35);
}

.btn-wa {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.3);
  color: var(--accent-3);
}
.btn-wa:hover { background: rgba(52,211,153,0.18); }
[data-theme="light"] .btn-wa {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.3);
  color: #047857;
}
[data-theme="light"] .btn-wa:hover { background: rgba(5,150,105,0.15); }

/* ========================
   SECTION COMMONS
======================== */
section { padding: 80px 0; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; letter-spacing: 0;
  line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.65;
  max-width: 580px; margin-bottom: 48px;
}
.divider { height: 1px; background: var(--border); margin: 0 0 40px; }

/* ========================
   FOOTER
======================== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.footer-copy a { color: var(--accent); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--text-3); }
.footer-links a:hover { color: var(--text); }

/* ========================
   ANIMATIONS SCROLL
======================== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .nav-hamburger { display: grid; }
  .nav-right .btn-wa { display: none; }

  /* Menu mobile plein écran */
  #mobileMenu {
    display: flex;
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  #mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
  }
  #mobileMenu nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 100%;
  }
  #mobileMenu nav ul li { width: 100%; max-width: 300px; }
  #mobileMenu nav ul a {
    display: block; text-align: center;
    font-size: 22px; font-weight: 600;
    padding: 16px 24px; border-radius: 16px;
    color: var(--text); text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
  }
  #mobileMenu nav ul a:hover {
    background: var(--bg-card);
    border-color: var(--border-md);
  }
  #menuClose {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border-md);
    color: var(--text); cursor: pointer;
    display: grid; place-items: center;
  }

  section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
