/***********************************************************************************************************************
* Global & Typographie
***********************************************************************************************************************/
body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa;
    color: #1e293b;
    --primary: #426B85;
    --accent: #D97757;
}

/* Bouton principal Bleu Ardoise */
.btn-primary {
    background-color: #426B85 !important;
    border-color: #426B85 !important;
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 24px;
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #2d4d61 !important;
    border-color: #2d4d61 !important;
    box-shadow: 0 10px 15px -3px rgba(66, 107, 133, 0.2) !important;
    transform: translateY(-1px);
}
.btn-primary:disabled {
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

/* Formulaires Global */
.form-control, .form-select {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #426B85;
    box-shadow: 0 0 0 4px rgba(66, 107, 133, 0.05);
    outline: 0;
}

/* États d'erreur personnalisés */
.mb-3:has(.is-invalid) .form-label,
.mb-4:has(.is-invalid) .form-label,
.is-invalid-group .form-label {
    color: #dc2626 !important;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fff1f2 !important;
    color: #991b1b !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

.input-modern-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-modern-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-modern-group .icon-input {
    position: absolute;
    left: 17px;
    color: #94a3b8;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

.input-modern-group .form-control {
    padding-left: 48px;
}

/* Animation de l'icône qui glisse pour l'email existant */
.mb-3:has(.is-email-exists) .invalid-feedback i,
.mb-4:has(.is-email-exists) .invalid-feedback i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% - 35px);
    margin-right: 0 !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #dc2626;
    z-index: 15;
}

.mb-3:has(.is-email-exists) .invalid-feedback,
.mb-4:has(.is-email-exists) .invalid-feedback {
    display: block;
    position: relative;
}

.input-modern-group:has(.is-invalid) .icon-input {
    color: #dc2626 !important;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fff1f2 !important;
    color: #991b1b !important;
    padding-right: 45px; /* Place pour l'icône à droite */
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    align-items: center;
    gap: 4px;
}

.is-invalid ~ .invalid-feedback,
.is-invalid-group .invalid-feedback,
.mb-3:has(.is-invalid) .invalid-feedback,
.mb-4:has(.is-invalid) .invalid-feedback {
    display: flex;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

/* Case à cocher */
.form-check-input {
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #426B85 !important;
    border-color: #426B85 !important;
}

.form-check-input:focus {
    border-color: #426B85;
    box-shadow: 0 0 0 4px rgba(66, 107, 133, 0.05);
}

.form-check-label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

/* Liens textuels */
.text-primary, a.text-primary {
    color: #426B85 !important;
}

a.text-primary:hover {
    color: #2d4d61 !important;
    text-decoration: underline !important;
}


/***********************************************************************************************************************
* Mobile Header & Desktop Sidebar (Full Height)
***********************************************************************************************************************/
.header {
    width: 100%;
    height: 60px;
    background: #ffffff;
    color: #111827;
    z-index: 1050;
    padding: 0 20px;
    /* D-lg-none gère sa disparition sur PC via HTML */
}

/* On force le logo (qui était potentiellement blanc pour un fond sombre) à devenir noir textuel */
.sidebar-logo, .logo img {
    filter: invert(1) hue-rotate(180deg) brightness(0); /* Filtre robuste pour tout passer au noir */
}

.bg-sidebar {
    background-color: #ffffff !important;
    color: #111827;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px; /* Largeur mini */
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #eaeaea;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.sidebar:hover {
    width: 250px; /* Largeur maxi */
    box-shadow: 4px 0 15px rgba(0,0,0,0.05); /* Lévitation du menu */
}

/* Ajout d'une ombre interne extrêmement lègere et subtile sur la droite */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Attaché strictement a droite */
    height: 100%;
    width: 2px;
    background: #eaeaea; /* Un simple trait net ou dégradé très léger */
    pointer-events: none;
}

.sidebar-menu a {
    color: #6b7280;
    padding: 10px 16px;
    margin: 4px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Le grand logo est invisible si la barre est repliée */
.sidebar:not(:hover) .sidebar-menu a span,
.sidebar:not(:hover) .sidebar-category,
.sidebar:not(:hover) .sidebar-logo,
.sidebar:not(:hover) .btn-logout span,
.sidebar:not(:hover) .btn-admin span {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}

/* Le petit favicon est invisible si la barre est EXTIRPÉE (survol) */
.sidebar:hover .sidebar-favicon {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}

/* À l'inverse, on ré-affiche le vrai logo et les textes quand c'est survolé */
.sidebar:hover .sidebar-menu a span,
.sidebar:hover .sidebar-category,
.sidebar:hover .sidebar-logo,
.sidebar:hover .btn-logout span,
.sidebar:hover .btn-admin span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease 0.1s;
}

.sidebar-header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-favicon, .sidebar-logo {
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: opacity 0.3s ease;
}

/* On s'assure que le logo mobile est aussi centré */
.header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.sidebar:not(:hover) .sidebar-logo {
    opacity: 0;
    visibility: hidden;
}

.sidebar:not(:hover) .sidebar-favicon {
    opacity: 1;
    visibility: visible;
}

.sidebar:hover .sidebar-favicon {
    opacity: 0;
    visibility: hidden;
}

.sidebar:hover .sidebar-logo {
    opacity: 1;
    visibility: visible;
}

/* Profil Utilisateur Sidebar */
.user-profile {
    padding: 12px 19px; /* Ajusté pour centrer l'avatar à 70px (32px + 19px*2 = 70px) */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.sidebar-user-info {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar:hover .sidebar-user-info {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s;
}

.user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #eff6ff;
    color: #426B85;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Forçage de couleur noire pour les favicons et logos clairs dans la sidebar */
.sidebar .sidebar-favicon, .sidebar .sidebar-logo {
    filter: invert(1) hue-rotate(180deg) brightness(0);
}

.auth-logo {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.sidebar-menu a i {
    font-size: 14px;
    width: 24px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.sidebar-menu a:hover i {
    color: #111827;
}

/* Liens de la sidebar (Menu, Admin, Logout) */
.sidebar-menu a, .btn-admin, .btn-logout {
    color: #6b7280;
    padding: 10px 16px;
    margin: 4px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    border: none;
    background: transparent;
}

.sidebar-menu a i, .btn-admin i, .btn-logout i {
    font-size: 14px;
    width: 24px;
    color: #9ca3af;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

/* Hover & Active states */
.sidebar-menu a:hover, .btn-admin:hover,
.sidebar-menu a.active, .btn-admin.active {
    background-color: #f4f4f5;
    color: #111827;
}

.sidebar-menu a:hover i, .btn-admin:hover i,
.sidebar-menu a.active i, .btn-admin.active i {
    color: #111827;
}

.sidebar-menu a.active, .btn-admin.active {
    font-weight: 600;
}

/* Logout Specific Hover */
.btn-logout:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-logout:hover i {
    color: #ef4444;
}

/* Bouton d'action reprenant le style du menu Administration */
.btn-outline-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #4b5563;
    border: 1px solid #eaeaea;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-admin:hover {
    background: #edf5ff;
    color: #2D6BE4;
    border-color: #2D6BE4;
    transform: translateY(-1px);
}

.btn-outline-admin i {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.btn-outline-admin:hover i {
    color: #2D6BE4;
}

.btn-outline-admin.text-danger i {
    color: #ef4444 !important;
}

.btn-outline-admin.hover-danger:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.btn-outline-admin.hover-danger:hover i {
    color: #ef4444 !important;
}

/***********************************************************************************************************************
* Content & Responsiveness
***********************************************************************************************************************/
.content {
    margin-top: 30px; 
    padding: 10px 40px;
    margin-left: 70px; /* Aligné sur la sidebar fermée */
    transition: margin-left 0.3s ease;
}

@media (max-width: 991px) {
    .content {
        margin-left: 0;
        margin-top: 10px; /* Sur téléphone le header fait le job */
        padding: 10px 15px;
    }
}

/***********************************************************************************************************************
* Cards & Indicateurs (KPIs) - Équilibrés et sobres
***********************************************************************************************************************/
.indicator {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Ombre douce statique */
    border: 1px solid #eaeaea;
    /* transition: all 0.2s ease; Retrait pour figer l'interface pro */
}

/* On garde sans lévitation */
.indicator:hover {
    border-color: #d1d5db;
}

.indicator .icon-container {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* Couleurs douces pastel/mates, colorées sans être criardes */
.indicator-bug .icon-container { background: #fee2e2; color: #ef4444; }
.indicator-v2 .icon-container { background: #eff6ff; color: #3b82f6; }
.indicator-isov1 .icon-container { background: #fef3c7; color: #f59e0b; }
.indicator-evolv2 .icon-container { background: #d1fae5; color: #10b981; }

.indicator .text-content {
    flex-grow: 1;
    margin-left: 14px;
}

.indicator .text-content strong {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.indicator .text-content small {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

.indicator .value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
}

/* Dashboard Cards (Sprints) */
.card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    background-color: #ffffff;
    transition: transform 0.2s ease;
}

/***********************************************************************************************************************
* Datatable & Couleurs Statuts Minimalistes
***********************************************************************************************************************/
/* Redéfinition des statuts pour la table (plus froids, plus textuels) */
.bg-done { background-color: #bbf7d0 !important; }
.bg-recette { background-color: #dcfce7 !important; }
.bg-recettenok { background-color: #fecaca !important; }
.bg-inprogress { background-color: #fef08a !important; }
.bg-todo { background-color: #daefff !important; }
.bg-blanc { background-color: #ffffff !important; }

#backlogTable, #currentSprintTable {
    border-collapse: separate;
    border-spacing: 0 5px;
}

#backlogTable th, #currentSprintTable th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

#backlogTable td, #currentSprintTable td {
    vertical-align: middle;
    font-size: 13px;
    color: #374151;
    border-top: 1px solid #f9fafb !important;
    border-bottom: 1px solid #f9fafb !important;
}

/* Datatables Overrides (Moteur DataTables 2.0+ / Bootstrap 5) */
.dt-container .row {
    margin-bottom: 0.5rem;
}
.dt-container label {
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    display: inline-flex;
    align-items: center;
}

/* Ciblage des champs de recherche et selecteurs de longueur */
.dt-container .dt-search input,
.dt-container input[type="search"],
.dt-container .form-control {
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
    outline: none !important;
    box-shadow: none !important;
    margin-left: 8px !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    text-transform: none !important;
}
.dt-container .dt-search input:focus,
.dt-container input[type="search"]:focus,
.dt-container .form-control:focus {
    border-color: #d1d5db !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(234, 234, 234, 0.5) !important;
}

.dt-container .dt-length select,
.dt-container select,
.dt-container .form-select {
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
    padding: 6px 28px 6px 12px !important;
    font-size: 13px !important;
    background-color: #f9fafb !important;
    color: #4b5563 !important;
    margin: 0 8px !important;
    cursor: pointer !important;
    height: auto !important;
}
.dt-container .dt-length select:focus,
.dt-container select:focus,
.dt-container .form-select:focus {
    border-color: #d1d5db !important;
    box-shadow: 0 0 0 3px rgba(234, 234, 234, 0.5) !important;
    background-color: #ffffff !important;
}

/* Pagination (DataTables 2.0+ & Bootstrap 5) */
.dt-container .dt-paging,
.dt-container .pagination {
    display: flex;
    gap: 2px;
    margin: 0;
}

.dt-container .dt-paging-button,
.dt-container .page-item .page-link {
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    color: #6b7280 !important;
    background: transparent !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none;
}

.dt-container .dt-paging-button:not(.current):not(.disabled):hover,
.dt-container .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f9fafb !important;
    border: 1px solid #eaeaea !important;
    color: #111827 !important;
}

.dt-container .dt-paging-button.current,
.dt-container .page-item.active .page-link {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-weight: 600 !important;
}

.dt-container .dt-paging-button.disabled,
.dt-container .page-item.disabled .page-link {
    color: #d1d5db !important;
    background: transparent !important;
    cursor: not-allowed;
}

.dt-container .dt-info,
.dt-info {
    font-size: 13px !important;
    color: #9ca3af !important;
    padding-top: 5px !important;
}
.progress {
    background-color: #f3f4f6 !important;
    border: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* Offcanvas Description Styling (Azure DevOps Content) */
.ado-description p { margin-bottom: 10px; }
.ado-description img { max-width: 100% !important; height: auto !important; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin: 5px 0; }
.ado-description table { width: 100% !important; border-collapse: collapse; margin-top: 10px; margin-bottom: 10px; font-size: 12px; }
.ado-description th, .ado-description td { border: 1px solid #d1d5db; padding: 6px; }
.ado-description th { background-color: #f3f4f6; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
/***********************************************************************************************************************
* Severity Blocks (Critical/Warning)
***********************************************************************************************************************/
.severity-block {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    min-width: 100px;
    transition: all 0.23s ease;
    border-left: 4px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.severity-block-critical {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.severity-block-warning {
    border-left-color: #ea580c;
    background: rgba(234, 88, 12, 0.03);
}

.severity-label {
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.severity-block-critical .severity-label { color: #dc2626; }
.severity-block-warning .severity-label { color: #ea580c; }

.severity-data {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.severity-value-planned {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.severity-value-total {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
}

/* Onglets Modernes */
.nav-modern-pills {
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    display: inline-flex;
    border: none;
    gap: 4px;
    margin-bottom: 2rem;
}

.nav-modern-pills .nav-link {
    border: none !important;
    border-radius: 10px !important;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-modern-pills .nav-link i {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.nav-modern-pills .nav-link.active {
    background-color: #ffffff !important;
    color: #426B85 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.nav-modern-pills .nav-link.active i {
    color: #D97757 !important;
}

.nav-modern-pills .nav-link:hover:not(.active) {
    color: #1e293b !important;
    background-color: rgba(255, 255, 255, 0.5);
}

.badge-pill-count {
    background-color: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.nav-link.active .badge-pill-count {
    background-color: #D97757;
    color: #ffffff;
}

/* Bandeau Impersonation */
.impersonation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #D97757;
    color: white;
    padding: 10px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10000; /* Plus haut que tout (sidebar, modales, etc.) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ajustement pour quand le bandeau est présent */
body:has(.impersonation-banner) .sidebar {
    top: 43px !important; /* Hauteur du bandeau */
    height: calc(100vh - 43px) !important;
}

body:has(.impersonation-banner) .content {
    margin-top: 73px !important; /* 30px de base + 43px bandeau */
}

body:has(.impersonation-banner) .header-mobile {
    top: 43px !important;
}

@media (max-width: 991px) {
    body:has(.impersonation-banner) .content {
        margin-top: 53px !important; /* 10px de base + 43px bandeau */
    }
}

.btn-exit-impersonation {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-exit-impersonation:hover {
    background: white;
    color: #D97757;
}

/* Classification Badges */
.badge-terracotta {
    background-color: #e2725b !important;
    color: white !important;
    border: none !important;
}

.hover-shadow:hover {
    background-color: #f8fafc !important;
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.02);
}

/***********************************************************************************************************************
* Select2 Custom Styling (Match Bootstrap 5 & App Theme)
***********************************************************************************************************************/
/* Le conteneur principal - Specificity Boost with body */
body .select2-container--default .select2-selection--single {
    height: 44px !important;
    background-color: #f8fafc !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Le texte sélectionné */
body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
}

/* Fix pour l'icône dans les groupes modernes */
body .input-modern-group .select2-container--default .select2-selection--single {
    padding-left: 38px !important;
}

/* La flèche */
body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: 0 !important;
}

/* État Focus / Ouvert */
body .select2-container--default.select2-container--focus .select2-selection--single,
body .select2-container--default.select2-container--open .select2-selection--single {
    background-color: #ffffff !important;
    border-color: #426B85 !important;
    box-shadow: 0 0 0 4px rgba(66, 107, 133, 0.05) !important;
}

/* La liste déroulante (le menu) */
body .select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    z-index: 1060 !important;
    margin-top: 5px !important;
    overflow: hidden !important;
    padding: 5px !important;
}

/* Le champ de recherche interne */
body .select2-search--dropdown {
    padding: 8px !important;
}

body .select2-search--dropdown .select2-search__field {
    background-color: #f8fafc !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

body .select2-search--dropdown .select2-search__field:focus {
    border-color: #426B85 !important;
    background-color: #ffffff !important;
}

/* Les options de la liste */
body .select2-results__option {
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    color: #475569 !important;
}

body .select2-results__option--highlighted[aria-selected] {
    background-color: #426B85 !important;
    color: #ffffff !important;
}

body .select2-results__option[aria-selected=true] {
    background-color: #eff6ff !important;
    color: #1e3a8a !important;
}

/* Pas de résultats */
body .select2-results__message {
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    padding: 20px 10px !important;
}
