body.no-scroll {
    overflow: hidden;
}

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interactive-map-section {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-title {
    padding-bottom: 1rem;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    border: 0.5px solid rgba(0, 0, 0, 0.192);
    border-radius: 5px;
    box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.2);

    img {
        display: block;
        width: 100%;
        height: auto;
    }

}

.map-point {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10;
    color: white;
    border: none;
    width: 3%;
    height: 3%;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.map-point:hover {
    transform: scale(1.3);
}

.modal-link {
    display: inline-block;
    width: 132px;
    height: auto;
    margin: 20px 0;
    padding: 0.6rem;
    font-family: var(--text-font);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    color: var(--p-contrast);
    background-color: var(--button-default);
    border-radius: 5px;
    border: none;
    box-shadow: 2px 2px 6px 1px rgba(0, 0, 0, 0.7);
    vertical-align: middle;

    &:hover {
        background-color: var(--button-hover);
    }

    &:active {
        background-color: var(--button-onclick);
    }
}

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

.prehistory {
    background: red;
    border-radius: 50%;
}

.prehistory:hover {
    background: red;
}

.a02p {
    position: absolute;
    top: 59.28%;
    left: 13.96%;
}

.a03p {
    position: absolute;
    top: 35.27%;
    left: 23.34%;
}

.a04p {
    position: absolute;
    top: 46.88%;
    left: 34.27%;
}

.b01a {
    position: absolute;
    top: 38.28%;
    left: 87.11%;
}

.b02a {
    position: absolute;
    top: 43.95%;
    left: 68.36%;
}

.b03a {
    position: absolute;
    top: 66.33%;
    left: 83.20%;
}

.b04a {
    position: absolute;
    top: 52.54%;
    left: 85.04%;
}

.c01ma {
    position: absolute;
    top: 25.49%;
    left: 54.98%;
}

.c02ma {
    position: absolute;
    top: 31.54%;
    left: 72.07%;
}

.c03ma {
    position: absolute;
    top: 39.99%;
    left: 50.49%;
}

.d01f {
    position: absolute;
    top: 61.33%;
    left: 28.43%;
}

.d02f {
    position: absolute;
    top: 75.29%;
    left: 60.16%;
}

.d03f {
    position: absolute;
    top: 75.39%;
    left: 31.64%;
}

.antiquity {
    background: orange;
    border-radius: 15%;
    width: 3%;
    height: 3%;
}

.antiquity:hover {
    background: orange;
}

.prehistory,
.middle-age,
.futur {
    width: 3%;
    height: 3%;
}

.middle-age {
    width: 4%;
    height: 4%;
    background: rgb(107, 0, 128);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border-radius: 0;
}

.middle-age:hover {
    background: rgb(152, 3, 182);
}

.futur {
    width: 4%;
    height: 4%;
    padding-top: 12px;
    background: #22a1f5;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 0;
}

.futur:hover {
    background: #007acc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Flexbox pour centrer dans le viewport */
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    /* Permet le scroll si le contenu déborde */
    overflow-y: auto;
}


.modal-title {
    font-size: 1.5rem;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    /* Assure-toi que le contenu ne déborde pas */
    position: relative;
}

.modal-image {
    padding: 1rem 0;
    max-width: 100%;
    height: auto;
}

.modal-description {
    line-height: 1.5rem;
    font-size: 0.9rem;
}

.close {
    padding: 12px;
    float: right;
    cursor: pointer;
    font-size: 1.5em;
}

.parc-infos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 40px;
    padding: 80px 20px;
    background-color: #FFF3DF;
}

.style-parc-block {
    line-height: 1.5rem;
    margin: 0 3rem;

    h2 {
        text-align: center;
        padding-bottom: 1rem;
    }

    p {
        padding: 0.2rem 0;
    }
}

strong {
    font-weight: 600;
}

/*  RESPONSIVE LAYOUT */

/* Under 357px */
@media screen and (max-width: 357px) {
    h1 {
        font-size: clamp(1.3rem, 6vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.1rem, 5vw, 2.6rem);
    }

    .style-parc-block p {
        font-size: clamp(0.7rem, 0.5vw, 0.9rem);
    }

    .map-point {
        font-size: clamp(0.6rem, 1.8vw, 0.75rem);
        width: 5%;
        height: 5%;
    }

    .modal-title {
        font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    }

    .modal-description {
        font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    }
}

/* 358px to 409px */
@media screen and (min-width: 358px) and (max-width: 409px) {
    h1 {
        font-size: clamp(1.4rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.1rem, 5vw, 2.6rem);
    }

    .style-parc-block p {
        font-size: clamp(0.8rem, 0.5vw, 1rem);
    }

    .map-point {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        width: 5%;
        height: 5%;
    }
}

/* 410px to 1024px */
@media screen and (min-width: 410px) and (max-width: 1024px) {
    h1 {
        font-size: clamp(1.5rem, 5vw, 3.2rem);
    }
    
    h2 {
        font-size: clamp(1.1rem, 4vw, 2.3rem);
    }

    .style-parc-block p {
        font-size: clamp(0.9rem, 0.5vw, 1.1rem);
    }

    .map-point {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        width: 4%;
        height: 4%;
    }
}

/* 1025px to 1440px */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .style-parc-block p {
        font-size: clamp(0.6rem, 1.3vw, 1rem);
    }

    .map-point {
        font-size: clamp(0.9rem, 1.6vw, 1.1rem);
        width: 3.5%;
        height: 3.5%;
    }
}

/* 1441px to 2559px */
@media screen and (min-width: 1441px) and (max-width: 2559px) {
    h2 {
        font-size: clamp(1.2rem, 1.8vw, 2rem);
    }

    .style-parc-block p {
        font-size: clamp(1rem, 0.8vw, 1.4rem);
    }

    .map-point {
        font-size: clamp(1rem, 1.3vw, 1.2rem);
    }
}

/* Over 2560px */
@media screen and (min-width: 2560px) {
    h2 {
        font-size: clamp(1.4rem, 1.8vw, 2.6rem);
    }

    .style-parc-block p {
        font-size: clamp(1.1rem, 0.9vw, 1.6rem);
    }

    .map-point {
        font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    }
}