/*
 * Mobile : mise en page téléphone
 * Marges latérales, accueil, boutique, fiche produit, panier. Le seuil de bascule mobile / bureau est celui de The7 :
 * mobile jusqu'à 992 px inclus, bureau dès 993 px. Toutes les règles sont dans des @media : le bureau ne change pas.
 * Author: EcareWeb
 * 2026
 */


/* Bandeau de titre des pages (fiche produit, catégories, panier).
   Sans largeur explicite, le bloc prend la largeur du gabarit (1300 px) et son texte sort de l'écran. */
@media (max-width: 992px) {
    .page-title {
        width: 100%;
        box-sizing: border-box;
    }

    .page-title > .wf-wrap {
        width: 100%;
        min-height: 0;
        padding: 14px 16px;
    }
}

@media (max-width: 767px) {
    .page-title .entry-title {
        font-size: clamp(20px, 5.6vw, 26px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .page-title .breadcrumbs {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Les boutons de la page d'accueil gardent leur largeur dans l'écran (le thème leur donne 100 % + des marges internes). */
@media (max-width: 992px) {
    .ui-home-toggle,
    .ui-home-btn-primary a,
    .ui-home-btn-outline a,
    .ui-btn-cta a,
    .ui-home-btn-second a {
        box-sizing: border-box;
    }

    .vc_row.wpb_row.vc_inner:not([class*="vc_column-gap-"]) {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 992px) {

    /* ---- Marges latérales communes ---- */

    #main > .wf-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Le gabarit zéro la gouttière des colonnes (02-layout) mais les rangées gardent leurs marges négatives
       (-15 px, ou -32,5 px avec écart de colonnes) : le contenu dépasse de chaque côté. Sur téléphone on les annule. */
    .vc_row.wpb_row:not([data-vc-full-width]) {
        margin-left: 0;
        margin-right: 0;
    }

    .vc_row.wpb_row[class*="vc_column-gap-"] > .vc_column_container {
        padding: 10px 0;
    }

    /* Rangées pleine largeur : le texte ne touche jamais le bord de l'écran. */
    .vc_row.wpb_row[data-vc-full-width] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* ---- Titres et textes courants ---- */

    .slider-title,
    .slider-title-black {
        font-size: clamp(26px, 7.4vw, 34px);
    }

    .slider-subtitle,
    .slider-subtitle-black {
        font-size: clamp(17px, 4.8vw, 21px);
    }

    .title-bison {
        font-size: clamp(22px, 6.4vw, 28px) !important;
    }

    .title-bison p,
    .title-bison h1,
    .title-bison h2,
    .title-bison h3 {
        font-size: clamp(22px, 6.4vw, 28px) !important;
    }

    .title-bison-boutique-accueil,
    .title-bison-boutique-accueil p,
    .title-bison-boutique-accueil h1,
    .title-bison-boutique-accueil h2,
    .title-bison-boutique-accueil h3 {
        font-size: clamp(28px, 8vw, 40px) !important;
    }

    .vc_single_image-wrapper img,
    .wpb_single_image img {
        max-width: 100%;
        height: auto;
    }


    /* ---- Boutons de la page d'accueil et des appels à l'action ---- */

    .ui-btn-cta a,
    .ui-home-btn-primary a,
    .ui-home-btn-outline a,
    .ui-home-btn-second a {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        margin-left: 0;
        margin-right: 0;
        padding: 14px 20px;
        font-size: 17px;
    }

    .ui-home-toggle {
        display: block;
        box-sizing: border-box;
        width: auto;
        max-width: 100%;
        margin: 8px auto 12px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .ui-badge-new {
        margin: 12px auto;
        padding: 12px 18px;
        font-size: 16px;
    }


    /* ---- Accueil ---- */

    body.home .vc_row.wpb_row[data-vc-full-width] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* Couleur de repli sous les photos de fond : le texte blanc reste lisible tant que la photo n'est pas chargée. */
    body.home .vc_row.wpb_row[data-vc-full-width]:has(.hero-home-intro) {
        background-color: var(--color-brown);
    }

    body.home .vc_row.wpb_row[data-vc-full-width]:has(.ui-home-toggle) {
        background-color: var(--color-title-bison);
    }

    body.home .hero-home-intro h1 {
        font-size: clamp(27px, 7.6vw, 34px);
        line-height: 1.15;
        margin-bottom: 14px;
    }

    body.home .hero-home-intro p {
        font-size: clamp(16px, 4.5vw, 19px);
        line-height: 1.45;
    }

    body.home .ui-home-title-glow {
        font-size: clamp(30px, 8.6vw, 38px);
        line-height: 1.1;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Les quatre icônes de service : grille 2 x 2 compacte. */
    body.home .vc_row.wpb_row[data-vc-full-width]:has(.wpb_single_image) {
        padding-top: 24px !important;
        padding-bottom: 20px !important;
    }

    body.home .vc_row.wpb_row[data-vc-full-width].vc_column-gap-35:has(.txt-black-16pt) > .vc_column_container {
        width: 50%;
        float: left;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 8px;
    }

    body.home .vc_row.wpb_row[data-vc-full-width].vc_column-gap-35:has(.txt-black-16pt) .wpb_single_image img {
        width: 84px;
        max-width: 84px;
        height: auto;
    }

    body.home .vc_row.wpb_row[data-vc-full-width].vc_column-gap-35:has(.txt-black-16pt) .txt-black-16pt,
    body.home .vc_row.wpb_row[data-vc-full-width].vc_column-gap-35:has(.txt-black-16pt) .txt-black-16pt p {
        font-size: 14px;
        line-height: 1.35;
    }

    body.home .vc_row.wpb_row[data-vc-full-width].vc_column-gap-35:has(.txt-black-16pt) .wpb_single_image {
        margin-bottom: 8px;
    }


    /* ---- Messages d'ajout au panier : bandeau en bas de l'écran, à la largeur de l'écran ----
       Le thème parent le fait glisser de 400 px depuis la droite : sur 390 px il sort de l'écran. */

    body.popup-message-style div:not(.wc-coupon-wrap):not(.wc-login-wrap):not(.woocommerce-MyAccount-content) > .woocommerce-message,
    body.popup-message-style div:not(.wc-coupon-wrap):not(.wc-login-wrap):not(.woocommerce-MyAccount-content) > .woocommerce-info,
    body.popup-message-style .woocommerce-error {
        top: auto;
        bottom: 16px;
        left: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: 70vh;
        box-sizing: border-box;
        transform: translate3d(0, 0, 0);
        animation: ew-message-entree 0.5s ease 0.2s both, ew-message-sortie 0.6s ease 9s forwards;
    }


    /* ---- Panier : chaque produit devient une carte (miniature, nom, prix, quantité, sous-total) ---- */

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb name name"
            "thumb price remove"
            "qty qty sub";
        column-gap: 12px;
        row-gap: 10px;
        align-items: center;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(72, 60, 50, 0.15);
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td {
        display: block !important;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        box-sizing: border-box;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td::before {
        display: none !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-thumbnail {
        grid-area: thumb;
        align-self: start;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-thumbnail img {
        width: 92px !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-name {
        grid-area: name;
        align-self: start;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-name > a {
        box-sizing: border-box;
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-price {
        grid-area: price;
        font-size: 17px;
        font-weight: 700;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-remove {
        grid-area: remove;
        text-align: right !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-quantity {
        grid-area: qty;
    }

    body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td.product-subtotal {
        grid-area: sub;
        text-align: right !important;
        font-size: 19px;
        font-weight: 800;
        color: var(--color-green);
    }

    body.woocommerce-cart form.woocommerce-cart-form .quantity {
        display: flex;
        align-items: center;
    }

    body.woocommerce-cart form.woocommerce-cart-form .quantity .minus,
    body.woocommerce-cart form.woocommerce-cart-form .quantity .plus {
        width: 46px !important;
        min-height: 46px !important;
        height: 46px;
    }

    body.woocommerce-cart form.woocommerce-cart-form .quantity input.qty {
        width: 64px;
        height: 46px;
        min-height: 46px;
    }

    .shimmer-text {
        font-size: clamp(20px, 5.8vw, 24px);
        line-height: 1.35;
    }


    /* ---- Étapes Panier / Détails / Terminée : une seule ligne au lieu de trois lignes empilées ---- */

    .checkout-page-title {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .checkout-page-title nav {
        padding: 0 !important;
    }

    .checkout-page-title .checkout-breadcrumbs {
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: flex-start;
    }

    .checkout-page-title a {
        flex-flow: column nowrap;
        width: 33.333%;
        margin: 0;
        align-items: center;
        text-align: center;
    }

    .checkout-page-title a .checkout-step {
        order: 0;
    }

    .checkout-page-title a .checkout-step .checkout-counter {
        margin: 0 0 6px;
    }

    .checkout-page-title a .checkout-name {
        order: 1;
        font-size: 14px;
        line-height: 1.25;
    }

    .checkout-page-title a .checkout-step:before,
    .checkout-page-title a .checkout-step:after {
        display: none;
    }


    /* ---- Bouton « Commander » verrouillé : la raison est écrite juste au-dessus du bouton ---- */

    body.woocommerce-checkout .form-row.place-order:has(#place_order.dslot-locked)::before {
        content: "Pour valider : choisissez d'abord votre date de livraison dans le calendrier plus haut.";
        display: block;
        margin: 0 0 12px;
        padding: 10px 14px;
        border-radius: 12px;
        background: #fdecea;
        color: #8a1f1f;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
    }


    /* ---- Paiement : les pilules gardent leur largeur à l'intérieur de l'écran ---- */

    body.woocommerce-checkout #payment ul.payment_methods li.payment_method_cheque > label,
    body.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods li.payment_method_cheque > label,
    body.woocommerce-checkout #payment label[for="payment_method_cheque"],
    body.woocommerce-checkout .woocommerce-checkout-payment label[for="payment_method_cheque"],
    body.woocommerce-checkout #payment .payment_box.payment_method_cheque,
    body.woocommerce-checkout .woocommerce-checkout-payment .payment_box.payment_method_cheque {
        box-sizing: border-box !important;
    }


    /* ---- Étapes « Comment se passe la commande en ligne ? » : une colonne, numéro rond à gauche, texte à droite ---- */

    body .purchase-process .purchase-process__grid {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .purchase-process .purchase-process__grid > .purchase-step {
        float: none !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
    }

    body .purchase-process .purchase-step > .vc_column-inner > .wpb_wrapper {
        min-height: 0 !important;
        padding: 16px !important;
    }

    body .purchase-process .purchase-step .wpb_text_column > .wpb_wrapper {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 0;
        align-items: center;
        align-content: center;
        text-align: left;
    }

    body .purchase-process .purchase-step__number {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        width: 52px;
        height: 52px;
        margin: 0 !important;
        border-width: 4px;
        font-size: 24px;
    }

    body .purchase-process .purchase-step__heading,
    body .purchase-process .purchase-step__text {
        grid-column: 2;
        align-self: center;
        margin: 0;
        text-align: left;
    }

    body .purchase-process .purchase-step__heading {
        font-size: 18px;
        margin-bottom: 4px;
    }

    body .purchase-process .purchase-step__text {
        font-size: 15px;
        line-height: 1.5;
    }


    /* ---- Calendrier des créneaux : cases compactes, à peu près carrées ---- */

    .dslot-calendar__grid {
        gap: 4px;
    }

    .dslot-day {
        min-height: 48px !important;
        gap: 0 !important;
        padding: 2px !important;
        border-radius: 10px;
    }

    .dslot-day--empty {
        min-height: 0 !important;
    }

    .dslot-day__num {
        font-size: 16px;
    }

    .dslot-day__slot {
        padding: 2px !important;
    }

    .dslot-day__led {
        width: 5px;
        height: 5px;
    }


    /* ---- Argumentaire de la fiche produit : texte à taille mesurée ---- */

    body.single-product .txt-black-left-bold-20pt,
    body.single-product .txt-black-left-bold-20pt p {
        font-size: clamp(16px, 4.5vw, 18px);
        line-height: 1.5;
    }


    /* ---- Encarts « Une question ? » et « Vous êtes dans… » de la fiche produit : centrés, sans barres décoratives ---- */

    body.single-product .vc_separator.vc_separator-has-text {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 8px 0 14px;
        text-align: center;
    }

    body.single-product .vc_separator.vc_separator-has-text .vc_sep_holder {
        display: none !important;
    }

    body.single-product .vc_separator.vc_separator-has-text .vc_icon_element {
        order: -1;
        margin: 0;
    }

    body.single-product .vc_separator.vc_separator-has-text .vc_icon_element-icon {
        font-size: 30px !important;
        line-height: 1;
    }

    body.single-product .vc_separator.vc_separator-has-text h4 {
        width: 100%;
        margin: 0;
        font-size: clamp(17px, 4.8vw, 20px);
        line-height: 1.3;
        text-align: center;
    }

    body.single-product .vc_toggle_title,
    body.single-product .vc_toggle_title * {
        font-size: clamp(16px, 4.5vw, 19px) !important;
        line-height: 1.3 !important;
    }

    body.single-product .vc_toggle {
        margin: 0 0 8px !important;
    }

    body.single-product .vc_toggle_content {
        margin: 0 !important;
    }

    body.single-product .vc_toggle_color_sky .vc_toggle_icon,
    body.single-product .vc_toggle_color_sky .vc_toggle_icon::before,
    body.single-product .vc_toggle_color_sky .vc_toggle_icon::after {
        background-color: var(--color-green) !important;
        border-color: var(--color-green) !important;
    }

    body.single-product .vc_toggle_rounded .vc_toggle_icon {
        transform: scale(1.3);
        margin-right: 8px;
    }

    body.single-product .vc_btn3-container {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }

    body.single-product .vc_btn3.vc_btn3-size-lg {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 15px;
        line-height: 1.3;
        white-space: normal;
        text-wrap: balance;
        color: var(--color-white) !important;
        border-radius: 10px;
    }

    body.single-product .vc_btn3.vc_btn3-color-primary,
    body.single-product .vc_btn3.vc_btn3-color-primary:hover {
        background: var(--color-brown) !important;
        border-color: var(--color-brown) !important;
    }

    body.single-product .vc_btn3.vc_btn3-color-success,
    body.single-product .vc_btn3.vc_btn3-color-success:hover {
        background: var(--color-green) !important;
        border-color: var(--color-green) !important;
    }


    /* ---- Pied de page : le conteneur des colonnes dépassait de 5 px à droite ---- */

    .footer .wf-container,
    #footer .wf-container {
        margin-left: 0;
        margin-right: 0;
    }


    /* ---- Tablette : les boutons de l'accueil gardent une largeur mesurée, centrés ---- */

    @media (min-width: 600px) {
        .ui-btn-cta a,
        .ui-home-btn-primary a,
        .ui-home-btn-outline a,
        .ui-home-btn-second a {
            max-width: 460px;
            margin-left: auto;
            margin-right: auto;
        }
    }


    /* ---- Navigateurs sans :has() (iOS avant 15.4) : la raison du bouton grisé s'écrit dans le bouton ---- */

    @supports not selector(:has(a)) {
        body.woocommerce-checkout #place_order.dslot-locked::before {
            content: "Choisissez d'abord votre date de livraison";
            display: block;
            margin: 0 0 4px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.3;
        }
    }


    /* ---- Carte Sous-total / Total brune : libellés lisibles sur le fond brun ---- */

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart-subtotal th {
        color: rgba(255, 255, 255, 0.85);
    }


    /* ---- Page Compte : le texte d'accueil ne touche pas le bandeau de titre ---- */

    .gs-login-premium-v1 {
        margin-top: 20px;
    }
}

/* Spécifique à la fiche produit, aux listes et à la boutique : le gabarit WPBakery ne passe en mobile que sous 768 px. */
@media (max-width: 767px) {

    /* ---- Boutique de départ : le choix Livraison / Retrait reste sur une ligne, 2 colonnes ---- */

    body.page-id-81 .vc_row.vc_inner:not(.purchase-process__grid) {
        display: flow-root;
        margin-left: -6px;
        margin-right: -6px;
    }

    body.page-id-81 .vc_row.vc_inner:not(.purchase-process__grid) > .vc_column_container {
        float: left;
        width: 50%;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    body.page-id-81 .vc_row.vc_inner:not(.purchase-process__grid) .vc_single_image-wrapper {
        display: block;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow-soft);
    }

    body.page-id-81 .vc_row.vc_inner:not(.purchase-process__grid) .vc_single_image-wrapper img {
        display: block;
        width: 100%;
    }


    /* ---- Pages boutique (choix, Livraison, Retrait) : espacements réduits ---- */

    body.page-id-81 .vc_row.wpb_row,
    body.page-id-160 .vc_row.wpb_row,
    body.page-id-294 .vc_row.wpb_row {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .purchase-process__title h2,
    .purchase-process__title h2 span {
        font-size: clamp(20px, 6vw, 24px) !important;
        line-height: 1.25;
    }


    /* ---- Listes de produits : grille à 2 colonnes sans le calcul de position du thème (Isotope) ----
       Le thème place chaque carte avec du JavaScript au chargement : sur téléphone les cartes se chevauchent
       ou sortent de l'écran quand la hauteur des textes change après coup. */

    .dt-products.iso-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        align-items: start;
        height: auto !important;
        margin: 0 !important;
        position: static !important;
    }

    .dt-products.iso-container::before,
    .dt-products.iso-container::after {
        display: none !important;
    }

    .dt-products.iso-container > .wf-cell.iso-item {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }

    .dt-products.iso-container .woocom-project {
        margin: 0;
        padding: 10px 10px 14px;
        background: var(--color-white);
        border-radius: 18px;
        box-shadow: var(--shadow-card-soft);
        text-align: center;
    }

    .dt-products.iso-container .woocom-list-content {
        padding: 8px 0 0;
    }

    .dt-products.iso-container .woocom-list-content .entry-title,
    .dt-products.iso-container .woocom-list-content .entry-title a {
        font-size: 16px;
        line-height: 1.25;
    }

    .dt-products.iso-container .woocom-list-content .price {
        display: block;
        font-size: 15px;
        line-height: 1.35;
    }


    /* ---- Fiche produit : la colonne du gabarit WPBakery est cachée sous 768 px (vc_hidden-xs) ---- */

    body.single-product .vc_row#desktop {
        margin-top: 12px !important;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
        border-radius: 16px !important;
    }

    body.single-product .vc_row#desktop > .wpb_column.vc_hidden-xs {
        display: block !important;
    }

    body.single-product .vc_row#desktop #top {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .vc_row#desktop #top > .wpb_column {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.single-product .single-product-main-image img {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    body.single-product #top > .wpb_column + .wpb_column > .vc_column-inner {
        padding: 16px 4px 0 !important;
    }

    body.single-product form.cart {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 12px;
        margin: 0;
    }

    body.single-product form.cart .quantity {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
    }

    body.single-product form.cart .quantity .minus,
    body.single-product form.cart .quantity .plus {
        width: 48px !important;
        min-width: 48px;
        min-height: 48px !important;
        height: 48px;
    }

    body.single-product form.cart .quantity input.qty {
        width: 72px;
        height: 48px;
        min-height: 48px;
    }

    body.single-product form.cart .single_add_to_cart_button {
        flex: 1 1 100%;
        width: 100%;
        min-height: 52px;
        margin: 0;
    }
}

/* ================= Passe 2 : pages secondaires ================= */

@media (max-width: 992px) {

    /* Bandeau de titre : carré, pleine largeur, sur toutes les pages (le bureau ne l'arrondit que sur la fiche produit, dans un cadre). */
    body.single-product .page-title {
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    /* Entreprise et Paysages : titres à taille mesurée (le bureau monte jusqu'à 62-70 px, trop pour 390 px). */
    body .gs-entreprise-page .gse-hero__title,
    body .gs-landscape-page .gs-landscape-hero__title {
        font-size: clamp(30px, 7.8vw, 38px) !important;
        line-height: 1.12 !important;
    }

    body .gs-entreprise-page .gse-section-title,
    body .gs-landscape-page .gs-landscape-section-title {
        font-size: clamp(26px, 6.6vw, 34px) !important;
        line-height: 1.15 !important;
    }

    /* Pages légales : le texte prend la largeur de l'écran (marges de 12 px au lieu de 24 px) et les blocs sont plus serrés. */
    .legal-page .legal-page__hero-inner,
    .legal-page .legal-page__body {
        width: calc(100% - 24px) !important;
    }

    .legal-page .legal-page__hero {
        padding: 40px 0 32px !important;
    }

    .legal-page .legal-page__body {
        padding: 28px 0 44px !important;
    }

    .legal-page .legal-page__toc {
        padding: 20px 18px !important;
        margin-bottom: 20px !important;
    }

    .legal-page .legal-page__section {
        padding: 20px 18px !important;
        margin-bottom: 18px !important;
    }

    /* Connexion et inscription : champs et liens d'au moins 44 px, case à cocher agrandie. */
    body:not(.woocommerce-checkout) .woocommerce-form-login input.input-text,
    body:not(.woocommerce-checkout) .woocommerce-form-register input.input-text {
        min-height: 48px;
        box-sizing: border-box;
    }

    body:not(.woocommerce-checkout) .woocommerce-form-login input[type="checkbox"],
    body:not(.woocommerce-checkout) .woocommerce-form-register input[type="checkbox"] {
        width: 22px;
        height: 22px;
        vertical-align: middle;
    }

    body:not(.woocommerce-checkout) .woocommerce-form-login .woocommerce-form-login__rememberme {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        gap: 8px;
    }

    body:not(.woocommerce-checkout) .woocommerce-LostPassword a {
        display: inline-block;
        padding: 10px 0;
    }
}

/* Fiche produit sur tablette (768 à 992 px) : le gabarit WPBakery garde 2 colonnes, la colonne de gauche reste vide sous l'image
   et les cartes de droite sont coupées. On empile en une colonne centrée, comme sur téléphone. */
@media (min-width: 768px) and (max-width: 992px) {

    body.single-product .vc_row#desktop #top {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .vc_row#desktop #top > .wpb_column {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.single-product .single-product-main-image {
        max-width: 360px;
        margin: 0 auto 8px;
    }

    /* Cartes d'argument : textes un peu plus petits pour ne plus toucher le bord de la carte. */
    body.single-product .gs-info-section-v2 {
        --gs-info-v2-title-size: 19px;
        --gs-info-v2-text-size: 15px;
        --gs-info-v2-card-padding-x: 20px;
        --gs-info-v2-icon-size: 52px;
    }

    body.single-product .single-product-main-image img {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    body.single-product #top > .wpb_column + .wpb_column {
        max-width: 560px;
        margin: 0 auto;
    }

    body.single-product #top > .wpb_column + .wpb_column > .vc_column-inner {
        padding: 16px 4px 0 !important;
    }

    body.single-product form.cart {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 12px;
        margin: 0;
    }

    body.single-product form.cart .quantity {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
    }

    body.single-product form.cart .quantity .minus,
    body.single-product form.cart .quantity .plus {
        width: 48px !important;
        min-width: 48px;
        min-height: 48px !important;
        height: 48px;
    }

    body.single-product form.cart .quantity input.qty {
        width: 72px;
        height: 48px;
        min-height: 48px;
    }

    body.single-product form.cart .single_add_to_cart_button {
        flex: 1 1 100%;
        width: 100%;
        min-height: 52px;
        margin: 0;
    }
}

@media (max-width: 767px) {

    /* Contact : moins d'enveloppes l'une dans l'autre, champs plus larges, bouton et case à cocher de taille tactile. */
    body .gs-contact-page-v1 {
        padding: 18px 6px;
    }

    body .gs-contact-page-v1::after {
        inset: 6px;
    }

    body .gs-contact-form-card-v1 {
        padding: 18px 16px;
    }

    body .gs-contact-info-card-v1 {
        padding: 22px 18px;
    }

    body .gs-contact-form-card-v1 .wpcf7-submit,
    body .gs-cf7-form-v1 input[type="submit"] {
        min-height: 50px !important;
        height: auto !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 16px !important;
    }

    body .gs-cf7-consent-v1 input[type="checkbox"] {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    /* Boutique de départ : espacements verticaux réguliers entre bannière, texte, cartes, séparateur et étapes. */
    body.page-id-81 .vc_empty_space {
        height: 10px !important;
    }

    body.page-id-81 .vc_row.wpb_row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body.page-id-81 .wpb_text_column p:last-child {
        margin-bottom: 0;
    }

    body.page-id-81 .wpb_content_element,
    body.page-id-81 .wpb_single_image,
    body.page-id-81 .wpb_text_column {
        margin-bottom: 12px !important;
    }

    body.page-id-81 .vc_column-inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-id-81 .vc_separator {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
}

/* Entreprise et Paysages : sections pleine largeur = 100vw MOINS la barre de défilement (100vw la compte et rogne la marge de
   droite sur un navigateur de bureau à barre visible ; sur téléphone la barre est superposée, l'écart ne se voyait pas).
   La variable est posée par le script de la page ; entreprise.css la remettait à 0 sur la page elle-même : on la reprend de la racine. */
@media (max-width: 992px) {
    body .gs-entreprise-page {
        --gse-scrollbar-w: inherit;
    }

    body .gs-entreprise-page .gse-section,
    body .gs-entreprise-page .gse-hero,
    body .gs-entreprise-page .gse-anchors,
    body .gs-landscape-page .gs-landscape-section,
    body .gs-landscape-page .gs-landscape-hero,
    body .gs-landscape-page .gs-landscape-photo-band {
        width: calc(100vw - var(--gse-scrollbar-w, 0px)) !important;
        max-width: calc(100vw - var(--gse-scrollbar-w, 0px)) !important;
        margin-left: calc(50% - 50vw + (var(--gse-scrollbar-w, 0px) / 2)) !important;
        margin-right: calc(50% - 50vw + (var(--gse-scrollbar-w, 0px) / 2)) !important;
    }
}

/* Galerie photos (Media Grid WPBakery, items chargés en AJAX) : 2 colonnes sur téléphone */
@media (max-width: 767px) {
    .vc_media_grid .vc_pageable-slide-wrapper {
        display: flex !important;
        flex-wrap: wrap;
        height: auto !important;
        padding: 0 8px;
    }

    .vc_media_grid .vc_grid-item.vc_visible-item {
        box-sizing: border-box;
        flex: 0 0 50%;
        width: 50% !important;
        padding: 0 4px 8px !important;
    }

    .vc_media_grid .vc_grid-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}

@keyframes ew-message-entree {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ew-message-sortie {
    to {
        opacity: 0;
        visibility: hidden;
    }
}