/* ------------------------------------------------ */
/* DASHBOARD PRO STYLE */
/* ------------------------------------------------ */

body {
    font-family: var(--police-texte);
    background: var(--surface-0);
    color: var(--ink);
}

/* ------------------------------------------------ */
/* LOGIN PAGE */
/* ------------------------------------------------ */

.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-0);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface-100);
    color: var(--ink);
    padding: 30px;
    border-radius: var(--rayon-10);
    border: 1px solid var(--line);
    box-shadow: var(--ombre-3);
}

.login-title {
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 25px;
}



/* Champs de formulaire pro */
.input-pro {
    border: 2.5px solid var(--line-strong);
    border-radius: var(--rayon-6);
    padding: 10px 12px;
    background-color: var(--surface-100);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Effet focus élégant */
.input-pro:focus {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* ================================================= */
/* ALIGNEMENT VISUEL SELECT2 = INPUT-PRO */
/* ================================================= */

.select2-container--bootstrap-5 .select2-selection {
    border: 2.5px solid var(--line-strong) !important;
    border-radius: var(--rayon-6) !important;
    min-height: 44px;
    padding: 6px 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Alignement texte */
.select2-container--bootstrap-5 .select2-selection__rendered {
    line-height: 28px;
    padding-left: 0;
}

/* Focus */
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--accent) !important;
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    box-shadow: none !important;   /* le thème select2-bootstrap-5, chargé après, pose un halo */
}

/* Multi-select : hauteur harmonisée */
.select2-container--bootstrap-5 .select2-selection--multiple {
    padding: 6px 8px;
}

/* Pills (éléments sélectionnés) */
.select2-container--bootstrap-5 .select2-selection__choice {
    background-color: var(--ink);
    border: none;
    color: var(--ink-inverse);
    border-radius: var(--rayon-6);
    padding: 2px 8px;
    font-weight: 500;
}

/* Croix suppression */
.select2-container--bootstrap-5 .select2-selection__choice__remove {
    color: var(--ink-inverse);
    margin-right: 6px;
}

/* ================================================= */
/* SELECT2 – POLISH FINAL (PILLS + CROIX) */
/* ================================================= */

/* Suppression du fond bleu à la sélection */
.select2-container--bootstrap-5
.select2-results__option--selected {
    background-color: var(--equilibre) !important;
    color: var(--ink) !important;
}

/* Hover propre */
.select2-container--bootstrap-5
.select2-results__option--highlighted {
    background-color: var(--ink) !important;
    color: var(--ink-inverse) !important;
}

/* Pills sélectionnées */
.select2-container--bootstrap-5
.select2-selection__choice {
    background-color: var(--ink) !important;
    border: none !important;
    color: var(--ink-inverse) !important;
    border-radius: var(--rayon-6);
    padding: 2px 6px;
    font-size: var(--texte-14);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Croix plus petite */
.select2-container--bootstrap-5
.select2-selection__choice__remove {
    font-size: var(--texte-12) !important;
    line-height: 1;
    margin: 0;
    padding: 0 2px;
    border: none;
    color: var(--ink-inverse) !important;
    opacity: .8;
}

/* Hover croix */
.select2-container--bootstrap-5
.select2-selection__choice__remove:hover {
    color: var(--ink-inverse) !important;
    opacity: 1;
    background: none !important;
}

/* Suppression du focus bleu Bootstrap */
.select2-container--bootstrap-5
.select2-results__option:focus {
    background-color: inherit !important;
}
