/* Importation de la police Poppins via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- CONFIGURATION GLOBALE --- */

html, body {
    /* Empêche le défilement horizontal indésirable */
    overflow-x: hidden; 
    /* Force la largeur à 100% de l'écran */
    width: 100%;        
}

body.aos-animate {
    /* Sécurité supplémentaire pour les animations AOS */
    overflow-x: hidden !important; 
}

/* Application de la police Poppins à tout le texte */
body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
  


 
    #modal1 .prose::-webkit-scrollbar,
    #modal2 .prose::-webkit-scrollbar,
    #modal3 .prose::-webkit-scrollbar {
        width: 4px;
    }
    
    #modal1 .prose::-webkit-scrollbar-track,
    #modal2 .prose::-webkit-scrollbar-track,
    #modal3 .prose::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    #modal1 .prose::-webkit-scrollbar-thumb,
    #modal2 .prose::-webkit-scrollbar-thumb,
    #modal3 .prose::-webkit-scrollbar-thumb {
        background: #34A7DE;
        border-radius: 10px;
    }
    
    #modal1 .prose::-webkit-scrollbar-thumb:hover,
    #modal2 .prose::-webkit-scrollbar-thumb:hover,
    #modal3 .prose::-webkit-scrollbar-thumb:hover {
        background: #2a8bb8;
    }
    
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    [id^="modal"] .bg-white {
        animation: modalFadeIn 0.4s ease-out forwards;
    }



    .logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
}

.welcome-message {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Ajustement responsive */
@media (max-width: 520px) {
    .logo-img {
        width: 44px;
        height: 44px;
    }
    
    .welcome-message {
        font-size: 12px;
    }
}


       /* Cache la scrollbar */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Animation premium */
    @keyframes fadeSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .gallery-item {
        animation: fadeSlideUp 0.6s ease-out forwards;
    }











        .login-page,
        .login-page * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body.login-page {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0B1E33;
            position: relative;
            overflow: hidden;
        }

        /* Background animé */
        body.login-page::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(52, 167, 222, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(52, 167, 222, 0.10) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(52, 167, 222, 0.08) 0%, transparent 50%);
            z-index: 0;
        }

        /* Particules flottantes */
        .particles {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(52, 167, 222, 0.3);
            border-radius: 50%;
            animation: float linear infinite;
        }

        .particle:nth-child(1) { left: 10%; animation-duration: 20s; animation-delay: 0s; }
        .particle:nth-child(2) { left: 25%; animation-duration: 25s; animation-delay: 2s; width: 6px; height: 6px; }
        .particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; }
        .particle:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 1s; width: 8px; height: 8px; }
        .particle:nth-child(5) { left: 70%; animation-duration: 28s; animation-delay: 3s; }
        .particle:nth-child(6) { left: 85%; animation-duration: 20s; animation-delay: 5s; width: 5px; height: 5px; }
        .particle:nth-child(7) { left: 15%; animation-duration: 30s; animation-delay: 7s; width: 7px; height: 7px; }
        .particle:nth-child(8) { left: 50%; animation-duration: 24s; animation-delay: 2s; }
        .particle:nth-child(9) { left: 75%; animation-duration: 26s; animation-delay: 6s; width: 6px; height: 6px; }
        .particle:nth-child(10) { left: 90%; animation-duration: 22s; animation-delay: 8s; }

        @keyframes float {
            0% {
                transform: translateY(100vh) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) scale(1);
                opacity: 0;
            }
        }

        /* Container principal */
        .login-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 480px;
            padding: 20px;
        }

        /* Carte de login */
        .login-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 32px;
            padding: 48px 40px;
            box-shadow: 
                0 40px 80px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.10);
            animation: slideUp 0.8s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Logo */
        .logo-section {
            text-align: center;
            margin-bottom: 40px;
        }

        .logo-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, #34A7DE, #1a7aaa);
            border-radius: 20px;
            margin-bottom: 16px;
            box-shadow: 0 8px 32px rgba(52, 167, 222, 0.3);
            transition: transform 0.3s ease;
        }

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

        .logo-icon svg {
            width: 40px;
            height: 40px;
            fill: white;
        }

        .logo-title {
            font-size: 28px;
            font-weight: 800;
            color: white;
            letter-spacing: -0.5px;
        }

        .logo-title span {
            color: #34A7DE;
        }

        .logo-subtitle {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            font-weight: 400;
            margin-top: 4px;
        }

        /* Messages */
        .status-message {
            background: rgba(52, 167, 222, 0.15);
            border: 1px solid rgba(52, 167, 222, 0.20);
            border-radius: 12px;
            padding: 12px 16px;
            color: #34A7DE;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .status-message i {
            font-size: 16px;
        }

        /* Formulaires */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 6px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.3);
            font-size: 16px;
            transition: color 0.3s ease;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px 14px 48px;
            background: rgba(255, 255, 255, 0.06);
            border: 2px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            color: white;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
            outline: none;
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.25);
        }

        .form-input:focus {
            border-color: #34A7DE;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 4px rgba(52, 167, 222, 0.15);
        }

        .form-input:focus + .input-icon {
            color: #34A7DE;
        }

        .form-input.error {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.08);
        }

        .form-error {
            color: #ef4444;
            font-size: 13px;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .form-error i {
            font-size: 14px;
        }

        /* Options */
        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 24px 0 28px;
        }

        .checkbox-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .checkbox-wrapper input[type="checkbox"] {
            display: none;
        }

        .custom-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox {
            background: #34A7DE;
            border-color: #34A7DE;
        }

        .checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox::after {
            content: '✓';
            color: white;
            font-size: 13px;
            font-weight: 700;
        }

        .checkbox-label {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-weight: 400;
        }

        .forgot-link {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 400;
        }

        .forgot-link:hover {
            color: #34A7DE;
        }

        /* Bouton */
        .btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #34A7DE, #1a7aaa);
            border: none;
            border-radius: 14px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn-login::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #2a9bc4, #146b8a);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(52, 167, 222, 0.3);
        }

        .btn-login:hover::before {
            opacity: 1;
        }

        .btn-login span {
            position: relative;
            z-index: 1;
        }

        .btn-login i {
            position: relative;
            z-index: 1;
            font-size: 18px;
        }

        .btn-login:active {
            transform: scale(0.98);
        }

        /* Pied de page */
        .login-footer {
            text-align: center;
            margin-top: 28px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .login-footer p {
            color: rgba(255, 255, 255, 0.3);
            font-size: 13px;
            font-weight: 400;
        }

        .login-footer a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
        }

        .login-footer a:hover {
            color: #34A7DE;
        }

        /* Responsive */
        @media (max-width: 520px) {
            .login-card {
                padding: 32px 24px;
                border-radius: 24px;
            }

            .logo-title {
                font-size: 24px;
            }

            .logo-icon {
                width: 60px;
                height: 60px;
            }

            .logo-icon svg {
                width: 32px;
                height: 32px;
            }

            .form-options {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }

            .login-container {
                padding: 16px;
            }
        }

        /* Animation de chargement du bouton */
        .btn-login.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .btn-login.loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
    