@layer base {
    :root {
        --background: 0 0% 98%;
        --foreground: 225 73% 42%;
        --card: 0 0% 100%;
        --card-foreground: 225 73% 42%;
        --popover: 0 0% 100%;
        --popover-foreground: 225 73% 42%;
        --primary: 225 73% 42%;
        --primary-foreground: 0 0% 98%;
        --secondary: 240 4.8% 95.9%;
        --secondary-foreground: 225 73% 42%;
        --muted: 240 4.8% 95.9%;
        --muted-foreground: 240 3.8% 46.1%;
        --accent: 240 4.8% 95.9%;
        --accent-foreground: 225 73% 42%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;
        --border: 240 5.9% 90%;
        --input: 240 5.9% 90%;
        --ring: 225 73% 42%;
    }
    .dark {
        --background: 240 10% 3.9%;
        --foreground: 0 0% 98%;
        --card: 240 10% 3.9%;
        --card-foreground: 0 0% 98%;
        --popover: 240 10% 3.9%;
        --popover-foreground: 0 0% 98%;
        --primary: 240 10% 3.9%;
        --primary-foreground: 0 0% 98%;
        --secondary: 240 3.7% 15.9%;
        --secondary-foreground: 0 0% 98%;
        --muted: 240 3.7% 15.9%;
        --muted-foreground: 240 5% 64.9%;
        --accent: 240 3.7% 15.9%;
        --accent-foreground: 0 0% 98%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 0 0% 98%;
        --border: 240 3.7% 15.9%;
        --input: 240 3.7% 15.9%;
        --ring: 0 0% 83.1%;
    }
    .blue {
        --background: 214 100% 97%;
        --foreground: 214 84% 25%;
        --card: 214 100% 100%;
        --card-foreground: 214 84% 25%;
        --popover: 214 100% 100%;
        --popover-foreground: 214 84% 25%;
        --primary: 214 84% 56%;
        --primary-foreground: 0 0% 98%;
        --secondary: 214 32% 91%;
        --secondary-foreground: 214 84% 25%;
        --muted: 214 32% 91%;
        --muted-foreground: 214 16% 46%;
        --accent: 214 32% 91%;
        --accent-foreground: 214 84% 25%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;
        --border: 214 32% 85%;
        --input: 214 32% 85%;
        --ring: 214 84% 56%;
    }
    .green {
        --background: 142 76% 97%;
        --foreground: 142 84% 24%;
        --card: 142 76% 100%;
        --card-foreground: 142 84% 24%;
        --popover: 142 76% 100%;
        --popover-foreground: 142 84% 24%;
        --primary: 142 76% 36%;
        --primary-foreground: 0 0% 98%;
        --secondary: 142 30% 91%;
        --secondary-foreground: 142 84% 24%;
        --muted: 142 30% 91%;
        --muted-foreground: 142 16% 46%;
        --accent: 142 30% 91%;
        --accent-foreground: 142 84% 24%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;
        --border: 142 30% 85%;
        --input: 142 30% 85%;
        --ring: 142 76% 36%;
    }
    .purple {
        --background: 263 85% 97%;
        --foreground: 263 84% 25%;
        --card: 263 85% 100%;
        --card-foreground: 263 84% 25%;
        --popover: 263 85% 100%;
        --popover-foreground: 263 84% 25%;
        --primary: 263 85% 58%;
        --primary-foreground: 0 0% 98%;
        --secondary: 263 30% 91%;
        --secondary-foreground: 263 84% 25%;
        --muted: 263 30% 91%;
        --muted-foreground: 263 16% 46%;
        --accent: 263 30% 91%;
        --accent-foreground: 263 84% 25%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;
        --border: 263 30% 85%;
        --input: 263 30% 85%;
        --ring: 263 85% 58%;
    }
    * {
        border-color: hsl(var(--border));
    }
    body {
        font-feature-settings: "rlig" 1, "calt" 1;
        background-color: hsl(var(--background));
        color: hsl(var(--foreground));
    }
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}
.dark .glass {
    background: rgba(15, 23, 42, 0.8);
}
.blue .glass {
    background: rgba(219, 234, 254, 0.8);
}
.green .glass {
    background: rgba(220, 252, 231, 0.8);
}
.purple .glass {
    background: rgba(237, 233, 254, 0.8);
}

/* Animations CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Classes d'animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Animation de chargement */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Animations de formulaire */
.form-group {
    position: relative;
}

.form-group.focused label {
    transform: translateY(-20px) scale(0.8);
    color: hsl(var(--primary));
}

.form-group label {
    transition: all 0.2s ease;
    transform-origin: left top;
}

/* Typewriter effect */
.typewriter {
    border-right: 2px solid hsl(var(--primary));
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: hsl(var(--primary)); }
    51%, 100% { border-color: transparent; }
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }