:root {
    --primary: #ff6b00;
    --primary-dark: #0089e5;
    --secondary: #08cf72;
    --accent: #ff3b5c;
    --dark: #1a1d29;
    --light: #ffffff;
    --gray: #f8f9fa;
    --gray-dark: #e0e0e0;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Bande d'actualités améliorée */
.news-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 0;
    z-index: 2000;
    font-size: 0.85rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    /* Slower for readability */
    padding-left: 100%;
}

.news-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    font-weight: 500;
}

.news-item i {
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.admin-login-btn {
    display: block;
    margin: 20px auto 10px;
    color: #999 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    width: fit-content;
    text-align: center;
}

.admin-login-btn:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.05);
    transform: translateY(-1px);
}

.news-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.75rem;
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* Header */
.header {
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 12px 20px;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(5deg) scale(1.1);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
    z-index: 1501;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 24px;
    background: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.3);
    border-color: var(--primary);
    transform: translateY(-2px);
    background: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
}

.search-box:focus+.search-icon {
    color: var(--primary);
}

/* Suggestions de recherche */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    margin-top: 5px;
}

.search-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f5f5f5;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.search-suggestion-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-content i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.suggestion-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.suggestion-subtitle {
    font-size: 0.8rem;
    color: #777;
}

.suggestion-distance {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Bande de filtres */
.category-filters-bar {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 12px 20px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: none !important;
    border-bottom: none !important;
    -webkit-overflow-scrolling: touch;
}

.category-filters-bar::-webkit-scrollbar {
    display: none;
}

.category-filters-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-filters-bar .category-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-right: 8px;
    background: none !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.category-filters-bar .category-filter:hover {
    background: rgba(255, 255, 255, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-filters-bar .category-filter.active {
    background: rgba(255, 107, 0, 0.1) !important;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
    transform: translateY(-2px);
    font-weight: 700;
}

.category-filters-bar .category-filter.active i {
    color: var(--primary);
}

.category-filters-bar .category-filter i {
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-subtitle {
    text-align: center;
    color: #000000;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000000;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: #f5f5f5;
    color: var(--primary);
    transform: rotate(90deg);
}

/* Onglets */
.sidebar-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-tab {
    flex: 1;
    font-size: 0.8rem;
    color: #555;
    padding: 10px 4px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.sidebar-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Barre de recherche dans le sidebar */
.sidebar-search-container {
    position: relative;
    margin-bottom: 20px;
}

.sidebar-search-box {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sidebar-search-box:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.sidebar-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stats:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    flex: 1;
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Sections de contenu */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.commerce-list,
.artisan-list {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.commerce-item,
.artisan-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 6px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.commerce-item:hover,
.artisan-item:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.commerce-item.active {
    background: rgba(255, 107, 0, 0.1);
    border-left: 3px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.commerce-name,
.artisan-name {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.commerce-name i,
.artisan-name i {
    margin-right: 10px;
    color: var(--primary);
}

.commerce-category,
.artisan-category {
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    font-weight: 500;
}

.commerce-address,
.commerce-phone,
.artisan-phone {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.commerce-address i,
.commerce-phone i,
.artisan-phone i {
    margin-right: 8px;
    width: 14px;
    text-align: center;
    color: var(--secondary);
}

.artisan-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.artisan-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Map container */
.map-container {
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#map {
    height: 100%;
    width: 100%;
}

/* Force pointer cursor as requested */
.maplibregl-canvas-container,
.maplibregl-canvas-container.maplibregl-interactive,
.maplibregl-canvas-container.maplibregl-interactive:active {
    cursor: pointer !important;
}

/* View selector */
.view-selector {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.view-selector-btn {
    width: 44px;
    height: 44px;
    background: none !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.view-selector-btn:hover {
    background: none !important;
    color: var(--primary);
}

.view-selector-btn.active {
    background: rgb(0, 0, 0);
    color: var(--primary);
}

.view-selector-btn:not(:last-child) {
    border-bottom: none !important;
}

/* Floating buttons */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.3rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    box-shadow: none !important;
    transform: translateY(-5px) scale(1.1);
}

.floating-btn.primary {
    background: none !important;
    color: rgb(0, 0, 0);
}

.floating-btn.secondary {
    bottom: 85px;
}

.floating-btn.follow {
    bottom: 210px;
    background: none;
    color: rgb(0, 0, 0);
    display: none;
}

.floating-btn.follow.active {
    background: #e74c3c !important;
    color: #fff !important;
    display: flex !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Leaflet styles removed */

/* Popups MapLibre corrigées */
.maplibregl-popup {
    z-index: 1000 !important;
}

.maplibregl-popup-content {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    background: white !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.maplibregl-popup-tip {
    border-top-color: white !important;
}

.maplibregl-popup-close-button {
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #666 !important;
    transition: var(--transition) !important;
    padding: 5px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1001 !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    width: 24px !important;
    height: 24px !important;
}

.maplibregl-popup-close-button:hover {
    background: #f5f5f5 !important;
    color: var(--primary) !important;
}

/* Custom Popup Style */
.custom-popup .maplibregl-popup-content {
    padding: 0 !important;
}

.info-window {
    padding: 15px;
    min-width: 250px;
}

.info-window h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.info-window p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
}

.info-window i {
    margin-right: 8px;
    color: var(--primary);
    width: 14px;
    text-align: center;
}

.info-window-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.info-window-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: #f8f9fa;
    color: #444;
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0 !important;
    text-decoration: none !important;
}

.info-window-btn i {
    display: block !important;
    line-height: 1 !important;
}

.info-window-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.info-window-btn.primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.info-window-btn.primary i {
    color: #ffffff !important;
}

.info-window-btn.primary:hover {
    background: #e55a00 !important;
    border-color: #e55a00 !important;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.info-window-btn.call-btn {
    background: #27ae60 !important;
    color: #ffffff !important;
    border-color: #27ae60 !important;
}

.info-window-btn.call-btn i {
    color: #ffffff !important;
}

.info-window-btn.call-btn:hover {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Villa number marker */
.villa-number {
    color: #000000;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    background: none;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Thèmes spécifiques pour les numéros de villas */
[data-map-layer="dark"] .villa-number,
[data-map-layer="satellite"] .villa-number {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

[data-map-layer="modern"] .villa-number,
[data-map-layer="light"] .villa-number {
    color: #000000 !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
}

/* Visibilité des éléments UI en mode Sombre / Satellite */
[data-map-layer="dark"] .logo-text,
[data-map-layer="satellite"] .logo-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-map-layer="dark"] .category-filters-bar .category-filter,
[data-map-layer="satellite"] .category-filters-bar .category-filter {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

[data-map-layer="dark"] .category-filters-bar .category-filter.active,
[data-map-layer="satellite"] .category-filters-bar .category-filter.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}


[data-map-layer="dark"] .view-selector-btn,
[data-map-layer="satellite"] .view-selector-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-map-layer="dark"] .floating-btn,
[data-map-layer="satellite"] .floating-btn {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-map-layer="dark"] .search-icon,
[data-map-layer="satellite"] .search-icon {
    color: #ffffff !important;
    opacity: 1;
}

[data-map-layer="dark"] .search-box::placeholder,
[data-map-layer="satellite"] .search-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Search results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    border-top: none;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 250px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.active {
    opacity: 1;
}

.tooltip h4 {
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 600;
}

.tooltip p {
    margin-bottom: 3px;
    color: #666;
    display: flex;
    align-items: center;
}

.tooltip i {
    margin-right: 5px;
    width: 12px;
    text-align: center;
    color: var(--primary);
}

/* Route style */
.route-line {
    stroke: #ff6b00;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: none;
}

.route-shadow {
    stroke: #000000;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.2;
    stroke-dasharray: none;
}

/* Loading indicator */
.route-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.route-loading.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        top: 35px;
        padding: 12px 15px;
    }

    .search-container {
        display: block;
        margin: 0 15px;
    }

    .logo-text {
        display: block;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    .category-filters-bar {
        top: 95px;
        padding: 10px 15px;
        background: none !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .category-filters-bar .category-filter {
        padding: 8px 14px;
        font-size: 0.8rem;
        margin-right: 6px;
        background: none;
    }

    .map-container {
        top: 35px;
    }

    .commerce-item,
    .artisan-item {
        padding: 10px 12px;
    }

    .floating-btn {
        width: 54px;
        height: 54px;
    }

    .view-selector-btn {
        width: 48px;
        height: 48px;
    }

    .info-window {
        min-width: 280px;
        max-width: 85vw;
    }

    .tooltip {
        display: none;
    }

    .leaflet-popup-content {
        margin: 15px;
        line-height: 1.4;
    }

    .info-window-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .info-window-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .commerce-marker,
    .villa-marker {
        touch-action: manipulation;
    }

    .commerce-marker div {
        width: 24px !important;
        height: 24px !important;
    }

    .villa-marker div {
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .map-container {
        bottom: 0 !important;
    }

    .leaflet-popup-content-wrapper,
    .maplibregl-popup-content {
        max-width: 280px !important;
    }

    /* Cacher complètement les attributions et logos qui créent un effet "bannière" en bas */
    .maplibregl-ctrl-attrib,
    .maplibregl-ctrl-logo,
    .leaflet-control-attribution,
    .maplibregl-ctrl-bottom-right,
    .maplibregl-ctrl-bottom-left {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .search-container {
        margin: 0 10px;
    }

    .logo {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .search-box {
        padding: 10px 15px 10px 40px;
        font-size: 0.9rem;
    }

    .sidebar {
        padding: 15px;
    }

    .category-filters-bar {
        padding: 8px 12px;
        background: none !important;
    }

    .category-filters-bar .category-filter {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-right: 4px;
        background: none;
    }

    .category-filters-bar .category-filter i {
        font-size: 0.8rem;
    }

    .stats {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .info-window {
        min-width: 250px;
        max-width: 90vw;
    }

    .leaflet-popup-content-wrapper {
        max-width: 260px !important;
    }
}

/* Améliorations de compatibilité */
.search-box::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.sidebar-search-box::placeholder {
    color: #666;
}

/* Amélioration de la visibilité des éléments interactifs */
.floating-btn:active,
.view-selector-btn:active,
.category-filter:active {
    transform: scale(0.95);
}

/* Animation de chargement */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Correction pour iOS */
input,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Empêcher le zoom sur iOS */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Correction pour le scroll sur iOS */
.scroll-fix {
    -webkit-overflow-scrolling: touch;
}

/* Section Actualités / Ads Grid & Lightbox */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ad-image-container {
    position: relative;
    height: 120px;
    overflow: hidden;
    cursor: zoom-in;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.05);
}

.ad-date {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    backdrop-filter: blur(4px);
}

.ad-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ad-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 5px;
    margin-top: auto;
}

.ad-author {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.ad-share-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: var(--transition);
}

.ad-share-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 10001;
}

/* Ad Detail Modal */
.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ad-modal.active {
    opacity: 1;
    visibility: visible;
}

.ad-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.ad-modal.active .ad-modal-content {
    transform: translateY(0);
}

.ad-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-image-container {
    position: relative;
    height: auto;
    max-height: 50vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
}

.ad-modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
}

.ad-modal-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.ad-modal-body {
    padding: 25px;
}

#ad-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
}

.ad-modal-author {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-modal-author i {
    font-size: 1.1rem;
}

#ad-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
    margin-bottom: 30px;
}

.ad-modal-share-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.ad-modal-share-btn:hover {
    background: #e55a00;
}

/* Update Toast */
.update-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--dark);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
}

.update-toast.show {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    opacity: 1;
}

.update-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-toast-content i {
    color: var(--primary);
    font-size: 1.2rem;
}

.update-toast-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.update-toast-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.update-toast-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .update-toast {
        width: calc(100% - 40px);
        bottom: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .update-toast-btn {
        width: 100%;
    }
}

/* =====================================================
   NOUVELLES FONCTIONNALITÉS — ADE MENSA 2.0
   ===================================================== */

/* ===== SPLASH SCREEN ===== */
#splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(145deg, #1a1d29 0%, #2c1654 50%, #1a1d29 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

#splash-screen::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: splash-pulse 3s ease-in-out infinite;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.splash-content {
    text-align: center;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: splash-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splash-enter {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo-ring {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(255,107,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: splash-ring-spin 8s linear infinite;
    margin-bottom: 8px;
}

.splash-logo-ring::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: rgba(255,107,0,0.3);
    animation: splash-ring-spin 2s linear infinite;
}

@keyframes splash-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    animation: none;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b00, #ff3b5c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

.splash-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.splash-tagline {
    font-size: 0.75rem;
    color: rgba(255,107,0,0.8);
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.splash-loader {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b00, #ff3b5c);
    border-radius: 3px;
    animation: splash-load 2.2s ease-out forwards;
}

@keyframes splash-load {
    0% { width: 0%; }
    40% { width: 60%; }
    70% { width: 80%; }
    100% { width: 100%; }
}

.splash-powered {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* ===== PANNEAU D'URGENCE ===== */
#emergency-panel {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: 14px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.emergency-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emergency-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.emergency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 5px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.emergency-btn i {
    font-size: 1.2rem;
}

.emergency-btn:active {
    transform: scale(0.95);
}

.emergency-btn--red {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.emergency-btn--red:hover { background: #fca5a5; }

.emergency-btn--orange {
    background: #fff3e0;
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.2);
}
.emergency-btn--orange:hover { background: #ffcc80; }

.emergency-btn--green {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.emergency-btn--green:hover { background: #86efac; }

.emergency-btn--blue {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.2);
}
.emergency-btn--blue:hover { background: #93c5fd; }

/* ===== BOUTON PDF ===== */
.pdf-download-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-bottom: 15px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.pdf-download-btn:active {
    transform: scale(0.98);
}

/* ===== SECTION AGENDA ===== */
.agenda-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agenda-header-info i {
    color: var(--primary);
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.agenda-item {
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.agenda-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.agenda-item-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: white;
}

.agenda-item-body {
    flex: 1;
    min-width: 0;
}

.agenda-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.agenda-item-date {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.agenda-item-location {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.agenda-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    padding: 10px 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.agenda-empty {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.agenda-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}

/* ===== MODAL AGENDA ===== */
.agenda-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10003;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 0;
}

.agenda-modal.active {
    opacity: 1;
    visibility: visible;
}

.agenda-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-overflow-scrolling: touch;
}

.agenda-modal.active .agenda-modal-content {
    transform: translateY(0);
}

.agenda-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.1);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.agenda-modal-close:hover { background: rgba(0,0,0,0.2); }

.agenda-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.agenda-modal-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.agenda-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    flex: 1;
}

.agenda-modal-meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

.agenda-modal-body {
    padding: 20px;
}

.agenda-modal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    white-space: pre-line;
}

.agenda-modal-location {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
}

.agenda-modal-location::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}



/* ===== LIENS TÉLÉPHONE ===== */
.phone-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.phone-link:hover {
    color: #27ae60 !important;
}

.phone-link i {
    color: #27ae60;
}

.call-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(39,174,96,0.1);
    color: #27ae60;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition-fast);
}

.call-badge:hover {
    background: #27ae60;
    color: white;
}

/* ===== BOUTON APPEL DANS LES POPUPS ===== */
.info-window-btn.call-btn {
    background: #27ae60;
    color: white;
}

.info-window-btn.call-btn:hover {
    background: #219a52;
    box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}

/* ===== MEDIA PRINT (Annuaire PDF Multi-pages) ===== */
@media print {
    /* Cacher tout ce qui n'est pas la zone d'impression */
    body > *:not(.print-area) { 
        display: none !important; 
    }
    
    .print-area {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        visibility: visible !important;
    }
    
    .print-area * {
        visibility: visible !important;
    }

    /* Styles pour les tableaux dans le PDF */
    .print-area table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
        margin-bottom: 20px !important;
    }
    
    .print-area tr {
        page-break-inside: avoid !important;
    }
    
    .print-area td, .print-area th {
        page-break-inside: avoid !important;
    }

    /* Éviter les titres seuls en bas de page */
    .print-area h2, .print-area h3 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Cacher les boutons de contrôle lors de l'impression réelle */
    .no-print {
        display: none !important;
    }

    /* Ajuster les marges de page */
    @page {
        margin: 1.5cm;
    }
}

/* ===== RESPONSIVE pour nouvelles fonctionnalités ===== */
@media (max-width: 768px) {
    .emergency-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .emergency-btn {
        padding: 8px 3px;
        font-size: 0.6rem;
    }

    .emergency-btn i {
        font-size: 1.1rem;
    }

    /* Ajustement des boutons flottants pour ne pas chevaucher la barre du bas */
    .floating-btn.primary { bottom: 85px !important; } /* Normalement caché */
    .floating-btn.secondary { bottom: 85px !important; } /* Position */
    .floating-btn.follow { bottom: 145px !important; }
    
    .view-selector { bottom: 85px !important; }
    
    /* Cacher le bouton menu original sur mobile car on a la nav bar */
    #menu-btn { display: none !important; }

    /* Ajustement pour laisser de l'espace en bas de page pour la navbar */
    body { padding-bottom: 75px; }
}

/* ===== BARRE DE NAVIGATION MOBILE FIXE ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none; /* Caché par défaut, activé dans media query */
    justify-content: space-around;
    align-items: center;
    z-index: 5000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 10px;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-3px);
    text-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

/* Credits HELLCAT GROUP */
.sidebar-author {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    text-align: center;
}

.sidebar-footer {
    padding: 30px 20px 40px;
    background: linear-gradient(to bottom, transparent, #fafafa);
    border-top: 1px solid #f0f0f0;
    text-align: center;
    margin-top: 20px;
}

.sidebar-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-footer-content p {
    font-size: 0.75rem;
    color: #888;
    margin: 5px 0;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 8px 0;
    font-family: 'Poppins', sans-serif;
}

.brand-hell { color: #1a1d29; }
.brand-cat { color: var(--primary); }
.brand-group { 
    color: #aaa; 
    font-weight: 400;
    font-size: 0.85rem;
}

.footer-tagline {
    font-size: 0.7rem !important;
    font-style: italic;
    color: #bbb !important;
}

.footer-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.footer-dots span {
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
}

.footer-dots span:nth-child(2) {
    background: var(--primary);
    opacity: 0.5;
}

.admin-login-btn {
    display: block;
    margin: 20px auto 10px;
    color: #999 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    width: fit-content;
    text-align: center;
}

.admin-login-btn:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.05);
    transform: translateY(-1px);
}
