/* Barre de navigation */
.navbar {
    background-color: #000080 !important; /* Bleu foncé */
    position: fixed;
    padding: 10px 0;
    z-index: 1000; /* Ajoutez cette ligne */
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.navbar .dropdown-toggle::after {
    display: none; /* Masque la flèche */
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
    margin-left: 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-brand:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    font-family: 'Crafty Girls', cursive;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffd700;
}

.navbar .btn-primary {
    margin-left: 10px;
    font-family: 'Crafty Girls', cursive;
    font-size: 1rem;
}
/* Styles pour la botbar */
.botbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000080;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.botbar-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.botbar-item {
    color: #ffffff;
    text-align: center;
    font-family: 'Crafty Girls', cursive;
    font-size: 0.8rem;
    text-decoration: none;
}

.botbar-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* Responsive styles */
@media (max-width: 990px) {
    .navbar-brand {
        font-size: 1.5rem;
        max-width: 80%;
    }
    
    .navbar-nav, .navbar .btn-primary {
        display: none;
    }
    
    .navbar > .container-fluid {
        justify-content: center;
    }
    
    .botbar {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
        max-width: 90%;
    }
    
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

/* Styles pour le dropdown PC */
.dropdown-menu {
    background-color: #f8f9fa;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    color: #000080;
    padding: 0.7rem 1rem;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #000080;
    color: white;
    transform: translateX(5px);
}

/* Animation du dropdown */
.animate {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }
    100% {
        transform: translateY(0rem);
        opacity: 1;
    }
}

.slideIn {
    animation-name: slideIn;
}

/* Styles pour la modale mobile */
.modal {
    background-color: transparent !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 350px;
    margin: 0;
    height: auto;
    max-height: 80vh;
}

.modal-content {
    /*background-color: #f0f0f0;*/
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #000080;
    padding: 0.8rem 1rem;
    border-bottom: none;
    
}

.modal-title {
    color: white;
    font-family: 'Crafty Girls', cursive;
    font-size: 1.3rem;
    width: 100%;
    text-align: center;
}

.btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: transparent;
    border: none;
    color: white;
    opacity: 1;
    filter: invert(1) grayscale(100%) brightness(200%);
}


.btn-admin {
    background-color: #f8f9fa;
    color: #000080;
    border: 1px solid #000080;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
}

.btn-admin:hover {
    background-color: #e8e9ea;
    transform: translateX(5px);
}

.btn-admin i {
    margin-right: 10px;
    width: 20px;
}

/* Ajustement pour le z-index */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Ajustement de l'espacement entre les boutons */
.btn-admin:not(:last-child) {
    margin-bottom: 1rem;
}

/* Ajout de padding supplémentaire pour les boutons */
.d-grid.gap-3 {
    padding: 0.5rem 0;
}

/* Styles spécifiques pour la modale de navigation administrative */
#adminModal .modal-dialog {
    max-width: 350px;
}

#adminModal .modal-content {
    max-height: 300px;
}

#adminModal .modal-header {
    background-color: #000080;
    padding: 0.5rem 1rem;
}

#adminModal .modal-title {
    color: white;
    font-family: 'Crafty Girls', cursive;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
}

#adminModal .modal-body {
    background-color: #f0f0f0;
    padding: 0.8rem 1.2rem;
}

#adminModal .btn-close {
    color: white;
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Ajustement de l'espacement entre les boutons dans la modale admin */
#adminModal .d-grid.gap-3 {
    gap: 0.5rem !important; /* Réduit l'espace entre les éléments */
    padding: 0.3rem 0;
}

/* Supprime la marge du dernier bouton */
#adminModal .btn-admin:last-child {
    margin-bottom: 0;
}

/* Style pour le menu utilisateur */
.user-dropdown {
    margin-left: 1rem;
}

.user-link {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.user-link i {
    font-size: 1.2rem;
    color: #FFD700;
}

.user-menu {  
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.user-menu .dropdown-item {  
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.user-menu .dropdown-item:hover { 
    transform: translateX(5px);
}

.user-menu .dropdown-divider {
    border-color: rgba(255, 215, 0, 0.2);
    margin: 0.5rem 0;
}

.user-menu .text-danger {
    color: #ff4444 !important;
}

.user-menu .text-danger:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Animation pour le menu déroulant */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate.slideIn {
    animation: slideIn 0.3s ease forwards;
}


