/* Tof Informatique : gabarits ShopEngine (panier, commande, compte), selon le brief de style. Variables et formes : voir tof.css. */
/* ===== Gabarits ShopEngine : panier, commande, compte ===== */
body:not(#tof) .tof-se, body:not(#tof) .tof-se .shopengine-widget { font: 400 16px/1.55 "Open Sans", sans-serif; color: var(--tof-texte); }
body:not(#tof) .tof-se h2, body:not(#tof) .tof-se h3, body:not(#tof) .tof-se h4, body:not(#tof) .tof-se legend { font-family: "Poppins", sans-serif !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: -.03em; line-height: 1.1; color: var(--tof-encre) !important; }
body:not(#tof) .tof-se h3, body:not(#tof) .tof-se legend { font-size: 22px !important; }
/* Titres déjà posés dans le gabarit : on masque ceux des widgets */
body:not(#tof) .tof-se .shopengine-billing-address-header, body:not(#tof) .tof-se #order_review_heading, body:not(#tof) .tof-se .woocommerce-order-details__title, body:not(#tof) .tof-se .woocommerce-column__title { display: none !important; }
/* Liens : couleur Marque, trait jaune décalé */
body:not(#tof) .tof-se a:where(:not(.button):not(.remove):not(.checkout-button)), body:not(#tof) .tof-petit a, body:not(#tof) .shopengine-template .elementor-widget-text-editor a[href^="tel:"] { color: var(--tof-marque) !important; text-decoration: underline; text-decoration-color: var(--tof-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body:not(#tof) .tof-petit p { margin: 0; color: var(--tof-texte); }
/* Champs */
body:not(#tof) .tof-se input[type="text"], body:not(#tof) .tof-se input[type="email"], body:not(#tof) .tof-se input[type="tel"], body:not(#tof) .tof-se input[type="password"], body:not(#tof) .tof-se input[type="number"], body:not(#tof) .tof-se input.input-text, body:not(#tof) .tof-se select, body:not(#tof) .tof-se textarea, body:not(#tof) .tof-se .select2-container .select2-selection--single {
  background: #fff !important; border: 1px solid var(--tof-trait) !important; border-radius: 12px !important; min-height: 50px; padding: 0 16px !important; font: 400 16px/1.55 "Open Sans", sans-serif !important; color: var(--tof-encre) !important; box-shadow: none !important; }
body:not(#tof) .tof-se textarea { padding: 12px 16px !important; min-height: 110px; }
body:not(#tof) .tof-se .select2-container .select2-selection--single { height: 50px !important; display: flex; align-items: center; }
body:not(#tof) .tof-se .select2-selection__rendered { padding: 0 !important; color: var(--tof-encre) !important; }
body:not(#tof) .tof-se .select2-selection__arrow { height: 48px !important; right: 8px !important; }
body:not(#tof) .tof-se input:focus, body:not(#tof) .tof-se select:focus, body:not(#tof) .tof-se textarea:focus, body:not(#tof) .tof-se .select2-container--focus .select2-selection { border-color: var(--tof-marque) !important; outline: none; }
body:not(#tof) .tof-se label:not(.woocommerce-form__label-for-checkbox):not(.checkbox) { display: block; font: 600 14px/1.4 "Open Sans", sans-serif !important; color: var(--tof-encre) !important; margin: 0 0 6px !important; text-transform: none !important; }
body:not(#tof) .tof-se .required { color: var(--tof-marque) !important; border: 0; text-decoration: none; }
body:not(#tof) .tof-se .form-row { margin: 0 0 16px !important; padding: 0 !important; }
/* Boutons : action principale jaune, secondaire sombre */
body:not(#tof) .tof-se #place_order, body:not(#tof) .tof-se .checkout-button, body:not(#tof) .tof-se .woocommerce-form-login__submit, body:not(#tof) .tof-se .woocommerce-form-register__submit, body:not(#tof) .tof-se .woocommerce-Button[name="save_account_details"], body:not(#tof) .tof-se button[name="save_address"], body:not(#tof) .tof-se .woocommerce-ResetPassword button, body:not(#tof) .tof-se .lost_reset_password button, body:not(#tof) .tof-se .woocommerce-info .button, body:not(#tof) .tof-se .single_add_to_cart_button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px !important; border: 0 !important; border-radius: 999px !important; background: var(--tof-jaune) !important; color: #111 !important; font: 500 15px/1.2 "Poppins", sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
body:not(#tof) .tof-se #place_order, body:not(#tof) .tof-se .checkout-button { width: 100% !important; margin-top: 6px; }
body:not(#tof) .tof-se .button:where(:not(#place_order):not(.checkout-button):not(.woocommerce-form-login__submit):not(.woocommerce-form-register__submit):not([name="save_account_details"]):not([name="save_address"]):not(.single_add_to_cart_button):not(.woocommerce-info .button)), body:not(#tof) .tof-se .shopengine-footer-button, body:not(#tof) .tof-promo-ouvrir {
  border: 0 !important; border-radius: 999px !important; background: var(--tof-encre) !important; color: #fff !important; font: 500 15px/1.2 "Poppins", sans-serif !important; padding: 12px 22px !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
body:not(#tof) .tof-se .woocommerce-info .button { float: none !important; margin: 12px 0 0 !important; }
body:not(#tof) .tof-promo-ouvrir { background: none !important; color: var(--tof-marque) !important; padding: 0 !important; text-decoration: underline; text-decoration-color: var(--tof-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; font-family: "Open Sans", sans-serif !important; font-weight: 600 !important; }
body:not(#tof) .elementor-widget.tof-promo[hidden] { display: none !important; }
/* Tableaux à filets */
body:not(#tof) .tof-se table, body:not(#tof) .tof-se table.shop_table { width: 100%; border: 0 !important; border-collapse: collapse !important; border-radius: 0 !important; background: none !important; margin: 0 !important; }
body:not(#tof) .tof-se table th, body:not(#tof) .tof-se table td { border: 0 !important; border-bottom: 1px solid var(--tof-trait) !important; padding: 14px 4px !important; background: none !important; text-align: left; vertical-align: middle; color: var(--tof-texte); }
body:not(#tof) .tof-se table thead th, body:not(#tof) .tof-se .shopengine-table__head--th { font: 600 12px/1.3 "Open Sans", sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: var(--tof-texte) !important; }
body:not(#tof) .tof-se table td:last-child, body:not(#tof) .tof-se table th:last-child { text-align: right; }
body:not(#tof) .tof-se .amount, body:not(#tof) .tof-se .woocommerce-Price-amount { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--tof-marque) !important; }
body:not(#tof) .tof-se .order-total th, body:not(#tof) .tof-se .order-total td { border-bottom: 0 !important; color: var(--tof-encre) !important; }
body:not(#tof) .tof-se .order-total .amount { font-size: 28px; }
/* Messages d'information */
body:not(#tof) .tof-se .woocommerce-info, body:not(#tof) .tof-se .woocommerce-message, body:not(#tof) .tof-se .woocommerce-notice, body:not(#tof) .tof-se .woocommerce-error, body:not(#tof) .tof-se .shopengine-woocommerce-info, body:not(#tof) .woocommerce-notices-wrapper .woocommerce-message, body:not(#tof) .woocommerce-notices-wrapper .woocommerce-info {
  background: var(--tof-doux2) !important; border: 0 !important; border-left: 4px solid var(--tof-accent) !important; border-radius: 12px !important; color: var(--tof-encre) !important; padding: 16px 20px !important; margin: 0 0 18px !important; font: 400 16px/1.55 "Open Sans", sans-serif; list-style: none; box-shadow: none !important; }
body:not(#tof) .tof-se .woocommerce-error, body:not(#tof) .woocommerce-notices-wrapper .woocommerce-error { border-left-color: #8B2A2A !important; }
body:not(#tof) .tof-se .woocommerce-info::before, body:not(#tof) .tof-se .woocommerce-message::before, body:not(#tof) .woocommerce-notices-wrapper .woocommerce-message::before { display: none !important; }
/* Listes : jamais de puces */
body:not(#tof) .tof-se ul { list-style: none !important; padding-left: 0 !important; }
body:not(#tof) .tof-rassure .elementor-icon-list-text { font-size: 14px; color: var(--tof-texte); }
body:not(#tof) .tof-rassure .elementor-icon-list-icon i, body:not(#tof) .tof-rassure .elementor-icon-list-icon svg { color: var(--tof-accent) !important; fill: var(--tof-accent) !important; font-size: 12px; }
/* Colonne de droite qui reste visible au défilement */
body:not(#tof) .tof-collant { position: sticky; top: 24px; align-self: flex-start; }
/* Panier */
body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table, body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__head, body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__body-item, body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__footer { background: none !important; border: 0 !important; box-shadow: none !important; }
body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__head { border-bottom: 1px solid var(--tof-trait) !important; }
body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__body-item { border-bottom: 1px solid var(--tof-trait) !important; padding: 18px 0 !important; }
body:not(#tof) .tof-se .shopengine-cart-table .product-thumbnail img { --c: 16px; --rr: 8px; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); border-radius: 0 !important; width: 84px !important; height: auto; }
body:not(#tof) .tof-se .shopengine-cart-table .product-name a { font: 500 17px/1.25 "Poppins", sans-serif !important; color: var(--tof-encre) !important; text-transform: none !important; text-decoration: none !important; }
body:not(#tof) .tof-se .shopengine-cart-quantity { display: inline-flex !important; align-items: center; border: 1px solid var(--tof-trait) !important; border-radius: 999px !important; background: #fff !important; overflow: hidden; }
body:not(#tof) .tof-se .shopengine-cart-quantity input.qty { border: 0 !important; min-height: 42px; width: 46px !important; padding: 0 !important; text-align: center; }
body:not(#tof) .tof-se .shopengine-cart-quantity .minus-button, body:not(#tof) .tof-se .shopengine-cart-quantity .plus-button { border: 0 !important; background: none !important; color: var(--tof-encre) !important; width: 38px; text-align: center; }
body:not(#tof) .tof-se .shopengine-cart-table .product-remove { position: static !important; margin-top: 8px; }
body:not(#tof) .tof-se .shopengine-cart-table .product-remove a { position: static !important; display: inline-block; width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; font-size: 0 !important; }
body:not(#tof) .tof-se .shopengine-cart-table .product-remove a::after { content: "Retirer"; text-transform: none; letter-spacing: 0; font: 600 14px "Open Sans", sans-serif; color: var(--tof-marque); text-decoration: underline; text-decoration-color: var(--tof-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__footer { padding: 20px 0 0 !important; gap: 12px; }
body:not(#tof) .tof-se .shopengine-cart-table .return-to-shop { background: none !important; padding: 0 !important; }
body:not(#tof) .tof-se .shopengine-cart-table .return-to-shop a { color: var(--tof-marque) !important; }
body:not(#tof) .tof-se .shopengine-cart-table .return-to-shop i, body:not(#tof) .tof-se .shopengine-footer-button i { display: none; }
body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table__footer .clear-btn { background: none !important; text-decoration: underline; text-decoration-color: var(--tof-accent); text-underline-offset: 4px; color: var(--tof-texte) !important; padding: 12px 6px !important; }
body:not(#tof) .tof-se .shopengine-cart-table button:disabled { opacity: .5; }
body:not(#tof) .tof-recap .shopengine-cart-totals, body:not(#tof) .tof-recap .cart_totals { background: none !important; padding: 0 !important; border: 0 !important; }
body:not(#tof) .tof-promo .shopengine-checkout-coupon { display: flex; gap: 10px; flex-wrap: wrap; }
body:not(#tof) .tof-promo .form-row { flex: 1 1 160px; margin: 0 !important; width: auto !important; float: none !important; }
/* Commande : étapes séparées par un filet, sans titres vides */
body:not(#tof) .tof-etape + .tof-etape { border-top: 1px solid var(--tof-trait); padding-top: 28px !important; }
body:not(#tof) .tof-etape:not(:has(input, select, textarea, li, .woocommerce-info)) { display: none !important; }
body:not(#tof) .tof-se #payment, body:not(#tof) .tof-se .woocommerce-checkout-payment { background: none !important; border-radius: 0 !important; padding: 0 !important; }
body:not(#tof) .tof-se #payment ul.payment_methods { border: 0 !important; padding: 0 !important; }
body:not(#tof) .tof-se #payment ul.payment_methods li { border-bottom: 1px solid var(--tof-trait); padding: 14px 0 !important; }
body:not(#tof) .tof-se #payment div.payment_box { background: var(--tof-doux2) !important; border-radius: 12px !important; color: var(--tof-texte) !important; }
body:not(#tof) .tof-se #payment div.payment_box::before { display: none !important; }
body:not(#tof) .tof-se #payment .place-order { padding: 16px 0 0 !important; }
body:not(#tof) .tof-se .woocommerce-checkout-review-order-table img { --c: 10px; --rr: 6px; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); border-radius: 0 !important; }
/* Commande reçue */
body:not(#tof) .tof-confirm ul.order_details, body:not(#tof) .tof-confirm ul { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0 !important; padding: 0 !important; }
body:not(#tof) .tof-confirm ul li { border: 0 !important; padding: 0 !important; margin: 0 !important; font: 600 12px/1.4 "Open Sans", sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75) !important; }
body:not(#tof) .tof-confirm ul li strong, body:not(#tof) .tof-confirm .amount { display: block; margin-top: 4px; font: 600 20px/1.2 "Poppins", sans-serif !important; letter-spacing: 0; text-transform: none; color: #fff !important; }
body:not(#tof) .tof-confirm p, body:not(#tof) .tof-confirm .woocommerce-notice { color: rgba(255,255,255,.88) !important; background: none !important; border: 0 !important; padding: 0 !important; }
body:not(#tof) .tof-se address { font-style: normal; border: 0 !important; padding: 0 !important; line-height: 1.6; }
/* Espace client : menu en pilules */
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation, body:not(#tof) .tof-menu-compte .shopengine-account-navigation { width: 100% !important; float: none !important; background: none !important; border: 0 !important; padding: 0 !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation ul { display: flex !important; flex-direction: column; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li::before, body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li::after, body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li a::before { display: none !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 20px !important; border: 1px solid var(--tof-trait) !important; border-radius: 999px !important; background: #fff !important; font: 500 15px/1.2 "Poppins", sans-serif !important; color: var(--tof-encre) !important; text-decoration: none !important; white-space: nowrap; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li.is-active a { background: var(--tof-encre) !important; border-color: var(--tof-encre) !important; color: #fff !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation-link--customer-logout a { border-color: transparent !important; color: var(--tof-texte) !important; }
/* Adresses : deux cases claires, coupe puis miroir */
body:not(#tof) .tof-se .woocommerce-Addresses, body:not(#tof) .tof-se .u-columns.addresses { display: flex !important; gap: 20px; margin: 0 !important; }
body:not(#tof) .tof-se .woocommerce-Addresses::before, body:not(#tof) .tof-se .woocommerce-Addresses::after { display: none !important; }
body:not(#tof) .tof-se .woocommerce-Address { --c: 22px; --rr: 10px; flex: 1 1 0; float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 32px !important; background: var(--tof-doux1) !important; border: 0 !important; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); }
body:not(#tof) .tof-se .woocommerce-Address + .woocommerce-Address { clip-path: polygon(var(--rr) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--rr)), calc(100% - var(--rr)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--rr)); }
body:not(#tof) .tof-se .woocommerce-Address-title { display: flex; flex-direction: column; gap: 6px; border: 0 !important; margin-bottom: 12px; }
body:not(#tof) .tof-se .woocommerce-Address-title a.edit { float: none !important; order: 9; font-weight: 600; text-decoration: none !important; }
body:not(#tof) .tof-se .woocommerce-Address-title a.edit::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tof-accent); margin-left: 8px; vertical-align: middle; }
/* Détails du compte : deux colonnes de champs, bloc mot de passe sans cadre */
body:not(#tof) .tof-se .woocommerce-EditAccountForm { display: flex; flex-wrap: wrap; column-gap: 20px; }
body:not(#tof) .tof-se .woocommerce-EditAccountForm > * { flex: 1 1 100%; }
body:not(#tof) .tof-se .woocommerce-EditAccountForm > .form-row-first, body:not(#tof) .tof-se .woocommerce-EditAccountForm > .form-row-last { flex: 1 1 calc(50% - 10px); width: auto !important; float: none !important; }
body:not(#tof) .tof-se fieldset { border: 0 !important; padding: 10px 0 0 !important; margin: 10px 0 0 !important; }
body:not(#tof) .tof-se fieldset legend { padding: 0 0 14px !important; }
/* Mot de passe oublié */
body:not(#tof) .tof-se .lost_reset_password .form-row { width: 100% !important; float: none !important; }
@media (max-width: 767px) {
  body:not(#tof) .tof-collant { position: static; }
  body:not(#tof) .tof-se .woocommerce-Addresses, body:not(#tof) .tof-se .u-columns.addresses { flex-direction: column; }
  body:not(#tof) .tof-se .woocommerce-EditAccountForm > .form-row-first, body:not(#tof) .tof-se .woocommerce-EditAccountForm > .form-row-last { flex-basis: 100%; }
  body:not(#tof) .tof-se .button, body:not(#tof) .tof-se #place_order, body:not(#tof) .tof-se .woocommerce-form-login__submit, body:not(#tof) .tof-se .woocommerce-form-register__submit, body:not(#tof) .shopengine-template .elementor-widget-button.tof-btn .elementor-button { width: 100% !important; justify-content: center; }
  body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; padding-bottom: 6px !important; scrollbar-width: none; }
  body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li { flex: none; }
}
body:not(#tof) .tof-se .shopengine-cart-table, body:not(#tof) .tof-se .shopengine-cart-form, body:not(#tof) .tof-se .shopengine-cart-table .shopengine-table { border: 0 !important; box-shadow: none !important; background: none !important; }
body:not(#tof) .tof-se .shopengine-cart-table .return-to-shop, body:not(#tof) .tof-se .shopengine-cart-table .return-to-shop a { background: none !important; border: 0 !important; padding: 0 !important; font: 600 15px/1.3 "Open Sans", sans-serif !important; text-transform: none !important; }
/* Corrections après contrôle visuel */
body:not(#tof) .elementor-widget.tof-se, body:not(#tof) .tof-se > .elementor-widget-container { border: 0 !important; box-shadow: none !important; }
body:not(#tof) .tof-se .shopengine-table__body, body:not(#tof) .tof-se .shopengine-cart-table img, body:not(#tof) .tof-se .shopengine-cart-table .remove, body:not(#tof) .tof-se .shopengine-cart-table .quantity { border: 0 !important; }
body:not(#tof) .tof-se .woocommerce-billing-fields__field-wrapper, body:not(#tof) .tof-se .woocommerce-shipping-fields__field-wrapper { background: none !important; padding: 0 !important; }
body:not(#tof) .tof-se table tr, body:not(#tof) .tof-se table tbody { background: none !important; }
body:not(#tof) .tof-se .woocommerce-terms-and-conditions { background: var(--tof-doux2) !important; border: 0 !important; border-radius: 12px; }
body:not(#tof) .tof-se .order-total .amount { font-size: 28px !important; }
body:not(#tof) .tof-se .woocommerce-Address-title h2, body:not(#tof) .tof-se .woocommerce-Address-title h3 { font-size: 22px !important; text-align: left !important; margin: 0 !important; }
body:not(#tof) .tof-se .woocommerce-Address, body:not(#tof) .tof-se .woocommerce-Address-title { text-align: left !important; align-items: flex-start; }
body:not(#tof) .tof-se .woocommerce-Address-title a.edit { background: none !important; padding: 0 !important; border: 0 !important; }
body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { border-color: transparent !important; background: none !important; }
@media (max-width: 767px) { body:not(#tof) .tof-menu-compte .woocommerce-MyAccount-navigation ul { flex-direction: row !important; } }
