#carte-evenements-wrapper,
        #carte-evenements-wrapper .map-container,
        #carte-evenements-wrapper .timeline-container,
        #carte-evenements-wrapper .buttons-container,
        #carte-evenements-wrapper .custom-btn,
        #carte-evenements-wrapper .map-type-control,
        #carte-evenements-wrapper .location-loader,
        #carte-evenements-wrapper .modal-content,
        #carte-evenements-wrapper .timeline-btn,
        #carte-evenements-wrapper .day-item,
        #carte-evenements-wrapper .current-date {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        #carte-evenements-wrapper,
        #carte-evenements-wrapper button,
        #carte-evenements-wrapper .custom-btn,
        #carte-evenements-wrapper .map-type-btn,
        #carte-evenements-wrapper .timeline-btn,
        #carte-evenements-wrapper .nav-footer-btn,
        #carte-evenements-wrapper .more-info-btn {
            font-family: 'Barlow', sans-serif;
        }

        #carte-evenements-wrapper {
            width: 100%;
            height: auto;
            flex: 1 1 auto;
            min-height: 400px;
            position: relative;
            background: #f5f5f5;
            display: flex;
            flex-direction: column;
        }

        .map-container {
            flex: 1;
            position: relative;
            background: transparent;
            width: 100%;
            min-height: 300px;
        }

        #map {
            width: 100%;
            height: 100%;
            z-index: 1;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .location-loader {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 1000;
            background: white;
            border-radius: 30px;
            padding: 8px 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            display: none;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #1A1A1A;
            border: 1px solid #e0e0e0;
        }

        .location-loader.show {
            display: flex;
        }

        .location-loader i {
            color: #1A1A1A;
            animation: spin 1s linear infinite;
        }

        .map-type-control {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: white;
            border-radius: 20px;
            padding: 2px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 1px solid #e0e0e0;
            display: flex;
            gap: 2px;
        }

        .map-type-btn {
            padding: 4px 12px;
            border: none;
            border-radius: 18px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s;
            background: transparent;
            color: #7f8c8d;
        }

        .map-type-btn.active {
            background: black;
            color: white;
        }

        .buttons-container {
            position: absolute;
            bottom: 10px;
            right: 10px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .buttons-container-left {
            position: absolute;
            bottom: 10px;
            left: 10px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .custom-btn {
            background: white;
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1A1A1A;
            font-size: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            border: 1px solid #e0e0e0;
            transition: none;
            position: relative;
        }

        .custom-btn[title] {
            pointer-events: auto;
        }
        
        .custom-btn[title]:hover::after {
            display: none;
        }

        .custom-btn.active {
            background: #1A1A1A;
            color: white;
        }

        .custom-btn.walking-btn {
            background: white;
            color: white;
        }

        .custom-btn.walking-btn i {
            color: #1A1A1A;
        }

        .btn-loader {
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: #1A1A1A;
            border-right-color: #1A1A1A;
            animation: btn-spin 1s linear infinite;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        .custom-btn.loading .btn-loader {
            opacity: 1;
        }

        .custom-btn.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        @keyframes btn-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .buttons-container .custom-btn {
            position: relative;
        }

        .buttons-container .custom-btn::before {
            content: attr(data-tooltip);
            position: absolute;
            right: calc(100% + 10px);
            top: 50%;
            transform: translateY(-50%);
            background: #1A1A1A;
            color: white;
            font-size: 12px;
            line-height: 18px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            pointer-events: none;
            z-index: 2000;
            font-family: 'Barlow', sans-serif;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .buttons-container .custom-btn::after {
            content: '';
            position: absolute;
            right: calc(100% + 0px);
            top: 50%;
            transform: translateY(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent transparent #1A1A1A;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            pointer-events: none;
            z-index: 2000;
        }

        .buttons-container .custom-btn:hover::before,
        .buttons-container .custom-btn:hover::after {
            opacity: 1;
            visibility: visible;
        }

        .buttons-container-left .custom-btn {
            position: relative;
        }

        .buttons-container-left .custom-btn::before {
            content: attr(data-tooltip);
            position: absolute;
            left: calc(100% + 10px);
            top: 50%;
            transform: translateY(-50%);
            background: #1A1A1A;
            color: white;
            font-size: 12px;
            line-height: 18px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            pointer-events: none;
            z-index: 2000;
            font-family: 'Barlow', sans-serif;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .buttons-container-left .custom-btn::after {
            content: '';
            position: absolute;
            left: calc(100% + 0px);
            top: 50%;
            transform: translateY(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: transparent #1A1A1A transparent transparent;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
            pointer-events: none;
            z-index: 2000;
        }

        .buttons-container-left .custom-btn:hover::before,
        .buttons-container-left .custom-btn:hover::after {
            opacity: 1;
            visibility: visible;
        }

        @media (max-width: 768px) {
            .buttons-container .custom-btn::before,
            .buttons-container-left .custom-btn::before {
                font-size: 10px;
                padding: 4px 10px;
                white-space: nowrap;
            }
            
            .buttons-container .custom-btn::before {
                right: calc(100% + 6px);
            }
            
            .buttons-container-left .custom-btn::before {
                left: calc(100% + 6px);
            }
            
            .buttons-container .custom-btn::after,
            .buttons-container-left .custom-btn::after {
                border-width: 4px;
            }
        }

        .timeline-container {
            background: white;
            border-top: 1px solid #e0e0e0;
            padding: 15px;
            flex-shrink: 0; 
            margin-bottom: 0 !important;
        }

        .timeline-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
            gap: 15px;
            flex-wrap: wrap;
        }

        .timeline-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .timeline-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: var(--awb-color3);
            color: var(--awb-color2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .timeline-btn:hover:not(:disabled) {
            background: var(--awb-color2);
            color: white;
        }

        .timeline-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .current-date {
            font-size: 15px;
            font-weight: 500;
            color: var(--awb-color2);
            background: var(--awb-color3);
            padding: 6px 15px;
            border-radius: 30px;
            text-align: center;
            border: 1px solid var(--awb-color2);
        }

        .next-rdv-btn {
            background: var(--awb-color2);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .next-rdv-btn:hover {
            transform: scale(1.02);
            opacity: 0.95;
        }

        .next-rdv-btn i {
            font-size: 14px;
        }

        .timeline-days {
            display: flex;
            justify-content: center;
            align-items: stretch;
            gap: 6px;
            margin-bottom: 15px;
        }

        .day-item {
            flex: 1;
            max-width: 80px;
            background: var(--awb-color3);
            border-radius: 8px;
            cursor: pointer;
            padding: 8px 3px !important;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.2s;
            color: var(--awb-color2);
        }

        .day-item:hover {
            background: var(--awb-color3);
            border-color: var(--awb-color2);
        }

        .day-item.active {
            background: var(--awb-color2);
            border-color: var(--awb-color2);
            color: white;
        }

        .day-weekday {
            font-size: 10px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .day-date {
            font-size: 20px;
            font-weight: 700;
            line-height: 1;
        }

        .day-month {
            font-size: 10px;
            margin-bottom: 4px;
        }

        .day-count {
            display: inline-block;
            background: white;
            color: var(--awb-color2);
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            min-width: 22px;
        }

        .day-item.active .day-count {
            background: white;
            color: var(--awb-color2);
        }

        /* Style pour la légende des polygones */
        .polygon-legend {
            background: white;
            border-radius: 12px;
            padding: 12px 15px;
            margin-top: 10px;
            border: 1px solid #e0e0e0;
                mix-blend-mode: multiply;
    width: fit-content;
    margin: auto;     margin-top: 60px; margin-bottom: 60px;
        }

        .polygon-legend-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--awb-color2);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .polygon-legend-title i {
            font-size: 12px;
        }

        .polygon-legend-items {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

        .polygon-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: #555;
        }

        .polygon-legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            opacity: 0.7;
        }

        @media (max-width: 768px) {
            .polygon-legend {
                padding: 8px 12px;
            }
            .polygon-legend-items {
                gap: 8px;
            }
            .polygon-legend-item {
                font-size: 10px;
            }
            .polygon-legend-color {
                width: 16px;
                height: 16px;
            }
        }



/* Alternative avec CSS Grid */
.polygon-legend-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.polygon-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #555;
    justify-content: center;
}

@media (max-width: 768px) {
    .polygon-legend-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 20px;
    }
    
    .polygon-legend-item {
        justify-content: flex-start;
    }
}


        .custom-marker {
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .custom-marker.long-event svg circle:first-child {
            fill: var(--awb-color2);
            opacity: 0.5;
            stroke: #1A1A1A;
            stroke-width: 2;
            stroke-dasharray: 4;
        }

        .custom-marker.simple-event svg circle:first-child {
            fill: var(--awb-color2);
            opacity: 1;
            stroke: white;
            stroke-width: 2;
        }

        .custom-marker:hover svg {
            transform: scale(1.2);
            z-index: 1000 !important;
            transition: transform 0.2s ease;
        }

        .custom-marker.custom-icon-marker {
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .custom-marker.custom-icon-marker div {
            transition: transform 0.2s ease;
        }

        .custom-marker.custom-icon-marker:hover div {
            transform: scale(1.2) !important;
            z-index: 1000 !important;
        }

        .custom-marker.active-marker svg,
        .custom-marker.custom-icon-marker.active-marker div {
            transform: scale(1.25);
            transition: transform 0.2s ease;
            z-index: 2000 !important;
        }

        .custom-marker.active-marker {
            z-index: 2000 !important;
        }

        .stand-marker {
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 1400;
        }

        .stand-marker svg circle {
            stroke: white;
            stroke-width: 2;
        }

        .stand-marker:hover {
            z-index: 150000 !important;
        }

        .stand-marker.active-marker {
            stroke-width: 3;
            z-index: 200000 !important;
        }
        .custom-marker:hover, .cluster-marker:hover {
            z-index: 250000 !important;
        }
        .stand-marker.custom-icon-marker {
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .stand-marker.custom-icon-marker:hover {
            z-index: 150000 !important;
        }

        .stand-marker.custom-icon-marker.active-marker {
            z-index: 200000 !important;
        }

        .user-location-marker {
            background: transparent;
            border: none;
        }
        
        .user-location-marker::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(66, 133, 244, 0.3);
            border-radius: 50%;
            top: 0;
            left: 0;
            animation: pulse 1.5s ease-out infinite;
            pointer-events: none;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.8;
            }
            70% {
                transform: scale(1.5);
                opacity: 0;
            }
            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        .leaflet-routing-container {
            display: none !important;
        }
.leaflet-marker-icon.custom-marker.custom-icon-marker.active-marker.leaflet-zoom-animated.leaflet-interactive div {
    border-color: var(--awb-color2) !important;
}
.leaflet-marker-icon.custom-marker.custom-icon-marker.active-marker.leaflet-zoom-animated.leaflet-interactive div i {
    transform: scale(1.25);
}

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            display: flex;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease;
            pointer-events: none;
            background-color: transparent;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            background-color: transparent;
        }

        .modal-content {
            background: white;
            width: 100%;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
            pointer-events: auto;
            position: relative;
            overflow: hidden;
        }

        .modal-header {
            padding: 15px 20px;
            border-bottom: 1px solid #ecf0f1;
            background: white;
            color: #1A1A1A;
            position: relative;
            z-index: 10;
            text-align: center;
            flex-shrink: 0;
            user-select: none;
        }

        .modal-header h2 {
            font-size: 18px;
            font-weight: 700;
            margin: 0;
            padding-right: 40px;
            padding-left: 40px;
            color: var(--awb-color2);
            line-height: 1.3;
            word-wrap: break-word;
        }

        .modal-close {
            position: absolute;
            top: 12px;
            right: 15px;
            background: #ecf0f1;
            border: none;
            color: #1A1A1A;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 11;
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            flex: 1;
        }

        .modal-footer {
            padding: 15px 20px;
            border-top: 1px solid #ecf0f1;
            background: white;
            flex-shrink: 0;
            display: block;
        }

        .modal-footer-nav {
            display: flex;
            gap: 12px;
            justify-content: space-between;
            width: 100%;
        }

        .nav-footer-btn {
            flex: 1;
            padding: 12px;
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #1A1A1A;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        #prevEventBtn {
            justify-content: flex-start;
        }

        #nextEventBtn {
            justify-content: flex-end;
        }

        .nav-footer-btn:hover:not(:disabled) {
            background: var(--awb-color2);
            color: white;
            border-color: var(--awb-color2);
        }

        .nav-footer-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .event-detail-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 8px;
            padding: 0px 0;
           
        }

        .event-detail-row i {
            width: 20px;
            font-size: 16px;
            margin-top: 2px;
        }

        .event-detail-content {
            flex: 1;
        }

        .event-detail-value {
            font-size: 15px;
            color: #1A1A1A;
            font-weight: 500;
            line-height: 1.4;
        }

        .event-date-range {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: baseline;
        }

        .event-date-single {
            display: inline-block;
        }

        .event-date-separator {
            color: #95a5a6;
            font-size: 12px;
        }

        .event-description {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 12px;
            margin: 20px 0;
            font-size: 14px;
            line-height: 1.6;
            border-left: 3px solid var(--awb-color2);
            color: #2c3e50;
        }
.event-description p {
    margin: 0px;
}
        .more-info-btn {
            width: 100%;
            padding: 12px;
            background: var(--awb-color2);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
            transition: opacity 0.2s;
        }

        .more-info-btn:hover {
            opacity: 0.9;
        }

        .day-events-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .day-event-item {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid var(--awb-color2);
        }

        .day-event-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .day-event-title {
            font-weight: 600;
            font-size: 15px;
            color: #1A1A1A;
            margin-bottom: 6px;
        }

        .day-event-time {
            font-size: 12px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }

        .day-event-time i {
            font-size: 11px;
            color: var(--awb-color2);
        }

        .day-event-lieu {
            font-size: 12px;
            color: #888;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .day-event-lieu i {
            font-size: 11px;
            color: var(--awb-color2);
        }

        .permission-denied-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            color: #1A1A1A;
            padding: 24px;
            border-radius: 16px;
            font-size: 15px;
            line-height: 1.5;
            z-index: 3000;
            max-width: 90%;
            width: 420px;
            text-align: left;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            border: 1px solid #e0e0e0;
            animation: fadeIn 0.3s ease-out;
        }

        .permission-denied-message .message-title {
            font-weight: 700;
            margin-bottom: 16px;
            font-size: 18px;
            color: #1A1A1A;
            text-align:center;            padding-bottom: 10px;
        }

        .permission-denied-message .message-text {
            margin-bottom: 20px;
            color: #333;
        }

        .permission-denied-message .message-instruction {
            background: #f5f5f5;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 13px;
            margin: 16px 0;
            border-left: 3px solid var(--awb-color2);
        }

        .permission-denied-message .message-instruction i {
            color: var(--awb-color2);
            margin-right: 6px;
        }

        .permission-denied-message .close-message {
            background: var(--awb-color2);
            border: none;
            color: white;
            padding: 10px 24px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin-top: 16px;
            width: 100%;
            transition: opacity 0.2s;
        }

        .permission-denied-message .close-message:hover {
            opacity: 0.9;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translate(-50%, -45%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        @media (min-width: 769px) {
            .modal-overlay {
                align-items: center;
                justify-content: center;
            }
            
            .modal-content {
                width: 90%;
                max-width: 550px;
                height: auto;
                max-height: 60vh;
                border-radius: 20px;
            }
            
            .modal-header {
                cursor: grab;
                border-radius: 20px 20px 0 0;
            }
            
            .modal-header:active {
                cursor: grabbing;
            }
            
            .modal-header::after {
                display: none;
            }
            
            .buttons-container {
                bottom: 10px;
                right: 10px;
            }

            .buttons-container-left {
                bottom: 10px;
                left: 10px;
            }
        }

        @media (max-width: 768px) {
            .modal-overlay {
                align-items: flex-end;
                justify-content: center;
            }
            
            .modal-content {
                border-radius: 20px 20px 0 0;
                height: auto;
                max-height: 66vh;
                transform: translateY(100%);
                transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
                display: flex;
                flex-direction: column;
                position: relative;
                overflow: hidden;
                top: auto !important;
                left: auto !important;
                right: auto !important;
                bottom: 0 !important;
                margin: 0 !important;
            }
            
            .modal-overlay.active .modal-content {
                transform: translateY(0);
            }
            
            .modal-header {
                cursor: default;
                border-radius: 20px 20px 0 0;
                flex-shrink: 0;
                position: relative;
                z-index: 10;
                background: white;
            }
            
            .modal-header:active {
                cursor: default;
            }
            
            .modal-header::after {
                content: '';
                display: block;
                width: 40px;
                height: 4px;
                background: #e0e0e0;
                border-radius: 2px;
                margin: 12px auto 0;
            }
            
            .modal-body {
                flex: 1;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 20px;
                min-height: 0;
            }
            
            .modal-footer {
                flex-shrink: 0;
                padding: 15px 20px;
                border-top: 1px solid #ecf0f1;
                background: white;
                position: relative;
                z-index: 10;
                margin-top: auto;
            }
            .modal-close {
                display: none;
            }
            
            .permission-denied-message {
                width: 90%;
                max-width: 380px;
                padding: 20px;
            }

            .buttons-container-left {
                bottom: 10px;
                left: 10px;
            }
        }

        .loading-minimal {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s;
        }

        .loading-minimal.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .spinner-minimal {
            width: 30px;
            height: 30px;
            border: 2px solid #ecf0f1;
            border-top: 2px solid #1A1A1A;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #route-info {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            padding: 8px 16px;
            border-radius: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 1000;
            font-size: 14px;
            font-weight: 500;
            color: #1A1A1A;
            border: 1px solid #e0e0e0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            #carte-evenements-wrapper {
                min-height: 450px;
            }
            
            .map-container {
                min-height: 250px;
            }
        }

        #currentDate, .timeline-days {
            padding: 3px 18px !important;
            margin: 15px 0px !important;
        }

        #interface-container .map-container { 
            max-height: 60vh;
        }
        #main {
            padding: 0 !important;
            min-height: calc(100vh - 192px);
        }

        path.leaflet-interactive {
            stroke: var(--awb-color4);
        }

        .train-marker {
            background: transparent;
            border: none;
            z-index: 10000 !important;
            cursor: pointer;
        }

        .train-marker:hover div {
            transform: scale(1.1);
            transition: transform 0.2s ease;
        }

        .train-tooltip {
            background: #1A1A1A;
            color: white;
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            pointer-events: none;
        }

        .train-tooltip::before {
            border-top-color: #1A1A1A !important;
        }

        .train-center-btn {
            background: var(--awb-color2);
            color: white;
        }
        
        .train-center-btn i {
            color: white;
        }
        
        .train-center-btn.pulse {
            animation: buttonPulse 0.3s ease;
        }

        .defile-marker {
            background: transparent;
            border: none;
            z-index: 10000 !important;
            cursor: pointer;
        }

        .defile-marker:hover div {
            transform: scale(1.1);
            transition: transform 0.2s ease;
        }

        .defile-tooltip {
            background: #1A1A1A;
            color: white;
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            pointer-events: none;
        }

        .defile-tooltip::before {
            border-top-color: #1A1A1A !important;
        }

        .defile-center-btn {
            background: var(--awb-color2);
            color: white;
        }

        .defile-center-btn i, .train-center-btn i {
            color: white;  font-size: 26px;
        }

        .defile-center-btn.pulse {
            animation: buttonPulse 0.3s ease;
        }
        
        @keyframes buttonPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .train-update-time {
            position: absolute;
            bottom: 150px;
            right: 20px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 10px;
            z-index: 1000;
            pointer-events: none;
        }

        .cluster-marker {
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 1800;
        }

        .cluster-marker:hover {
            z-index: 1900 !important;
        }

        .cluster-marker:hover div {
            transform: scale(1.1);
            transition: transform 0.2s;
        }

        @keyframes barycenterPulse {
            0% {
                transform: scale(0.5);
                opacity: 1;
            }
            50% {
                transform: scale(1.5);
                opacity: 0.7;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        .temp-barycenter-marker div {
            animation: barycenterPulse 1s ease-out 2;
        }

        .defile-marker div{    
            width: 40px;
            height: 40px;
            background: transparent !important;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #73307f !important;
            font-size: 30px;
            border: none !important;
            box-shadow:none !important;
            cursor: pointer;
            transform: scale(2.5) !important;
            position: relative;
            z-index: 10001 !important;
        }
        
        .train-marker div{    
            width: 40px;
            height: 40px;
            background: transparent !important;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #73307f !important;
            font-size: 30px;
            border: none !important;
            box-shadow:none !important;
            cursor: pointer;
            transform: scale(2.5) !important;
            position: relative;
            z-index: 10001 !important;
        }
        
        .train-route-line {
            stroke: #555 !important;
            stroke-width: 4;
            stroke-dasharray: 5, 5;
            fill: none;
            opacity: 0.8;
        }
        
        .event-tooltip,
        .train-stop-tooltip,
        .stand-tooltip {
            background: #1A1A1A;
            color: white;
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .event-tooltip::before,
        .train-stop-tooltip::before,
        .stand-tooltip::before {
            border-top-color: #1A1A1A !important;
        }
        path.leaflet-interactive:not(.train-route-line):not(.defile-route-line) {
            stroke: var(--awb-color4);
        }

        .defile-route-line {
            stroke: #CCCCCC !important;
            stroke-width: 5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            opacity: 0.9;
            stroke-dasharray: 10, 10;
            animation: dash 40s linear infinite;
        }

        .train-route-display-line {
            stroke: #CCCCCC !important;
            stroke-width: 5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            opacity: 0.9;
            stroke-dasharray: 10, 10;
            animation: dash 40s linear infinite;
        }

        @keyframes dash {
            to {
                stroke-dashoffset: -1000;
            }
        }

        .parcours-toggle-btn {
            background: var(--awb-color2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            width: 100%;
            transition: all 0.2s;
        }

        .parcours-toggle-btn i {
            margin-right: 8px;
        }

        .parcours-toggle-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .train-stop-marker, .defile-stop-marker, .train-start-marker {
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 500 !important;
        }
        
        .defile-stop-marker div, .train-start-marker div {
            z-index: 500 !important;
            position: relative;
        }

        .defile-stop-tooltip {
            background: #1A1A1A;
            color: white;
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 12px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.2);
            white-space: nowrap;
        }

        .defile-stop-tooltip::before {
            border-top-color: #1A1A1A !important;
        }
        
        .train-start-tooltip {
            background: #1A1A1A;
            color: white;
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 12px;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.2);
            white-space: nowrap;
        }
        
        .train-start-tooltip::before {
            border-top-color: #1A1A1A !important;
        }

        .lost-child-btn {
            background: #cc0000;
            color: white;
        }

        .lost-child-btn i {
            color: white;
            font-size: 24px;
        }

        .lost-child-btn.pulse {
            animation: buttonPulseRed 0.3s ease;
        }

        .firstaid-btn {
            background: #cc0000;
            color: white;
        }

        .firstaid-btn i {
            color: white;
            font-size: 40px; width:40px; height: 40px;
        }

        .firstaid-btn.pulse {
            animation: buttonPulseRed 0.3s ease;
        }

        @keyframes buttonPulseRed {
            0% { transform: scale(1); background: #cc0000; }
            50% { transform: scale(1.1); background: #ff3333; }
            100% { transform: scale(1); background: #cc0000; }
        }
        
        .hidden-lost-child-btn {
            display: none !important;
        }
        
        .lost-child-select-item {
            display: flex;
            align-items: center;
            padding: 12px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #ecf0f1;
        }
        
        .lost-child-select-item:last-child {
            border-bottom: none;
        }
        
        .lost-child-select-item:hover {
            background: #f8f9fa;
        }
        
        .lost-child-select-item i {
            width: 35px;
            font-size: 22px;
            color: #cc0000;
        }
        
        .lost-child-select-content {
            flex: 1;
        }
        
        .lost-child-select-title {
            font-weight: 700;
            font-size: 15px;
            color: #1A1A1A;
            margin-bottom: 4px;
        }
        
        .lost-child-select-address {
            font-size: 11px;
            color: #666;
        }
        
        .lost-child-select-hours {
            font-size: 12px;
            color: #cc0000;
            font-weight: 500;
            margin-top: 3px;
        }
        
        .lost-child-select-hours i {
            font-size: 11px;
            width: auto;
            margin-right: 5px;
            color: #cc0000;
        }
        
        .lost-child-points-list {
            margin-top: 10px;
            border: 1px solid #ecf0f1;
            border-radius: 12px;
            overflow: hidden;
        }
