body {
    margin: 0px;
   
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
}

main {
    margin-right: 50px;
    margin-left: 50px;
}

section {
    background-image: url(image/image_pr_contact/ISA.jpg);
    background-size: cover;
    background-blend-mode: soft-light;
    background-color: rgb(219, 215, 210, 0.9);
    border-radius: 10px;
    font-size: 16px;
    text-align: justify;
    padding: 40px 0px 40px 0px;
    margin-top: 100px;
    min-width: 1300px;
}

section span {
    font-weight: bold;
}

section p .frenchflag {
    height: 20px;
}

.top {
    margin-top: 50px;
    margin-bottom: 70px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.748);
    border: px solid rgb(0, 0, 0);
    border-radius: 10px;
    width: 80%;
}

.map_et_form {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    margin-bottom: 50px;
}

iframe {
    height: 550px;
    width: 600px;
    min-width: 300px;
    margin-right: 30px;
}

form {
    background-color: rgba(255, 255, 255, 0.748);
    border-radius: 10px;
    height: 550px;
    width: 800px;
    border: 2px solid rgb(53, 59, 50);
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-style:groove;
    color: rgb(53, 59, 50);
}

form h1 {
    font-size: 20px;
    margin-bottom: 18px;
    text-align: center;
    color: rgb(29, 61, 15);
}

form .corps-formulaire {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}

form .corps-formulaire .groupe {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    margin-left: 5px;
    margin-right: 5px;
}

form .corps-formulaire .gauche .groupe input {
    margin-top: 5px;
    padding: 10px;
    border: 2px solid black;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.576);
    font-size: 16px;
}

form .corps-formulaire .droite {
    margin-left: 30px;
}

form .corps-formulaire .droite .groupe {
    height: 100%;
}

form .corps-formulaire .droite .groupe textarea {
    margin-top: 5px;
    padding: 10px;
    border: 2px solid black;
    border-radius: 3px;
    resize: none;
    height: 260px;
    background-color: rgba(255, 255, 255, 0.409);
    width: 420px;
    font-size: 18px;
}

form label {
    font-size: 16px;
}

form input.answer {
    padding: 10px;
    border: 2px solid black;
    border-radius: 3px;
    background-color: rgba(133, 133, 133, 0.409);
    font-size: 18px;
    width: 50px;
}

input:focus, textarea:focus {
    outline: 2px solid rgba(138, 20, 46, 0.775);
}

form .pied-formulaire button {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid black;
    font-size: 16px;
}

main .slide-container {
    width: 50%;
    margin: 70px auto;
    position: relative; /* marge verticale 120px, horizontale auto pour centrer */
}

main .slide-container .prev,
main .slide-container .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: black;
    background-color: rgba(222, 184, 135, 0.524);
}

main .slide-container .prev {
    left: 15px;
}

main .slide-container .next {
    right: 15px;
}

main .slide-container .slide-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;  
}

main .drosophila {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transition: 1s;
    z-index: 11;
    rotate: -20deg;
    translate: 50%;
}


@media(max-width:1024px) {

    main {
        margin-right: 00px;
        margin-left: 00px;
    }

    section {
        text-align: justify;
        padding: 20px 0px 20px 0px;
        margin-top: 50px;
        min-width: 0px;
    }

    section p .frenchflag {
        height: 18px;
    }

    .top {
        margin-top: 30px;
        margin-bottom: 30px;
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: justify;
        width: 68%;
    }

    .map_et_form {
        flex-wrap: wrap;
        justify-content: none;
        margin-bottom: 60px;
    }

    iframe {
        height: 548px;
        width: 800px;
        min-width: 0px;
        margin-right: 0px;
    }

    form {
        height: auto; /* Laisse la hauteur s'adapter */
        width: 90%;
        max-width: 800px;
        padding: 20px;
       
        box-sizing: border-box;
        margin-top: 30px;
        margin-bottom: -30px;
    }

    form h1 {
        font-size: 22px;
        margin-bottom: 15px;
        padding-left:20px ;
        padding-right:20px ;
    }

        form .corps-formulaire {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
            padding-left: 20px;
            padding-right: 30px;
        }
    
        form .corps-formulaire .gauche,
        form .corps-formulaire .droite {
            width: 100%;
            margin: 0;
        }
    
        form .corps-formulaire .gauche .groupe,
        form .corps-formulaire .droite .groupe {
            width: 100%;
        }
    
        form .corps-formulaire .gauche .groupe input,
        form .corps-formulaire .droite .groupe textarea {
            width: 100%;
            box-sizing: border-box;
        }
    
        form .corps-formulaire .droite .groupe textarea {
            height: 160px;
        }
    
        form .pied-formulaire {
            width: 100%;
            text-align: center;
            margin-top: 20px;
        }
    
    label {
        font-size: 20px;
    }

    main .slide-container {
        width: 700px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    main .slide-container .slide-img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media(max-width:860px) {

    section {
        background-color: rgb(255, 255, 255);
        text-align: justify;
        padding: 0px 25px 0px 25px;
        font-size: 16px;
    }

    .top {
        margin-top: 0px;
        margin-bottom: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
        padding-right: 0px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.748);
        border: 0px;
    }

    .map_et_form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* centre horizontalement */
        align-items: center;     /* centre verticalement */
        gap: 0px;               /* espace entre la carte et le formulaire */
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    iframe {
        height: 548px;
        width: 800px;
        margin-top: 20px;
    }

    form {
        height: 650px;
        width: 100%;
        background-image: url(image/image_pr_contact/ISA.jpg);
        background-size: cover;
        background-blend-mode: soft-light;
        background-color: rgb(219, 215, 210, 0.9);
        margin-bottom: -15px;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }

    form h1 {
        font-size: 18px;
        text-align: center;
    }

    form .corps-formulaire {
        margin-bottom: 30px;
    }

    form .corps-formulaire .gauche .groupe input {
        font-size: 16px;
    }

    form .corps-formulaire .droite {
        margin-left: 0px;
    }    

    form label {
        font-size: 16px;
    }

    form .pied-formulaire button {
        font-size: 16px;
    }

    main .slide-container {
        width: 95%;
        margin-top: 0px;
        margin-bottom: 50px;
    }

    main .drosophila {
        width: 0px;
        height: 0px;
    }
}