/*
Theme Name: Divi Child
Template: Divi
Description: Divi Child Theme
Author: Info Conception
Author URI: https://infoconception.fr/
*/


/* PAGE HOME */

.col-3-vehicule-neuf {
    display: flex;
    flex-direction: row;
    margin: auto;
}

.col-3-vehicule-occasion {
    display: flex;
    flex-direction: row;
    margin: auto;
}

.etat {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: #d51a27;
    color: white;
    padding: 5px 20px;
    transform-origin: 0 0;
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.single-vehicule {
    width: 100%;
}

.image-vehicule {
    filter: drop-shadow(0 0 0.5rem grey);
}

h2 {
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 26px;
    letter-spacing: 4px;
    line-height: 1.6em;
    text-align: center;
}

.spec-vehicule p {
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
    font-size: 26px;
    color: #c10f1b !important;
    line-height: 1.8em;
    text-align: center;
}

.single-vehicule .container {
    display: flex;
    flex-direction: column;
}

.et_pb_row {
    width: 100%;
    max-width: 100%;
}

/* PAGE MOTOS */

.et_pb_row .et_pb_row_5_tb_body {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.listing {
    display: flex;
    flex-wrap: wrap;
}

.tax-categorie-vehicule.single-vehicule {
    width: 50%;
}

.container {
    width: 90%;
    padding-bottom: 20px;
}

#main-content .listing .container:before {
    content: unset;
}

.acf-gallery.slick-initialized.slick-slider {
    width: 50%;
    margin: auto;
    /* background-color: #d51a27; */
}

.acf-gallery.slick-initialized.slick-slider img {
    /* width: 100%; */
    margin: auto;
    /* background-color: #d51a27; */
    /* height: 600px; */
    /* object-fit: cover; */
}

.et_pb_column_4_4 .et_pb_code .et_pb_code_inner .listing .single-vehicule {
    width: 50%;
}

.col1,
.col2,
.col3,
.col4 {
    background-color: #f4f4f4;
    width: 80%;
}

.infos-generales-title {
    padding-top: 30px;
}

.description-content {
    width: 80%;
    padding-top: 30px;
    display: flex;
    justify-content: center;
}

.critere-sub p,
.infos-generales-title p {
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
    font-size: 25px;
    color: #333333;
    text-align: center;
}

.infos-generales-title,
.infos-generales-content {
    text-align: center;
    margin: auto;
}

.critere-sub,
.critere {
    padding-bottom: 22px;
    text-align: center;
    margin: auto;
}

.critere p,
.infos-generales-content p {
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    font-size: 21px;
    color: #666666;
    text-align: center;
}

.vehicule-title .vehicule-texte-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
}

.vehicule-title .vehicule-texte-container h2 {
    font-size: 90px;
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
}

.vehicule-title .vehicule-texte-container .vehicule-prix h2 {
    color: #c10f1b;
}

.description-content .description-div {
    width: 70%;
}

.description-content .btn-div {
    width: 30%;
}

.see-btn {
    background-color: #d51a27;
    padding: 5px 20px;
    position: absolute;
    left: 43%;
    color: white;
    font-size: 20px;
    font-family: 'Teko', Helvetica, Arial, Lucida, sans-serif;
}


.a-gallery {
    width: 100%;
}

.container-gallery {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container-gallery:hover::before {
    content: '';
    background-color: #c10f1b;
    opacity: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.container-gallery:hover::after {
    content: '';
    background: url('/wp-content/themes/divi-child-main/assets/images/loupe-avec-un-oeil.png');
    background-size: cover;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.slick-prev .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}

.slick-prev {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    left: -20%;
    display: block;
    padding-left: 2px;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: white;
    display: flex;
    align-items: center;
}

.slick-next:before {
    content: '';
    background: url(/wp-content/themes/divi-child-main/assets/images/suivant.png);
    background-size: cover;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    right: -10%;
    display: block;
    width: 25px;
    height: 20px;
    padding-left: 2px;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: white;
    display: flex;
    align-items: center;
}

.slick-prev:before {
    content: '';
    background: url(/wp-content/themes/divi-child-main/assets/images/precedent.png);
    background-size: cover;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.ariane-link-white .et_pb_code_inner {
    color: white;
}

.ariane-link-white .et_pb_code_inner span a {
    color: white;
}

.ariane-link-black .et_pb_code_inner {
    color: black;
}

.ariane-link-black .et_pb_code_inner span a {
    color: black;
}

.wpcf7-response-output {
    color: white;
}


/* CONTACT FORM */

form {
    width: 90%;
    font-family: Lato;
    margin: auto;
}

form p {
    padding: 2px;
    color: white;
}

form .wpcf7-submit {
    font-family: Teko;
    font-size: 25px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background-color: white;
    padding: 10px 45px;
    color: #c10f1b;
    cursor: pointer;
}

input[type=text],
input[type=email],
select,
textarea {
    width: 100%;
    padding: 10px 10px;
    background-color: white;
    border: none;
    border: 2px solid #c10f1b;
}

form input::placeholder,
form textarea::placeholder {
    color: white;
}

.et-main-area {
    padding-top: 0 !important;
}

body #page-container .et_pb_section .et_pb_button_0.active {
    background-color: #20252C;
    border-color: #20252C;
}

body #page-container .et_pb_section .et_pb_button_1.active {
    background-color: #20252C;
    border-color: #20252C;
}



/* MEDIA QUERIES */

@media only screen and (max-width: 600px) {
    .vehicule-title .vehicule-texte-container {
        flex-direction: row;
        gap: 15px;
    }

    .vehicule-title .vehicule-texte-container h2 {
        font-size: 25px;
    }

    .listing .single-vehicule .container a h2 {
        font-size: 15px;
    }

    .listing .single-vehicule .container .see-btn {
        left: 33%;
    }

    .col-3-vehicule-neuf .single-vehicule .container .spec-vehicule h2,
    .col-3-vehicule-occasion .single-vehicule .container .spec-vehicule h2 {
        font-size: 15px;
    }

    .col-3-vehicule-neuf,
    .col-3-vehicule-occasion {
        flex-direction: column;
        margin: auto;
    }

    .single-vehicule {
        margin: auto;
    }

    .slick-next {
        right: -30%;
    }

    .slick-prev {
        left: -30%;
    }

    form p:nth-child(6) {
        display: flex;
        justify-content: center;
    }

    .image-vehicule .etat {
        padding: 2px 8px;
    }
}