
/* ===============================
   CHAÎNE DE HAUTEUR ABSOLUE
   =============================== */

html, body {
    height: 100%;
    margin: 0;
}

/* Empêcher SweetAlert de modifier le layout body */
body.swal2-shown:not(.swal2-no-backdrop) {
    overflow: hidden !important;
    height: 100% !important;
    padding-right: 0 !important;
}

/* layout racine */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;          /* 🔒 verrou absolu */
    overflow: hidden;       /* ⛔ jamais de scroll global */
}

/* header */
.app-header {
    flex: 0 0 auto;
}

/* footer */
.app-footer {
    flex: 0 0 auto;
    min-height: 25px;
    background-color: #808181;
    padding: 5px;
    font-size: 0.875rem;
    color: #ffffff;
}

/* zone centrale */
.app-main {
    flex: 1 1 auto;
    min-height: 0;          /* 🔥 CRITIQUE */
    overflow-y: auto;       /* 🔥 SCROLL DE PAGE */
    overflow-x: hidden;
}
/* ==========================================================
   CONTENEUR RACINE DE CHAQUE VUE
   ========================================================== */

.view-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}


.app-footer a {
    color: inherit;
    text-decoration: none;
}

.app-footer a:hover,
.app-footer a:visited,
.app-footer a:active {
    color: inherit;
    text-decoration: none;
}

.footer-left,
.footer-right {
    white-space: nowrap;
}



/* ==========================================================
   SCROLL INTERNE RÉUTILISABLE
   ========================================================== */

.view-scroll {
    flex: 1 1 auto;
    min-height: 0;                 /* 🔥 OBLIGATOIRE pour scroll */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Variante sans scroll explicite */
.view-no-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* ==========================================================
   SIDEBAR (LEGACY)
   ========================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #0d1b2a;
    color: #fff;
    z-index: 1050;
    transition: left 0.2s ease;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

/* Backdrop */
.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1040;
}

.backdrop.show {
    display: block;
}

/* ==========================================================
   MENU SIDEBAR (LEGACY)
   ========================================================== */

.menu-section-title {
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.7;
    color: #ffffff;
}

