/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Products archives */
/* Archive produits WooCommerce / Elementor */
.woocommerce ul.products.elementor-grid,
.woocommerce-page ul.products.elementor-grid,
ul.products.elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

/* Tablette */
@media (max-width: 1024px) {
    .woocommerce ul.products.elementor-grid,
    .woocommerce-page ul.products.elementor-grid,
    ul.products.elementor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce ul.products.elementor-grid,
    .woocommerce-page ul.products.elementor-grid,
    ul.products.elementor-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sécurité sur les li */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}



.vehicle-loop-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin: 12px 0;
}

.vehicle-loop-spec {
    font-size: 13px;
    line-height: 1.3;
}

.vehicle-loop-spec-label {
    display: block;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    color: #777;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vehicle-loop-spec-value {
    display: block;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: 600;
    color: #111;
}

/* Badge archive */
.vehicule-badge-vendu {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: #d60000;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 13px;
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* IMPORTANT */
.products .product {
    position: relative;
}



/* Single product */
.vehicule-meta-links {
    display: flex;
    flex-direction: column;
}

.vehicule-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #262626;
}

.vehicule-meta-row:last-child {
    border-bottom: 0;
}

/*.vehicule-meta-row span {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: 600;
    color: #777 !important;
}*/

.vehicule-meta-label {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    min-width: 150px;
}

.vehicule-meta-value {
    font-family: var(--e-global-typography-text-font-family), sans-serif;
    font-size: 14px;
    color: #cecfce;
    text-decoration: none;
    text-align: right;
}

a.vehicule-meta-value:hover {
    color: #ffffff;
}

.vehicule-meta-row a {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    text-decoration: none;
    color: #777;
}

.vehicule-brand-row {
    gap: 10px;
}

.vehicule-brand-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.bouton-demande-vehicule {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 14px !important;
    font-weight: var(--e-global-typography-primary-font-weight);
    line-height: 21px !important;
    border-radius: 12px 12px 12px 12px !important;
    padding: 14px 22px 14px 22px !important;
    background-color: #B21E23 !important;
    color: #fff !important;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.bouton-demande-vehicule svg {
    transition: transform .25s ease;
}

.bouton-demande-vehicule:hover svg {
    transform: translateX(4px);
}

.bouton-demande-vehicule:hover {
    background: #9c1a1f !important;
}

/*.vehicule-single-vendu {
    display: inline-flex;
    padding: 10px 18px;
    background: #d60000;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}*/

/* Message bouton */
.vehicule-vendu-message {
    display: inline-flex;
    padding: 14px 22px;
    background: #B21E23;
    color: #fff;
    border-radius: 12px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: uppercase;
}

/* Tableau caractéristiques techniques */
.woocommerce table.shop_attributes,
table.shop_attributes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border: none;
}

table.shop_attributes tbody {
    display: contents;
}

table.shop_attributes tr {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

table.shop_attributes th,
table.shop_attributes td {
    display: block;
    width: auto;
    padding: 0;
    border: none !important;
    background: transparent !important;
    text-align: left;
}

table.shop_attributes th {
    font-size: 13px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

table.shop_attributes td {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

table.shop_attributes td p {
    margin: 0;
}

/* Responsive tablette */
@media (max-width: 900px) {
    .woocommerce table.shop_attributes,
    table.shop_attributes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive mobile */
@media (max-width: 600px) {
    .woocommerce table.shop_attributes,
    table.shop_attributes {
        grid-template-columns: 1fr;
    }
}



/* Contact véhicule */
.vehicule-contact-resume {
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 30px;
    border: 1px solid #262626;
    border-radius: 20px;
    background: #171B20;
    margin-bottom: 40px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
}

/* Colonne image */
.vehicule-contact-image {
    flex: 0 0 380px;
}

.vehicule-contact-resume .vehicule-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Colonne contenu */
.vehicule-contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vehicule-contact-label {
    margin: 0 0 10px;
    color: #777;
    font-size: 14px;
}

.vehicule-contact-content h2 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.1;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight);
    color: #fff;
}

.vehicule-contact-price {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #B21E23;
}

/* Specs */
.vehicule-contact-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px 24px;
    margin-bottom: 28px;
}

.vehicule-contact-spec {
    padding-bottom: 10px;
    border-bottom: 1px solid #262626;
}

.vehicule-contact-spec span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888;
    margin-bottom: 4px;
}

.vehicule-contact-spec strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #cecfce;
}

/* Bouton */
.vehicule-contact-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 14px 22px;
    border-radius: 12px;
    background: #B21E23;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 14px;
    transition: .25s ease;
}

.vehicule-contact-back:hover {
    /*transform: translateY(-2px);
    opacity: .92;*/
    background: #9c1a1f;
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {

    .vehicule-contact-resume {
        flex-direction: column;
    }

    .vehicule-contact-image {
        flex: auto;
    }

    .vehicule-contact-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {

    .vehicule-contact-specs {
        grid-template-columns: 1fr;
    }

    .vehicule-contact-resume {
        padding: 20px;
        gap: 24px;
    }
}



/* FIX MOBILE RÉEL - Archive produits Elementor/WooCommerce */
@media (max-width: 767px) {

    .elementor-element-c3a9fda,
    .elementor-element-c3a9fda > .e-con-inner,
    .elementor-element-c3a9fda .elementor-widget-container,
    .elementor-element-c3a9fda .woocommerce,
    .elementor-element-c3a9fda ul.products {
        display: block !important;
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
    }

    .elementor-element-c3a9fda ul.products li.product {
        display: block !important;
        float: none !important;
        width: 100% !important;
        clear: both !important;
        position: relative;
        margin-bottom: 20px !important;
    }

    .top-bar-text {
        display: none;
    }
}