/* Variables CSS */
:root {
    --primary-color: #2a7380;
    --secondary-color: #4a727c;
    --accent-color: #39e4e4;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e1e1e1;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset et base */
html {
    height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.site-content {
	flex: 1;
    margin-bottom: 3rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.articles {
    margin-top: 50px;
}

/* Forcer la bordure des tableaux collés depuis Excel/Trix à au moins 1px */
table, th, td {
	border-width: 1px !important;
	border-style: solid !important;
	border-color: #333 !important;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #7cb342;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   STYLES POUR LES TABLEAUX
   ============================================ */

/* Style de base pour tous les tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

/* Headers de tableaux */
table thead th {
    color: white;
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border: none !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Cellules de données */
table tbody td {
    padding: 0.875rem 0.75rem;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

/* Lignes alternées */
table tbody tr:nth-child(even) {
    background-color: rgba(42, 115, 128, 0.03);
}

/* Effet hover sur les lignes */
table tbody tr:hover {
    background-color: rgba(42, 115, 128, 0.08);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dernière ligne sans bordure */
table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Tables avec classes Bootstrap spécifiques */
.table {
    margin-bottom: 1rem;
    color: var(--text-dark);
    background-color: transparent;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(42, 115, 128, 0.05);
}

.table-bordered {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(42, 115, 128, 0.1);
}

/* Tables responsives */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styles pour les badges dans les tableaux */
table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* Styles pour les boutons dans les tableaux */
table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0.125rem;
}

/* Amélioration visuelle pour les actions dans les tableaux */
table .btn-group-sm .btn {
    margin: 0.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

table .btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Cellules centrées pour les actions */
table td:has(.btn),
table td:has(.btn-group),
table td:has(.d-flex) {
    text-align: center;
    white-space: nowrap;
}

/* Amélioration des liens dans les tableaux */
table td a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

table td a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive design pour les tableaux */
@media (max-width: 768px) {
    table {
        font-size: 0.85rem;
    }
    
    table thead th,
    table tbody td {
        padding: 0.5rem 0.375rem;
    }
    
    table thead th {
        font-size: 0.8rem;
    }
    
    /* Masquer certaines colonnes sur mobile si nécessaire */
    table .d-none.d-md-table-cell {
        display: none !important;
    }
}

@media (max-width: 576px) {
    table {
        font-size: 0.8rem;
    }
    
    table thead th,
    table tbody td {
        padding: 0.375rem 0.25rem;
    }
    
    /* Adaptation des boutons sur très petits écrans */
    table .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.7rem;
    }
    
    /* Stack les boutons verticalement sur mobile */
    table .d-flex {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Header style journal */
.newspaper-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border-bottom: 3px solid var(--primary-color);
    padding: 1.5rem 0;
}

body.dashboard-bg {
    background: #f1f1f1 !important;
    min-height: 100vh;
}
.dashboard-header {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px 0 rgba(44,62,80,0.08);
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.dashboard-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -1px;
}
.dashboard-tabs {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(44,62,80,0.06);
    padding: 1.2rem 2rem 0.5rem 2rem;
    margin-bottom: 2rem;
}
.nav-tabs .nav-link {
    border: none;
    color: #2c3e50;
    font-weight: 500;
    background: none;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: background 0.2s, color 0.2s;
}
.nav-tabs .nav-link.active {
    background: #e3e9f3;
    color: #2a7380;
    font-weight: 700;
    box-shadow: 0 2px 8px 0 rgba(44,62,80,0.04);
}
.tab-content .card, .tab-content form, .tab-content table {
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(44,62,80,0.06);
    background: #fff;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
}
.tab-content .card {
    padding: 0;
}
.tab-content table {
    padding: 0;
}
.tab-content h4 {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}
.btn-primary, .btn-success {
    box-shadow: 0 2px 8px 0 rgba(44,62,80,0.08);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
}
.btn-outline-primary, .btn-outline-danger {
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1.05rem;
}
.form-label {
    font-weight: 500;
    color: #2c3e50;
}
.form-control, .form-select {
    border-radius: 0.5rem;
    font-size: 1.05rem;
}
@media (max-width: 768px) {
    .dashboard-header, .dashboard-tabs, .tab-content .card, .tab-content form, .tab-content table {
        padding: 1rem 0.5rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.site-logo-container {
    text-align: center;
}

.site-logo {
    max-height: 120px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.subtitle {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-item > a:hover,
.nav-item:hover > a {
    background-color: var(--secondary-color);
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow-medium);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Bandeau défilant */
.scrolling-banner {
    background: linear-gradient(90deg, var(--accent-color), #7cb342);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
}

.banner-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.banner-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 3rem;
    font-weight: 500;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Layout principal */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.newspaper-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Articles style journal */
.main-articles {
    display: grid;
    gap: 2rem;
}

.news-article {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-article.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured .article-image {
    height: 300px;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.category {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.date {
    color: var(--text-muted);
}

.article-title {
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-dark);
    font-size: 1.25rem;
}

.article-title a:hover {
    color: var(--primary-color);
}

.featured .article-title a {
    font-size: 1.75rem;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

.more-news {
    text-align: center;
    margin-top: 2rem;
}

.espace-dirigeants {
    margin: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.1rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Cartes promo */
.promo-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: scale(1.02);
}

.promo-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.promo-content {
    padding: 1rem;
}

.promo-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.promo-content p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* Plan du site */
.sitemap {
    list-style: none;
}

.sitemap li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sitemap li:last-child {
    border-bottom: none;
}

.sitemap a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.sitemap a:hover {
    color: var(--primary-color);
}

.sitemap a::before {
    content: '▶';
    font-size: 0.7rem;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links {
    text-align: center;
    color: white;
}

.footer-links a {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .newspaper-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-articles {
        order: 2;
    }

    .sidebar {
        order: 1;
    }
    
    .news-article.featured {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--secondary-color);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* États des messages */
.no-articles,
.no-tournaments,
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-articles i,
.no-tournaments i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-article {
    animation: fadeIn 0.6s ease forwards;
}

.news-article:nth-child(2) { animation-delay: 0.1s; }
.news-article:nth-child(3) { animation-delay: 0.2s; }
.news-article:nth-child(4) { animation-delay: 0.3s; }
.news-article:nth-child(5) { animation-delay: 0.4s; }
.news-article:nth-child(6) { animation-delay: 0.5s; }

/* ============================================
   STYLES POUR LE DASHBOARD DES SLIDERS
   ============================================ */

/* Aperçu des images de sliders */
.slider-preview-img {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    object-fit: cover;
}

.slider-preview-img:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: scale(1.02);
}

/* Container pour l'aperçu des images */
#slider_preview_container_1,
#slider_preview_container_2,
#slider_preview_container_3 {
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: var(--bg-light);
    text-align: center;
}

/* Bouton médiathèque */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Input groups */
.input-group {
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* Responsive design pour les images de sliders */
@media (max-width: 768px) {
    .slider-preview-img {
        max-width: 150px;
        max-height: 100px;
    }
}

/* ============================================
   STYLES POUR LES GALERIES D'IMAGES
   ============================================ */

/* Galeries d'images créées par l'éditeur */
.image-gallery {
    margin: 2rem 0;
}

.image-gallery figure {
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery figure:hover {
    transform: translateY(-5px);
}

.image-gallery .figure-img {
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-gallery .figure-img:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.image-gallery .figure-caption {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: 0 !important;
}

/* Modal de création de galerie */
#galleryPreview {
    border-style: dashed !important;
    border-color: var(--border-color) !important;
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

#galleryPreview .card {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

#galleryPreview .card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: scale(1.02);
}

/* Gestion des z-index pour les modals */
/* Modal de galerie d'images - doit être interactive */
.modal[id*="imageGalleryModal"] {
    z-index: 1050 !important;
}

.modal[id*="imageGalleryModal"] .modal-dialog {
    z-index: 1051 !important;
}

.modal[id*="imageGalleryModal"] .modal-content {
    z-index: 1052 !important;
    position: relative;
}

/* Médiathèque doit être au-dessus de la galerie quand elle s'ouvre */
#mediaSelectorModal {
    z-index: 1060 !important;
}

#mediaSelectorModal .modal-dialog {
    z-index: 1061 !important;
}

/* Responsive pour les galeries */
@media (max-width: 768px) {
    .image-gallery .col-md-3,
    .image-gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .image-gallery .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .image-gallery figure {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .image-gallery [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   FIX POUR LES MODALES BOOTSTRAP
   ============================================ */
/* Fix complet pour les modales Bootstrap - Élimination des backdrops orphelins */
.modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Forcer la suppression de tout backdrop actif */
.modal-backdrop.show,
.modal-backdrop.fade,
.modal-backdrop.in {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}