.sidebar .menu-item {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.sidebar .menu-item:hover {
    background: rgba(255,255,255,0.12);
}

.sidebar .menu-item i {
    font-size: 1.1rem;
}

/* Sous-menus */
.submenu {
    padding-left: 35px;
}

.submenu .menu-item {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.submenu-toggle .chevron {
    transition: transform 0.25s ease;
}

.submenu-toggle .chevron.rotated {
    transform: rotate(90deg);
}

/* ==========================================================
   SCROLLBAR CUSTOM (SIDEBAR)
   ========================================================== */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

/* ==========================================================
   NOUVEAU MENU - STYLE FLYOUT (DW) - STYLE ACNC
   ========================================================== */

/* Variables couleurs ACNC/DW */
:root {
    --dw-brand: #0F3A6E;
    --dw-brand-light: #1a4a82;
    --dw-brand-dark: #0a2d54;
    --dw-text: #374151;
    --dw-text-muted: #6b7280;
    --dw-bg: #f7f8fb;
    --dw-card: #fff;
    --dw-border: #e5e7eb;
    --dw-sidebar-w: 420px;
    --dw-header-h: 64px;
    --dw-radius: 10px;
}

/* --- SIDEBAR PRINCIPALE (style ACNC) --- */
.dw-sidebar {
    position: fixed;
    top: var(--dw-header-h);
    left: calc(-1 * var(--dw-sidebar-w));
    width: var(--dw-sidebar-w);
    height: calc(100vh - var(--dw-header-h));
    background: linear-gradient(180deg, #e8eef5 0%, #dce4ed 100%);
    border-right: 1px solid #c5d0dc;
    z-index: 1050;
    transition: left 0.25s ease;
    overflow-x: visible;
    overflow-y: auto;
}

.dw-sidebar.open {
    left: 0;
}

.dw-menu {
    padding: 12px;
}

/* --- SECTIONS (style ACNC) --- */
.dw-section {
    margin-bottom: 14px;
    border: none;
    background: #fff;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(15,58,110,0.08);
}

.dw-stitle {
    margin: 0;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #0F3A6E 0%, #1a4a82 100%);
    border-bottom: 3px solid #0a2d54;
}

.dw-ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

/* --- ITEMS DE MENU (style ACNC) --- */
.dw-li {
    margin: 2px 0;
}

.dw-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dw-link:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
    border-color: #c5d9f0;
    color: #0F3A6E;
    transform: translateX(3px);
}

.dw-link:active {
    transform: translateX(3px) scale(0.99);
}

.dw-link i,
.dw-link .fa,
.dw-link .fa-solid,
.dw-link .bi {
    width: 20px;
    text-align: center;
    color: #0F3A6E;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.dw-link:hover i,
.dw-link:hover .fa,
.dw-link:hover .fa-solid,
.dw-link:hover .bi {
    opacity: 1;
}

.dw-link span {
    flex: 1;
}

/* --- CHEVRON (groupes) --- */
.dw-chevron {
    margin-left: auto;
    font-size: 10px;
    color: #374151;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dw-has-flyout:hover .dw-flyout-trigger,
.dw-has-flyout.active .dw-flyout-trigger {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
    border-color: #c5d9f0;
    color: #0F3A6E;
    border-radius: 8px;
}

.dw-has-flyout:hover .dw-flyout-trigger i,
.dw-has-flyout.active .dw-flyout-trigger i {
    color: #0F3A6E;
}

.dw-has-flyout:hover .dw-chevron,
.dw-has-flyout.active .dw-chevron {
    color: #0F3A6E;
    transform: translateX(2px);
}

/* --- CONTENEUR FLYOUTS (style ACNC) --- */
#dw-flyouts-container {
    position: fixed;
    top: var(--dw-header-h);
    left: var(--dw-sidebar-w);
    bottom: 0;
    width: 640px;
    z-index: 1049;
    pointer-events: none;
    display: none;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Afficher uniquement quand la sidebar est ouverte */
.dw-sidebar.open ~ #dw-flyouts-container,
body:not(.sidebar-collapsed) #dw-flyouts-container {
    display: block;
}

/* Fond blanc quand un flyout est ouvert */
#dw-flyouts-container.open {
    background: #fff;
    pointer-events: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

/* --- FLYOUT PANEL (style ACNC) --- */
.dw-flyout {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1048;
}

.dw-flyout.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Header du flyout (style ACNC) */
.dw-flyout-header {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0F3A6E 0%, #1a4a82 100%);
    border-bottom: 3px solid #0a2d54;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dw-flyout-header i {
    font-size: 16px;
}

/* Body du flyout (style ACNC) */
.dw-flyout-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Grille d'icônes (style ACNC) */
.dw-flyout-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Item du flyout (style ACNC - icône + texte) */
.dw-flyout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    transition: all 0.15s ease;
    text-align: center;
    min-height: 80px;
}

.dw-flyout-item:hover {
    background: linear-gradient(135deg, #0F3A6E 0%, #1a4a82 100%);
    border-color: #0F3A6E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,58,110,0.25);
    text-decoration: none;
}

.dw-flyout-item i {
    font-size: 22px;
    color: #0F3A6E;
    transition: color 0.15s ease;
}

.dw-flyout-item:hover i {
    color: #fff;
}

.dw-flyout-item span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

/* Catégorie dans flyout (3ème niveau - style ACNC) */
.dw-flyout-category {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 6px;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.dw-flyout-category:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.dw-flyout-grid + .dw-flyout-category {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dw-flyout-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0F3A6E 0%, #1a5292 50%, #2563a8 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 58, 110, 0.25);
}

.dw-flyout-category-title i {
    font-size: 15px;
    color: #fff;
    opacity: 0.9;
}

.dw-flyout-category-title span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Scrollbar flyout */
.dw-flyout::-webkit-scrollbar {
    width: 6px;
}

.dw-flyout::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

.dw-flyout::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar sidebar */
.dw-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dw-sidebar::-webkit-scrollbar-thumb {
    background: rgba(15, 58, 110, 0.3);
    border-radius: 3px;
}

.dw-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* --- BACKDROP --- */
.dw-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--dw-header-h);
    bottom: 0;
    background: rgba(0,0,0,.35);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.dw-sidebar.open ~ .dw-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .dw-sidebar {
        --dw-sidebar-w: 100vw;
        width: 100vw;
    }

    /* Masquer le conteneur flyout sur mobile */
    #dw-flyouts-container {
        display: none !important;
    }

    /* Chevron rotation pour accordion */
    .dw-has-flyout .dw-chevron {
        transition: transform 0.25s ease;
    }

    .dw-has-flyout.mobile-open .dw-chevron {
        transform: rotate(90deg);
    }

    /* Conteneur accordion (sous-items inline) */
    .dw-mobile-submenu {
        display: none;
        padding: 8px 0 8px 20px;
        background: rgba(255,255,255,0.5);
        border-radius: 0 0 8px 8px;
        margin-top: -2px;
    }

    .dw-has-flyout.mobile-open .dw-mobile-submenu {
        display: block;
    }

    /* Style des items dans le sous-menu mobile */
    .dw-mobile-submenu .dw-mobile-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        color: #374151;
        text-decoration: none;
        font-size: 13px;
        border-radius: 6px;
        transition: background 0.15s ease;
    }

    .dw-mobile-submenu .dw-mobile-item:hover {
        background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
        color: #0F3A6E;
    }

    .dw-mobile-submenu .dw-mobile-item i {
        width: 18px;
        text-align: center;
        color: #0F3A6E;
        opacity: 0.7;
    }

    /* Titre de catégorie dans accordion mobile */
    .dw-mobile-category-title {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        margin-top: 8px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #0F3A6E;
        border-bottom: 1px solid rgba(15, 58, 110, 0.1);
    }

    .dw-mobile-category-title i {
        font-size: 12px;
    }
}

