/* =========================================
   1. VARIABLES & RESET GLOBAL
   ========================================= */
:root {
    --primary: #8a2be2;
    --primary-hover: #7b27cc;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary: #00bfff;
    --secondary-glow: rgba(0, 191, 255, 0.4);
    --background: #0a0a0f;
    --surface: rgba(26, 26, 35, 0.6);
    --surface-solid: #1a1a23;
    --surface-hover: rgba(40, 40, 55, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #8a8a9a;
    --text-secondary: #b3b3c3;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. ANIMATIONS DE FOND (Vagues & Bulles)
   ========================================= */
.wave-background {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Derrière tout */
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: auto;
    min-height: 200px;
}

.wave-1 { fill: rgba(138, 43, 226, 0.08); animation: waveMove 25s ease-in-out infinite; bottom: -10%; }
.wave-2 { fill: rgba(0, 191, 255, 0.05); animation: waveMove 20s ease-in-out infinite reverse; bottom: -5%; }
.wave-3 { fill: rgba(138, 43, 226, 0.03); animation: waveMove 15s ease-in-out infinite; bottom: 0; }

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
}

.floating-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-glow), var(--secondary-glow), transparent 70%);
    animation: floatBubble 20s ease-in-out infinite;
    opacity: 0.3;
}

/* Positions génériques pour les bulles */
.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; bottom: -100px; animation-duration: 18s; }
.bubble:nth-child(2) { width: 120px; height: 120px; left: 80%; bottom: -150px; animation-duration: 22s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 45%; bottom: -80px; animation-duration: 16s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 65%; bottom: -120px; animation-delay: 1s; animation-duration: 20s; }
.bubble:nth-child(5) { width: 50px; height: 50px; left: 20%; bottom: -60px; animation-delay: 3s; animation-duration: 14s; }

@keyframes floatBubble {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    100% { transform: translateY(-120vh) scale(0.8); opacity: 0; }
}

/* =========================================
   3. INPUTS & FORMULAIRES (GLOBAL)
   ========================================= */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #ffffff !important;
    caret-color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15), 0 0 20px rgba(138, 43, 226, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Fix Chrome/Edge Autofill (Fond jaune/blanc -> Fond sombre) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a23 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: white !important;
    border: 1px solid var(--primary) !important;
}

/* =========================================
   4. BOUTONS PARTAGÉS
   ========================================= */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1.5rem; /* Standard padding */
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4), 0 0 20px var(--primary-glow);
    color: white;
}

.btn-outline-glass {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-glass:hover {
    border-color: var(--text);
    background: rgba(255,255,255,0.1);
    color: white;
}