/* ===== STYLES.CSS ===== */

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

/* Variables CSS personnalisées */
:root {
    --primary: #1E3A8A;
    --secondary: #38BDF8;
    --accent: #F59E0B;
    --jaune: #FFCE1B;
    --success: #10B981;
    --warning: #FB923C;
    --danger: #EF4444;
    --dark: #0F172A;
    --light: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Classes utilitaires personnalisées */
.text-gradient {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-yellow {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--accent) 100%);
}

/* Header styles */
.header-mobile {
    transition: all 0.3s ease;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations de frappe */
.typing-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Card styles */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: var(--jaune);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

/* Button styles */
.btn-modern {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Floating animation */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero pattern background */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

/* Cookie banner styles */
.cookie-banner {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--accent) 100%);
}

/* Responsive optimizations */
@media (max-width: 768px) {

    .slide-in-left,
    .slide-in-right {
        animation: slideInUp 1s ease-out;
    }

    @keyframes slideInUp {
        0% {
            transform: translateY(50px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .hero-section {
        padding: 2rem 0;
    }

    .form-container {
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .image-container {
        min-height: 300px !important;
    }

    /* Fix for input focus on mobile */
    .form-input {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .form-input:focus {
        transform: none;
    }
}

/* Print styles */
@media print {

    .header-mobile,
    footer,
    .cookie-banner {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gradient {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--dark);
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}