﻿/* ---------------------------------------------------- */
/* ---------------------------------------------------- */
/* ====== LOADER MODERNE AVEC EFFET NÉON ====== */
/* ---------------------------------------------------- */
/* - Loader centré avec animations de rotation et néon - */
/* ---------------------------------------------------- */

.loader-container {
    position: relative; /* Reste centré sur la page */
    top: 0;
    left: 0;
    margin-top: 8rem;
    margin-bottom: 8rem;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    pointer-events: none; /* Permet de cliquer sur les autres éléments après disparition */
    background: transparent; /* Pas de fond */
    z-index: 9999; /* Toujours au-dessus */
}

.myloader {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    animation: rotateSpinner 1.5s linear infinite; /* Rotation principale */
    box-shadow: 0 0 15px #fff, 0 0 30px #ff0000, 0 0 45px #000; /* Effet néon blanc, rouge et noir */
}

    /* ==== Couches externes avec dégradé ==== */
    .myloader::before,
    .myloader::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 5px solid transparent;
        border-top-color: #fff; /* Blanc */
        border-right-color: #ff0000; /* Rouge */
        border-bottom-color: #000; /* Noir */
        border-left-color: #fff; /* Blanc */
        animation: spinLayer 1.2s linear infinite; /* Rotation des couches */
    }

    .myloader::after {
        border-width: 3px; /* Bord intérieur plus fin */
        top: 12%;
        left: 12%;
        width: 76%;
        height: 76%;
        animation-duration: 0.9s; /* Vitesse différente pour effet dynamique */
        opacity: 0.8;
    }

/* ==== Animation de rotation principale ==== */
@keyframes rotateSpinner {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ==== Animation des couches avec pulsation ==== */
@keyframes spinLayer {
    0% {
        transform: rotate(0deg) scale(0.9);
        box-shadow: 0 0 10px #fff, 0 0 20px #ff0000, 0 0 30px #000;
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        box-shadow: 0 0 20px #fff, 0 0 40px #ff0000, 0 0 60px #000;
    }

    100% {
        transform: rotate(360deg) scale(0.9);
        box-shadow: 0 0 10px #fff, 0 0 20px #ff0000, 0 0 30px #000;
    }
}

/* ==== Logo central avec effet de rebond et néon ==== */
.logo-loader {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounceLogo 1.5s ease-in-out infinite, neonGlow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 15px #000; /* Ombre néon dynamique */
}

/* Rebond du logo */
@keyframes bounceLogo {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Effet de glow néon */
@keyframes neonGlow {
    0% {
        box-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 15px #000;
    }

    50% {
        box-shadow: 0 0 15px #fff, 0 0 30px #ff0000, 0 0 45px #000;
    }

    100% {
        box-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 15px #000;
    }
}

/* 1. État par défaut : Menu Vertical OUVERT */
#myNavbarBarreTop {
    margin-left: -184px;
    width: calc(100% + 120px) !important;
}

/* 2. État RÉDUIT (Menu icônes) */
html.navbar-vertical-collapsed #myNavbarBarreTop {
    margin-left: 0px;
    width: calc(100% - 64px) !important;
}

/* 3. Cas Menu Vertical masqué (Mode Horizontal) */
#myMenuVertical.d-none ~ #myNavbarBarreTop,
#myMenuVertical.d-none ~ * #myNavbarBarreTop {
    margin-left: 0px !important;
    width: 100% !important;
}

/* 4. Cas MOBILE : On force la marge à 0 quand l'écran est petit */
@media (max-width: 991.98px) {
    #myNavbarBarreTop {
        margin-left: 0px !important;
        width: 100% !important;
    }
}
/* ========================================================================== */
/* ========================================================================== */
/* ========================================================================== */
/* ========================================================================== */

.fs-1 {
    font-size: 1px !important;
}

.fs-2 {
    font-size: 2px !important;
}

.fs-3 {
    font-size: 3px !important;
}

.fs-4 {
    font-size: 4px !important;
}

.fs-5 {
    font-size: 5px !important;
}

.fs-6 {
    font-size: 6px !important;
}

.fs-7 {
    font-size: 7px !important;
}

.fs-8 {
    font-size: 8px !important;
}

.fs-9 {
    font-size: 9px !important;
}

.fs-10 {
    font-size: 10px !important;
}

