.logout {
    top: .5em;            /* décalage des bords */
    right: 1em;
    padding: .5em;        /* donne de l'air au texte */
}
.sotho-icon {
    display: block;
    width: 20%;
    padding-top: 1%;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-color: #222327;
}
.bounce-text {
  color: #000000;
  position: absolute;
  transform: translate(-50%, 50%);
  left: 15%;
  top: 70%;
  line-height: 0;
  display: flex;
  gap: 5px;
  font-size: 3rem;
  font-weight: bold;
  justify-content: center;
}
.bounce-text span {
  display: inline-block;
  animation: bounce 1.8s infinite ease-in-out;
}
.bounce-text span:nth-child(1) {
  animation-delay: 0s;
}
.bounce-text span:nth-child(2) {
  animation-delay: 0.1s;
}
.bounce-text span:nth-child(3) {
  animation-delay: 0.2s;
}
.bounce-text span:nth-child(4) {
  animation-delay: 0.3s;
}
.bounce-text span:nth-child(5) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.deco-icon {
    width: 100%
}

.error {
    background-color: #F5B7B1;
    border-radius: 5px;
    width: 30%;
    height: 5%;
    padding-top: 10px;
    padding-left: 2px;
    margin: auto;
    font-size: 80%;
    border: solid 0.8px;
    border-color: #D98880;
}

.navPos {
    position: fixed;
    top: -1.5%;
    right: -1.5%;
    z-index: 5;
}

.navBase {
    background-color: #3E5641;
    border-radius: 40px 10px 10px 40px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.custom-nav-item {
    width: 48px; /* Définir la largeur souhaitée */
    height: 48px; /* Définir la hauteur souhaitée */
    display: inline-block; /* Assurez-vous que l'élément occupe l'espace requis */
}

.center-text {
    text-align: center;
    font-weight: bold;
}

/* ===== NAVBAR MODERNE ===== */
.modern-navbar {
    background-color: #3E5641 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(250, 249, 237, 0.1);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.modern-navbar:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* Bouton toggle moderne */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(250, 249, 237, 0.1);
}

.modern-toggler:hover {
    background-color: rgba(250, 249, 237, 0.2);
    transform: scale(1.05);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(250, 249, 237, 0.25);
}

.modern-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28250, 249, 237, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Profil utilisateur */
.user-profile {
    margin-right: 1.5rem;
}

.profile-picture-container {
    position: relative;
    margin-right: 0.75rem;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(250, 249, 237, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-picture:hover {
    border-color: rgba(250, 249, 237, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #FAF9ED;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.user-name:hover {
    color: rgba(250, 249, 237, 0.8);
}

/* Bouton de déconnexion */
.logout-item {
    margin-left: 0.5rem;
}

.logout-btn {
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 249, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:hover {
    background-color: rgba(250, 249, 237, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logout-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(250, 249, 237, 0.1);
    transition: all 0.3s ease;
}

.logout-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logout-btn:hover .logout-icon-container {
    background-color: rgba(250, 249, 237, 0.2);
    transform: rotate(180deg);
}

.logout-btn:hover .logout-icon {
    transform: scale(1.1);
}

/* Animation du logo améliorée */
.bounce-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.bounce-link:hover {
    transform: scale(1.05);
}

.bounce-text {
    color: #FAF9ED !important;
    position: relative;
    transform: translate(-50%, 50%);
    left: 15%;
    top: 70%;
    line-height: 0;
    display: flex;
    gap: 5px;
    font-size: 3rem;
    font-weight: bold;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bounce-text span {
    display: inline-block;
    animation: bounce 1.8s infinite ease-in-out;
    transition: all 0.3s ease;
}

.bounce-text span:hover {
    color: rgba(250, 249, 237, 0.8);
    transform: translateY(-5px);
}

/* Responsive design amélioré */
@media (max-width: 991.98px) {
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .user-profile {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .user-info {
        text-align: center;
    }
    
    .logout-item {
        margin-left: 0;
        text-align: center;
    }
    
    .bounce-text {
        font-size: 2.5rem;
        left: 50%;
        transform: translate(-50%, 50%);
    }
    
    .navbar-collapse {
        background-color: rgba(62, 86, 65, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 576px) {
    .bounce-text {
        font-size: 2rem;
    }
    
    .profile-picture {
        width: 35px;
        height: 35px;
    }
    
    .logout-icon-container {
        width: 35px;
        height: 35px;
    }
    
    .logout-icon {
        width: 20px;
        height: 20px;
    }
}

/* ===== DROPDOWN TEST ===== */
.nav-item.dropdown .nav-link {
    color: #FAF9ED !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-item.dropdown .nav-link:hover {
    color: rgba(250, 249, 237, 0.8) !important;
    background-color: rgba(250, 249, 237, 0.1);
    transform: translateY(-1px);
}

.nav-item.dropdown .nav-link:focus {
    color: #FAF9ED !important;
    box-shadow: none;
    outline: none;
}

.nav-item.dropdown .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.dropdown-menu {
    background-color: #3E5641;
    border: 1px solid rgba(250, 249, 237, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-item {
    color: #FAF9ED;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: rgba(250, 249, 237, 0.1);
    color: #FAF9ED;
}

.dropdown-item:focus {
    background-color: rgba(250, 249, 237, 0.15);
    color: #FAF9ED;
}

.dropdown-divider {
    border-color: rgba(250, 249, 237, 0.2);
    margin: 0.5rem 0;
}

/* Animation d'ouverture du dropdown */
.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease-out;
}

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

/* Responsive pour le dropdown */
@media (max-width: 991.98px) {
    .nav-item.dropdown {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: rgba(62, 86, 65, 0.8);
        margin-top: 0.5rem;
    }
}

