/* Reset des éléments et définition des styles de base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Affiche une barre de défilement verticale si nécessaire */
}

.first-container {
    display: flex;
    flex-direction: column; /* Ensure stacking vertically by default */
}

.image-wrapper {
    width: 100%;
    height: auto; /* Adjust to maintain aspect ratio */
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: auto; /* Adjust to maintain aspect ratio */
    object-fit: cover;
    display: block;
    filter: brightness(70%);
}

.text-overlay {
    position: absolute;
    top: 20px; /* Position the text 20px from the top */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    line-height: 1.5;
    width: 80%; /* Adjust the width */
    z-index: 2; /* Ensure the text is above the image */
}

.content-check-header {
    width: 100%;
    padding: 20px;
    background-color: #ffffff; /* Background color to test layout */
    text-align: center;
}

.logo-holder img {
    width: 83px;
    height: 40px;
    margin-right: 10px;
}

.navbar .right-div{
    display: none;
    color: #13438C;
    text-decoration: none;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    text-align: center;
}

/* Afficher le right-div lorsque le menu est ouvert */
.navbar.menu-open .right-div {
    display: block;
}

/* Styles pour l'icône de menu (trois lignes) */
.navbar .menu-icon {
    display: block;
    padding: 30px;
    cursor: pointer;
    background:none;
    width: 30px;
    height: 18px;
    border-radius: 2px;
}

.navbar .menu-icon .menu-bar {
    background-color: #000;
    height: 3px;
    margin-top: -0.5px;
    border-radius: 2px;

}

/* Styles for the blue background on menu click */
.menu-bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    margin: 6px 0;
    transition: 0.4s;
}

.menu-bar.blue {
    background-color: #007bff; /* Adjust color as needed */  
}


