/* Variables CSS pour un design moderne et cohérent */
:root {
    /* Palette de couleurs principale */
    color-scheme: light only;
    -webkit-color-scheme: light only;
    
    /* Palette de couleurs principale */
    --primary-color: #20c997;
    --primary-color: #20c997;
    --primary-color-rgb: 32, 201, 151;
    --primary-dark: #18a47c;
    --primary-dark-rgb: 24, 164, 124;
    --primary-light: #e3f8f3;
    --secondary-color: #6c757d;
    --secondary-color-rgb: 108, 117, 125;
    --info-color: #4A89DC;
    --info-color-rgb: 74, 137, 220;
    --warning-color: #ffbe0b;
    --warning-color-rgb: 255, 190, 11;
    --danger-color: #e74c3c;
    --danger-color-rgb: 231, 76, 60;
    --success-color: #2ecc71;
    --success-color-rgb: 46, 204, 113;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    
    /* Variables pour le menu mobile */
    --mobile-menu-bg: rgba(26, 188, 156, 0.95);
    --mobile-menu-hover: rgba(22, 160, 133, 0.95);
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-inset: inset 0 1px 2px rgba(0,0,0,0.05);
    
    /* Transitions et animations */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Bordures */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 18px;
    --border-radius-xl: 30px;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* =================================== */
/* ZOOM AUTOMATIQUE 70% */
/* =================================== */

/* Zoom automatique sur le body pour simuler un zoom navigateur de 70% */
body {
    zoom: 0.7;
    /* Alternative moderne pour les navigateurs qui supportent scale */
    transform: scale(0.7);
    transform-origin: 0 0;
    width: 142.857%; /* 100 / 0.7 = 142.857% */
    height: 142.857%;
        color-scheme: light only !important;
    -webkit-color-scheme: light only !important;
    
    background-color: #f5f7fa;
    color: var(--dark-color);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    /* NOUVELLES LIGNES */
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

/* CORRECTION Z-INDEX - Modal Navigation au-dessus de TOUT */
#navigationModal {
    z-index: 100000 !important;
}

#navigationModal .modal-backdrop {
    z-index: 99999 !important;
}

.modal-backdrop.show {
    z-index: 99999 !important;
}
/* Overlays plein écran – fond clair obligatoire */
.fullscreen-overlay {
    background-color: rgba(245, 247, 250, 0.98) !important;
    color: #212529 !important;
}

#mapFullscreenOverlay .fullscreen-content,
#listFullscreenOverlay .fullscreen-content {
    background-color: #f5f7fa !important;
    color: #212529 !important;
}

/* Header des overlays : même style que le header / hero */
#mapFullscreenOverlay .fullscreen-header,
#listFullscreenOverlay .fullscreen-header {
    background: linear-gradient(135deg, #20c997 0%, #18a47c 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Conteneurs de contenu */
#fullscreenMapContainer,
#fullscreenListContainer {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Cartes de pharmacie en plein écran */
.fullscreen-pharmacy-item {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

/* Boutons d'action dans le full screen list */
.fullscreen-pharmacy-item .pharmacy-actions .action-btn {
    background-color: #20c997 !important;
    border: 1px solid #20c997 !important;
    color: #ffffff !important;
}

.fullscreen-pharmacy-item .pharmacy-actions .action-btn.info {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.fullscreen-pharmacy-item .pharmacy-actions .action-btn.success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Zone de recherche + radius dans la carte plein écran */
.fullscreen-search-controls {
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6 !important;
}

.fullscreen-search-controls .search-input,
.fullscreen-search-controls .radius-display {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Bouton "My position" */
.my-position-btn {
    background-color: #20c997 !important;
    color: #ffffff !important;
    border-color: #20c997 !important;
}
.my-position-btn:hover {
    background-color: #18a47c !important;
    border-color: #18a47c !important;
}

.force-light-mode {
    color-scheme: light only !important;
    -webkit-color-scheme: light only !important;
    background-color: #ffffff !important;
    color: #212529 !important;
}


/* Petits chips / filtres éventuels en mode clair */
#listFullscreenOverlay .filter-chip {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}
#listFullscreenOverlay .filter-chip.active {
    background-color: #20c997 !important;
    color: #ffffff !important;
    border-color: #20c997 !important;
}


/* S'assurer que les overlays plein écran restent en dessous */
.fullscreen-overlay {
    z-index: 9999 !important;
}

.fullscreen-overlay.active {
    z-index: 9999 !important;
}

/* Carte et liste plein écran */
#mapFullscreenOverlay,
#listFullscreenOverlay {
    z-index: 9999 !important;
}

/* Les modals Bootstrap doivent toujours être au-dessus */
.modal.show {
    z-index: 100000 !important;
}

/* Backdrop des modals */
.modal-backdrop {
    z-index: 99999 !important;
}

html, body {
    color-scheme: light only !important;
    -webkit-color-scheme: light only !important;
}

*, *::before, *::after {
    color-scheme: inherit !important;
    -webkit-color-scheme: inherit !important;
}


/* Correction pour les navigateurs modernes qui supportent mieux scale */
@supports (zoom: 0.7) {
    body {
        zoom: 0.7;
        transform: none;
        width: 100%;
        height: 100%;
    }
}

/* Alternative pour les navigateurs qui ne supportent pas zoom */
@supports not (zoom: 0.7) {
    html {
        font-size: 11.2px; /* 16px * 0.7 = 11.2px */
    }
    
    body {
        zoom: initial;
        transform: scale(0.7);
        transform-origin: 0 0;
        width: 142.857%;
        height: 142.857%;
    }
}

/* Ajustements spécifiques pour les éléments qui pourraient poser problème */
.map-container,
#map {
    /* S'assurer que la carte garde ses proportions */
    box-sizing: border-box;
}

/* Correction pour les modales et éléments en position fixe */

.modal-backdrop {
    width:100% !important;
    height:100% !important;
}

/* =================================== */
/* STYLES ORIGINAUX (inchangés) */
/* =================================== */

/* Styles pour les liens téléphone */
.phone-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.phone-link:hover {
    color: #198754 !important;
    text-decoration: underline !important;
}

/* Styles pour les informations de garde */
.guard-info {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-size: 0.9em;
}

.guard-info strong {
    color: #495057;
}

/* Styles pour les périodes de garde */
.guard-period {
    margin-bottom: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #856404;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.filter-btn[data-filter="normal"] {
    background-color: #17a2b8; /* Couleur info/cyan */
    color: white;
}

.filter-btn[data-filter="normal"]:hover {
    background-color: #138496; /* Version plus foncée au survol */
    color: white;
}

/* Style pour les cartes de pharmacies normales */
.pharmacy-card.normal-card {
    border-left-color: #17a2b8;
}

.pharmacy-card.normal-card:hover {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

/* Amélioration des cartes de pharmacie */
.pharmacy-card {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.pharmacy-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.pharmacy-card.current-card {
    border-left-color: #28a745;
}

.pharmacy-card.closed-card {
    border-left-color: #dc3545;
}

.pharmacy-card.upcoming-card {
    border-left-color: #ffc107;
}

.pharmacy-card.past-card {
    border-left-color: #6c757d;
}

.pharmacy-card.none-card {
    border-left-color: #17a2b8;
}

/* Styles pour l'info-window */
.info-window {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.info-window .guard-info {
    margin-top: 4px;
    font-size: 0.85em;
}

/* Animation pour les boutons */
.btn-sm {
    transition: all 0.2s ease;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Reset & Base */
body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* =================================== */
/* NOUVEAU HEADER MODERNE */
/* =================================== */

/* Header principal */
header.bg-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-md);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* NOUVELLE LIGNE - Réduire le padding vertical */
    padding: 0.25rem 0 !important;
}

header.scrolled {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.95) 0%, rgba(var(--primary-dark-rgb), 0.95) 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Navbar brand */
.navbar {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    min-height: auto !important;
}

/* 3. Réduire la taille du logo/brand */
.navbar-brand {
    font-size: 1.1rem !important; /* Réduit de 1.5rem à 1.1rem */
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
    padding: 0.25rem 0 !important;
    margin-right: 1rem !important;
}

.navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
}

.navbar-brand i {
    color: rgba(255,255,255,0.9);
    margin-right: 0.5rem;
}

/* Navigation links */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.4rem 0.75rem !important; /* Réduit de 0.7rem 1rem */
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    margin: 0 0.1rem;
    position: relative;
    font-size: 0.85rem !important; /* Réduit la taille du texte */
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    color: var(--dark-color);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0,0,0,0.1);
}