/* Fix desktop : pas de voile bloquant */
@media (min-width: 769px) {
    .dw-backdrop {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================
   BOX / PANELS GÉNÉRIQUES
   ========================================================== */

.box {
    background: #ffffff;
    border: 2px solid #0F3A6E;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    min-height: 200px; /* ✅ base visuelle */
}

.box-title {
    background: #0F3A6E;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

.box-content {
    padding: 10px 14px;
    flex: 1;
    min-height: 0; /* 🔥 permet le scroll interne */
}

/* ==========================================================
   HEADER / NAVBAR
   ========================================================== */

.app-header,
.navbar,
.navbar.navbar-expand-lg {
    background-color: #0F3A6E !important;
}

.navbar .navbar-brand,
.navbar .menu-item,
#sidebarToggle {
    color: #fff !important;
}

/* Bouton hamburger */
#sidebarToggle {
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    padding: 6px 10px;
}

#sidebarToggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* ==========================================================
   BOUTON RETOUR ACCUEIL (GLOBAL)
   Utilisé dans toutes les barres de titre des pages
   ========================================================== */

.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateX(-3px);
}

.btn-back-home:active {
    transform: translateX(-3px) scale(0.95);
}

.btn-back-home i {
    font-size: 1rem;
    opacity: 1 !important;
    color: inherit !important;
    width: auto !important;
}

