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

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

        body {
            font-family: 'Poppins', sans-serif;
            background:  linear-gradient(135deg, #9d7153 0%, #DEB887 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .login-container {
            background: white;
            border-radius: 10px;
            box-shadow:  0 10px 40px rgba(0, 0, 0, 0.1);
            max-width: 450px;
            width: 100%;
            padding: 50px;
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform:  translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        .logo {
            max-width: 200px;
            height: auto;
            margin-bottom: 20px;
        }

        .tagline {
            color: #9d7153;
            font-size: 14px;
            font-weight: 300;
            letter-spacing: 1px;
        }

        h1 {
            color: #9d7153;
            font-size: 24px;
            margin-bottom: 30px;
            text-align:  center;
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            color: #9d7153;
            font-weight: 500;
            margin-bottom: 8px;
            font-size:  14px;
        }

        input[type="text"],
        input[type="password"],
        input[type="email"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #DEB887;
            border-radius: 5px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            transition:  all 0.3s ease;
        }

        input[type="text"]:focus,
        input[type="password"]:focus,
        input[type="email"]:focus {
            outline:  none;
            border-color:  #fdcd00;
            box-shadow: 0 0 10px rgba(253, 205, 0, 0.2);
        }

        .form-group input::placeholder {
            color: #DEB887;
        }

        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight:  600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .btn-login {
            background: linear-gradient(135deg, #fdcd00 0%, #f5b800 100%);
            color:  #9d7153;
            margin-top: 20px;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(253, 205, 0, 0.3);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .forgot-password {
            text-align: center;
            margin-top: 20px;
        }

        .forgot-password a {
            color: #9d7153;
            text-decoration:  none;
            font-size: 13px;
            transition: color 0.3s ease;
        }

        .forgot-password a:hover {
            color: #fdcd00;
        }

        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 12px;
            border-radius:  5px;
            margin-bottom: 20px;
            display: none;
            border-left: 4px solid #f5c6cb;
        }

        .success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 12px;
            border-radius: 5px;
            margin-bottom: 20px;
            display: none;
            border-left: 4px solid #c3e6cb;
        }

        .loading {
            display: none;
            text-align: center;
            color: #9d7153;
            font-size: 14px;
        }

        .spinner {
            border: 3px solid #DEB887;
            border-top: 3px solid #fdcd00;
            border-radius: 50%;
            width:  20px;
            height: 20px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Modal pour réinitialisation mot de passe */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height:  100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 40px;
            border-radius:  10px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }

        .close {
            color: #9d7153;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #fdcd00;
        }

        .modal h2 {
            color: #9d7153;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .btn-secondary {
            background:  linear-gradient(135deg, #9d7153 0%, #8b6444 100%);
            color:  white;
            margin-top: 10px;
        }

        .btn-secondary:hover {
            box-shadow: 0 5px 20px rgba(157, 113, 83, 0.3);
        }

        @media (max-width: 600px) {
            .login-container {
                padding: 30px;
            }

            h1 {
                font-size: 20px;
            }

            .logo {
                max-width: 150px;
            }
        }

#villes_suggestions {
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
}
#villes_suggestions li:hover {
    background-color: #f8f9fa;
}

/* Pour principale.php uniquement */
body {
    display: block; /* Annule le centrage vertical forcé du body */
    overflow-y: auto;
}

/* Unifier les boutons s'il y en a dans le formulaire */
.btn-submit {
    background: linear-gradient(135deg, #fdcd00 0%, #f5b800 100%);
    color: #9d7153;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}