@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--default-font);
    scroll-behavior: smooth;
}
:root{
    --default-font: "Poppins", sans-serif;
}
html{
    overflow-x: hidden;
}
/*--------------HEADER--------------*/
header{
    background-image: url(img/imgheader.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, .6);
    position: relative;
}
header nav{
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,.5) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    border-bottom: solid 2px #e19f20;
    position: relative;
    height: 15vh;
}
header nav .nameHeader{
    color: white;
}
header nav img{
    max-width: 110px;
}
header nav a{
    text-decoration: none;
    color: white;
    margin: 0 40px;
    padding: 12px;
    position: relative;
}
header nav a::before{
    content: '';
    background-color: #e19f20;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: .5s ease-out;
    width: 0;
}
header nav a:hover::before{
    width: 100%;
}
header nav .flags a{
    margin: 0;
    padding: 0;
}
header nav .flags a:hover::before{
    width: 0;
}
header .flags{
    position: absolute;
    top: 12px;
    right: 12px;
}
header nav .flags img{
    max-width: 30px;
    padding: 2px;
    transition: all .3s;
}
header nav .flags img:hover{
    transform: scale(1.1);
    transition: all .3s;
    cursor: pointer;
}
header nav .navContainer{
    display: flex;
}
.nameHeader{
    display: flex;
    justify-content: center;
}
.nameHeader img{
    filter: invert(1);
    max-width: 140px;
    transition: .6s;
}
.nameHeader a:hover::before{
    width: 0;
}
.nameHeader a:hover img{
    transform: scale(1.05);
    transition: .6s;
}
#h1{
    color: white;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    text-align: center;
    width: 700px;
}
#h1 h1{
    font-size: 3rem;
    font-style: italic;
}
#h1 h2{
    margin-bottom: 30px;
}
#h1 a{
    padding: 12px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.6);
    text-decoration: none;
    color: white;
    border: solid 1px #e19f20;
    transition: .6s all;
}
#h1 div{
    transition: .6s;
    width: fit-content;
    margin: auto;
}
#h1 div:hover{
    transform: scale(1.05);
    transition: .6s ease-out;
}
/*--------------FAQ--------------*/
.section-faq{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--default-font);
    font-size: .9rem;
    max-width: 60vw;
    margin: 150px auto 0 auto;
}
.section-faq h1{
    margin-bottom: 4px;
    color: #666;
    font-size: 1.5rem;
}
.borderpink{
    height: 2px;
    width: 30px;
    background-color: #e19f20;
    margin-bottom: 36px;
}
 /* Styles pour les questions */
 .question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e7e7e7;
    padding: 20px;
    margin: 10px 0;
    user-select: none;
}

/* Styles pour les icônes */
.question i {
    transition: transform 0.3s ease; /* Transition sur la transformation */
    color: #a37319;
}

/* Styles pour les réponses (initialement cachées) */
.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-left: 20px;
}

/* Styles pour les réponses visibles */
.answer.active {
    max-height: 1000px; /* ou une valeur suffisamment grande pour afficher le contenu complet */
    transition: max-height 0.3s ease-in;
    margin-left: 20px;
}

/* Styles pour l'icône "-" */
.question.active i {
    transform: rotate(45deg); /* Rotation de l'icône "+" en "-" */
}
/*--------------MAIN1--------------*/
.main1{
    padding: 150px 0;
    text-align: center;
}
.main1 img{
    max-width: 150px;
}
/*--------------MAIN2--------------*/
.main2 img.speratorBalance{
    max-width: 40px;
    max-height: 40px;
    margin-bottom: 80px;
}
.main2{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    color: #333;
}
.main2 img{
    max-width: 800px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(90%) contrast(1.1) saturate(1.1);
}
.main2 .textIntro{
    max-width: 50vw;
    width: 100%;
}
.main2 .textIntro h2{
    text-align: center;
    margin-top: 30px;
    color: #555;
}

.main2 .borderDiv{
    height: 1.5px;
    width: 5vw;
    background-color: #e19f20;
    margin: 0 auto 30px auto;
}
/*------------CARDS-------------*/
.infoCardsContainer{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(img/Ga-mons-gare-de-mons-04\ \(1\).jpg);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, .6);
    background-position: bottom;
    padding: 120px 0;
}
.cardsContainerTop, .cardsContainerBot{
    display: flex;
    justify-content: space-evenly;
}
.cardsContainerTop div{
    border-bottom: rgba(112, 111, 111, 0.8) solid 1px;
    border-right: rgba(112, 111, 111, 0.8) solid 1px;
}
.cardsContainerTop div#right{
    border-right: none;
}
.cardsContainerBot div{
    border-right: rgba(112, 111, 111, 0.8) solid 1px;
}
.cardsContainerBot div#right{
    border-right: none;
}
.cardsContainerTop div, .cardsContainerBot div{
    width: 20vw;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #e19f20;
    transition: .6s;
}
.cardsContainerTop div h2, .cardsContainerBot div h2{
    font-size: 1rem;
}
.cardsContainerTop div img, .cardsContainerBot div img{
    max-width: 50px;
    margin-bottom: 16px;
    filter: invert(1);
}
.courthouse{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 40px;
    height: 10vh !important;
    border: none !important;
}
.verticalCourtDivider{
    width: 1px !important;
    height: 4vh !important;
    background-color: rgba(112, 111, 111, 0.8);
}
/*------------CONTACT-------------*/
.container-form {
    display: flex;
    width: 100%;
    height: 550px;
    margin-top: 150px;
}

