/* body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f9fafb;
  } */

/* Barre de chargement */
/* #top-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    width: 0%;
    background: linear-gradient(to right, #3b82f6, #3b82f6);
    z-index: 9999;
    transition: width 0.4s ease, opacity 0.4s ease;
  } */

/* Animation de disparition */
/* .fade-out {
    opacity: 0;
  } */

/* body {
    margin: 0;
    background: #001f3f;
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
  } */

/* h1 {
    padding-top: 40vh;
  }

  .snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    user-select: none;
    z-index: 1000;
    animation-name: fall;
    animation-timing-function: linear;
  }

  @keyframes fall {
    to {
      transform: translateY(110vh) rotate(360deg);
      opacity: 0;
    }
  } */

.font-20 {
    font-size: 20px !important;
}


.select2-container .select2-selection--single {
    height: 47px !important;
    /* hauteur du champ */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 47px !important;
    /* aligne le texte verticalement */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 47px !important;
    /* aligne la flèche */
}


/* LOADING LARGE SCREEN */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-loader {
    width: 350px;
    margin-bottom: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}


@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.fancy-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.fancy-spinner .circle {
    width: 20px;
    height: 20px;
    background-color: #005ca9;
    /* Couleur bleue stylée */
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.fancy-spinner .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.fancy-spinner .circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.6;
    }

    to {
        transform: translateY(-12px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .logo-loader {
        width: 320px;
        /* Taille réduite du logo */
        font-size: 19px !important;
        /* Si tu veux aussi réduire le texte sous le logo */
    }

    .fancy-spinner .circle {
        width: 16px;
        height: 16px;
    }

    .fancy-spinner {
        gap: 5px;
    }


    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

}

@media (max-width: 480px) {
    .logo-loader {
        width: 320px;
        font-size: 19px !important;
    }

    .fancy-spinner .circle {
        width: 14px;
        height: 14px;
    }

    .fancy-spinner {
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .loader-content {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .loader-content {
        transform: scale(0.7);
    }
}

.bg-danger {
    --ct-bg-opacity: 1;
    background-color: #FF0034 !important;
}

#notification-container {
    max-height: 400px; /* hauteur max du menu déroulant */
    overflow-y: auto;  /* active le scroll vertical */
    overflow-x: hidden; /* empêche le débordement horizontal */
    padding-right: 5px;
}

#notification-container li a {
    white-space: normal; /* permet aux textes longs d'aller à la ligne */
    word-wrap: break-word;
}

#notification-container small {
    font-size: 0.8em;
    color: #6c757d;
}

#notification-container {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Élément de notification */
#notification-container li.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

#notification-container li.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Point bleu pour les non-lues */
.unread-dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Contenu texte */
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #212529;
    overflow: hidden;
}

.notification-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 3px;
}

.notification-content span {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 4px;
    white-space: normal;
    word-wrap: break-word;
}

/* Date grisée */
.notification-content small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Style visuel pour les notifications déjà lues */
.notification-read {
    opacity: 0.7;
}

/* Point bleu pour "non lu" */
.unread-dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
