/* Pages restées sous Flatsome (panier, commande, blog, boutique, pages) : mise au diapason de la refonte. */
body.ujv-flatsome { font-family: "Albert Sans", system-ui, sans-serif; color: var(--encre); background: var(--fond); }
body.ujv-flatsome h1, body.ujv-flatsome h2, body.ujv-flatsome h3, body.ujv-flatsome h4, body.ujv-flatsome h5, body.ujv-flatsome h6,
body.ujv-flatsome .heading-font, body.ujv-flatsome .nav > li > a, body.ujv-flatsome .button, body.ujv-flatsome button, body.ujv-flatsome input, body.ujv-flatsome select, body.ujv-flatsome textarea {
  font-family: "Albert Sans", system-ui, sans-serif;
}
body.ujv-flatsome h1, body.ujv-flatsome h2, body.ujv-flatsome h3, body.ujv-flatsome h4 { color: var(--encre); letter-spacing: -.015em; text-transform: none; font-weight: 700; }
body.ujv-flatsome #main { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); min-height: 50vh; }
body.ujv-flatsome #main a { color: var(--vert); }

/* Boutons */
body.ujv-flatsome .button, body.ujv-flatsome button[type="submit"], body.ujv-flatsome input[type="submit"] {
  border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1rem; box-shadow: none;
}
body.ujv-flatsome .button.primary, body.ujv-flatsome .button.alt, body.ujv-flatsome .button.checkout, body.ujv-flatsome #place_order,
body.ujv-flatsome .single_add_to_cart_button, body.ujv-flatsome .checkout-button {
  background-color: var(--vert) !important; border-color: var(--vert) !important; color: #fff !important; min-height: 3.25rem; padding-inline: 1.7em;
}
body.ujv-flatsome .button.primary:hover, body.ujv-flatsome .button.alt:hover, body.ujv-flatsome #place_order:hover, body.ujv-flatsome .checkout-button:hover { background-color: var(--vert-fonce) !important; }
body.ujv-flatsome .button.is-outline, body.ujv-flatsome .button.secondary { color: var(--vert); border-color: var(--vert); background: transparent; }

/* Champs */
body.ujv-flatsome input[type="text"], body.ujv-flatsome input[type="email"], body.ujv-flatsome input[type="tel"], body.ujv-flatsome input[type="password"],
body.ujv-flatsome select, body.ujv-flatsome textarea, body.ujv-flatsome .select2-selection {
  border: 1.5px solid var(--filet) !important; border-radius: 10px !important; box-shadow: none !important; min-height: 3rem; font-size: 1rem;
}
body.ujv-flatsome input:focus, body.ujv-flatsome select:focus, body.ujv-flatsome textarea:focus { border-color: var(--vert) !important; }
body.ujv-flatsome label { font-weight: 600; font-size: .95rem; color: var(--encre); }

