/***********************SECTION ETAPES**********************/
.etapes {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/carteCircuit.svg);
    background-repeat: no-repeat;
    background-position:
        10% center,
        center,
        center;
    background-size: auto 80%, cover;
}

.etapesMDG01_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MDG01_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMDG02_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MDG02_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMDG03_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MDG03_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMDG04_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MDG04_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesTK02_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/TK02_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesTK01_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/TK01_Map_2.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesCS01_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/CS01_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesCS02_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/CS02_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMS01_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MS01_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMS02_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MS02_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 120%, cover;
}

.etapesMS03_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MS03_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

.etapesMS04_map {
    background-color: var(--blancfiligrane);
    background-image: url(../img/product/MS04_Map.svg);
    background-repeat: no-repeat;
    background-size: auto 135%, cover;
}

#owl-endroits {
    position: relative;
    right: -400px;
    width: 100%;
}

#owl-endroits .item {
    margin: 3px;
}

#owl-endroits .item img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.zoom_map {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    top: -110px;
    left: 5px;
}

/* Style de la légende */
.zoom_map-legend {
    position: absolute;
    bottom: 2px; 
    left: 150px;
    transform: translateX(-50%); 
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 8px 12px; 
    border-radius: 5px; 
    font-size: 0.9rem; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    pointer-events: none; 
    font-family: var(--font-primary);
}

/* Afficher la légende au survol */
.zoom_map:hover .zoom_map-legend {
    opacity: 1;
}

.image-container {
    position: relative;
    /* Assure le positionnement de l'overlay */
    overflow: hidden;
    /* Empêche le dépassement des bordures */
    height: 285px;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--blanctexte);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 9999;
    margin: 20px;
    box-sizing: border-box;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.image-container:hover .overlay {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.overlay h3 {
    font-weight: bold;
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    color: var(--blanctexte);
    padding-bottom: 5px;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.overlay p {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--blanctexte);
    margin-top: 5px;
    padding: 0 20px;
}

.site {
    margin-right: 20px;
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    color: var(--bleumarine);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: -100px;
}

.picto-endroits {
    width: 20px !important;
    height: 20px !important;
    margin-right: 5px !important;
    margin-bottom: 5px !important;
}

.details-site {
    height: 24px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 400;
    color: var(--blanctexte);
    font-size: 13px;
    letter-spacing: 2px;
    line-height: normal;
    margin: 0 !important;
    text-transform: uppercase;
}

.owl-theme .owl-controls {
    text-align: left !important;
}

@media screen and (max-width: 375px) {
    #owl-endroits {
        right: 0;
    }

    .owl-theme .owl-controls {
        text-align: center !important;
    }

}

@media screen and (min-width: 376px) and (max-width: 768px) {
    #owl-endroits {
        right: 0;
    }
    .site {
        top: -75px;
    }

    .owl-theme .owl-controls {
        text-align: center !important;
    }

}

@media screen and (min-width: 769px) and (max-width: 1119px) {
    #owl-endroits {
        right: 0;
    }

    .owl-theme .owl-controls {
        text-align: center !important;
    }

}

/* Conteneur dans la modal */
.zoomable-container {
    overflow: hidden;
    text-align: center;
    position: relative;
}

/* Image dans la modal */
.zoomable-image {
    width: 100%;
    max-width: 100%;
    /* Empêche le débordement */
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable-image:hover {
    transform: scale(1.2);
    /* Applique un zoom fluide au survol */
    cursor: zoom-out;
}

.modal-header-zoom {
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start; 
    font-family: var(--font-primary);
}

.modal-title-zoom {
    font-size: 1.25rem; 
    font-weight: bold; 
    color: #333; 
    display: block; 
    margin: 0; 
}

.modal-subtitle-zoom {
    font-size: 0.9rem; 
    color: #666; 
    display: block; 
    margin-top: 4px; 
}
.modal-header-close{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
}
.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center!important;
    background-color: #f8f9fa; 
    border-bottom: 1px solid #ddd; 

}