/* --- Style du bloc "Ajouter au panier" --- */
.elementor-add-to-cart > form.cart {
    display: flex;
    align-items: stretch;
    padding-top: 12px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-neutral);
    border-radius: 5px;
    margin-right: -1px;
}

.quantity-wrapper .minus,
.quantity-wrapper .plus {
    background-color: var(--couleur-fond-clair) !important;
    border: none;
    cursor: pointer;
    padding: 0 25px;
    font-size: 1.5em;
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
}

.quantity-wrapper .minus {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.quantity-wrapper .plus {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.quantity-wrapper .minus:hover,
.quantity-wrapper .plus:hover {
    background-color: var(--couleur-fond-clair-survol) !important;
    transition: background-color 0.3s ease;
    color: var(--text-on-accent);
}

.quantity-wrapper input.qty {
    width: 50px;
    text-align: center !important;
    border: none;
    padding: 0 5px;
    line-height: 1;
    font-size: 1em;
    font-weight: bold;
    -moz-appearance: textfield;
    background-color: transparent;
}

.quantity-wrapper input.qty::-webkit-outer-spin-button,
.quantity-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

form.cart .single_add_to_cart_button {
    flex-grow: 1;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 55px;
    transition: box-shadow 0.2s ease-out;
}

form.cart .single_add_to_cart_button:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: brightness(110%);
}

@media (max-width: 767px) {

    .elementor-add-to-cart > form.cart {
        flex-direction: column;
        gap: 10px;
    }

    .quantity-wrapper,
    form.cart .single_add_to_cart_button {
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }

    form.cart .single_add_to_cart_button {
        margin: 0 !important;
    }

    .quantity-wrapper {
        height: 55px;
    }

    .quantity-wrapper .minus,
    .quantity-wrapper .plus {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .quantity-wrapper input.qty {
        flex-grow: 0;
        flex-shrink: 0;
        width: 60px;
    }
}
/* --- Fin du Style du bloc "Ajouter au panier" --- */

/* --- Bloc d'informations de livraison --- */

.shipping-info-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 1.5rem 0;
}

.shipping-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
    color: #343a40;
}

.shipping-options {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 15px;
    text-align: center;
}

.shipping-option {
    flex: 1;
    padding: 5px;
}

.shipping-option .icon-wrapper {
    font-size: 2.2em;
    color: #0d3d5f;
    margin-bottom: 8px;
}

.shipping-option h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #343a40;
}

.shipping-option p {
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
    color: #6c757d;
}

@media (max-width: 768px) {
    .shipping-options {
        flex-direction: column;
        gap: 0;
    }

    .shipping-option {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .shipping-option:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .shipping-option:first-child {
        padding-top: 0;
    }

    .shipping-option .icon-wrapper {
        font-size: 1.8em;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .shipping-option .text-wrapper {
        flex: 1;
    }
}
/* --- Fin du Bloc d'informations de livraison --- */

/* --- Bloc de réassurance (Design Vertical) --- */

/* 1. Conteneur principal (maintenant toujours vertical) */
.reassurance-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reassurance-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.reassurance-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.reassurance-line i {
    color: #28a745;
    font-size: 1.2em;
}

.pro-cta-box {
    display: block;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #343a40;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.pro-cta-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pro-cta-box h4, .pro-cta-box p, .pro-cta-box .cta-link {
    margin: 0; padding: 0;
}

.pro-cta-box h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
    font-weight: 700;
}

.pro-cta-box p {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.pro-cta-box .cta-link {
    font-weight: 600;
    color: #0d3d5f;
}

.pro-cta-box .cta-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.pro-cta-box:hover .cta-link i {
    transform: translateX(4px);
}



/* --- Style unifié des prix WooCommerce (Normal & Pro) --- */
/* --- 1. BASE COMMUNE POUR TOUS LES PRIX --- */
.elementor-widget-woocommerce-product-price p.price .woocommerce-Price-amount, /* Montant du prix normal */
.elementor-widget-woocommerce-product-price p.price .woocommerce-price-suffix, /* Suffixe du prix normal */
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-Price-amount, /* Montant du prix pro */
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-price-suffix, /* Suffixe du prix pro */
.elementor-widget-woocommerce-product-price .woocommerce-Price-amount /* Cible TOUS les montants pour la couleur */
{
    font-family: 'Inter', sans-serif;
    color: #263e63;
    font-weight: 600;
    line-height: 1;
}

/* --- 2. TAILLES DE POLICE --- */
.elementor-widget-woocommerce-product-price p.price > .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-Price-amount {
    font-size: 2.75rem;
    margin-right: 0;
}

.elementor-widget-woocommerce-product-price p.price > .woocommerce-price-suffix,
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-price-suffix {
    font-size: 1.1rem;
}

/* --- 3. AJUSTEMENTS SPÉCIFIQUES AU PRIX PRO --- */
.elementor-widget-woocommerce-product-price p.price,
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 5px;
    column-gap: 0.8rem; /* Environ 12-13px */
}

.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > p.price {
    display: none;
}

.elementor-widget-woocommerce-product-price:has(.csp-discription-text) p:empty {
    display: none;
}

.elementor-widget-woocommerce-product-price .csp-discription-text {
    order: 1;
    width: 100%;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

/* Positionnement du prix pro et de son suffixe */
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price:has(.csp-discription-text) > .woocommerce-price-suffix {
    order: 2;
}

/*  --- 4. STYLE DU PRIX PUBLIC (ANCIEN PRIX) --- */
.elementor-widget-woocommerce-product-price .qty-fieldset-regular-price,
.elementor-widget-woocommerce-product-price .qty-fieldset-regular-price * {
    order: 3;
    width: 100%;
    color: #909090 !important;
    font-size: 0.9em !important;
    font-weight: 400 !important;
    text-decoration: none;
    margin-top: 4px;
}

/* --- Standardisation de l'affichage de l'image produit WooCommerce --- */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.fallback-slider-message{
    margin-left: 10px;
    font-size: 0.95em;
    color: #333;
}

/* Correction du dépassement du breadcrumb sur mobile */
@media (max-width: 767px) {
    .woocommerce-breadcrumb {
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* --- Style pour l'accordéon WooCommerce sur mobile --- */
@media (max-width: 767px) {

    /* On cache la liste d'onglets par défaut, on n'en a plus besoin */
    .woocommerce-tabs ul.wc-tabs {
        display: none;
    }

    /* Le titre de notre accordéon (qui sera créé par le JS) */
    .accordion-header {
        background-color: #f7f7f7;
        border: 1px solid #e0e0e0;
        padding: 15px 20px;
        cursor: pointer;
        margin-top: 10px;
        font-size: 16px;
        font-weight: bold;
        transition: background-color 0.3s ease;
        position: relative; /* Pour positionner la flèche */
    }

    .accordion-header:first-of-type {
        margin-top: 0;
    }

    .accordion-header:hover {
        background-color: #f0f0f0;
    }

    /* On ajoute une flèche via un pseudo-élément */
    .accordion-header::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    /* Quand l'accordéon est actif/ouvert */
    .accordion-header.active {
        background-color: #f0f0f0;
        border-bottom: none;
    }

    /* La flèche pointe vers le haut quand c'est ouvert */
    .accordion-header.active::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Le panneau de contenu de l'accordéon */
    .accordion-content {
        display: none; /* Caché par défaut */
        padding: 20px;
        border: 1px solid #e0e0e0;
        border-top: none;
    }
}