/* Commande et panier */
body.ujv-flatsome .cart-sidebar .col-inner, body.ujv-flatsome .has-border {
  background: var(--doux); border: 0 !important; border-radius: 18px; padding: 1.75rem;
}
body.ujv-flatsome .woocommerce-billing-fields h3, body.ujv-flatsome #order_review_heading, body.ujv-flatsome .cart_totals h2 { font-size: 1.25rem; text-transform: none; }
body.ujv-flatsome .shop_table thead th, body.ujv-flatsome .shop_table .order-total th, body.ujv-flatsome th { text-transform: none; letter-spacing: 0; font-size: .95rem; }
body.ujv-flatsome .woocommerce-info, body.ujv-flatsome .woocommerce-message { color: var(--gris); }
body.ujv-flatsome .ujv-test-avis { background: #fff3cd; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
body.ujv-flatsome .woocommerce-privacy-policy-text { font-size: .9rem; color: var(--gris); }

/* Proposition de pack, réassurance et suite de commande */
body.ujv-flatsome .ujv-pack img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 10px; }
body.ujv-flatsome .ujv-pack { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem 1.25rem; align-items: center; background: var(--doux); border: 1.5px solid var(--vert); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
body.ujv-flatsome .ujv-pack strong { display: block; font-size: 1.05rem; color: var(--encre); }
body.ujv-flatsome .ujv-pack span { display: block; color: var(--gris); font-size: .95rem; margin-top: .2rem; }
body.ujv-flatsome .ujv-pack-bouton { margin: 0; background: var(--vert) !important; color: #fff !important; border-color: var(--vert) !important; min-height: 2.75rem; padding-inline: 1.5em; }
body.ujv-flatsome .ujv-rassure { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: .9rem; color: var(--gris); display: grid; gap: .3rem; }
body.ujv-flatsome .ujv-rassure li { margin: 0; padding-left: 1.3rem; position: relative; }
body.ujv-flatsome .ujv-rassure li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .55rem; height: .3rem; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); rotate: -45deg; }
body.ujv-flatsome .ujv-suite { background: var(--doux); border-radius: 18px; padding: 1.5rem 1.75rem; margin-bottom: 2rem; }
body.ujv-flatsome .ujv-suite h2 { font-size: 1.3rem; margin-bottom: .6rem; }
body.ujv-flatsome .woocommerce-message, body.ujv-flatsome .woocommerce-info, body.ujv-flatsome .woocommerce-error { border: 0; background: var(--doux); border-radius: 12px; padding: .9rem 1.1rem; list-style: none; }
body.ujv-flatsome .woocommerce-error { background: #fdecea; color: #7a1c14; }
body.ujv-flatsome #main-menu, body.ujv-flatsome .mfp-hide, body.ujv-flatsome #exitpopup-modal { display: none !important; }
@media (max-width: 549px) { body.ujv-flatsome .ujv-pack { grid-template-columns: 4rem 1fr; align-items: start; } body.ujv-flatsome .ujv-pack img { width: 4rem; height: 4rem; } body.ujv-flatsome .ujv-pack-bouton { grid-column: 1 / -1; width: 100%; } }

/* Commande : même alignement que le reste du site, invitations « Déjà client ? » et « code promo » en simples lignes,
   récapitulatif sans les lignes internes des packs (le prix est porté par la ligne du pack). */
body.ujv-flatsome .row-main { max-width: var(--large); margin-inline: auto; padding-inline: max(0px, calc(var(--marge) - 15px)); }
body.ujv-flatsome .woocommerce-form-login-toggle .woocommerce-info,
body.ujv-flatsome .woocommerce-form-coupon-toggle .woocommerce-info { background: none; padding: 0; border-radius: 0; margin: 0 0 .45rem; font-size: .95rem; text-align: left; }
body.ujv-flatsome .woocommerce-form-login-toggle .woocommerce-info::before,
body.ujv-flatsome .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
body.ujv-flatsome .woocommerce-info a.showlogin, body.ujv-flatsome .woocommerce-info a.showcoupon { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.ujv-flatsome .woocommerce-form-coupon-toggle { margin-bottom: 1.75rem; }
body.ujv-flatsome .woocommerce-billing-fields { border-top: 0; padding-top: 0; }
body.ujv-flatsome .woocommerce-checkout-review-order-table .woosb-cart-child { display: none; }

body.ujv-flatsome .woocommerce-additional-fields h3, body.ujv-flatsome .woocommerce h3, body.ujv-flatsome .uppercase { text-transform: none; letter-spacing: 0; }
body.ujv-flatsome .shipping__table label, body.ujv-flatsome #shipping_method label { font-weight: 500; }

/* Titre des pages WooCommerce (panier, commande, compte) */
.titre-woo { padding-block: clamp(1.5rem, 4vw, 2.75rem) 0; }
.titre-woo h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
body.ujv-flatsome #main > .titre-woo + * { padding-top: 1.5rem; }

/* En-tête et pied */
body.ujv-flatsome .pied h2 { color: #fff !important; font-size: 1rem; margin: 0 0 .8rem; }
body.ujv-flatsome .pied, body.ujv-flatsome .pied p, body.ujv-flatsome .pied a { color: rgb(255 255 255 / .84); }
body.ujv-flatsome .entete nav a { color: var(--gris); }
.panier { position: relative; }
.panier-nb { position: absolute; top: -.2rem; right: -.2rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--or); border: 2px solid #fff; }
.etapes a { color: inherit; text-decoration: none; }

/* ——— Récapitulatif de commande : articles avec vignette, livraison et paiement en cartes, total bien visible ——— */
body.ujv-flatsome #order_review_heading { margin: 0 0 1rem; font-size: 1.3rem; }
body.ujv-flatsome #order_review .shop_table { border: 0; margin: 0; width: 100%; }
body.ujv-flatsome #order_review .shop_table thead { display: none; }
body.ujv-flatsome #order_review .shop_table th, body.ujv-flatsome #order_review .shop_table td { border: 0; padding: .4rem 0; background: none; font-size: .98rem; vertical-align: middle; }
body.ujv-flatsome #order_review .shop_table td:last-child { text-align: right; white-space: nowrap; }
body.ujv-flatsome #order_review .cart_item td { padding: .75rem 0; border-bottom: 1px solid var(--filet); font-weight: 600; color: var(--encre); }
body.ujv-flatsome #order_review .cart_item:first-child td { padding-top: 0; }
body.ujv-flatsome .ujv-article { display: inline-flex; align-items: center; gap: .8rem; text-align: left; }
body.ujv-flatsome .ujv-article img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 10px; flex: none; background: #fff; }
body.ujv-flatsome .ujv-article b { display: block; font-weight: 600; line-height: 1.3; }
body.ujv-flatsome .ujv-article small { display: block; color: var(--gris); font-weight: 400; font-size: .85rem; margin-top: .1rem; }
body.ujv-flatsome #order_review .product-quantity { color: var(--gris); font-weight: 600; }
body.ujv-flatsome #order_review .cart-subtotal th, body.ujv-flatsome #order_review .cart-subtotal td { padding-top: .9rem; color: var(--gris); font-weight: 500; }

/* Livraison */
body.ujv-flatsome #order_review .woocommerce-shipping-totals > td { padding: .6rem 0 .9rem; }
body.ujv-flatsome #order_review .shipping__table, body.ujv-flatsome #order_review .shipping__table tbody,
body.ujv-flatsome #order_review .shipping__table tr, body.ujv-flatsome #order_review .shipping__table td,
body.ujv-flatsome #order_review .shipping__table th { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
body.ujv-flatsome #order_review .shipping__table th { font-size: .98rem; font-weight: 600; color: var(--encre); margin-bottom: .55rem; }
body.ujv-flatsome #shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
body.ujv-flatsome #shipping_method li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem .75rem; margin: 0; padding: .8rem .9rem; background: #fff; border: 1.5px solid var(--filet); border-radius: 12px; transition: border-color .15s; }
body.ujv-flatsome #shipping_method li:hover { border-color: var(--vert-pale); }
body.ujv-flatsome #shipping_method li:has(input:checked) { border-color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); }
body.ujv-flatsome #shipping_method input[type="radio"] { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--vert); }
body.ujv-flatsome #shipping_method label { margin: 0; padding: 0; font-weight: 500; cursor: pointer; }
body.ujv-flatsome .ujv-liv { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; }
body.ujv-flatsome .ujv-liv-nom { font-weight: 600; color: var(--encre); line-height: 1.3; }
body.ujv-flatsome .ujv-liv-nom small { display: block; font-weight: 400; font-size: .84rem; color: var(--gris); margin-top: .1rem; }
body.ujv-flatsome .ujv-liv-prix { font-weight: 700; white-space: nowrap; color: var(--encre); }
body.ujv-flatsome .ujv-liv-prix.ujv-offert { color: var(--vert); }
body.ujv-flatsome #shipping_method .wms_pickup_open_modal_openstreetmap { grid-column: 2; justify-self: start; margin: .45rem 0 0; padding: .4rem 1rem; min-height: 0; font: inherit; font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; color: var(--vert); background: transparent; border: 1.5px solid var(--vert); border-radius: 999px; box-shadow: none; cursor: pointer; }
body.ujv-flatsome #shipping_method .wms_pickup_open_modal_openstreetmap:hover { background: var(--vert); color: #fff; }
body.ujv-flatsome #shipping_method #wms_selected_pickup_desc, body.ujv-flatsome #shipping_method #wms_ajax_error { grid-column: 2; font-size: .86rem; color: var(--gris); }
body.ujv-flatsome #shipping_method #wms_selected_pickup_desc:empty, body.ujv-flatsome #shipping_method #wms_ajax_error:empty { display: none; }

/* Total */
body.ujv-flatsome #order_review .order-total th, body.ujv-flatsome #order_review .order-total td { padding-top: .9rem; border-top: 1px solid var(--filet); font-size: 1.25rem; font-weight: 800; color: var(--encre); }
body.ujv-flatsome #order_review .order-total small, body.ujv-flatsome #order_review .includes_tax { display: block; font-size: .8rem; font-weight: 400; color: var(--gris); }

/* Paiement */
body.ujv-flatsome #payment { background: none; border: 0; border-radius: 0; padding: 0; margin-top: 1.4rem; }
body.ujv-flatsome #payment .wc_payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; border: 0; display: grid; gap: .5rem; }
body.ujv-flatsome #payment .wc_payment_method { margin: 0; padding: .8rem .9rem; background: #fff; border: 1.5px solid var(--filet); border-radius: 12px; }
body.ujv-flatsome #payment .wc_payment_method:has(input:checked) { border-color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); }
body.ujv-flatsome #payment .wc_payment_method > label { margin: 0; font-weight: 600; font-size: .98rem; cursor: pointer; }
body.ujv-flatsome #payment .wc_payment_method input[type="radio"] { accent-color: var(--vert); margin-right: .4rem; }
body.ujv-flatsome #payment .payment_box { margin: .35rem 0 0; padding: 0; background: none; font-size: .88rem; color: var(--gris); }
body.ujv-flatsome #payment .payment_box::before { display: none; }
body.ujv-flatsome #payment .payment_box p { margin: 0; }
body.ujv-flatsome .ujv-test-avis { font-size: .85rem; padding: .55rem .8rem; margin: 1.2rem 0 0; }

/* Conditions et bouton */
body.ujv-flatsome #payment .place-order { padding: 0; margin: 0; }
body.ujv-flatsome .woocommerce-terms-and-conditions-wrapper { margin: 0 0 1rem; }
body.ujv-flatsome .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; padding: 0; }
body.ujv-flatsome .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; font-size: .92rem; line-height: 1.45; cursor: pointer; }
body.ujv-flatsome .woocommerce-form__label-for-checkbox input { flex: none; width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--vert); }
body.ujv-flatsome #place_order { width: 100%; min-height: 3.5rem; margin: 0; border-radius: 999px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; white-space: normal; box-shadow: 0 6px 16px rgb(31 77 58 / .22); }
body.ujv-flatsome #place_order[disabled] { opacity: 1; cursor: not-allowed; background: var(--vert-pale) !important; border-color: var(--vert-pale) !important; color: var(--vert) !important; box-shadow: none; font-size: .95rem; font-weight: 600; }
body.ujv-flatsome .ujv-rassure { margin-top: 1rem; font-size: .84rem; }
body.ujv-flatsome #order_review .woocommerce-privacy-policy-text { margin-top: .9rem; font-size: .78rem; line-height: 1.5; }
body.ujv-flatsome #order_review .woocommerce-privacy-policy-text p { margin: 0; }
body.ujv-flatsome #shipping_method label { display: block; width: 100%; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; }
body.ujv-flatsome .ujv-liv-nom { min-width: 0; }
body.ujv-flatsome .woocommerce-form__label-for-checkbox .required { display: none; }

