@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════
   VARIABLES & BASE
═══════════════════════════════════════════════════ */
:root {
    --primary: #4f46e5;
    --secondary: #9333ea;
    --bg-main: #F8FAFC;
    --surface: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(226, 232, 240, 1);
}

body.dark-theme {
    --bg-main: #0f172a;
    --surface: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(51, 65, 85, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   DARK MODE — TEXTES
═══════════════════════════════════════════════════ */
body.dark-theme { background-color: #0f172a !important; }
body.dark-theme .text-slate-900,
body.dark-theme .text-slate-800 { color: #f1f5f9 !important; }
body.dark-theme .text-slate-700 { color: #e2e8f0 !important; }
body.dark-theme .text-slate-600 { color: #cbd5e1 !important; }
body.dark-theme .text-slate-500 { color: #94a3b8 !important; }
body.dark-theme .text-slate-400 { color: #64748b !important; }
body.dark-theme .text-slate-100 { color: #334155 !important; }
body.dark-theme .text-indigo-900 { color: #e0e7ff !important; }

/* ═══════════════════════════════════════════════════
   DARK MODE — BACKGROUNDS
═══════════════════════════════════════════════════ */
body.dark-theme .bg-\[#F8FAFC\] { background-color: #0f172a !important; }
body.dark-theme .bg-white { background-color: #1e293b !important; }
body.dark-theme .bg-slate-50,
body.dark-theme .bg-slate-50\/50,
body.dark-theme .bg-slate-50\/30 { background-color: #334155 !important; }
body.dark-theme .bg-slate-100 { background-color: #475569 !important; }
body.dark-theme .bg-slate-200 { background-color: #475569 !important; }
body.dark-theme .bg-slate-900 { background-color: #0c1222 !important; }
body.dark-theme .bg-slate-950 { background-color: #020617 !important; }
body.dark-theme .bg-slate-900\/90 { background-color: rgba(12, 18, 34, 0.9) !important; }
body.dark-theme .bg-indigo-50 { background-color: rgba(99, 102, 241, 0.15) !important; }
body.dark-theme .bg-rose-50 { background-color: rgba(244, 63, 94, 0.15) !important; }
body.dark-theme .bg-cyan-50 { background-color: rgba(6, 182, 212, 0.15) !important; }
body.dark-theme .bg-amber-100 { background-color: rgba(245, 158, 11, 0.15) !important; }
body.dark-theme .bg-green-600 { background-color: #16a34a !important; }

/* ═══════════════════════════════════════════════════
   DARK MODE — BORDERS
═══════════════════════════════════════════════════ */
body.dark-theme .border-slate-100,
body.dark-theme .border-slate-200 { border-color: #334155 !important; }
body.dark-theme .border-slate-200\/50 { border-color: rgba(51, 65, 85, 0.5) !important; }
body.dark-theme .border-indigo-100 { border-color: rgba(99, 102, 241, 0.2) !important; }
body.dark-theme .border-b-indigo-100 { border-bottom-color: rgba(99, 102, 241, 0.2) !important; }
body.dark-theme .border-cyan-100 { border-color: rgba(6, 182, 212, 0.2) !important; }
body.dark-theme .border-l-slate-400 { border-left-color: #64748b !important; }

/* ═══════════════════════════════════════════════════
   DARK MODE — HOVER STATES
═══════════════════════════════════════════════════ */
body.dark-theme .hover\:bg-slate-900:hover { background-color: #0c1222 !important; }
body.dark-theme .hover\:bg-white:hover { background-color: #1e293b !important; }
body.dark-theme .hover\:border-indigo-400:hover { border-color: #818cf8 !important; }
body.dark-theme .hover\:border-indigo-500:hover { border-color: #6366f1 !important; }

/* ═══════════════════════════════════════════════════
   DARK MODE — ÉLÉMENTS SPÉCIFIQUES
═══════════════════════════════════════════════════ */
body.dark-theme .text-indigo-600 { color: #818cf8 !important; }
body.dark-theme .text-indigo-500 { color: #818cf8 !important; }
body.dark-theme .text-amber-600 { color: #fbbf24 !important; }
body.dark-theme .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important; }
body.dark-theme ::-webkit-scrollbar-track { background: #0f172a; }
body.dark-theme ::-webkit-scrollbar-thumb { background: #475569; border-color: #0f172a; }

/* ═══════════════════════════════════════════════════
   DARK MODE — LEGAL CARD (commun à cgv/confidentialité)
═══════════════════════════════════════════════════ */
body.dark-theme .legal-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .legal-card:hover {
    background-color: #27364b !important;
    border-color: #4f46e5 !important;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
.glass-nav {
    backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   LOGO
═══════════════════════════════════════════════════ */
.delta-logo { width: 40px; height: 40px; flex-shrink: 0; }
.delta-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.35)); }

/* ═══════════════════════════════════════════════════
   GRADIENT TEXT
═══════════════════════════════════════════════════ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════ */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    z-index: 100;
}

/* ═══════════════════════════════════════════════════
   BACKGROUND MESH
═══════════════════════════════════════════════════ */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: var(--bg-main);
    transition: background-color 0.3s ease;
}

body:not(.dark-theme) .bg-mesh {
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
}

body.dark-theme .bg-mesh {
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.03) 0px, transparent 50%);
}

/* ═══════════════════════════════════════════════════
   LEGAL CARD (commun à cgv/confidentialité)
═══════════════════════════════════════════════════ */
.legal-card {
    background: var(--surface);
    border: 1px solid #f1f5f9;
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.legal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #e0e7ff;
    box-shadow: 0 40px 80px -20px rgba(79, 70, 229, 0.1);
}

/* ═══════════════════════════════════════════════════
   NAV LINK ACTIVE (commun à cgv/confidentialité)
═══════════════════════════════════════════════════ */
.nav-link-active {
    color: var(--primary) !important;
    font-weight: 800;
}

body.dark-theme .nav-link-active {
    background: rgba(99, 102, 241, 0.15);
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 3px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════════════════════════════════════
   ANIMATION FADE IN UP
═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeInUp 0.6s ease-out forwards; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .h1-responsive { font-size: clamp(2.5rem, 10vw, 4rem); }
}
