html, * {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

#navbar {
    height: 10vh;
    border-bottom: 1px solid rgba(0, 0, 0, 0.384);
    position: relative;
}

#navContactButton {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    color: rgb(98, 95, 95);
    text-decoration: none; /* enlève le soulignement */
}

#header {
    background: rgba(0, 115, 255, 0.87);
    height: 80vh;
    width: 85vw;
    margin-left: 7.5vw;
    border-radius: 13px;
    margin-top: 2vh;
    position: relative;
}

#headerA {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#headerAA {
    color: white;
    box-sizing: border-box;
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 2em;
    justify-content: flex-start;
    padding-left: 5%;
}

#headerAB {
    color: white;
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

#headerAB img {
    height: auto;
    width: 40%;
}

#headerContactButtonContainer {
    position: absolute;
    right: 3%;
    bottom: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#headerContactButtonContainer button {
    padding: 15px;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

.text_container {
    width: 40vw;
    height: 45vh;
    margin-top: 5vh;
    background: rgba(128, 128, 128, 0.274);
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.text_containerA {
    height: 100%;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text_containerA img {
    height: 40%;
    width: auto;
}

.text_containerB {
    height: 80%;
    width: 40%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10%;
}

#text_containerA {
    margin-left: 50vw;
}

#text_containerB {
    margin-left: 10vw;
}

/* --------- ZONE CONTACT + FORMULAIRE --------- */

#contact_zone {
    height: 80vh;
    width: 80vw;
    margin-left: 10vw;
    margin-top: 5vh;
    background: #f5f7fb; /* fond doux */
    border-radius: 10px;
    margin-bottom: 10vh;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    box-sizing: border-box;
}

#contact_zone_title {
    width: 40%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30%;
    margin-bottom: 20px;
}

#contact_zone_title h2 {
    font-size: 2em;
    color: #004a99;
    letter-spacing: 0.03em;
}

/* Contenu horizontal : formulaire + colonne d’erreurs */
#contact_zone_content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Carte formulaire */
#contact_zone_inputs {
    flex: 3;
    min-height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 18px;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* Colonne d’erreurs à côté du formulaire */
#form_errors {
    flex: 2;
    min-height: 60%;
    padding: 20px;
    font-size: 0.9em;
    box-sizing: border-box;
}

/* Liste d’erreurs générée par le JS */
#form_errors ul {
    margin: 0;
    padding-left: 18px;
    color: red;
}

#form_errors li {
    margin-bottom: 6px;
}

/* Captcha */
#captcha_container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

/* Champs du formulaire */
input,
#form_textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    box-sizing: border-box;
    background: #f9fafc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

#form_textarea {
    height: 50%;
    resize: none;
}

/* Placeholder */
::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

/* Focus states */
input:focus,
#form_textarea:focus {
    outline: none;
    border-color: rgba(0, 115, 255, 0.9);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.15);
    transform: translateY(-1px);
}

/* Bouton d’envoi */
#contact_zone_inputs button {
    align-self: flex-end;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(0, 115, 255, 0.95);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 115, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#contact_zone_inputs button:hover {
    background: rgba(0, 115, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 115, 255, 0.45);
}

#contact_zone_inputs button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 115, 255, 0.35);
}

/* -------------------------------------- */

#footer {
    height: 10vh;
    width: 100vw;
    background: black;
    display: none;
}

/* ============================
   1) Texte toujours contenu
   ============================ */

.text_containerB {
    /* évite que le texte déborde du conteneur */
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* ============================================
   2) MOBILE : éléments en colonne (≤ 768px)
   ============================================ */

@media screen and (max-width: 1000px) {

    #headerAA {
        font-size: 1.1em;
    }

    .text_containerA,.text_containerB {

        font-size: 9px;

    }

}


@media screen and (max-width: 500px) {

    #contact_zone {
        width: 90vw;               /* plus large en mobile */
        margin-left: 0;
        height: auto;              /* laisse la hauteur suivre le contenu */
        padding: 20px 0;           /* réduit le padding vertical */
   }

    .text_containerA{
        width: 50%;
    }

    /* Chaque bloc milieu devient une colonne */
    .text_container {
        width: 90vw;                 /* plus large en mobile */
        height: auto;                /* laisse la hauteur suivre le contenu */
        margin: 20px auto 0;         /* centré horizontalement */
        flex-direction: column;      /* image au-dessus, texte en dessous */
        justify-content: center;
        align-items: center;
    }

    /* On neutralise les décalages gauche/droite */
    #text_containerA,
    #text_containerB {
        margin-left: auto;
        margin-right: auto;
    }

    /* Bloc image */
    .text_containerA {
        width: 50;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text_containerA img {
        max-width: 70%;   /* image bien contenue */
        height: auto;
        display: block;
    }

    /* Bloc texte */
    .text_containerB {
        width: 100%;
        height: auto;
        padding: 10px 5px;
        text-align: center;   /* texte c
        entré sous l’image */
    }

    #header {
        height: 70vh;
    }

    #headerAA {
       flex-direction: column;
        justify-content: center;
        padding-left: 0;
    }

    #headerComa {
       display: none;
    }

    
   #headerAB img {
       height: auto;
      width: 95%;
   }


    
}