/* Récapitulatif : changer la quantité ou retirer un article */
body.ujv-flatsome .ujv-article { align-items: flex-start; }
body.ujv-flatsome .ujv-article-actions { display: flex; align-items: center; gap: .75rem; margin-top: .45rem; }
body.ujv-flatsome .ujv-qte { display: inline-flex; align-items: center; border: 1.5px solid var(--filet); border-radius: 999px; background: #fff; }
body.ujv-flatsome .ujv-qte button { width: 2rem; height: 2rem; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--vert); font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; box-shadow: none; }
body.ujv-flatsome .ujv-qte button:hover { background: var(--doux); }
body.ujv-flatsome .ujv-qte button[disabled] { color: var(--filet); cursor: default; background: none; }
body.ujv-flatsome .ujv-qte output { min-width: 1.4rem; text-align: center; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
body.ujv-flatsome .ujv-retirer { margin: 0; padding: 0; min-height: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: .85rem; font-weight: 500; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.ujv-flatsome .ujv-retirer:hover { color: var(--encre); }
body.ujv-flatsome #order_review.ujv-occupe .woocommerce-checkout-review-order-table { opacity: .5; pointer-events: none; transition: opacity .15s; }
body.ujv-flatsome #order_review .cart_item td.product-total { vertical-align: top; padding-top: .9rem; }
body.ujv-flatsome .ujv-retirer { text-transform: none; letter-spacing: 0; }