.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13PX !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-15 {
    font-size: 15px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-17 {
    font-size: 17px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-19 {
    font-size: 19px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-21 {
    font-size: 21px !important;
}

.fs-22 {
    font-size: 22px !important;
}

.fs-23 {
    font-size: 23px !important;
}

.fs-24 {
    font-size: 24px !important;
}

.fs-25 {
    font-size: 25px !important;
}

.fs-26 {
    font-size: 26px !important;
}

.fs-27 {
    font-size: 27PX !important;
}

.fs-28 {
    font-size: 28px !important;
}

.fs-29 {
    font-size: 29px !important;
}

.fs-30 {
    font-size: 30px !important;
}

.fs-31 {
    font-size: 31px !important;
}

.fs-32 {
    font-size: 32px !important;
}

.fs-33 {
    font-size: 33PX !important;
}

.fs-34 {
    font-size: 34px !important;
}

.fs-35 {
    font-size: 35px !important;
}

.fs-36 {
    font-size: 36px !important;
}

.fs-37 {
    font-size: 37px !important;
}

.fs-38 {
    font-size: 38px !important;
}

.fs-39 {
    font-size: 39px !important;
}

.fs-40 {
    font-size: 40px !important;
}

.fs-41 {
    font-size: 41px !important;
}

.fs-42 {
    font-size: 42px !important;
}

.fs-43 {
    font-size: 43px !important;
}

.fs-44 {
    font-size: 44px !important;
}

.fs-45 {
    font-size: 45px !important;
}

.fs-46 {
    font-size: 46px !important;
}

.fs-47 {
    font-size: 47PX !important;
}

.fs-48 {
    font-size: 48px !important;
}

.fs-49 {
    font-size: 49px !important;
}

.fs-50 {
    font-size: 50px !important;
}
/* ========================================================================== */
/* ========================================================================== */
/* ========================================================================== */
/* ========================================================================== */

@media (min-width: 992px) {

    /* ==========================================================================
       1. STRUCTURE GENERALE
       ========================================================================== */

    .menu_horizontal .nav-item {
        position: relative;
    }

    .menu_horizontal .nav-link,
    .menu_horizontal .nav-link-text,
    .menu_horizontal .dropdown-indicator {
        cursor: pointer !important;
    }

    /* ==========================================================================
       2. MENU PRINCIPAL (TITRES)
       ========================================================================== */

    .menu_horizontal > .nav-item > .nav-link {
        position: relative;
        color: #000 !important;
        transition: color .2s ease;
    }

        .menu_horizontal > .nav-item > .nav-link .nav-link-text,
        .menu_horizontal > .nav-item > .nav-link .nav-link-icon,
        .menu_horizontal > .nav-item > .nav-link .nav-link-icon span,
        .menu_horizontal > .nav-item > .nav-link i {
            color: #000 !important;
        }

    /* ==========================================================================
       3. TRAIT ANIMÉ SUR LE MENU PRINCIPAL
       ========================================================================== */

    .menu_horizontal > .nav-item::after {
        content: "";
        position: absolute;
        top: -4px;
        left: 50%;
        width: 0;
        height: 3px;
        background-color: #000;
        transform: translateX(-50%);
        transition: width .25s ease-in-out;
        border-radius: 10px;
        z-index: 2000;
    }

    .menu_horizontal > .nav-item:hover::after {
        width: 100%;
    }

    /* ==========================================================================
       4. SOUS MENUS / POPUPS
       ========================================================================== */

    .menu_horizontal .nav-item > .nav.collapse {
        display: block !important;
        position: absolute;
        z-index: 1050;
        min-width: 260px;
        padding: .5rem 0;
        background: #fff;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: .375rem;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    /* ==========================================================================
       5. AFFICHAGE HOVER
       ========================================================================== */

    .menu_horizontal .nav-item:hover > .nav.collapse {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* ==========================================================================
       6. POSITIONNEMENT
       ========================================================================== */

    /* Niveau 1 */

    .menu_horizontal > .nav-item > .nav.collapse {
        top: calc(100% - 2px);
        left: 0;
        transform: translateY(8px);
    }

    .menu_horizontal > .nav-item:hover > .nav.collapse {
        transform: translateY(0);
    }

    /* Niveau 2+ */

    .menu_horizontal .nav.collapse .nav-item > .nav.collapse {
        top: 0;
        left: calc(100% - 2px);
        transform: translateX(8px);
    }

    .menu_horizontal .nav.collapse .nav-item:hover > .nav.collapse {
        transform: translateX(0);
    }

    /* ==========================================================================
       7. ZONE ANTI-COUPURE HOVER
       ========================================================================== */

    /* Liaison verticale */

    .menu_horizontal > .nav-item > .nav.collapse::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }

    /* Liaison horizontale */

    .menu_horizontal .nav.collapse .nav-item > .nav.collapse::before {
        content: "";
        position: absolute;
        top: 0;
        left: -10px;
        width: 10px;
        height: 100%;
    }

    /* ==========================================================================
       8. STYLE DES LIENS DES POPUPS
       ========================================================================== */

    .menu_horizontal .nav.collapse .nav-link {
        position: relative;
        width: 100% !important;
        padding: .55rem 1.25rem;
        color: #2b303a;
        font-size: .9rem;
        text-decoration: none;
        transition: background-color .15s ease, color .15s ease;
    }

        .menu_horizontal .nav.collapse .nav-link:hover {
            background-color: #f8f9fa;
            color: #000;
        }

    /* ==========================================================================
       9. RESET ICÔNES BOOTSTRAP / FALCON
       ========================================================================== */

    .menu_horizontal .dropdown-indicator::before,
    .menu_horizontal .dropdown-indicator::after,
    .menu_horizontal .nav-link.dropdown-indicator::before,
    .menu_horizontal .nav-link.dropdown-indicator::after {
        content: none !important;
        display: none !important;
    }

    /* ==========================================================================
       10. PREPARATION LIENS AVEC SOUS MENUS
       ========================================================================== */

    .menu_horizontal .nav.collapse .dropdown-indicator {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        padding-right: 35px !important;
    }

        /* ==========================================================================
       11. CHEVRON PERSONNALISÉ
       ========================================================================== */

        .menu_horizontal .nav.collapse .dropdown-indicator > div::after,
        .menu_horizontal .nav.collapse .dropdown-indicator > span::after {
            content: "›";
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
            font-weight: bold;
            line-height: 1;
            color: #888;
            transition: color .15s ease;
        }

    .menu_horizontal .nav.collapse .nav-item:hover > .dropdown-indicator > div::after,
    .menu_horizontal .nav.collapse .nav-item:hover > .dropdown-indicator > span::after {
        color: #000;
    }

    /* ==========================================================================
       12. DESACTIVATION COLLAPSE BOOTSTRAP DESKTOP
       ========================================================================== */

    .menu_horizontal .collapse {
        transition: none !important;
    }

    .menu_horizontal .collapsing {
        display: block !important;
        height: auto !important;
        transition: none !important;
    }

    /* Désactive le clic bootstrap collapse */

    .menu_horizontal .nav-link[data-bs-toggle="collapse"] {
        pointer-events: none;
    }

    /* Réactive le hover sur les items */

    .menu_horizontal .nav-item {
        pointer-events: auto;
    }
}

.box-sdow-03 {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 3px !important;
    margin-top: 3px;
}

.navbar-top-vertical {
    margin-left: -1rem !important;
    margin-right: -5rem !important;
}

.navbar-top-horizontal {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
}

.navbar-top .navbar-toggler {
    margin-left: 3px;
}

/* --- Animation des Sections --- */
/* --- 1. Définition des mouvements (Keyframes) --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 80px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate3d(0, -80px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translate3d(-80px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translate3d(80px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- 2. Vos classes simples à utiliser (Vitesse : 0.8s) --- */
.anim-su {
    animation: slideUp 0.8s ease-out forwards;
}

.anim-sd {
    animation: slideDown 0.8s ease-out forwards;
}

.anim-sl {
    animation: slideLeft 0.8s ease-out forwards;
}

.anim-sr {
    animation: slideRight 0.8s ease-out forwards;
}

/* --------------------------------- */
/* Couleur de BG YomaSoft            */
/* --------------------------------- */
.bg-yomasoft {
    background: var(--falcon-primary) !important;
    color: #ffffff;
}

.rounded-pill {
    border-radius: 50rem !important;
}
/* --------------------------------- */

/* --------------------------------- */
/* Contour des Widgets Selectionnées */
/* --------------------------------- */
.table-striped > tbody > tr.SelectedMultiLigne_Widget > td,
.SelectedMultiLigne_Widget {
    /*background-color: #337AB7 !important;*/
    /*color: #FFFFFF !important;*/
    border: 2px solid #337AB7 !important;
    border-radius: 5px !important;
}

.table-striped > tbody > tr.SelectedMultiLigne_Liste > td,
.SelectedMultiLigne_Liste {
    border: 2px solid #ffffff !important;
    background: #337AB7 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
}
/* --------------------------------- */

/* Change la couleur de fond et du texte quand la souris survole l'année */
.my-item:hover {
    /*background-color: lightskyblue !important;*/ /* Choisis ta couleur de survol */
    /*color: darkslategray !important;*/
    border: 1px solid var(--falcon-primary) !important;
    cursor: pointer; /* Force le curseur en forme de main */
}

/* =================================================================== */
/* =================================================================== */

.myBtn-backtotop {
    bottom: 2px;
    right: 30px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    /* --- AJOUTS POUR L'EFFET INVISIBLE / VISIBLE --- */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out; /* Effet de fondu enchaîné de 0.3 seconde */
}

    /* Cette classe sera ajoutée dynamiquement par le JavaScript */
    .myBtn-backtotop.show {
        opacity: 1;
        pointer-events: auto;
    }



/* =================================================================== */
/* 🧠 YOMASOFT SYSTEM — BOUTONS MODERNES ET TRANSLUCIDES             */
/* =================================================================== */

.btn-yomasoft {
    background-color: var(--falcon-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important; /* Bordure blanche très fine et discrète */
    color: rgba(255, 255, 255, 0.85) !important; /* Icône blanche légèrement adoucie */
    width: auto; /* Carré parfait pour un cercle régulier */
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-in-out !important; /* Animation fluide et rapide */
}

    /* 🚀 L'effet au Survol (Hover) : Simple changement subtil d'opacité */
    .btn-yomasoft:hover {
        color: var(--falcon-primary) !important; /* Icône blanche pure éclatante */
        border-color: rgba(255, 255, 255, 0.6) !important; /* La bordure s'accentue légèrement */
        background-color: #ffffff !important; /* Légère variation d'opacité (voile blanc translucide) */
        transform: scale(1.05); /* Micro-zoom moderne */
    }

    /* 🎯 L'effet mécanique au Clic (Active) */
    .btn-yomasoft:active {
        transform: scale(0.95); /* Retour arrière réactif au clic */
        background-color: rgba(255, 255, 255, 0.05) !important;
    }


/* =================================================================== */
/* 🧠 Fixation de ton modal à droite sans casser Bootstrap             */
/* =================================================================== */

/* Placer le dialog Bootstrap tout à droite et collé aux bords */
#myModalForms .modal-dialog {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Forcer le contenu interne du modal à occuper toute la hauteur */
#myModalForms .modal-content {
    height: 100% !important;
    border-radius: 0 !important;
    left: 25%;
    width: 75%;
}

/* --- MOBILE (< 768px) : 100% de la largeur --- */
@media (max-width: 767.98px) {
    #myModalForms .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- BUREAU (>= 768px) : Largeur par défaut (ex: 450px ou 30%), modifiable en JS --- */
@media (min-width: 768px) {
    #myModalForms .modal-dialog {
        width: 100%; /* ou la valeur en px/pourcentage de ton choix */
        max-width: 100%;
    }
}

#myModalForms-Body {
    max-height: 100%; /*calc(80vh - 120px);*/
    overflow-y: auto;
}

/* =================================================================== */
/* YouDoCore - Bordure Gauche Dynamique (.myYouDo-field) */
/* =================================================================== */

/* Style de base des composants */
.myYouDo-field {
    background-color: transparent !important; /* bg-light */
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid #ced4da !important; /* Bordure gauche par défaut */
    border-radius: 4px !important;
    padding: 0.375rem 0.75rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* 1. Champ Obligatoire : Bordure Gauche Rouge Épaisse */
.myYouDo-field-required {
    border-left: 4px solid #dc3545 !important; /* Rouge vif */
}

    /* Focus sur champ obligatoire */
    .myYouDo-field-required:focus {
        background-color: #ffffff !important;
        border-left-color: #b02a37 !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
    }

/* 2. Champ Grisé / Readonly / Mode Consulter : Bordure Gauche Grise */
.myYouDo-field-disabled,
.myYouDo-field:disabled,
.myYouDo-field[readonly] {
    background-color: #e9ecef !important;
    border-left: 4px solid #6c757d !important; /* Gris foncé neutre */
    color: #495057 !important;
    cursor: not-allowed;
}

/* Appliqué uniquement sur mobile et tablette (< 992px) */
@media (max-width: 991.98px) {
    body {
        padding-top: 56px !important; /* Libère l'espace sous la Top Bar */
        padding-bottom: 60px !important; /* Libère l'espace au-dessus de la Bottom Bar */
    }
}



/* 3. Champ Mode Impression : Bordure Gauche Noire */
/*.myYouDo-field-print,
@media print {
    .myYouDo-field {
        background-color: transparent !important;
        border: 1px solid #000000 !important;
        border-left: 4px solid #000000 !important;*/
*/ /* Noir pur */
/*color: #000000 !important;
    }
}
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */
/* =================================================================== */

/* =================================================================== */
/* 🧠 YOMASOFT - MULTISELECT CHOSEN COMPONENT (Cadre & Largeur Stricte) */
/* =================================================================== */

/* --- 1. Conteneur principal (Cadre strict) --- */
.multiselect.chosen-style {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.3125rem 2.5rem 0.3125rem 0.75rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--falcon-gray-900, #212529);
    background-color: var(--falcon-quaternary-bg, #ffffff);
    background-image: var(--falcon-form-select-bg-img);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    border: var(--falcon-border-width, 1px) solid var(--falcon-gray-300, #ced4da);
    border-radius: var(--falcon-border-radius, 0.375rem);
    box-shadow: var(--falcon-box-shadow-inset);
    box-sizing: border-box !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

/* Le widget place le multiselect dans un conteneur .select-box externe. */
.select-box > .multiselect.chosen-style {
    position: relative !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

    /* Reset et alignement de la boîte interne du champ */
    .multiselect.chosen-style .select-box,
    .multiselect.chosen-style .select-box.form-control {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 25px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

/* --- 2. Badges des choix et Placeholder --- */
.chosen-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.select-placeholder {
    color: #6c757d;
    font-size: 0.9rem;
}

.chosen-choice {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    font-size: 0.85rem;
    color: #212529;
    background-color: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.chosen-close-btn {
    margin-left: 6px;
    font-weight: bold;
    color: #adb5bd;
    cursor: pointer;
}

    .chosen-close-btn:hover {
        color: #dc3545;
    }

/* --- 3. Menu Déroulant (Verrouillé à 100% de la largeur du champ) --- */
.multiselect.chosen-style .dropdown-list {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 250px;
    margin-top: 2px !important;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box !important;
    overflow-y: auto;
    z-index: 1050 !important;
}

.select-box > .multiselect.chosen-style > .dropdown-list {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

    /* Affichage du menu */
    .multiselect.chosen-style .dropdown-list.show {
        display: block !important;
    }

/* --- 4. Barre de recherche & "Tout Cocher" --- */
.multiselect.chosen-style .search-box {
    position: sticky;
    top: 0;
    padding: 8px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    z-index: 10;
}

.multiselect.chosen-style .select-all-label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

    .multiselect.chosen-style .select-all-label:hover {
        background-color: #f8f9fa;
    }

/* Masquage de "Tout Cocher" si max=1 */
.multiselect[my-data-max="1"] .select-all-label {
    display: none !important;
}

/* --- 5. Alignement des Options en Liste Verticale --- */
.multiselect.chosen-style .options-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.multiselect.chosen-style .option-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 0.9rem;
    color: #212529;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .multiselect.chosen-style .option-item:hover {
        background-color: var(--falcon-primary, #0d6efd) !important;
        color: #ffffff !important;
    }

.multiselect.chosen-style .option-checkbox {
    flex-shrink: 0;
    margin-right: 10px !important;
    cursor: pointer !important;
}

.multiselect.chosen-style .option-text {
    flex-grow: 1;
    white-space: normal;
    word-break: break-word;
}

/* --- 6. Contour Bleu Ciel au Survol & Focus Universel --- */
.form-control:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="date"]:hover,
textarea:hover,
.multiselect.chosen-style:hover {
    border-color: var(--falcon-input-focus-border-color, #86b7fe) !important;
    box-shadow: var(--falcon-input-focus-box-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25)) !important;
    outline: 0 !important;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
.multiselect.chosen-style:focus-within,
.multiselect.chosen-style:has(.dropdown-list.show) {
    border-color: var(--falcon-input-focus-border-color, #86b7fe) !important;
    box-shadow: var(--falcon-input-focus-box-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25)) !important;
    outline: 0 !important;
}