/* Section recherche */
section.bg-light {
    background-color: rgba(248,249,250,0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    display: block !important;
    padding: 0.5rem 0 !important; /* Réduit de py-3 à 0.5rem */
}

/* Formulaire de recherche */
.search-form .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 600px;
     height: 32px !important; /* Hauteur fixe réduite */
}
 
.search-form {
    gap: 0; /* Supprime l'espace par défaut entre les éléments flex */
}

.search-form .input-group:focus-within {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Séparateur vertical */
.vr {
    background-color: rgba(0,0,0,0.1);
    opacity: 0.5;
}

.search-form .btn-outline-primary {
    height: 45px; /* Même hauteur que l'input-group */
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-radius: var(--border-radius-md);
}

.search-form .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.search-form .input-group-text {
    border: none;
    background-color: var(--white);
    padding: 0.75rem 1rem;
}

.search-form .form-control {
    border: none;
    padding: 0.4rem 0.75rem !important; /* Réduit de 0.75rem 1rem */
    font-size: 0.8rem !important; /* Réduit de 1rem */
    height: 32px !important;
}

.search-form .input-group-text {
    border: none;
    background-color: var(--white);
    padding: 0.4rem 0.75rem !important; /* Réduit */
    height: 32px !important;
}

.search-form .btn-outline-primary {
    height: 32px !important; /* Même hauteur que l'input-group */
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem !important;
    padding: 0.4rem 0.75rem !important;
}

.search-form .btn {
    border: none;
    padding: 0.4rem 1rem !important; /* Réduit de 0.75rem 1.5rem */
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    transition: all var(--transition-fast);
    font-size: 0.8rem !important;
    height: 32px !important;
}

/* 8. Réduire les contrôles de rayon */
.search-form .d-flex.align-items-center label {
    font-size: 0.8rem !important;
    margin-bottom: 0;
    font-weight: 600;
    margin-right: 0.5rem !important; /* Réduit */
}

.search-form input[type="number"] {
    width: 60px !important; /* Réduit de 80px */
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Actions rapides */
.btn-group .btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    border-color: rgba(0,0,0,0.1);
}

.btn-group .btn:hover {
    box-shadow: var(--shadow-sm);
}

.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;
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Badges d'information */
.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background-color: rgba(255,255,255,0.7);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: rgba(108,117,125,0.8);
    transition: all var(--transition-fast);
}

.info-badge:hover {
    background-color: rgba(255,255,255,0.9);
}

.info-badge i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.info-badge.search-result {
    background-color: rgba(32, 201, 151, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(32, 201, 151, 0.2);
}

.info-badge.search-result a {
    color: var(--danger-color);
    text-decoration: none;
}

.info-badge.search-result a:hover {
    color: var(--danger-color);
    opacity: 0.7;
}

/* Breadcrumb */
section.bg-light.py-2 {
    padding: 0.25rem 0 !important; /* Réduit de py-2 */
}

.breadcrumb {
    background-color: transparent;
    padding: 0.25rem 0 !important; /* Réduit de 0.5rem 0 */
    margin-bottom: 0;
    font-size: 0.8rem !important; /* Réduit la taille */
}

.breadcrumb-item {
    font-weight: 500;
    font-size: 0.8rem !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: 600;
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 600;
}

/* Style pour les liens de déconnexion */
.dropdown-item.text-danger {
    color: var(--danger-color) !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color) !important;
}

/* =================================== */
/* MAP CONTAINER */
/* =================================== */