/* Variante pour headers sombres (page-header avec background coloré) */
.page-header .btn-back-home,
.arc-page-header .btn-back-home {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Variante pour headers clairs */
.page-header-light .btn-back-home {
    background: rgba(15, 58, 110, 0.1);
    border-color: rgba(15, 58, 110, 0.2);
    color: #0F3A6E;
}

.page-header-light .btn-back-home:hover {
    background: rgba(15, 58, 110, 0.15);
    border-color: rgba(15, 58, 110, 0.3);
    color: #0F3A6E;
}

/* Responsive */
@media (max-width: 576px) {
    .btn-back-home {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .btn-back-home i {
        font-size: 0.9rem;
    }
}

/* ==========================================================
   PAGE HEADER BAR - BARRE DE TITRE RÉUTILISABLE
   Style unifié pour toutes les pages (Main Courante style)
   ========================================================== */

.page-header-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d47a1 50%, #1565c0 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Effet décoratif - ligne lumineuse en haut */
.page-header-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Effet décoratif - halo lumineux */
.page-header-bar::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Section gauche du header */
.page-header-bar .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Section droite du header */
.page-header-bar .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Bouton retour dans le header bar */
.page-header-bar .btn-back-home {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
    margin-right: 0;
}

.page-header-bar .btn-back-home:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(-2px);
}

.page-header-bar .btn-back-home i {
    font-size: 1.2rem;
}

/* Titre de page dans le header bar */
.page-header-bar .page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.page-header-bar .page-title i {
    font-size: 1.3rem;
    color: #fff;
}

/* Sous-titre optionnel */
.page-header-bar .page-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/* Badge/compteur dans le header */
.page-header-bar .header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header-bar .header-badge i {
    font-size: 16px;
    opacity: 0.9;
}

.page-header-bar .header-badge strong {
    font-weight: 700;
}

/* Bouton d'action dans le header */
.page-header-bar .header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-header-bar .header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.page-header-bar .header-btn i {
    font-size: 16px;
}

/* Bouton succès (vert) dans le header */
.page-header-bar .header-btn-success {
    background: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 1);
}

.page-header-bar .header-btn-success:hover {
    background: rgba(40, 167, 69, 1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive header bar */
@media (max-width: 768px) {
    .page-header-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-header-bar .btn-back-home {
        width: 36px;
        height: 36px;
    }

    .page-header-bar .btn-back-home i {
        font-size: 1rem;
    }

    .page-header-bar .page-title {
        font-size: 1rem;
    }

    .page-header-bar .page-title i {
        font-size: 1.1rem;
    }

    .page-header-bar .page-subtitle {
        font-size: 0.75rem;
    }

    .page-header-bar .header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .page-header-bar .header-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-header-bar .header-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===============================
   FULLSCREEN CARD
   =============================== */
.card-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow: auto !important;
}

.card-fullscreen .di-card-body,
.card-fullscreen .dp-card-body,
.card-fullscreen .nl-card-body,
.card-fullscreen .dm-card-body,
.card-fullscreen .h30-card-body {
    overflow: auto !important;
    max-height: calc(100vh - 50px) !important;
}

.btn-fullscreen-card {
    border: none;
    background: transparent;
    color: rgba(255,255,255,.85);
    padding: 2px 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: color .2s;
}
.btn-fullscreen-card:hover {
    color: #fff;
}

/* ===============================
   CAMP SORT CONTROLS (shared DI/MD/NL)
   =============================== */

.camp-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.camp-sort-select {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}

.camp-sort-select:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

.camp-sort-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.camp-sort-select option {
    background: #1e3a8a;
    color: #fff;
}

.camp-filter-past {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
    letter-spacing: 0;
    user-select: none;
    white-space: nowrap;
}

.camp-filter-past input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #60a5fa;
    cursor: pointer;
    margin: 0;
}

.camp-filter-past:hover {
    color: #fff;
}

.camp-sort-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* ===============================
   MODAL DRAGGABLE & RESIZABLE
   =============================== */

.modal-dialog.modal-dragged {
    transition: none !important;
}

.modal-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    z-index: 10;
    border-radius: 0 0 var(--bs-modal-border-radius, .5rem) 0;
    transition: color .2s;
}
.modal-resize-handle:hover {
    color: #4b5563;
}

/* Quand la modale est en mode dragged, autoriser l'overflow du body */
.modal-dialog.modal-dragged .modal-body {
    overflow-y: auto;
}

/* Curseur move sur le header */
.modal[data-draggable="true"] .modal-header {
    cursor: move;
}

