/* 🎯 Assurer que la page prend toute la hauteur et est bien centrée */
html, body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Fond clair */
}

/* 📦 Conteneur principal du formulaire */
.form-signin {
    max-width: 450px; /* Légèrement plus grand pour équilibrer avec le logo */
    padding: 1.5rem;
    margin: auto; /* Suppression de la marge top */
    text-align: center;
}

/* 🖼️ Agrandissement du logo */
.big-logo {
    display: block;
    width: 200px; /* Taille augmentée */
    max-width: 100%;
    height: auto;
    margin-bottom: 25px; /* Réduit l’espace entre le logo et le formulaire */
    display: block;
    margin-left: auto;
    margin-right: auto; /* 🔹 Centre le logo correctement */
}

/* 📝 Champs flottants */
.form-signin .form-floating {
    width: 100%;
}

/* ✅ Correction des champs */
.form-signin input[type="text"],
.form-signin input[type="password"] {
    font-size: 1.3rem; /* Taille augmentée */
    padding: 12px;
    border-radius: 5px;
}

/* 🔘 Arrondi moderne */
.form-signin input[type="text"] {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* 🎯 Style du bouton */
.form-signin .btn-primary {
    font-size: 1.2rem; /* Bouton légèrement agrandi */
    padding: 12px;
    transition: 0.3s ease;
    border-radius: 5px;
}

.form-signin .btn-primary:hover {
    background: #0056b3;
}

/* 🔗 Lien "Mot de passe oublié" */
.form-signin a {
    color: #6c757d;
    text-decoration: none;
}

.form-signin a:hover {
    text-decoration: underline;
    color: black;
}

/* 📌 Ajustement responsive pour petits écrans */
@media (max-width: 480px) { 
    .big-logo {
        width: 220px;
    }

    .form-signin {
        max-width: 350px;
    }
}
/* 📌 Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #1a1a2e, #16213e); /* Dégradé bleu foncé */
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 📌 Liens du sidebar */
.sidebar .sidebar-link {
    font-size: 1rem;
    color: #dcdcdc;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* 🖌️ Effet au survol */
.sidebar .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* 🟦 Effet de sélection */
.sidebar .sidebar-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    border-left: 4px solid #00aaff;
    transform: translateX(5px);
}

/* 📌 Icônes */
.sidebar .sidebar-link i {
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
}

/* 🖌️ Animation sur les icônes */
.sidebar .sidebar-link:hover i {
    transform: scale(1.2);
}

/* 📌 Profil utilisateur */
.user-profile {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #444;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 📌 Cercle avec initiales */
.profile-circle {
    width: 40px;
    height: 40px;
    background: #00aaff;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
    margin-right: 10px;
}

/* 📌 Nom utilisateur */
.profile-name {
    font-weight: bold;
    font-size: 14px;
    color: #dcdcdc;
}

/* 📌 Ajustement Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 180px;
    }

    .content {
        margin-left: 180px;
    }
}