.map-container {
    height: 700px;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* =================================== */
/* PHARMACY CARDS */
/* =================================== */

.pharmacy-card {
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal) cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.pharmacy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pharmacy-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pharmacy-card .card-body {
    padding: var(--spacing-lg);
}

.pharmacy-card .card-title {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.pharmacy-card small {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.pharmacy-card small i {
    margin-right: 0.5rem;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

/* =================================== */
/* STATUS COLORS */
/* =================================== */

.badge.current,
.bg-success,
.current {
    background-color: var(--success-color) !important;
}

.badge.upcoming,
.bg-warning,
.upcoming {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.badge.past,
.bg-secondary,
.past {
    background-color: var(--secondary-color) !important;
}

.badge.closed,
.bg-danger,
.closed {
    background-color: var(--danger-color) !important;
}

.badge.none,
.bg-info,
.none {
    background-color: var(--info-color) !important;
}

/* =================================== */
/* FILTRES */
/* =================================== */

.filters-container {
    margin-bottom: var(--spacing-lg);
}

.filter-card {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    overflow: hidden;
}

.filter-header {
    background-color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    color: white;
}

.filter-header h5 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.filter-body {
    padding: var(--spacing-sm);
}

.filter-btn {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: 0.2rem;
    border-radius: var(--border-radius-sm);
    border: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.filter-btn i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    filter: brightness(1.1);
    color: white;
    text-decoration: none;
}

.filter-btn.active {
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
    transform: translateY(-1px);
    position: relative;
    overflow: hidden;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    bottom: 0;
    left: 0;
    border-radius: var(--border-radius-sm);
}

/* Couleurs spécifiques pour chaque filtre */
.filter-btn[data-filter="all"] {
    background-color: var(--primary-color);
}

.filter-btn[data-filter="current"] {
    background-color: var(--success-color);
}

.filter-btn[data-filter="closed"] {
    background-color: var(--danger-color);
}

.filter-btn[data-filter="upcoming"] {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.filter-btn[data-filter="past"] {
    background-color: var(--secondary-color);
}

.filter-btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* =================================== */
/* CONTRÔLE DU RAYON */
/* =================================== */

.radius-control-card {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
    background-color: var(--white);
    border: none;
}

.radius-control-card .card-body {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    background-color: var(--light-color);
}

.radius-control-card label {
    font-weight: 600;
    margin-bottom: 0;
    margin-right: var(--spacing-md);
    color: var(--dark-color);
}

.radius-control-card input {
    width: 80px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e0e5eb;
    margin-right: var(--spacing-md);
    text-align: center;
    padding: 0.375rem 0.5rem;
}

.radius-control-card button {
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.radius-control-card button:hover {
    background-color: var(--primary-dark);
}

/* Ancien style radius-control pour compatibilité */
.radius-control {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.radius-control label {
    margin-right: var(--spacing-md);
    font-weight: 600;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.radius-control input {
    width: 70px;
    height: 35px;
    margin-right: var(--spacing-md);
    border: 1px solid #e0e5eb;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: var(--shadow-inset);
}

.radius-control button {
    height: 35px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    border: none;
    color: white;
}

.radius-control button:hover {
    background-color: var(--primary-dark);
}

/* =================================== */
/* LISTE DES PHARMACIES */
/* =================================== */

.pharmacy-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 117, 125, 0.3) rgba(241, 241, 241, 0.5);
}

.pharmacy-list::-webkit-scrollbar {
    width: 6px;
}

.pharmacy-list::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 10px;
}

.pharmacy-list::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.3);
    border-radius: 10px;
}

.pharmacy-list::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 117, 125, 0.5);
}

/* =================================== */
/* BOUTONS DE ROUTE */
/* =================================== */

.route-btn {
    cursor: pointer;
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-md);
    font-weight: 600;
    padding: 0.7rem 1rem;
    transition: all var(--transition-fast);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.route-btn i {
    margin-right: 0.5rem;
}

.route-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* =================================== */
/* INFO WINDOW */
/* =================================== */

.info-window {
    padding: var(--spacing-md);
    max-width: 300px;
    border-radius: var(--border-radius-sm);
}

.info-window h5 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 700;
}

.info-window p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.info-window p i {
    margin-right: 0.5rem;
    opacity: 0.7;
    width: 18px;
}

.info-window button {
    width: 100%;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0.6rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.info-window button:hover {
    background-color: var(--primary-dark);
}

/* =================================== */
/* CARTES ET COMPOSANTS */
/* =================================== */

.card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* =================================== */
/* STATISTIQUES */
/* =================================== */

.stats-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stats-item {
    text-align: center;
    background: var(--primary-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-fast);
}

.stats-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stats-item .number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

.stats-item .label {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =================================== */
/* MESSAGES ET ALERTES */
/* =================================== */

.no-results-message {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    background-color: rgba(var(--info-color-rgb), 0.1);
    border-left: 4px solid var(--info-color);
    color: var(--dark-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-in-out;
}

.no-results-message i {
    color: var(--info-color);
    font-size: 1.5rem;
}

.no-results-message .small {
    color: var(--secondary-color);
}

.no-results-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.no-results-message a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert-search {
    background-color: rgba(74, 137, 220, 0.1);
    border: 1px solid rgba(74, 137, 220, 0.2);
    color: var(--info-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* =================================== */
/* UTILITAIRES */
/* =================================== */

.pharmacy-status {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    position: relative;
}

.pharmacy-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-open::before {
    background-color: var(--success-color);
}

.status-closed::before {
    background-color: var(--danger-color);
}

.status-upcoming::before {
    background-color: var(--warning-color);
}

.badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.result-counter {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--light-color);
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
}

.result-counter i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

/* =================================== */
/* FOOTER */
/* =================================== */

footer {
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    background-color: white;
}

/* =================================== */
/* ANIMATIONS */
/* =================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pharmacy-card {
    animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--animation-order) * 0.05s);
}

/* =================================== */
/* RESPONSIVE DESIGN */
/* =================================== */

/* Tablettes et écrans moyens */
@media (max-width: 991.98px) {
    .map-container {
        height: 690px;
    }
    
    .pharmacy-list {
        max-height: 500px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.1rem 0;
        border-radius: var(--border-radius-sm);
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
    }
    
    .dropdown-item {
        color: rgba(255,255,255,0.9);
        padding: 0.5rem 1.5rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.2);
        color: white;
    }
}

/* Mobiles et petits écrans */
@media (max-width: 767.98px) {
    .map-container {
        height: 500px;
        margin-bottom: var(--spacing-lg);
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* CORRECTIONS POUR LA BARRE DE RECHERCHE */
      .navbar-nav .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    section.bg-light {
        padding: 0.4rem 0 !important;
    }
    
    .search-form .input-group,
    .search-form .form-control,
    .search-form .btn,
    .search-form input[type="number"] {
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .search-form .form-control,
    .search-form .input-group-text {
        padding: 0.3rem 0.5rem !important;
    }
    
    .search-form .btn {
        padding: 0.3rem 0.75rem !important;
    }
    
    .breadcrumb {
        font-size: 0.75rem !important;
        padding: 0.2rem 0 !important;
    }
    
    .btn-group .btn span {
        display: none !important;
    }
    
    .info-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.3rem;
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-xs);
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        margin-right: 0.3rem;
    }
    
    .radius-control {
        top: auto;
        bottom: 15px;
        width: calc(100% - 30px);
        left: 15px;
        justify-content: space-between;
    }
    
    .radius-control label {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    
    header form {
        height: 42px;
    }
    
    header input {
        height: 42px;
        padding: 0.5rem 1rem;
    }
    
    header button, header #locationBtn {
        height: 42px;
        width: 42px;
    }
    
    .pharmacy-list {
        max-height: 450px;
    }
    
    .stats-item .number {
        font-size: 1.4rem;
    }
    
    /* AMÉLIORATIONS POUR LES CARTES DE PHARMACIE SUR MOBILE */
    .pharmacy-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .pharmacy-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .pharmacy-card .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .pharmacy-card small {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    /* Améliorer l'affichage des informations de garde dans les cartes */
    .pharmacy-card .guard-period {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .radius-control-card .card-body {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .radius-control-card label {
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }
    
    .filter-btn-container {
        justify-content: space-between;
    }
    
    .filter-btn {
        flex: 0 0 48%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
    
    /* CORRECTIONS POUR GUARD-PERIOD SUR MOBILE */
    .guard-period {
        padding: 6px 8px;
        font-size: 0.8rem;
        line-height: 1.3;
        border-left-width: 2px;
    }
    
    .guard-period small {
        font-size: 0.75rem;
    }
    
    /* Réduire les marges dans les petits écrans */
    .guard-period .ms-3 {
        margin-left: 0.75rem !important;
    }
    
    /* Permettre le retour à la ligne pour les dates longues */
    .guard-period span {
        display: block;
        margin-bottom: 2px;
    }
    
    .guard-period span:last-child {
        margin-bottom: 0;
    }
    
    /* InfoWindow plus compacte sur mobile */
    .info-window {
        min-width: 280px !important;
        max-width: 300px !important;
        padding: 12px !important;
    }
    
    .info-window h5 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .info-window div[style*="font-size: 13px"] {
        font-size: 11px !important;
    }
    
    .info-window div[style*="font-size: 12px"] {
        font-size: 10px !important;
    }
    
    /* Boutons plus compacts */
    .info-window button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* Améliorer l'affichage des horaires normaux */
    .working-hours {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Réduire la taille des emojis dans les informations de garde */
    .guard-period span {
        word-break: break-word;
    }
    
    /* Section recherche corrections */
    section.bg-light .container {
        padding: 0.75rem 1rem;
    }
}

/* Très petits écrans */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.4rem !important;
    }
    
    .search-form .input-group,
    .search-form .form-control,
    .search-form .btn {
        height: 26px !important;
        font-size: 0.7rem !important;
    }
    
    .breadcrumb {
        font-size: 0.7rem !important;
    }
    .map-container {
        height: 350px;
    }
    
    .search-form .btn span {
        display: inline !important; /* Affiche le texte même sur très petits écrans */
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .stats-item {
        margin-bottom: var(--spacing-sm);
    }
    
    .filters {
        padding: var(--spacing-xs);
    }
    
    .btn-group {
        width: 100%;
        justify-content: center;
    }
    
    .info-badge {
        font-size: 0.75rem;
        margin: 0.1rem;
        text-align: center;
    }
    
    .d-flex.flex-wrap {
        justify-content: center;
    }
    
    .filter-btn-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .filter-btn {
        margin: 0 !important;
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        text-align: center;
        justify-content: center;
    }
    
    .filter-btn i {
        margin-right: 0.25rem;
        font-size: 0.7rem;
    }
    
    .radius-control-card .card-body {
        text-align: center;
    }
    
    .filters-container {
        margin-bottom: 1rem;
    }
    
    /* CORRECTIONS POUR GUARD-PERIOD SUR TRÈS PETITS ÉCRANS */
    .guard-period {
        padding: 4px 6px;
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .guard-period .ms-3 {
        margin-left: 0.5rem !important;
    }
    
    /* Emojis plus petits pour très petits écrans */
    .guard-period span::before {
        font-size: 0.8em;
    }
    
    /* InfoWindow encore plus compacte */
    .info-window {
        min-width: 260px !important;
        max-width: 280px !important;
        padding: 10px !important;
    }
    
    /* Cartes de pharmacie très compactes */
    .pharmacy-card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .pharmacy-card .card-title {
        font-size: 0.9rem;
    }
    
    .pharmacy-card .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .pharmacy-card small {
        font-size: 0.75rem;
    }
    
    /* Boutons d'action en colonne */
    .pharmacy-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .pharmacy-card .btn-sm {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    /* Statistiques en 2 colonnes */
    .card-body .row.text-center .col-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .card-body .row.text-center .col-4:nth-child(odd):last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    /* Section recherche */
    section.bg-light {
        padding: 0.5rem 0;
    }
    
    section.bg-light .container {
        padding: 0.5rem 0.75rem;
    }
    
    .search-form .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    .search-form .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-form .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Amélioration de la lisibilité des textes */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Espacer un peu plus les éléments sur très petits écrans */
    .mb-2 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Réduire l'espacement des cartes pour optimiser l'espace */
    .pharmacy-card {
        margin-bottom: 0.75rem;
    }
    
    .working-hours {
        font-size: 0.75rem;
    }
    
    /* Permettre le retour à la ligne pour les textes longs */
    .pharmacy-card small {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* =================================== */
/* AMÉLIORATIONS MOBILES SPÉCIFIQUES */
/* =================================== */

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        animation: slideDown 0.3s ease-out;
        margin-left: 1rem;
        border-left: 3px solid var(--primary-color);
    }
    
    .navbar-nav .dropdown-item {
        position: relative;
        overflow: hidden;
    }
    
    .navbar-nav .dropdown-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .navbar-nav .dropdown-item:hover::before {
        left: 100%;
    }
}

/* =================================== */
/* ÉTATS ET INTERACTIONS */
/* =================================== */

/* États focus améliorés pour l'accessibilité */
.navbar-nav .nav-link:focus,
.dropdown-item:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* Style pour les boutons désactivés */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Animation simple pour les transitions */
.navbar-nav .nav-link,
.dropdown-item,
.btn,
.search-form .form-control,
.info-badge,
.filter-btn,
.pharmacy-card {
    transition: all 0.2s ease;
}

/* Amélioration du contraste pour l'accessibilité */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255,255,255,1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: rgba(255,255,255,1);
}

/* =================================== */
/* COULEURS SPÉCIFIQUES POUR LES DIFFÉRENTS TYPES DE LIENS */
/* =================================== */

.nav-link[href*="login"] i {
    color: #4CAF50;
}

.nav-link[href*="registration"] i {
    color: #2196F3;
}

.nav-link[href*="help"] i {
    color: #FF9800;
}

.nav-link[href*="dashboard"] i {
    color: #9C27B0;
}

/* =================================== */
/* STYLES D'IMPRESSION */
/* =================================== */

@media print {
    header, .search-form, .filter-card, .btn {
        display: none !important;
    }
    
    /* Annuler le zoom pour l'impression */
    body {
        zoom: 1 !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
    
    html {
        font-size: 16px !important;
    }
    
    .map-container {
        height: 300px;
        border: 2px solid #000;
    }
    
    .pharmacy-card {
        border: 1px solid #000;
        margin-bottom: 0.5rem;
        break-inside: avoid;
    }
}

/* =================================== */
/* AMÉLIORATIONS D'ACCESSIBILITÉ */
/* =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Annuler les transformations si l'utilisateur préfère moins de mouvement */
    body {
        transform: none;
        zoom: 0.7;
    }
}



/* =================================== */
/* STYLES POUR LES PAGES D'AIDE */
/* =================================== */

.accordion-button {
    background-color: var(--light-color);
    border: none;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 0.5rem;
}

.accordion-body {
    padding: 1.5rem;
    background-color: rgba(var(--primary-color-rgb), 0.02);
}

.contact-info {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.contact-info:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.contact-info i {
    color: var(--primary-color);
}

/* =================================== */
/* STYLES POUR LES FORMULAIRES */
/* =================================== */

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* =================================== */
/* OPTIMISATIONS DE PERFORMANCE */
/* =================================== */

.navbar-nav .nav-link,
.dropdown-item,
.btn,
.filter-btn {
    will-change: transform;
}

/* Préchargement des images */
.navbar-brand::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>');
}

/* =================================== */
/* STYLES POUR LES TOOLTIPS PERSONNALISÉS */
/* =================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

/* =================================== */
/* CORRECTIONS SPÉCIFIQUES AU ZOOM */
/* =================================== */

/* Assurer que les éléments en position fixe fonctionnent correctement */
.sticky-top,
.fixed-top {
    position: sticky !important;
}

/* Corriger les problèmes d'arrondi avec le zoom */
* {
    box-sizing: border-box;
}

/* Améliorer la netteté du texte avec le zoom */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Corriger les problèmes de viewport avec le zoom */
@viewport {
    zoom: 0.7;
}

/* Meta viewport correction pour mobile avec zoom */
@media (max-width: 768px) {
    body {
        zoom: 0.5; /* Zoom plus agressif sur mobile pour compenser */
        width: 200%;
        height: 200%;
    }
    
    @supports (zoom: 0.5) {
        body {
            zoom: 0.5;
            transform: none;
            width: 100%;
            height: 100%;
        }
    }
}

/* =================================== */
/* NOUVEAUX STYLES RESPONSIVE POUR FILTRES ET LAYOUT */
/* =================================== */

/* Section filtres cliquable */
.filter-section .card-header {
    transition: all 0.3s ease;
}

.filter-section .card-header:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.filter-section .transition-all {
    transition: transform 0.3s ease;
}

/* Grille de boutons filtres responsive */
.filter-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.filter-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.filter-btn span {
    font-weight: 600;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.filter-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px 8px 0 0;
}

/* Couleurs des filtres */
.filter-btn[data-filter="all"] {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
}

.filter-btn[data-filter="current"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.filter-btn[data-filter="closed"] {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.filter-btn[data-filter="upcoming"] {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000 !important;
}

.filter-btn[data-filter="past"] {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.filter-btn[data-filter="normal"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Section statistiques cliquable */
/* Cacher complètement les sections de statistiques, mais garder le HTML pour le JS */
.stats-section,
.api-stats-section {
    display: none !important;
}

.stats-section .card-header {
    transition: all 0.3s ease;
}

.stats-section .card-header:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Container responsive */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Layout adaptatif pour la carte */
.map-container {
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Styles pour les listes de pharmacies */
.pharmacy-list {
    max-height: 700px;
    overflow-y: auto;
    padding: 0.5rem;
}

.pharmacy-list.mobile-list {
    max-height: 500px;
}

.pharmacy-list.desktop-list {
    max-height: 700px;
}

/* Améliorer le scrollbar */
.pharmacy-list::-webkit-scrollbar {
    width: 6px;
}

.pharmacy-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pharmacy-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.pharmacy-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Cards de pharmacies améliorées */
.pharmacy-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pharmacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.pharmacy-card.current-card::before {
    background: linear-gradient(to bottom, #28a745, #20c997);
}

.pharmacy-card.closed-card::before {
    background: linear-gradient(to bottom, #dc3545, #e74c3c);
}

.pharmacy-card.upcoming-card::before {
    background: linear-gradient(to bottom, #ffc107, #ffb300);
}

.pharmacy-card.past-card::before {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
}

.pharmacy-card.normal-card::before {
    background: linear-gradient(to bottom, #17a2b8, #20c997);
}

.pharmacy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pharmacy-card .card-body {
    padding: 1.25rem;
}

.pharmacy-card .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Boutons d'action améliorés */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .map-container {
        height: 690px;
    }
    
    .filter-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .map-container {
        height: 690px;
        margin-bottom: 1rem;
    }
    
    .filter-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .filter-btn i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Cartes de pharmacies plus compactes sur tablette */
    .pharmacy-card .card-body {
        padding: 1rem;
    }
    
    .pharmacy-card .card-title {
        font-size: 1rem;
    }
    
    .pharmacy-card small {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding: 0 0.75rem;
    }
    
    .map-container {
        height: 450px;
        border-radius: 8px;
    }
    
    /* Grille 2x3 pour les filtres sur mobile */
    .filter-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        min-height: 60px;
    }
    
    .filter-btn i {
        margin-right: 0;
        margin-bottom: 0.2rem;
        font-size: 1.1rem;
    }
    
    .filter-btn span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Headers de sections plus compacts */
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .card-body {
        padding: 0.75rem 1rem;
    }
    
    /* Pharmacies list mobile */
    .pharmacy-list.mobile-list {
        max-height: 450px;
        padding: 0.25rem;
    }
    
    .pharmacy-card .card-body {
        padding: 0.75rem;
    }
    
    .pharmacy-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .pharmacy-card .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .pharmacy-card small {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .pharmacy-card .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    /* Guard info plus compact sur mobile */
    .guard-period {
        padding: 6px 8px;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .guard-period .ms-3 {
        margin-left: 0.75rem !important;
    }
    
    /* Contrôle du rayon responsive */
    .card.shadow-sm.mb-3 .card-body {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card.shadow-sm.mb-3 input {
        min-width: 70px;
        width: 80px;
    }
    
    .card.shadow-sm.mb-3 .btn {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding: 0 0.5rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    /* Filtres en grille 2x3 très compacte */
    .filter-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
        min-height: 55px;
    }
    
    .filter-btn i {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .filter-btn span {
        font-size: 0.7rem;
    }
    
    /* Liste de pharmacies très compacte */
    .pharmacy-list.mobile-list {
        max-height: 400px;
        padding: 0.25rem;
    }
    
    .pharmacy-card {
        margin-bottom: 0.5rem;
    }
    
    .pharmacy-card .card-body {
        padding: 0.5rem;
    }
    
    .pharmacy-card .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .pharmacy-card .badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .pharmacy-card small {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    /* Actions en colonne sur très petits écrans */
    .pharmacy-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.4rem !important;
    }
    
    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Headers encore plus compacts */
    .card-header {
        padding: 0.6rem 0.8rem !important;
    }
    
    .card-header h5 {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 0.6rem 0.8rem;
    }
    
    /* Guard info très compact */
    .guard-period {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .guard-period .ms-3 {
        margin-left: 0.5rem !important;
    }
    
    /* Contrôle rayon en colonne */
    .card.shadow-sm.mb-3 .card-body {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }
    
    .card.shadow-sm.mb-3 label {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .card.shadow-sm.mb-3 input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .card.shadow-sm.mb-3 .btn {
        width: 100%;
    }
    
    /* Statistiques en 2 colonnes */
    .stats-section .row .col-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 0.75rem;
    }
    
    .stats-section .row .col-4:nth-child(odd):last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .display-6 {
        font-size: 1.25rem !important;
    }
    
    .stats-section small {
        font-size: 0.7rem;
    }
}

/* =================================== */
/* ANIMATIONS ET TRANSITIONS */
/* =================================== */

/* Animation d'apparition des cartes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pharmacy-card {
    animation: slideInUp 0.3s ease-out;
}

/* Animation de l'ouverture des sections */
.collapse {
    transition: all 0.3s ease;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Amélioration des focus pour l'accessibilité */
.filter-btn:focus,
.btn:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}



/* Performance optimizations */
.pharmacy-card,
.filter-btn,
.btn {
    will-change: transform;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Amélioration du contraste */
.text-muted {
    color: #6c757d !important;
}

.small, small {
    font-size: 0.875em;
    line-height: 1.4;
}

/* Optimisation pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .pharmacy-card {
        border: 0.5px solid rgba(0,0,0,0.1);
    }
    
    .filter-btn {
        border: 0.5px solid rgba(255,255,255,0.2);
    }
}

/* Print styles */
@media print {
    .filter-section,
    .btn,
    .card-header {
        display: none !important;
    }
    
    .pharmacy-card {
        break-inside: avoid;
        margin-bottom: 0.5rem;
    }
    
    .map-container {
        height: 300px;
        border: 1px solid #000;
    }
}

/* =================================== */
/* FIN DU FICHIER CSS */
/* =================================== */
/* =================================== */
/* STYLES ADDITIONNELS POUR L'ADMIN */
/* =================================== */

/* Section filtres cliquables */
.filter-section .card-header {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.filter-section .card-header:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #148a6b 100%) !important;
    transform: translateY(-1px);
}

.filter-section .transition-all {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-section .card-header[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Filtres badges actifs */
.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

/* Amélioration des formulaires de filtres */
.filter-section .form-select,
.filter-section .form-control {
    border: 1px solid #e0e5eb;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.filter-section .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Boutons de filtres */
.filter-section .btn {
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.filter-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

.filter-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #148a6b 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-section .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-section .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* =================================== */
/* STATISTIQUES DE TRAFIC */
/* =================================== */

/* Cartes de statistiques améliorées */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card.bg-primary::before,
.card.bg-success::before,
.card.bg-warning::before,
.card.bg-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Contenu des cartes de stats */
.card .card-body h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.card .card-body p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.card .card-body small {
    opacity: 0.8;
    font-weight: 500;
}

.card .card-body .fa-2x {
    opacity: 0.6;
}

/* Boutons de période pour le trafic */
.btn-group .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-group .btn-outline-primary:hover,
.btn-group .btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* =================================== */
/* TABLEAUX AMÉLIORÉS */
/* =================================== */

/* Headers de tableaux */
.table thead th {
    background-color: var(--dark-color) !important;
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Lignes de tableaux */
.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.05);
}

/* Badges dans les tableaux */
.table .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Groupes de boutons dans les tableaux */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    margin-right: 2px;
    transition: all var(--transition-fast);
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Lignes marquées */
.table-warning {
    background-color: rgba(var(--warning-color-rgb), 0.1) !important;
}

/* =================================== */
/* ONGLETS D'ADMINISTRATION */
/* =================================== */

/* Navigation par onglets */
.nav-tabs {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Contenu des onglets */
.tab-content {
    padding-top: 1.5rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

/* =================================== */
/* MODALES AMÉLIORÉES */
/* =================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 2rem 1.5rem;
}

/* Champs de formulaire dans les modales */
.modal .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal .form-control,
.modal .form-select {
    border: 1px solid #e0e5eb;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* Alertes dans les modales */
.modal .alert {
    border-radius: var(--border-radius-sm);
    border: none;
    margin-bottom: 1rem;
}

.modal .alert-info {
    background-color: rgba(var(--info-color-rgb), 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* =================================== */
/* GRAPHIQUES ET CHARTS */
/* =================================== */

.card canvas {
    max-height: 400px !important;
}

/* Conteneur de graphiques */
.chart-container {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.chart-container:hover {
    box-shadow: var(--shadow-md);
}

.chart-container h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* =================================== */
/* RESPONSIVE ADMIN */
/* =================================== */

@media (max-width: 991.98px) {
    /* Onglets responsive */
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Cartes de stats sur tablette */
    .card h3 {
        font-size: 1.5rem;
    }
    
    /* Tableaux sur tablette */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Filtres sur tablette */
    .filter-section .card-body {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    /* Navigation par onglets sur mobile */
    .nav-tabs {
        display: block;
    }
    
    .nav-tabs .nav-item {
        width: 100%;
        margin-bottom: 2px;
    }
    
    .nav-tabs .nav-link {
        border-radius: var(--border-radius-sm);
        margin-bottom: 2px;
        text-align: center;
    }
    
    /* Cartes de stats sur mobile */
    .card .card-body {
        padding: 1rem;
        text-align: center;
    }
    
    .card h3 {
        font-size: 1.25rem;
    }
    
    .card .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Filtres sur mobile */
    .filter-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .filter-section .col-md-3 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .filter-section .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-section .btn {
        width: 100%;
    }
    
    /* Tableaux sur mobile */
    .table {
        font-size: 0.8rem;
    }
    
    .table td, .table th {
        padding: 0.5rem 0.25rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
    
    /* Modales sur mobile */
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Graphiques sur mobile */
    .chart-container {
        padding: 1rem;
    }
    
    .chart-container canvas {
        max-height: 250px !important;
    }
}

@media (max-width: 575.98px) {
    /* Très petits écrans */
    .card h3 {
        font-size: 1rem;
    }
    
    .card .card-body {
        padding: 0.75rem;
    }
    
    .card .card-body p {
        font-size: 0.8rem;
    }
    
    .card .card-body small {
        font-size: 0.7rem;
    }
    
    /* Onglets très compacts */
    .nav-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Tableaux très compacts */
    .table {
        font-size: 0.7rem;
    }
    
    .table td, .table th {
        padding: 0.25rem;
    }
    
    /* Actions en colonne sur très petits écrans */
    .btn-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-group .btn {
        border-radius: var(--border-radius-sm) !important;
        margin-right: 0;
    }
    
    /* Badges plus petits */
    .badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    /* Graphiques très compacts */
    .chart-container canvas {
        max-height: 200px !important;
    }
}

/* =================================== */
/* ANIMATIONS ET TRANSITIONS */
/* =================================== */

/* Animation d'apparition pour les éléments */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Application des animations */
.card {
    animation: slideInUp 0.3s ease-out;
}

.table tbody tr {
    animation: fadeIn 0.2s ease-out;
}

.nav-tabs .nav-link {
    animation: slideInLeft 0.2s ease-out;
}

.filter-section {
    animation: slideInUp 0.4s ease-out;
}

/* Animation de rotation pour les icônes */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.fa-chevron-down.rotating {
    animation: rotate 0.3s ease-out forwards;
}

/* =================================== */
/* INDICATEURS DE PERFORMANCE */
/* =================================== */

/* Indicateurs de statut améliorés */
.status-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.status-indicator.status-active::before {
    background-color: var(--success-color);
}

.status-indicator.status-inactive::before {
    background-color: var(--secondary-color);
}

.status-indicator.status-suspended::before {
    background-color: var(--warning-color);
}

.status-indicator.status-error::before {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--success-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--success-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--success-color-rgb), 0);
    }
}
/* =================================== */ /* TOOLTIPS PERSONNALISÉS */ /* =================================== */ .custom-tooltip { position: relative; cursor: help; } .custom-tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.8); color: white; padding: 0.5rem 1rem; border-radius: var(--border-radius-sm); font-size: 0.8rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: all var(--transition-fast); z-index: 1000; } .custom-tooltip::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(100%); border: 5px solid transparent; border-top-color: rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: all var(--transition-fast); z-index: 1000; } .custom-tooltip:hover::after, .custom-tooltip:hover::before { opacity: 1; visibility: visible; }

/* =================================== */
/* LOADING ET ÉTATS */
/* =================================== */

/* Indicateur de chargement */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* État de chargement pour les boutons */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* États désactivés */
.btn:disabled,
.form-control:disabled,
.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =================================== */
/* AMÉLIORATION DES ALERTES */
/* =================================== */

.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background-color: rgba(var(--success-color-rgb), 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(var(--danger-color-rgb), 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(var(--warning-color-rgb), 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(var(--info-color-rgb), 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Animation pour les alertes */
.alert {
    animation: slideInUp 0.3s ease-out;
}

.alert.alert-dismissible .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    opacity: 0.7;
}

.alert.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* =================================== */
/* PAGINATION AMÉLIORÉE */
/* =================================== */

.pagination {
    margin-top: 1.5rem;
    justify-content: center;
}

.pagination .page-link {
    border: none;
    border-radius: var(--border-radius-sm);
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =================================== */
/* BREADCRUMBS AMÉLIORÉS */
/* =================================== */

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* =================================== */
/* PROGRESS BARS */
/* =================================== */

.progress {
    height: 8px;
    border-radius: var(--border-radius-xl);
    background-color: rgba(var(--secondary-color-rgb), 0.2);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-slow);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--success-color) 0%, #1e7e34 100%);
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, var(--warning-color) 0%, #e0a800 100%);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, var(--danger-color) 0%, #bd2130 100%);
}

/* =================================== */
/* DARK MODE SUPPORT */
/* =================================== */

@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .table {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .table tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .modal-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .form-control,
    .form-select {
        background-color: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #4a5568;
        border-color: var(--primary-color);
    }
}

/* =================================== */
/* PRINT STYLES */
/* =================================== */

@media print {
    .btn,
    .btn-group,
    .filter-section,
    .nav-tabs,
    .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 1rem;
        break-inside: avoid;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table thead th {
        background-color: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .table tbody td {
        border: 1px solid #000;
    }
    
    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background-color: transparent !important;
    }
}

/* =================================== */
/* ACCESSIBILITÉ */
/* =================================== */

/* Focus amélioré pour l'accessibilité */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Réduction des animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration du contraste pour la lisibilité */
.text-muted {
    color: #6c757d !important;
}

/* Taille minimum pour les éléments cliquables */
.btn,
.nav-link,
.page-link {
   
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =================================== */
/* UTILITAIRES SPÉCIAUX */
/* =================================== */

/* Classes d'espacement personnalisées */
.spacing-xs { margin: var(--spacing-xs); }
.spacing-sm { margin: var(--spacing-sm); }
.spacing-md { margin: var(--spacing-md); }
.spacing-lg { margin: var(--spacing-lg); }
.spacing-xl { margin: var(--spacing-xl); }

/* Classes de couleurs personnalisées */
.text-primary-custom { color: var(--primary-color) !important; }
.text-success-custom { color: var(--success-color) !important; }
.text-warning-custom { color: var(--warning-color) !important; }
.text-danger-custom { color: var(--danger-color) !important; }
.text-info-custom { color: var(--info-color) !important; }

/* Classes de fond personnalisées */
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Classes d'ombre */
.shadow-custom-sm { box-shadow: var(--shadow-sm); }
.shadow-custom-md { box-shadow: var(--shadow-md); }
.shadow-custom-lg { box-shadow: var(--shadow-lg); }

/* Classes de bordure personnalisées */
.border-radius-custom { border-radius: var(--border-radius-md); }
.border-primary-custom { border-color: var(--primary-color) !important; }


/*===================================*/
/*|||||||||||||||||||||||||||||||||||*/
/*===================================*/

/* Section hero-compact */
.hero-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem !important;
    padding: 1.5rem 0 !important;
}

.hero-compact h1 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-compact p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
    margin-bottom: 1rem;
}

.hero-compact .small {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-compact .small span {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.hero-compact .small i {
    margin-right: 0.4rem;
    opacity: 0.8;
}

.hero-compact .fa-hospital {
    opacity: 0.3 !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Animation d'apparition pour serviceInfo */
#serviceInfo {
    animation: fadeInSlide 0.4s ease-in-out;
}

@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        transform: translateY(-15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =================================== */
/* SECTION COMPREHENSIVE-INFO */
/* =================================== */

.comprehensive-info {
    background: transparent;         /* plus de fond gris */
    border-radius: 0;               /* plus de bord arrondi sur toute la section */
    margin: 0;                      /* colle au reste du site */
    padding: 2rem 0;                /* tu peux ajuster si tu veux plus ou moins d’espace en hauteur */
}


.comprehensive-info .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
}

.comprehensive-info .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.comprehensive-info .display-6 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.comprehensive-info .lead {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* =================================== */
/* ACCORDÉON FAQ AMÉLIORÉ */
/* =================================== */

.accordion-button {
    background: #f8f9fa !important;
    border: none !important;
    font-weight: 600;
    color: var(--dark-color) !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25) !important;
    border: none !important;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: var(--border-radius-md) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-body p {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.accordion-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.accordion-body .alert {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 0;
    margin-top: 1rem;
}

.accordion-body .alert-info {
    background-color: rgba(var(--info-color-rgb), 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.accordion-body .alert-success {
    background-color: rgba(var(--success-color-rgb), 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.accordion-body .alert-warning {
    background-color: rgba(var(--warning-color-rgb), 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.accordion-body .alert-danger {
    background-color: rgba(var(--danger-color-rgb), 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* =================================== */
/* STEP GUIDE AMÉLIORÉ */
/* =================================== */

.step-guide .step-number {
    font-weight: bold;
    min-width: 35px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.step-guide .d-flex {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-guide h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.step-guide p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =================================== */
/* RESPONSIVE DESIGN POUR LES NOUVELLES SECTIONS */
/* =================================== */

@media (max-width: 768px) {
    .hero-compact {
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-compact h1 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-compact p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-compact .small span {
        font-size: 0.8rem;
        margin-right: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-compact .d-flex {
        justify-content: center;
        text-align: center;
    }
    
    .hero-compact .col-lg-4 {
        display: none !important;
    }
    
    /* Comprehensive info responsive */
    .comprehensive-info {
        padding: 1.5rem 0;
        margin: 1rem 0;
    }
    
    .comprehensive-info .display-6 {
        font-size: 1.5rem;
    }
    
    .comprehensive-info .lead {
        font-size: 1rem;
    }
    
    .comprehensive-info .card-body {
        padding: 1.25rem;
    }
    
    /* Step guide responsive */
    .step-guide .d-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-guide .step-number {
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
    }
    
    /* Accordion responsive */
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body .alert {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .hero-compact h1 {
        font-size: 1.1rem;
    }
    
    .hero-compact p {
        font-size: 0.85rem;
    }
    
    .hero-compact .small span {
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .comprehensive-info .display-6 {
        font-size: 1.3rem;
    }
    
    .comprehensive-info .card-body {
        padding: 1rem;
    }
    
    .step-guide .step-number {
        min-width: 30px;
        min-height: 30px;
        font-size: 0.8rem;
    }
    
    .step-guide h6 {
        font-size: 0.9rem;
    }
    
    .step-guide p {
        font-size: 0.8rem;
    }
    
    .accordion-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .accordion-body {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* =================================== */
/* FIXES SPÉCIFIQUES POUR LES CONFLITS */
/* =================================== */

/* Corriger les problèmes de couleurs dans les cartes */
.comprehensive-info .card .text-primary {
    color: var(--primary-color) !important;
}

.comprehensive-info .card .text-success {
    color: var(--success-color) !important;
}

.comprehensive-info .card .text-warning {
    color: var(--warning-color) !important;
}

.comprehensive-info .card .text-info {
    color: var(--info-color) !important;
}

/* Corriger les icônes dans les accordéons */
.accordion-button i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Corriger les alertes dans les accordéons */
.accordion-body .alert small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.accordion-body .alert i {
    margin-right: 0.3rem;
}

/* Corriger les boutons dans la section comprehensive */
.comprehensive-info .btn {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
}

.comprehensive-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Corriger les listes dans les cartes */
.comprehensive-info .card ul {
    padding-left: 0;
    list-style: none;
}

.comprehensive-info .card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comprehensive-info .card ul li i {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* =================================== */
/* AMÉLIORATIONS VISUELLES */
/* =================================== */

/* Gradient pour les icônes principales */
.comprehensive-info .fa-user-md {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comprehensive-info .fa-users {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comprehensive-info .fa-globe {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation pour les boutons de partage */
.comprehensive-info .btn-light {
    transition: all 0.3s ease;
}

.comprehensive-info .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Amélioration des flags */
.comprehensive-info .fa-flag {
    margin-right: 0.4rem;
    opacity: 0.8;
}

/* =================================== */
/* CORRECTIONS POUR LE ZOOM 0.7 */
/* =================================== */

/* S'assurer que les nouveaux éléments respectent le zoom */
.hero-compact,
.comprehensive-info,
.accordion {
    box-sizing: border-box;
}

/* Corriger les problèmes de débordement avec le zoom */
.comprehensive-info .container {
    overflow-x: hidden;
}

/* Améliorer la lisibilité du texte avec le zoom */
.hero-compact *,
.comprehensive-info *,
.accordion * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================== */
/* ÉTATS ET INTERACTIONS */
/* =================================== */

/* États focus pour l'accessibilité */
.accordion-button:focus,
.comprehensive-info .btn:focus {
    outline: 2px solid rgba(var(--primary-color-rgb), 0.5);
    outline-offset: 2px;
}

/* Animation au clic pour les boutons */
.comprehensive-info .btn:active {
    transform: translateY(-1px);
}

/* Amélioration des transitions */
.comprehensive-info .card,
.accordion-item,
.hero-compact {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================== */
/* STYLES POUR L'AGRÉGATEUR RSS SANTÉ */
/* =================================== */

/* Animation d'apparition pour les cartes d'actualités */
.health-news-card {
    transition: all var(--transition-normal) cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    animation: slideInUp 0.3s ease-out;
}

.health-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Animation d'apparition décalée */
.health-news-card:nth-child(1) { animation-delay: 0.1s; }
.health-news-card:nth-child(2) { animation-delay: 0.2s; }
.health-news-card:nth-child(3) { animation-delay: 0.3s; }
.health-news-card:nth-child(4) { animation-delay: 0.4s; }
.health-news-card:nth-child(5) { animation-delay: 0.5s; }

/* Headers des sources d'actualités */
.health-news-source-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: none;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.health-news-source-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.health-news-source-header h5 {
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Articles individuels */
.health-news-article {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all var(--transition-fast);
    position: relative;
}

.health-news-article:last-child {
    border-bottom: none;
}

.health-news-article:hover {
    background-color: rgba(var(--primary-color-rgb), 0.02);
}

.health-news-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.health-news-article-title a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.health-news-article-title a:hover {
    color: var(--primary-color);
}

.health-news-article-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-news-article-description {
    color: rgba(var(--dark-color), 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Badges de comptage */
.health-news-count-badge {
    background-color: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
}

/* Statistiques en en-tête */
.health-news-stats {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.health-news-stats .display-6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.health-news-stats small {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

/* Section informative */
.health-news-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.health-news-info-section h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.health-news-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all var(--transition-fast);
}

.health-news-feature-icon:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
}

/* Liens externes */
.health-news-external-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.health-news-external-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.health-news-external-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Messages d'état */
.health-news-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.health-news-empty-state i {
    font-size: 3rem;
    color: rgba(var(--secondary-color-rgb), 0.5);
    margin-bottom: 1rem;
}

/* Boutons d'action */
.health-news-action-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.health-news-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.health-news-action-btn i {
    font-size: 0.8rem;
}

/* Responsive design pour les actualités */
@media (max-width: 768px) {
    .health-news-card {
        margin-bottom: var(--spacing-md);
    }
    
    .health-news-article {
        padding: 1rem;
    }
    
    .health-news-article-title {
        font-size: 1rem;
    }
    
    .health-news-article-meta {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .health-news-stats {
        padding: 1rem;
        text-align: center;
    }
    
    .health-news-stats .display-6 {
        font-size: 1.5rem;
    }
    
    .health-news-info-section {
        padding: 1.5rem;
    }
    
    .health-news-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .health-news-article {
        padding: 0.75rem;
    }
    
    .health-news-article-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .health-news-article-description {
        font-size: 0.9rem;
    }
    
    .health-news-action-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .health-news-stats .display-6 {
        font-size: 1.25rem;
    }
    
    .health-news-stats small {
        font-size: 0.75rem;
    }
}

/* Animation de chargement */
.health-news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.health-news-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Indicateur de mise à jour automatique */
.health-news-auto-refresh {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.health-news-auto-refresh.show {
    opacity: 1;
    transform: translateY(0);
}

.health-news-auto-refresh i {
    margin-right: 0.5rem;
    animation: spin 2s linear infinite;
}

/* Animation de rotation pour l'icône de refresh */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Transition fluide pour le contenu */
.health-news-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Amélioration de l'accessibilité */
.health-news-article:focus-within {
    outline: 2px solid rgba(var(--primary-color-rgb), 0.5);
    outline-offset: 2px;
}
/* Forcer le label utilisateur EN DESSOUS */
.gm-style > div[style*="position: absolute"]:has(#user-position-label) {
    z-index: 50 !important;
}

/* Forcer les InfoWindows de pharmacies AU-DESSUS */
.gm-style > div[style*="position: absolute"]:has(.gm-style-iw-c):not(:has(#user-position-label)) {
    z-index: 9999 !important;
}
/* =================================== */
/* FIN DES STYLES ACTUALITÉS SANTÉ */
/* =================================== */