/* Styles pour le right-div */
.right-div {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.form-container{
    text-align: center;
    width: calc(100% - 100px);
    box-shadow:  13px 16px 10px 10px rgba(1, 0, 36, 0.243);
}


@media screen and (min-width: 801px) {
    .right-div .menu-link {
        color: #13438C;
        text-decoration: none;
        padding: 15px;
        font-size: 44px;
        display: block; /* Ensure links are block elements to stack vertically */
        text-align: center; /* Center align text */
        position: relative;
        bottom: 100px;
    }

    .first-logo-container{
        display: flex;
        justify-content: center;
        text-align: center;
        gap: 0px;
        padding: 35px;
    }

    .form-container{
        text-align: center;
        width: calc(100% - 100px);
        box-shadow:  13px 16px 10px 10px rgba(1, 0, 36, 0.243);
    }
}


.right-div.open {
    display: flex; /* Afficher seulement lorsque la classe open est ajoutée */
    width: 100%;
}

.right-div.blue {
    background-color: #000000; /* Adjust color as needed */
    color: #fff; /* Adjust text color as needed */
}

/* Styles pour la barre de navigation et le menu mobile */
/* Cacher le contenu actuel du right-div */
@media screen and (max-width: 800px) {
    .navbar .right-div{
    display: none;
    color: #13438C;
    text-decoration: none;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    text-align: center;
    }

    /* Afficher le right-div lorsque le menu est ouvert */
    .navbar.menu-open .right-div {
        display: block;
    }

    /* Styles pour l'icône de menu (trois lignes) */
    .navbar .menu-icon {
        display: block;
        padding: 30px;
        cursor: pointer;
        background:none;
        width: 30px;
        height: 18px;
        border-radius: 2px;
    }

    .navbar .menu-icon .menu-bar {
        background-color: #000;
        height: 3px;
        margin-top: -0.5px;
        border-radius: 2px;

    }

    /* Styles for the blue background on menu click */
    .menu-bar {
        width: 30px;
        height: 3px;
        background-color: #000;
        margin: 6px 0;
        transition: 0.4s;
    }

    .menu-bar.blue {
        background-color: #007bff; /* Adjust color as needed */  
    }


    /* Styles pour le right-div */
    .right-div {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.9);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: opacity 0.3s ease;
    }

    .right-div .menu-link {
        color: #13438C;
        text-decoration: none;
        padding: 15px;
        font-size: 24px;
        display: block; /* Ensure links are block elements to stack vertically */
        text-align: center; /* Center align text */
        position: relative;
        bottom: 100px;
    }


    .right-div.open {
        display: flex; /* Afficher seulement lorsque la classe open est ajoutée */
        width: 100%;
    }

    .right-div.blue {
        background-color: #000000; /* Adjust color as needed */
        color: #fff; /* Adjust text color as needed */
    }

    .form-container {
        width: 300px !important;
        background: rgba(255, 255, 255, 0.898);
        padding: 0px;
        border-radius: 10px;
        max-width: 600px;
        bottom: 60px !important;
    }


    @media  screen and (max-width: 279px) {
        .form-container h3 {
            font-size: 0.5rem !important;
        }
        
    }

    @media  screen and (min-width:280px) and (max-width: 350px) {
        .form-container h3 {
            font-size: 0.7rem !important;
        }
        
    }

    @media  screen and (min-width: 351px) {
        .form-container h3 {
            font-size: 0.8rem !important;
        }
        
    }
    .form-container p {
        font-size: 0.6rem !important;
        position: relative;
        bottom: 15px;
    }

    .form-container .options img {
        position: relative;
        bottom: 15px;
        margin: 10px;
        padding: 10px;
        width: 50px;
        height: 50px;
        filter: brightness(100%);
    }

    .options{
        margin-top: 20px;
    }

    .step-abc img {
        margin-top: 0;
        margin-right: 10px;
        top: 30px !important;
        width: 30px !important;
        height: 100% !important;
        filter: brightness(100%);
    }

    .form-horizontal input {
        padding: 5px !important;
        font-size: 10px;
    }

    /* Presentation */
    .navbar {
        padding: 0px 0px; /* Réduire l'espace interne */
        height: 60px;
    }

    .logo-holder img {
        width: 81px;
        height: 41px;
        margin-right: 10px;
    }

    .first-container {
        margin-top: 60px;
    }

    .preview-title-holder h2 {
        font-size: 0.9rem !important;
    }

    .right-div {
        font-size: 0.8rem;
    }

    .second-title h3 {
        margin-top: 40px;
        font-size: 0.8rem;
        line-height: 1.7;
        text-align: justify;
        width: 90%;
        margin-right: 0;
    }

    .second-title span {
        font-size: 1.5rem;
    }

    .content-check-header {
        margin-top: 0; /* Ensure no gap between content and image-wrapper */
        padding: 10px;
        text-align: start;
        font-size: 0.8rem;
        width: 100%;
        height: 100%;
        padding-left: 20px;
    }

    .content-check-header .list-check {
        margin-left: 5%;
    }

    .content-check-header img {
        width: 15px;
        height: 15px;
    }

    .content-check-header p {
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .content-check-header button {
        margin-left: 20%;
    }

    .estimation-gratuite {
        font-size: 0.6rem;
    }

    .estimation-gratuite img {
        width: 32px !important;
        height: 32px !important;
    }

    .form-step .adresse-container input {
        font-size: 0.5rem;
    }

    #suggestions {
        left: 0% !important;
        top: 43px;
        width: 130px !important;
        font-size: 0.6rem !important;
    }

    @media screen and (max-width: 330px) {
        #suggestions {
            left: 0% !important;
            top: 43px;
            width: 94px !important;
            font-size: 0.6rem !important;
        }
    }

    #step-4 input {
        font-size: 0.6rem !important;
        width: 30px !important;
    }

    .adresse-container {
        width: 60% !important;
    }

    .adresse-container img {
        filter: brightness(100%);
        margin-left: 10px;
        cursor: pointer;
        position: relative !important;
        top: 10% !important;
        padding: none !important;
        border: none !important;
        width: 30px !important;
        height: 30px !important;
    }

    .next-step{
        margin-top: 10px;
    }

    /* Styles de base pour le formulaire */
    .form-container {
        width: 80%;
        margin: 0 auto; /* Centrer horizontalement */
        padding: 20px;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.8); /* Fond blanc avec opacité */
    }

    .form-container input, .form-container button {
        padding: 5px;
        margin-top: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .form-container button {
        background-color: #007bff; /* Couleur de fond bleue */
        color: white;
        cursor: pointer;
    }

    .form-container button:hover {
        background-color: #0056b3; /* Changer la couleur au survol */
    }

    /* Média queries pour l'adaptabilité */
    @media screen and (max-width: 600px) {
        .text-overlay {
            font-size: 1.5rem; /* Ajuste la taille de la police pour les petits écrans */
            padding: 10px;
        }

        .form-container {
            width: 100%; /* Prendre toute la largeur sur les petits écrans */
        }
    }

    /* Styles pour les différentes étapes du formulaire */
    .step {
        display: none;
    }

    .step.active {
        display: block;
    }

    .step h3 {
        margin-top: 0;
        font-size: 1.5rem;
        color: #333;
    }

    .step p {
        font-size: 1rem;
        color: #666;
    }


        /* LOGOS ENR */

    .logo-container, .first-logo-container{
        gap: 5px;
    }
        
    .logo1 img{
        width: 65px;
        height: 40px;
        margin-left: 20px;
        position: relative;
        top: 13%;
    }

    .logo10 img{
        width: 50px;
        height: 50px;
        position: relative;
        /* bottom: 10px; */
    }


    .logo2 img{
        width: 85px;
        height: 55px;
    }

    .logo3 img{
        width: 80px;
        height: 50px;
    }


    .logo4 img{
        width: 80px;
        height: 50px;
        position: relative;
        top: 15%;
    }

    .logo5 img{
        width: 80px;
        height: 50px;
    }

    .logo6 img{
        width: 80px;
        height: 80px;
    }

    .logo7 img{
        width: 80px;
        height: 80px;
    }

    .primes-container h1 {
        font-size: 1.3rem !important;
    }

    .primes-container h2, .description-fam {
        font-size: 0.8rem !important;
    }

    .gallery-container .gallery-title{
        padding-top: 10px;
        font-size: 0.9rem !important;
        font-family: 'Roboto', sans-serif;
    }

    @media  screen and (min-width:351px) and (max-width: 500px) {
       
        .form-container{
            width: calc(100% - 50px);
            height: 300px !important;
            text-align: center;
        }  
      
    }

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

        .form-container{
            width: calc(100% - 80px) !important;
            height: 300px !important;
            text-align: center;
        }

        .form-container .options img{
            width: 40px;
            height: 40px;
        }
    }
    
}