/* Styles pour le modal de récapitulatif de carte */
.map-summary-panel-mobile {
    position: absolute;
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh; /* Hauteur moins le header */
    border-radius: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    transition: all .3s ease;
    padding-top: calc(var(--header-height) + var(--main-bar-height)); /* Laisser de l'espace pour le header */
}

/* États du panneau avec animations */
.map-summary-panel-mobile.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-summary-panel-mobile.visible {
    opacity: 1;
    pointer-events: auto;
}

.map-summary-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
    /* font-family: 'Inter', sans-serif; */
    margin: 10px;
}

/* Wrapper spécifique pour le panel mobile */
.map-summary-panel-mobile .map-summary-wrapper {
    padding: 10px;
    padding-bottom: 50px; /* Marge en bas pour permettre le scroll complet */
    height: 100%; /* Utiliser toute la hauteur disponible */
    max-height: none; /* Pas de limite de hauteur pour le mode mobile */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
    box-sizing: border-box; /* Inclure le padding dans la hauteur */
}

.map-summary-wrapper::-webkit-scrollbar {
    width: 6px;
}

.map-summary-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.map-summary-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.map-summary-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Sections principales */
.map-summary-section {
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-summary-section:last-child {
    margin-bottom: 0;
    margin-top: -25px;
}

/* Section active (accordéon ouvert) */
.map-summary-section.active {
    border-left: 4px solid var(--secondary-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    overflow: visible;
}

.map-summary-section h3 {
    margin: 0;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.map-summary-section h3:hover {
    background-color: var(--accent-color-clear);
    padding: 6px;
}

.map-summary-section.active h3 {
    background-color: var(--accent-color-clear);
    padding: 6px;
    outline: 0px solid var(--secondary-color);
    outline-offset: 0;
    border-left: 3px solid var(--secondary-color);
}


.map-summary-section.active h3:hover {
    background-color: var(--accent-color-clear);
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
}

.map-summary-section h3::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--secondary-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.map-summary-section:hover h3::after {
    right: 10px;
}

.map-summary-section.active h3::after {
    right: 10px;
}

.map-summary-section h3::before {
    content: "details";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 8px;
    text-align: right;
    color: var(--secondary-color);
}

.map-summary-section:hover h3::before {
    opacity: 1;
    right: 25px;
}

.map-summary-section h3.section-title.expanded::before {
    opacity: 0;
    right: 0;
}

.map-summary-section h3.expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

.map-summary-section h3 i {
    color: var(--secondary-color);
    width: 16px;
}

.map-summary-section h4 {
    margin: 6px 0 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-summary-section h4 i {
    color: #6c757d;
    width: 12px;
}

/* Contenu des sections */
.map-summary-content {
    color: #495057;
    transition: max-height 0.3s ease;
    overflow: visible;
}

/* Contenu toujours visible (hors accordéon) */
.map-summary-section .section-persistent {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.map-summary-section.active .section-persistent {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Lignes d'information */
.info-row {
    display: flex;
    flex: 1;
}

.info-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #e9ecef;
    min-width: 250px;
    max-width: 400px;
    border-radius: 6px;
    background: white;
    box-shadow: -4px 4px 0 #e9ecef;
    outline: 1px solid #e9ecef;
    margin: 3px 2px;
    transition: transform .2s ease;
    text-wrap: nowrap;
}

.info-row-content:hover {
    transform: scale(1.01);
}

.info-row-content:last-child {
    border-bottom: none;
}

.info-row-content .label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #495057;
    margin-right: 10px;
    padding-right: 10px;
}

.info-row-content .label i {
    color: #6c757d;
    width: 14px;
}

.info-row-content .value,
.info-row-content select.site-selector,
.info-row-content select.date-selector,
.info-row-content select.stream-selector {
    font-weight: 600;
    color: #2c3e50;
    background-color: rgba(135, 135, 135, 0.05);
    border-radius: 5px;
    padding: 3px 5px;
    margin: 0;
    transition: all .2s ease;
    transform: scale(1);
    font-family: var(--font-title);
}

.info-row-content:hover .value,
.info-row-content:hover select.site-selector,
.info-row-content:hover select.date-selector,
.info-row-content:hover select.stream-selector,
.info-row-content:hover select.site-selector>option,
.info-row-content:hover select.date-selector>option,
.info-row-content:hover select.stream-selector>option {
    transform: scale(1.05);
}

.info-row-content select.site-selector:hover,
.info-row-content select.date-selector:hover,
.info-row-content select.stream-selector:hover {
    background-color: rgba(135, 135, 135, 0.1);
}

.info-row-content select.site-selector>option,
.info-row-content select.date-selector>option,
.info-row-content select.stream-selector>option {
    font-family: var(--font-main);
}

.map-summary-section .info-row-content {
    width: 100%;
    flex: 1;
}

/* Groupes et calques */
.group-info-context {
    margin-bottom: 5px;
    padding: 0px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.group-info-context:last-child {
    margin-bottom: 0;
}

.layers-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.layers-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: 12px;
    color: #6c757d;
    border-bottom: 1px solid #f8f9fa;
}

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

.layer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.layer-info i {
    width: 12px;
    font-size: 10px;
}

.layer-info i.visible {
    color: #28a745;
}

.layer-info i.hidden {
    color: var(--error-color);
}

.layer-name {
    font-weight: 500;
    color: #495057;
}

.layer-type {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.layer-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.layer-count {
    color: #adb5bd;
    font-style: italic;
}

.layer-opacity {
    color: #007bff;
    font-weight: 500;
}

/* Informations sur les filtres */
.filter-info {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Dates */
.dates-list {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    overflow: visible;
}

/* Animation de mise en évidence des dates */
@keyframes dateHighlight {
    0% {
        outline: 2px solid transparent;
        outline-offset: -2px;
        transform: scale(1);
    }

    25% {
        outline: 2px solid var(--accent-color);
        outline-offset: -2px;
        transform: scale(1.01);
    }

    50% {
        outline: 2px solid transparent;
        outline-offset: -2px;
        transform: scale(1);
    }

    75% {
        outline: 2px solid var(--accent-color);
        outline-offset: -2px;
        transform: scale(1.01);
    }

    100% {
        outline: 2px solid transparent;
        outline-offset: -2px;
        transform: scale(1);
    }
}

.date-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    flex-wrap: nowrap;
    flex-direction: column;
    min-height: 45px;
}

.date-item.alteration {
    background-color: rgba(135, 135, 135, 0.1);
    border-radius: 15px;
    position: relative;
    outline: 2px solid white;
    outline-offset: -4px;
    transition: all .3s ease;
}

.date-item.alteration:hover {
    background-color: rgba(135, 135, 135, 0.2);
    outline-color: var(--accent-color-select);
    outline-offset: -0px;
}

.date-item.alteration.highlight-animation {
    animation: dateHighlight 1.2s ease-in-out;
}

.date-item-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.date-item:hover {
    background-color: #f8f9fa;
}

.date-value {
    font-weight: 500;
    color: #6c757d;
}

.date-value.current {
    color: #2980b9;
    font-weight: bold;
}

.date-value.alteration {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none !important;
}

.date-value.clickable {
    cursor: pointer;
}

.date-streams {
    font-size: 10px;
    color: #6c757d;
    font-style: italic;
    height: 15px;
    margin-right: 5px;
    flex: 1;
}

.date-value.alteration .date-streams {
    font-weight: bold;
}

.date-value.alteration i.current-indicator {
    margin-left: 0;
    padding: 0;
    top: 25%;
    left: -18px;
    height: 20px;
    width: 25px;
    line-height: 10px;
    display: flex;
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 2px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    text-align: left;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    border-left: 5px solid var(--primary-color);
    transition: all .5s ease;
}

.date-item .calculation-details {
    width: 100%;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
}

.date-item .calculation-details.expanded {
    max-height: 10000px;
    opacity: 1;
}

.calculation-details {
    display: none;
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.calculation-details-title {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 6px;
}

i.fa-solid.fa-layer-group {
    margin-right: 3px;
}

.calculation-toggle {
    margin-left: 8px;
    font-size: 0.8em;
    color: #666;
}

.alteration-count {
    font-size: 0.8em;
    margin-left: 8px;
}

.alteration-item {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.alteration-item>i {
    align-self: flex-end;
}

i.fa-solid.fa-arrow-turn-down-right {
    margin-right: 5px;
}

.map-summary-section:not(.active) .date-value.alteration i.current-indicator {
    opacity: 0;
    transform: translateY(-50px);
    width: 0;
}

.map-summary-section.active .date-value.alteration i.current-indicator {
    opacity: 1;
    transform: translateY(0px);
}

.more-dates {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    padding: 8px;
}

/* Statistiques */
.map-summary-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.map-summary-section .map-summary-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.map-summary-section .map-summary-stat-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.map-summary-section .stat-icon {
    display: flex;
    color: var(--accent-color-focus);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    margin: -5px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.map-summary-section .map-summary-stat-item:hover .stat-icon {
    background-color: rgba(1, 42, 83, 0.05);
}

.stat-content {
    flex: 1;
}

.map-summary-section .stat-value {
    font-size: 14px !important;
    line-height: 1;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
    line-height: 1.2;
}

.map-summary-section .stat-label {
    font-size: 9px !important;
    margin-top: 1px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Messages d'absence de données */
.no-data {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    justify-content: center;
}

.no-data i {
    color: #adb5bd;
}

/* Message d'absence d'altérations */
.no-alterations-message {
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

/* NOUVEAU : Styles pour les graphiques de calculs */
.calculation-charts-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
}


.calculation-chart {
    margin-bottom: 20px;
    padding: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 6px;
    box-shadow: none;
}

.calculation-chart::before {
    content: "\f021";
    /* FontAwesome refresh icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -12px;
    right: 8px;
    font-size: 14px;
    color: var(--accent-color);
    z-index: 10;
    animation: chartRefresh 1s ease-out;
    opacity: 0;
}

@keyframes chartRefresh {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: rotate(180deg) scale(1.2);
    }

    80% {
        opacity: 1;
        transform: rotate(360deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: rotate(360deg) scale(0.8);
    }
}

.calculation-chart:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e9ecef;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.chart-bars {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.calculation-chart:hover .chart-bars {
    height: 20px;
    transform: scaleY(1.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.chart-bar {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.chart-bar:last-child {
    border-right: none;
}

.chart-bar:hover {
    filter: brightness(1.2);
    transform: scaleY(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}



/* Responsive pour les graphiques */
@media (max-width: 768px) {
    .chart-legend span {
        display: block;
        margin-bottom: 6px;
    }

    .chart-bars {
        height: 25px;
    }
}

/* Section des éléments masqués */
.hidden-info {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.layer-stats {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.hidden-layers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hidden-layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.hidden-layer-item:hover {
    border-color: var(--error-color);
    background: #fff5f5;
}

.hidden-layer-item.hover-active {
    background-color: rgba(229, 57, 53, 0.1);
    border-color: #e53935;
}

.hidden-layer-item .layer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hidden-layer-item .layer-info i {
    color: var(--error-color);
    width: 12px;
    font-size: 10px;
}

.hidden-layer-item .layer-name {
    font-weight: 500;
    color: #495057;
}


/* Nouvelle classe spécifique pour le contrôle map-summary */
.map-summary-hidden-count {
    font-size: 12px;
    color: var(--error-color);
    font-weight: 600;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .info-row-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-row-content .value {
        margin-left: 20px;
    }
}

/* Animation d'entrée */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.map-summary-wrapper {
    animation: slideInFromTop 0.3s ease-out;
}

/* Indicateur de fermeture automatique */
.auto-close-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Contrôle de récapitulatif de carte */
.map-summary-control {
    position: relative;
    z-index: 1000;
}

/* Bouton de basculement - Miroir vertical du leaflet-verticaltop-wrapper */
.map-summary-toggle {
    width: 50px;
    height: 50px;
    background-color: var(--tertiary-color);
    border: none;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    outline: 2px solid #3c8dbc;
    outline-offset: 0px;
    border-right: 5px solid #3c8dbc;
    border-left: 5px solid #3c8dbc;
    opacity: 0.8;
    position: relative;
}

.map-summary-toggle:hover,
.map-summary-toggle:focus,
.map-summary-toggle:active {
    opacity: 1;
    outline: 2px solid #3c8dbc !important;
    outline-offset: 0px;
}

.map-summary-toggle i {
    transform: scale(0.8);
    transition: all 0.2s ease;
    color: white;
}

.map-summary-toggle:hover i {
    transform: scale(1);
    color: black;
}


/* Effet miroir du leaflet-verticaltop-wrapper */
.map-summary-toggle::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 50%;
    background-color: transparent;
    width: 50px;
    height: 50px;
    border-right: 10px solid var(--secondary-color);
    z-index: 1;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Panneau de contenu */

/* État focus pour le panneau - DÉSACTIVÉ pour mode fullscreen */
/* .leaflet-verticalcenter .map-summary-panel-mobile:focus {
    outline: 2px solid var(--accent-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transform: scale(1) translateX(0);
    left: 30px;
    top: 0;
} */

/* .leaflet-verticalcenter .map-summary-panel-mobile:focus-visible {
    outline: 2px solid var(--accent-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transform: scale(1) translateX(0);
    left: 30px;
    top: 0;
} */

/* Classe pour l'état focus géré par JavaScript - DÉSACTIVÉE */
/* .leaflet-verticalcenter .map-summary-panel-mobile.focused {
    outline: 2px solid var(--accent-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transform: scale(1) translateX(0);
    left: 30px;
    top: 0;
} */

/* .leaflet-verticalcenter.hover-effect .map-summary-panel-mobile.focused {
    transform: scale(1) translateX(0);
    outline: 2px solid var(--accent-color-focus);
    outline-offset: -2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    left: 30px;
    top: 0;
} */

/* Géré par JavaScript avec délai - DÉSACTIVÉ pour mode fullscreen */
/* .leaflet-verticalcenter.hover-effect .map-summary-panel-mobile-mobile {
    transform: scale(1) translateX(0);
    left: 30px;
    top: 0;
} */

/* .leaflet-verticalcenter.hover-effect .map-summary-panel-mobile:focus {
    transform: scale(1) translateX(0);
    outline: 2px solid var(--accent-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    left: 30px;
    top: 0;
} */

/* .leaflet-verticalcenter.hover-effect .map-summary-panel-mobile:focus-visible {
    transform: scale(1) translateX(0);
    left: 30px;
    top: 0;
    outline: 2px solid var(--accent-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
} */

.leaflet-verticalcenter .leaflet-control {
    margin: 0px !important;
}


/* Réutiliser les styles existants du modal */

/* Bouton de fermeture - Style DA */
.map-summary-close {
    position: fixed;
    top: 70px; /* Dans la zone du header */
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    z-index: 10001;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    background: var(--accent-color-clear);
    box-shadow: 0 4px 12px rgba(1, 42, 83, 0.2);
    backdrop-filter: blur(10px);
    border-bottom-right-radius: 30px;
    border-top-left-radius: 30px;
}

.map-summary-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(1, 42, 83, 0.3);
    border-color: var(--primary-color);
    color: white;
}

.map-summary-close:active {
    transform: scale(0.95);
    background: var(--accent-color-hover);
}

.map-summary-close i {
    transition: all 0.3s ease;
    font-weight: bold;
}

.map-summary-close:hover i {
    transform: scale(1.2);
    color: #fff;
}

/* Animation de pulsation pour attirer l'attention - DÉSACTIVÉE */
/* .map-summary-close {
    animation: pulse-attention 2s infinite;
} */

@keyframes pulse-attention {
    0% {
        box-shadow: 0 4px 12px rgba(1, 42, 83, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(1, 42, 83, 0.4), 0 0 0 8px rgba(96, 168, 210, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(1, 42, 83, 0.2);
    }
}

/* Poignée de redimensionnement - DÉSACTIVÉE */
.map-summary-resize-handle {
    display: none; /* Désactivé pour le mode plein écran */
    /* position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(0, 0, 0, 0.1);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 10px 0;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 10;
    opacity: 0; */
    /* Au-dessus de la scrollbar */
}

/* Styles de redimensionnement - DÉSACTIVÉS */
.map-summary-panel-mobile.visible.focused .map-summary-resize-handle {
    display: none; /* Désactivé */
    /* width: 15px;
    opacity: 1; */
    /* Plus large pour être accessible */
}

.map-summary-panel-mobile.visible:hover .map-summary-resize-handle {
    display: none; /* Désactivé */
    /* width: 15px;
    opacity: 1; */
    /* Plus large pour être accessible */
}

.map-summary-resize-handle:hover {
    display: none; /* Désactivé */
    /* background: rgba(0, 0, 0, 0.2); */
}

.map-summary-resize-handle i {
    display: none; /* Désactivé */
    /* font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg); */
}

/* .leaflet-verticalcenter .map-summary-panel-mobile.resizing {
    user-select: none;
    transition: none !important;
} */

.map-summary-panel-mobile.resizing .map-summary-resize-handle {
    display: none; /* Désactivé */
    /* background: rgba(0, 123, 255, 0.3); */
}

/* Styles pour les éléments internes du récapitulatif - VERSION MOBILE COMPACTE */
.map-summary-panel-mobile h1,
.map-summary-panel-mobile h2,
.map-summary-panel-mobile h3 {
    font-family: var(--font-title);
    text-align: left;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #777;
    margin: 5px 0;
}

.map-summary-panel-mobile .section {
    margin-bottom: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.map-summary-panel-mobile .section-title {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.65rem;
}

.map-summary-panel-mobile .map-summary-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 0.5rem;
    max-width: 200px;
}

.map-summary-panel-mobile .map-summary-stat-item .stat-icon {
    transform: scale(0.5);
    margin-left: 0;
}

.map-summary-panel-mobile .stat-value {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.5rem;
}

.map-summary-panel-mobile .layer-item {
    padding: 1px 0;
    font-size: 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.map-summary-panel-mobile .layer-item:last-child {
    border-bottom: none;
}

/* Responsive */

/* Timer de flash qui suit le curseur */
.flash-timer {
    position: fixed;
    left: var(--mouse-x, 0px);
    top: var(--mouse-y, 0px);
    z-index: 10000;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 400;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Largeur fixe pour éviter le mouvement de l'œil */
    width: 50px;
    height: 30px;
}

.flash-timer .timer-content {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 35px;
    justify-content: flex-start;
}

.flash-timer i {
    font-size: 10px;
    opacity: 0.8;
}

.flash-timer .eye-icon {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.8;
}

/* Conteneur des popups dans la carte */
.calculation-popups-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.calculation-popups-container .calculation-details-popup {
    pointer-events: auto;
}


.calculation-chart h5 {
    margin: 0 0 2px 0;
    color: #495057;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calculation-chart:hover h5 {
    color: #2c3e50;
}

.chart-bar-segment {
    height: 100%;
    float: left;
    transition: opacity 0.3s;
    position: relative;
}

.chart-bar-segment:hover {
    opacity: 0.8;
}


.legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Styles pour les messages d'information */
.calculations-info {
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.calculations-info.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.calculations-info.warning {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Styles pour les messages "aucune donnée" */
.no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

.no-data i {
    margin-right: 5px;
}

/* Styles pour les sections de calculs */
.calculation-charts-section h4 {
    margin-bottom: 15px;
    margin-top: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.calculation-charts-section h4 i {
    margin-right: 8px;
}

/* Styles pour le bouton de redirection des dates */
.date-redirect-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-size: 8px;
    margin-left: 8px;
    position: relative;
    margin-right: auto;
}

.date-redirect-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    transform: scale(1.05);
    border: 1px solid white;
}

.date-redirect-btn:focus {
    outline: 1px solid transparent;
    outline-offset: 1px;
}

/* Animation d'apparition du bouton */
.date-item:hover .date-redirect-btn,
.date-item:focus-within .date-redirect-btn {
    opacity: 1;
    visibility: visible;
}

/* ===== STYLES POUR LES STREAMS (VERSION MOBILE) ===== */

.stream-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    flex-wrap: nowrap;
    flex-direction: column;
    min-height: 45px;
}

.stream-item.alteration {
    background-color: rgba(135, 135, 135, 0.1);
    border-radius: 15px;
    position: relative;
    outline: 2px solid white;
    outline-offset: -4px;
    transition: all .3s ease;
}

.stream-item.alteration:hover {
    background-color: rgba(135, 135, 135, 0.2);
    outline-color: var(--accent-color-select);
    outline-offset: -0px;
}

.stream-item.alteration.highlight-animation {
    animation: dateHighlight 1.2s ease-in-out;
}

.stream-item-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.stream-item:hover {
    background-color: #f8f9fa;
}

.stream-value {
    font-weight: 500;
    color: #6c757d;
}

.stream-value.current {
    color: #2980b9;
    font-weight: bold;
}

.stream-value.alteration {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none !important;
}

.stream-value.clickable {
    cursor: pointer;
}

.stream-calculations {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stream-value.alteration .stream-date {
    font-weight: bold;
}

.stream-value.alteration i.current-indicator {
    margin-left: 0;
    padding: 0;
    top: 25%;
    left: -18px;
    height: 20px;
    width: 25px;
    line-height: 10px;
    display: flex;
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 2px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    text-align: left;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    border-left: 5px solid var(--primary-color);
    transition: all .5s ease;
}

.stream-item .calculation-details {
    width: 100%;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
}

.stream-item .calculation-details.expanded {
    max-height: 10000px;
    opacity: 1;
}

.stream-date {
    font-size: 10px;
    color: #6c757d;
    font-style: italic;
    height: 15px;
    margin-right: 5px;
    flex: 1;
    justify-content: flex-end;
}

.stream-redirect-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-size: 8px;
    margin-left: 8px;
    position: relative;
    margin-right: auto;
}

.stream-redirect-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    transform: scale(1.05);
    border: 1px solid white;
}

.stream-redirect-btn:focus {
    outline: 1px solid transparent;
    outline-offset: 1px;
}

/* Animation d'apparition du bouton stream */
.stream-item:hover .stream-redirect-btn,
.stream-item:focus-within .stream-redirect-btn {
    opacity: 1;
    visibility: visible;
}

.map-summary-section:not(.active) .stream-value.alteration i.current-indicator {
    opacity: 0;
    transform: translateY(-50px);
    width: 0;
}

.map-summary-section.active .stream-value.alteration i.current-indicator {
    opacity: 1;
    transform: translateY(0px);
}

/* Responsive pour le bouton de redirection */
@media (max-width: 768px) {
    .date-redirect-btn {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }


}

/* Styles pour le chart détaillé des scores de ruisseaux */
/* Styles génériques pour les barres détaillées */
.chart-detailed-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.chart-bar-container {
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    transition: all 0.5 ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    background: transparent;
    border: 1px solid transparent;
    max-height: 20px;
}

/* .calculation-chart:hover .chart-bar-container {
    max-height: 20px;
} */

.chart-bar-container:hover {
    background: rgba(248, 249, 250, 0.8);
    border-color: #e9ecef;
    transform: translateX(2px);
}

.chart-name {
    min-width: 100px;
    font-weight: 500;
    font-size: 0.8em;
    color: #495057;
    transition: all 0.3s ease;
}

.chart-bar-container:hover .chart-name {
    /* font-weight: 600; */
    color: #2c3e50;
}

.chart-bar {
    flex: 1;
    height: 16px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset -3px 3px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 150px;
    transition: all 0.3s ease;

    /* Motif discret de rayures diagonales 1px toutes les 11px (10px d'écart) */
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.06) 0,
            rgba(0, 0, 0, 0.06) 1px,
            transparent 1px,
            transparent 11px);
    background-attachment: local;
    background-repeat: repeat;
    background-position: 0 0;
    /* Animation subtile pour effet de rotation/fil */
    animation: chart-bar-diagonal-pan 12s linear infinite;
    will-change: background-position;
}

.chart-bar-container:hover .chart-bar {
    height: 20px;
    transform: scaleY(1.1);
    box-shadow: inset -5px 5px 0px rgba(0, 0, 0, 0.15);
}

.chart-bar-segment {
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    min-width: 2px;
}

.chart-bar-segment:hover {
    filter: brightness(1.2);
    transform: scaleY(1.1);
}

.stream-hydro-segment {
    background-color: rgb(66, 133, 244) !important;
}

.stream-risk-segment {
    background-color: rgb(234, 67, 53) !important;
}

.stream-avg-segment {
    background-color: rgb(52, 168, 83) !important;
}

.chart-total-score {
    min-width: 50px;
    text-align: right;
    font-weight: 500;
    font-size: 0.75em;
    color: #6c757d;
    padding: 1px 4px;
    background: transparent;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.chart-bar-container:hover .chart-total-score {
    font-weight: 600;
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
    border-color: #dee2e6;
}

/* Style générique pour les légendes */

.chart-legend {
    font-size: 10px;
    color: #6c757d;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 0px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 4px;
    border: 1px solid #e9ecef;
    justify-content: center;
}

.calculation-chart:hover .chart-legend {
    opacity: 1;
}

.calculation-chart .chart-legend.collapsed {
    max-height: 0;
    margin: 0;
    padding: 0;
}

.calculation-chart .chart-legend.expanded {
    max-height: 1000vh;
    margin-top: 2px;
    padding: 2px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    margin-bottom: 3px;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.chart-legend span:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: scale(1.05);
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.chart-legend .color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #dee2e6;
}

.chart-legend .legend-label {
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 500;
}

/* Style générique pour les messages "Aucune donnée" */
.chart-no-data {
    flex: 1;
    text-align: center;
    font-size: 0.75em;
    color: #adb5bd;
    font-style: italic;
    padding: 8px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 4px;
    border: 1px dashed #dee2e6;
    margin-left: 8px;
}

/* Styles pour les tooltips des segments de ruisseaux */
.stream-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
    animation: tooltipFadeIn 0.2s ease-out;
}

/* Flèche uniquement pour les tooltips de pie charts */
.pie-chart-tooltip::after {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.9);
}

.stream-tooltip .tooltip-header {
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: capitalize;
}

.stream-tooltip .tooltip-content {
    color: #e9ecef;
}

.stream-tooltip .tooltip-content div {
    margin: 2px 0;
}

.stream-tooltip .tooltip-label {
    text-transform: capitalize;
    color: #e9ecef;
}

.stream-tooltip .tooltip-value {
    text-transform: none;
    color: #fff;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-100%) scale(1);
    }
}

/* Styles pour le chart détaillé des aléas d'effondrement */
/* Styles spécifiques pour les probabilités */
.detailed-probabilities-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.probability-collapse-segment {
    background-color: rgb(220, 53, 69) !important;
}

.probability-length-segment {
    background-color: rgb(255, 193, 7) !important;
}

.probability-total-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 500;
    font-size: 0.75em;
    color: #6c757d;
    padding: 1px 4px;
    background: transparent;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.chart-bar-container:hover .probability-total-percentage {
    font-weight: 600;
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
    border-color: #dee2e6;
}





/* Styles pour les tooltips des segments d'aléas */
.probability-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
    animation: tooltipFadeIn 0.2s ease-out;
}

.probability-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.probability-tooltip .tooltip-header {
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: capitalize;
}

.probability-tooltip .tooltip-content {
    color: #e9ecef;
}

.probability-tooltip .tooltip-content div {
    margin: 2px 0;
}

.probability-tooltip .tooltip-label {
    text-transform: capitalize;
    color: #e9ecef;
}

.probability-tooltip .tooltip-value {
    text-transform: none;
    color: #fff;
}

/* Styles spécifiques pour les probabilités */
.probability-details-content .detailed-probabilities-bars {
    margin: 0;
}

/* Styles spécifiques pour les risques */
.risk-details-content .detailed-risk-bars {
    margin: 0;
}

/* Styles spécifiques pour les risques */
.detailed-risk-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-info {
    display: flex;
    gap: 8px;
    font-size: 0.75em;
    color: #6c757d;
    min-width: 200px;
}

.risk-count {
    font-weight: 500;
    color: #495057;
}

.risk-length {
    color: #6c757d;
}

.risk-avg {
    font-weight: 500;
    color: #007bff;
}

/* Styles spécifiques pour les travaux */
.work-length {
    color: #28a745;
    font-weight: 500;
}

.work-cost {
    color: #007bff;
    font-weight: 500;
}

.work-completion {
    color: #6c757d;
    font-style: italic;
}

.work-risk {
    color: var(--error-color);
    font-weight: 500;
    font-size: 0.85em;
}

.work-types-count {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85em;
}

/* === Styles pour les placeholders de sections === */
.map-summary-section.placeholder {
    opacity: 0.8;
    border: 2px dashed #ddd;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.map-summary-section.placeholder:hover {
    opacity: 1;
    border-color: #ccc;
}

.section-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--primary-color);
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
}

.section-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 8px;
    margin: 10px;
}

.error-icon {
    margin-bottom: 10px;
    font-size: 24px;
}

.error-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-details {
    font-size: 12px;
    color: #666;
    max-width: 300px;
    word-wrap: break-word;
}

/* Styles pour les tableaux de hover des indicateurs de calcul */
.calculation-hover-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.calculation-hover-header h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.calculation-hover-subtitle {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.calculation-hover-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.calculation-hover-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.calculation-hover-table td {
    padding: 6px;
    font-size: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.calculation-hover-table .stream-name {
    color: #333;
    font-weight: 500;
}

.calculation-hover-table .alteration-count {
    color: #007bff;
    font-weight: 600;
    text-align: right;
}

.calculation-hover-table .total-row {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    font-weight: 600;
}

.calculation-hover-table .total-row .total-label {
    color: #495057;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculation-hover-table .total-row .total-count {
    color: #28a745;
    font-size: 13px;
    text-align: right;
}

/* Animation pour l'apparition du hover */
.calculation-hover-content {
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* ===== LOGIQUE RESPONSIVE ===== */

/* Mode Desktop : Désactiver le map-summary-control, activer #main-fields */
@media (min-width: 768px) {
    .map-summary-control {
        display: none !important;
    }
    
    #hd.section-map #main-fields {
        display: block !important;
    }
}

/* Mode Mobile : Activer le map-summary-control, désactiver #main-fields */
@media (max-width: 767px) {
    .map-summary-control {
        display: block !important;
    }
    
    #hd.section-map #main-fields {
        display: none !important;
    }
}