/* Styles pour la colonne de l'image */
.image-column {
    flex: 1; /* Prend 50% de la largeur de l'écran */
}
.image-column img{
    height: 550px;
    width: 100%;
    object-fit: cover;
}

/* Styles pour la colonne du formulaire */
.form-column {
    flex: 1; /* Prend 50% de la largeur de l'écran */
    background-color: #f7f7f7; /* Fond gris pour le formulaire (optionnel) */
}

/* Styles spécifiques à l'image */
.image {
    max-width: 100%; /* Image s'adapte à la largeur de la colonne */
    height: 400px; /* Hauteur proportionnelle à la largeur */
    display: block; /* Supprime les marges de l'image */
    margin: 0 auto; /* Centre l'image horizontalement */
}
.contactForm{
    user-select: none;
    max-width: 750px;
    padding: 20px 40px;
    font-family: 'PT Sans', sans-serif;
    background-color: transparent;
}
.contactForm h1
{
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
    font-style: italic;
    font-family: var(--default-font);
}

.contactForm .inputBox
{
    position: relative;
    width: 100%;
    margin-top: 10px;
}
:-webkit-autofill { 
    filter:none; /* needed for firefox! */
    box-shadow: 0 0 0 1000px rgba(247, 247, 247, 1) inset;
    -webkit-text-fill-color: rgba(51, 51, 51, 1);
}
.contactForm .inputBox input,
.contactForm .inputBox textarea
{
    width: 100%;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    outline: none;
    resize: none;
    background: transparent;
}

.contactForm .inputBox span
{
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    pointer-events: none;
    transition: 0.5s;
    color: #666;
}
.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBox textarea:valid ~ span
{
    color: #1e3d59;
    font-size: 12px;
    transform: translateY(-20px);
    background-color: transparent !important;
}


.contactForm .inputBox input[type="submit"]
{
    max-width: 150px;
    background: rgb(34, 34, 34);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    transition: .2s;
}

.contactForm .inputBox input:hover[type="submit"]{
    background: #000000;
    transition: .4s;
}
iframe{
    width: 200px !important;
}




footer {
    background-color: #f2f2f2;
    padding: 40px;
    background-image: url(img/footerimg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.75);
    height: 40vh;
}
.credits{
    text-align: center;
    margin: auto;
    color: #e7e7e7;
    margin: 60px;
}
.credits a{
    color: #e7e7e7;
    transition: .3s all;
}
.credits a:hover{
    color: #999999;
    transition: .6s all;
}
.section-footer{
    display: flex;
    justify-content: space-around;
    margin: auto;
    width: 100%;
}

.footer-section {
    flex: 1;
    margin: 0 10px;
    text-align: center;
}
.footer-section a.maps{
    text-decoration: none;
    font-weight: bold;
    color: white;
    border-bottom: none;
}
.footer-section a.maps:hover{
    border-bottom: #e19f20 solid 1px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: solid 1.5px #e19f20;
    width: fit-content;
    margin: auto;
    margin-bottom: 20px;
}

.footer-section p {
    color: white;
    line-height: 30px;
}
.social-icons img {
    width: 40px;
    height: 40px;
    margin: 20px;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.1);
}
.social-icons a img {
    padding: 5px;
}
@media screen and (max-width: 1024px) {
    header nav{
        flex-direction: column;  
        border: none;
        background: transparent;
    }
    .navLinks{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header .flags{
        top: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: auto;
    }
    .main2 .textIntro{
        max-width: 80vw;
    }
    header{
        background-attachment: scroll;
    }

}
@media screen and (max-width: 760px) {
    .image-column{
        display: none;
    }
    .contactForm{
        max-width: 90vw;
    }
    .credits{
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer{
        height: auto;
    }
    .section-footer{
        flex-direction: column;
        height: auto;
    }
    .footer-section{
        margin-top: 30px;
    }
    .cardsContainerBot, .cardsContainerTop{
        flex-direction: column;
    }
    .cardsContainerTop div, .cardsContainerBot div{
        width: 80vw;
        border-left: none;
        border-right: none;
        border-bottom: solid 1px rgba(112, 111, 111, 0.8);
        height: 18vh;
    }
    .infoCardsContainer{
        background-repeat: no-repeat;
        padding: 30px 0;
    }
    #h1{
        max-width: 80vw;
        top: 62%;
    }
    #h1 h1{
        font-size: 1.8rem;
    }
    #h1 h2{
        font-size: 1.1rem;
    }
    #h1 div{
        display: flex;
        flex-wrap: nowrap;
    }
    #h1 a{
        font-size: 1rem;
        padding: 8px 12px;
    }
    .main2 img{
        max-width: 85vw;
        height: 300px;
    }
}