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

body {
    font-family: "Inter", sans-serif;
    background: #eef1f5;
    color: #2c3e50;
}

/* Title */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2d3d;
}

/* ------------------------------------------------ */
/* Les features cards */
/* ------------------------------------------------ */

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease !important;;

    /* Ombre marquée sur les côtés */
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        10px 0 20px rgba(0, 0, 0, 0.15),
        -10px 0 20px rgba(0, 0, 0, 0.15) !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.feature-img {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e5e5e5;
}

.feature-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-card .card-text {
    font-size: 0.95rem;
    color: #6c7a89;
}

.feature-btn {
    background: linear-gradient(135deg, #005b8f, #003d61);
    border: none;
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease;
}

.feature-btn:hover {
    background: linear-gradient(135deg, #0071b3, #004a75);
    transform: scale(1.03);
}

.feature-card,
.feature-img {
    transition: all 0.25s ease-in-out;
}

/* ------------------------------------------------ */
/* La navbar) */
/* ------------------------------------------------ */

.navbar-toggler {
    border: none !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 28px;
    height: 2px;
    background-color: white !important;
    position: relative;
    border-radius: 2px;
}

.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: white !important;
    border-radius: 2px;
    top: 8px;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.nav-link-left {
    text-decoration: none;
    color: white !important;
    margin-right: 20px;
    font-weight: 500;
}

.login-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.login-link:hover {
    background: rgba(255,255,255,0.15);
}
/* Branding navbar */
.navbar-brand-custom {
    display: flex;
    flex-direction: column;   /* EMPILÉ */
    justify-content: center;
    line-height: 1.2;
    padding-right: 20px;
    border-right: 2px solid rgba(0, 217, 206, 0.25);
    margin-right: 20px;
}

/* Ligne du haut */
.brand-top {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff;
}

/* Ligne du bas */
.brand-bottom {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}


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

.login-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef1f5, #f7f9fc);
}

.login-subtitle {
    text-align: center;
    color: #6c7a89;
    margin-bottom: 25px;
}

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

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 30px;
    border-radius: 14px;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.12),
        12px 0 28px rgba(0,0,0,0.08),
        -12px 0 28px rgba(0,0,0,0.08);
}

.login-title {
    text-align: center;
    font-weight: 700;
    color: #003d61;
    margin-bottom: 25px;
}


/* Bouton principal pro */
.btn-pro {
    background-color: #005b8f;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    border: 1.5px solid #005b8f;
    transition: all .2s ease;
}

/* Hover */
.btn-pro:hover {
    background-color: #005b8f;
    border-color: #005b8f;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transform: translateY(-3px);
    color: white;
}

/* Focus clavier */
.btn-pro:focus {
    box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.3);
}


/* Champs de formulaire pro */
.input-pro {
    border: 2.5px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Effet focus élégant */
.input-pro:focus {
    border-color: #005b8f;
    box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.15);
    outline: none;
}

/* USER INFO NAVBAR */

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-name {
    font-size: 0.95rem;
}

.login-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.login-link:hover {
    background: rgba(255,255,255,0.15);
}





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

.select2-container--bootstrap-5 .select2-selection {
    border: 2.5px solid #d0d7de !important;
    border-radius: 8px !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: #005b8f !important;
    box-shadow: 0 0 0 3px rgba(0, 91, 143, 0.15) !important;
}

/* 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: #005b8f;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 500;
}

/* Croix suppression */
.select2-container--bootstrap-5 .select2-selection__choice__remove {
    color: white;
    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: #e9eef3 !important;
    color: #2c3e50 !important;
}

/* Hover propre */
.select2-container--bootstrap-5
.select2-results__option--highlighted {
    background-color: #005b8f !important;
    color: white !important;
}

/* Pills sélectionnées */
.select2-container--bootstrap-5
.select2-selection__choice {
    background-color: #005b8f !important;
    border: none !important;
    color: white !important;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Croix plus petite */
.select2-container--bootstrap-5
.select2-selection__choice__remove {
    font-size: 0.75rem !important;
    line-height: 1;
    margin: 0;
    padding: 0 2px;
    border: none;
    color: rgba(255,255,255,0.8) !important;
}

/* Hover croix */
.select2-container--bootstrap-5
.select2-selection__choice__remove:hover {
    color: white !important;
    background: none !important;
}

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