/* GENERAL */
.content{
    margin: 40px 150px;
}


/* HERO */
.hero{
    background-image: url("../assets/contact/hero.png");
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__header{
    font-size: 5rem;
}


/* FORMULAIRE */
.direct__title--red{
    top: 50px;
    left: -95px;
}

.direct__title{
    margin-bottom: 90px;
}

.direct__form{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin: 20px;
}

.form__left{
    width: 50%;
}

.form__field--small{
    width: 40%;
}

.form__right{
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form__right img{
    width: 100%;
    height: 61vh;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    object-fit: cover;
}

.form__input,
textarea{
    width: 100%;
    margin: 10px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--cvca-grey);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.form__label--confid{
    font-size: 1.2rem;
    width: 100%;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.form__confid{
    margin-left: 5px;
    text-decoration: underline;
}

.form__checkbox{
    margin-right: 10px;
}

textarea{
    resize: none;
    margin-bottom: 50px;
}

.form__small{
    display: flex;
    justify-content: space-between;
}

.form__submit{
    width: 100%;
}

/* COORDONNEES */
.contact__title--red{
    top: 50px;
    left: -45px;
}

.contact__title{
    margin-bottom: 90px;
}

.contact__card{
    background-color: white;
    width: 35%;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px 0px var(--cvca-grey);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 10px 20px;
    margin-top: 30px;
}

.contact__card--small{
    width: 20%;
}

.contact__card h4{
    margin: 0;
}

.contact a{
    align-self: flex-end;
}

.contact a:hover{
    text-decoration: underline;
}
.contact__cards{
    display: flex;
    justify-content: space-between;
}

.contact__design{
    position: absolute;
}

.contact__design--red{
    width: 100px;
    top: -40px;
    right: -30px;
}

.contact__design--grey{
    width: 80px;
    bottom: -30px;
    left: -30px;
}


/* AGENCES */

.agences__title--red{
    top: 50px;
    left: -35px;
}

.agences__title{
    margin-bottom: 120px;
    margin-top: 100px;
}

.agences__map{
    display: flex;
    justify-content: space-between;
    margin: 0px 40px;
}

.agence{
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agences__subtitle{
    margin-bottom: 20px;
    margin-top: 0;
}

.agences__adresse{
    text-align: center;
}

/* RESPONSIVE */

/* TELEPHONE */
@media(max-width: 500px){
    .content{
        margin: 0px 5%;
        width: 90vw;
    }
    /* HERO */
    .hero{
        height: 30vh;
    }

    .hero__header{
        font-size: 2.8rem;
    }

    /* MESSAGE */
    .direct__title{
        font-size: 2.3rem;
    }

    .direct__title--red{
        font-size: 2.6rem;
        top: 35px
    }

    .direct__form{
        flex-direction: column;
        margin: 0px;
    }

    .form__left{
        width: 90%;
    }

    .form__right img{
        display: none;
    }

    .form__right{
        width: 100%;
    }

    .form__label--confid{
        font-size: 1rem;
    }

    .direct{
        margin-bottom: 80px;
    }

    /* COORDONNEES */
    .contact__title{
        font-size: 2.3rem;
    }

    .contact__title--red{
        font-size: 2.6rem;
        top: 35px;
    }

    .contact__cards{
        flex-direction: column;
        align-items: center;
    }

    .contact__card{
        width: 70vw;
    }

    /* AGENCES */
    .agences__title{
        font-size: 2.3rem;
    }

    .agences__title--red{
        font-size: 2.6rem;
        top: 35px;
    }

    .agences__map{
        flex-direction: column;
        gap: 60px;
        margin: 0px;
    }

    .agence{
        width: 90vw;
    }

    .agence iframe{
        width: 100%;
    }
}


@media (max-width: 1350px){
    .form__label--confid{
        font-size: 0.75rem;
    }
}

@media (min-width: 750px) and (max-width: 1000px){
    .form__label--confid{
        font-size: 0.6rem;
    }

    .direct__form{
        width: 90vw;
    }

}

@media (min-width: 500px) and (max-width: 1000px){
    .content{
        margin: 40px 3vw;
    }

    .contact__title{
        font-size: 2rem;
    }

    .contact__title--red{
        font-size: 2.5rem;
        top: 35px;
    }

    .direct__title{
        font-size: 2rem;
    }

    .direct__title--red{
        font-size: 2.5rem;
        top: 35px;
    }

    .agences__title{
        font-size: 2rem;
    }

    .agences__title--red{
        font-size: 2.5rem;
        top: 35px;
    }

        /* AGENCES */
        .agences__title{
            font-size: 2.3rem;
        }
    
        .agences__title--red{
            font-size: 2.6rem;
            top: 35px;
        }
    
        .agences__map{
            flex-direction: column;
            gap: 60px;
            margin: 0px;
        }
    
        .agence{
            width: 90vw;
        }
    
        .agence iframe{
            width: 100%;
        }
}

@media (min-width: 500px) and (max-width: 750px){
    .form__right img{
        display: none;
    }

    .direct__form{
        flex-direction: column;
        width: 90vw;
    }
    .direct__form{
        flex-direction: column;
        margin: 0px;
    }

    .form__left{
        width: 90%;
    }

    .form__right img{
        display: none;
    }

    .form__right{
        width: 100%;
    }

    .form__label--confid{
        font-size: 1rem;
    }

    .direct{
        margin-bottom: 80px;
    }

    /* COORDONNEES */
    .contact__title{
        font-size: 2.3rem;
    }

    .contact__title--red{
        font-size: 2.6rem;
        top: 35px;
    }

    .contact__cards{
        flex-direction: column;
        align-items: center;
    }

    .contact__card{
        width: 70vw;
    }

        /* AGENCES */
        .agences__title{
            font-size: 2.3rem;
        }
    
        .agences__title--red{
            font-size: 2.6rem;
            top: 35px;
        }
    
        .agences__map{
            flex-direction: column;
            gap: 60px;
            margin: 0px;
        }
    
        .agence{
            width: 90vw;
        }
    
        .agence iframe{
            width: 100%;
        }
}