/* Feuille de style globale d'ADD WITTE - Design System Premium */

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

:root {
    /* Palette de couleurs HSL harmonieuse et contrastée (Thème Sombre Premium) */
    --bg-main: 220 20% 6%;         /* #0c0e12 - Fond général */
    --bg-card: 220 20% 10%;        /* #13171f - Cartes */
    --bg-card-glass: 220 20% 10% / 0.6; /* Effet de verre flouté */
    
    --text-primary: 220 20% 98%;   /* Blanc de texte */
    --text-secondary: 220 12% 70%; /* Gris de texte secondaire */
    --text-muted: 220 10% 45%;     /* Gris atténué */
    
    /* Couleurs d'accentuation en dégradés */
    --primary: 171 100% 45%;       /* Cyan électrique */
    --primary-glow: 171 100% 45% / 0.15;
    --secondary: 260 90% 65%;      /* Violet néon */
    --secondary-glow: 260 90% 65% / 0.15;
    
    --success: 142 70% 45%;        /* Vert */
    --error: 350 80% 50%;          /* Rouge */
    --warning: 38 90% 50%;         /* Orange */
    
    --border-color: 220 20% 18% / 0.4;
    --border-highlight: 220 20% 28% / 0.5;
    
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-elastic: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Reset de base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--bg-main));
    color: hsl(var(--text-primary));
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Effets de bruit et grille de fond subtile futuriste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 80% 20%, hsl(var(--secondary-glow)) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, hsl(var(--primary-glow)) 0%, transparent 50%),
        linear-gradient(hsl(var(--text-muted) / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--text-muted) / 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: hsl(var(--text-primary));
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: hsl(var(--text-primary));
    text-shadow: 0 0 10px hsl(var(--primary) / 0.5);
}

/* Composants de carte en Glassmorphism de haute qualité */
.glass-card {
    background-color: hsl(var(--bg-card-glass));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid hsl(var(--border-color));
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance subtile sur les cartes */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-card:hover::after {
    left: 150%;
}

.glass-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8),
                0 0 20px 0 hsl(var(--primary-glow)),
                0 0 35px 0 hsl(var(--secondary-glow));
    transform: translateY(-4px) scale(1.01);
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: hsl(var(--bg-main));
    box-shadow: 0 4px 15px hsl(var(--primary) / 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px hsl(var(--primary) / 0.4),
                0 0 15px hsl(var(--secondary) / 0.3);
    transform: scale(1.03);
    color: hsl(var(--bg-main));
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid hsl(var(--border-highlight));
    color: hsl(var(--text-primary));
}

.btn-secondary:hover {
    background-color: hsl(var(--border-color));
    border-color: hsl(var(--text-secondary));
}

/* Formulaires modernes */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-text {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background-color: hsl(var(--bg-main) / 0.5);
    border: 1px solid hsl(var(--border-color));
    border-radius: 0.75rem;
    color: hsl(var(--text-primary));
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-text:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary-glow));
    background-color: hsl(var(--bg-main));
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: hsl(var(--text-muted));
    pointer-events: none;
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.input-text:focus + .input-icon {
    color: hsl(var(--primary));
}

/* Notifications et Alertes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: hsl(var(--success) / 0.1);
    border-color: hsl(var(--success) / 0.2);
    color: #4ade80;
}

.alert-danger {
    background-color: hsl(var(--error) / 0.1);
    border-color: hsl(var(--error) / 0.2);
    color: #f87171;
}

/* Animations de transition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

/* Styles réactifs */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .glass-card {
        padding: 1.5rem;
    }
}

/* Accessibilité - Éléments uniquement lisibles par lecteur d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
