/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/**
    Fonts
*/


/**
    General Style
*/

html,body{
    overflow-x: hidden;
}

.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
}

.admin-bar{
    #nav_header{
        margin-top: 30px;
    }
    #nav_header_mobile{
        margin-top: 46px;
    }
}

footer{
    &.et-l--footer{
        &.fixed{
            position: fixed;
            width: 100%;
            bottom: 0;
            left: 0;
        }
    }
}


.gauche{
    clip-path: inset(0 0 0 -100%);
     overflow: visible;
    .swiper-wrapper{
        .swiper-slide{
            img{
                width: 100%;
                height: 300px;
                object-fit: cover;
                border-radius: 10px;
                @media (max-width : 980px) {
                    height: 200px;
                }
            }
        }
       
    }
}

.droite{
    clip-path: inset(0 -100% 0 0);
     overflow: visible;
    .swiper-wrapper{
        .swiper-slide{
            img{
                width: 100%;
                height: 300px;
                object-fit: cover;
                border-radius: 10px;
                @media (max-width : 980px) {
                    height: 200px;
                }
            }
        }
       
    }
}


/*FORMULAIRE*/
.formulaire-container{
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-radius: 50px;
    width: 100%;
    height: auto;
}

.form-row{
    display: flex;
    flex-direction: row;
    gap: 25px;
}

@media (max-width : 768px) {
    .form-row {
        /* On oublie le wrap, on change carrément le sens de lecture */
        flex-direction: column; 
        gap: 25px; /* On garde l'espace entre les champs empilés */
    }

    .form-row .form-field {
        /* On s'assure que le champ prend toute la largeur une fois empilé */
        width: 100%;
    }
        /* Pour que les champs seuls (sujet, message) fassent toute la largeur */
    .full-width {
        width: 100%;
    }
}
.form-row .form-field{
    flex: 1;
}
.form-btn-container {
    display: flex;
    justify-content: center; /* Centre le bouton */
    align-items: center;
    margin-top: 20px;
}
.form-btn-container input[type="submit"] {
    display: flex;
    align-items: center;
    background-color: #FBF9EE; 
    color: #9A1B18;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.form-btn-container input[type="submit"]:hover {
    transform: scale(1.05);
}

.wpcf7-form-control-wrap {
    width: 100%;
}

.form-field input, 
.form-field textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FBF9EE!important;
    padding: 10px 0;
    outline: none;
}

/* Pour les navigateurs modernes (Chrome, Safari, Edge) */
.form-field input::placeholder, 
.form-field textarea::placeholder {
    color: #FBF9EE !important;
    opacity: 1; /* Très important : Firefox baisse l'opacité par défaut */
}

/* Pour Firefox */
.form-field input::-moz-placeholder, 
.form-field textarea::-moz-placeholder {
    color: #FBF9EE !important;
    opacity: 1;
}

/* Pour Internet Explorer / Edge ancien */
.form-field input:-ms-input-placeholder, 
.form-field textarea:-ms-input-placeholder {
    color: #FBF9EE !important;
}
.form-field input:focus, 
.form-field textarea:focus {
    border-bottom: 1px solid #FBF9EE !important; /* La ligne devient orange au clic */
    transition: border-color 0.3s ease;
}

    textarea[name="your-message"] {
    display: block;    /* Force le passage à la ligne (comportement "row") */
    width: 100%;       /* Prend toute la largeur disponible */
    height: 70px;       /*Laisse le contenu respirer */
    min-height: 45px;  /* Ajuste la hauteur pour qu'il ressemble à une ligne simple */
    resize: vertical;  /* Permet à l'utilisateur de l'agrandir si besoin */
}


.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #FE9638;
    border-radius: 25px;
    color: #244435;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #244435;
    border-radius: 25px;
    color: #244435;
}

.landing-page{
    border-radius: 10px;
}

.et_pb_code_inner{
    iframe{
        height: 250px;
    }
}

footer{
    &.et-l--footer{
        &.fixed{
            position: fixed;
            width: 100%;
            bottom: 0;
            left: 0;
        }
    }
}

.page.et_pb_pagebuilder_layout #main-content {
    z-index: 1;
    position: relative;
}

.et_pb_button:after{
    display: none!important;
}

