/* =========================================================================
 * AB - Boutique Pro — charte Architecture Bois appliquée à WooCommerce
 * Chargé uniquement sur : boutique, fiches, panier, commande, Mon compte
 * et les pages contenant [ab_offres] / [ab_reassurance].
 * Palette du kit média 2027 (noir, gris olive, vert forêt), rouge en simple touche.
 * Titres dans la police des titres du site, Helvetica pour l'interface, angles droits.
 * ========================================================================= */

:root{
  /* Palette inspirée du kit média 2027 : noir, gris olive, vert forêt. Le rouge n'est gardé qu'en touche. */
  --ab-encre:#1c1d1f;
  --ab-accent:#1c1d1f;          /* boutons, éléments actifs */
  --ab-accent-survol:#cc0000;   /* survol des boutons noirs : ils passent au rouge */
  --ab-rouge:#CC0000;           /* touche de marque : étiquette « Le plus complet », erreurs */
  --ab-gris:#4a4c45;
  --ab-gris-clair:#7a7c72;
  --ab-olive:#404238;
  --ab-vert-fonce:#1f2d1b;
  --ab-sauge:#dcdfc9;
  --ab-filet:#d3d5cb;
  --ab-filet-doux:#e7e8e1;
  --ab-fond:#ffffff;            /* fond blanc partout : les blocs sont marqués par des filets, pas par une teinte */
  --ab-vert:#2E7D32;
  --ab-serif:'Barlow Semi Condensed','Barlow Condensed',Helvetica,Arial,sans-serif;
  --ab-sans:'Helvetica Neue',Helvetica,Arial,sans-serif;
}

/* ---------- 1. Typographie de base ---------- */

.woocommerce :where(#content,.site-main), :where(#content,.site-main) .woocommerce,.woocommerce-page :where(#content,.site-main){ font-family:var(--ab-sans); color:var(--ab-encre); }
.woocommerce :where(#content,.site-main) .product_title, :where(#content,.site-main) .woocommerce .product_title,
.woocommerce-page :where(#content,.site-main) h1.entry-title,
.woocommerce :where(#content,.site-main) div.product .product_title, :where(#content,.site-main) .woocommerce div.product .product_title{
  font-family:var(--ab-serif) !important;
  font-weight:700 !important;
  letter-spacing:-.01em;
  line-height:1.2 !important;
  color:var(--ab-encre) !important;
}
.woocommerce :where(#content,.site-main) div.product .product_title, :where(#content,.site-main) .woocommerce div.product .product_title{ font-size:clamp(24px,3.2vw,32px) !important; margin:0 0 10px !important; }

.ab-rubrique,
.woocommerce-checkout :where(#content,.site-main) h3,
.woocommerce-cart :where(#content,.site-main) .cart_totals h2,
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-content h2,
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-content h3{
  font-family:var(--ab-sans) !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
  color:var(--ab-encre) !important;
  padding:0 0 8px !important;
  margin:0 0 18px !important;
  border:0 !important;
  border-bottom:2px solid var(--ab-encre) !important;
}
.ab-rubrique-petite,.ab-surtitre{
  font-family:var(--ab-sans);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ab-gris);
  margin:0 0 8px;
}
.ab-surtitre a{ color:var(--ab-gris) !important; text-decoration:none !important; }

.ab-lien{
  font-family:var(--ab-sans);
  font-size:13px;
  font-weight:700;
  color:var(--ab-encre) !important;
  text-decoration:underline !important;
  text-underline-offset:3px;
}
.ab-lien:hover{ color:var(--ab-rouge) !important; }

/* ---------- 2. Boutons ---------- */

.woocommerce :where(#content,.site-main) a.button, :where(#content,.site-main) .woocommerce a.button,
.woocommerce :where(#content,.site-main) button.button, :where(#content,.site-main) .woocommerce button.button,
.woocommerce :where(#content,.site-main) input.button, :where(#content,.site-main) .woocommerce input.button,
.woocommerce-page :where(#content,.site-main) a.button,
.woocommerce-page :where(#content,.site-main) button.button,
.woocommerce :where(#content,.site-main) #respond input#submit, :where(#content,.site-main) .woocommerce #respond input#submit,
.ab-barre-bouton{
  font-family:var(--ab-sans) !important;
  font-size:12px !important;
  font-weight:700 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  line-height:1.2 !important;
  min-height:48px;
  padding:15px 26px !important;
  border-radius:0 !important;
  box-shadow:none !important;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Boutons du module utilisables hors pages WooCommerce (page /boutique/) */
.ab-bouton-principal,.ab-bouton-secondaire{
  display:inline-flex !important;
  align-items:center; justify-content:center;
  box-sizing:border-box;
  min-height:48px;
  padding:15px 26px !important;
  font-family:var(--ab-sans) !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  text-align:center;
  border-radius:0 !important;
  box-shadow:none !important;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.woocommerce :where(#content,.site-main) a.button, :where(#content,.site-main) .woocommerce a.button,.woocommerce :where(#content,.site-main) button.button, :where(#content,.site-main) .woocommerce button.button{ text-decoration:none !important; box-sizing:border-box; }

/* Secondaire : contour noir (Ajouter au panier, liens d'action) */
.woocommerce :where(#content,.site-main) a.button, :where(#content,.site-main) .woocommerce a.button,
.woocommerce :where(#content,.site-main) button.button, :where(#content,.site-main) .woocommerce button.button,
.woocommerce :where(#content,.site-main) div.product form.cart .single_add_to_cart_button, :where(#content,.site-main) .woocommerce div.product form.cart .single_add_to_cart_button,
.ab-bouton-secondaire{
  background:transparent !important;
  color:var(--ab-encre) !important;
  border:1px solid var(--ab-encre) !important;
}
.woocommerce :where(#content,.site-main) a.button:hover, :where(#content,.site-main) .woocommerce a.button:hover,
.woocommerce :where(#content,.site-main) button.button:hover, :where(#content,.site-main) .woocommerce button.button:hover,
.woocommerce :where(#content,.site-main) div.product form.cart .single_add_to_cart_button:hover, :where(#content,.site-main) .woocommerce div.product form.cart .single_add_to_cart_button:hover,
.ab-bouton-secondaire:hover{
  background:var(--ab-encre) !important;
  color:#fff !important;
}

/* Principal : noir ; passe au rouge au survol. Les achats (Acheter, S'abonner, Payer) sont en rouge, voir la section 12. */
/* Sélecteurs volontairement plus forts que « .woocommerce a.button ». */
html body .button.ab-acheter,
html body a.checkout-button.button,
html body #place_order.button,
html body #place_order,
html body .button.ab-bouton-principal,
html body .ab-bouton-principal,
html body .ab-barre-bouton{
  background:var(--ab-accent) !important;
  color:#fff !important;
  border:1px solid var(--ab-accent) !important;
}
html body .button.ab-acheter:hover,
html body a.checkout-button.button:hover,
html body #place_order.button:hover,
html body .button.ab-bouton-principal:hover,
html body .ab-barre-bouton:hover{
  background:var(--ab-accent-survol) !important;
  border-color:var(--ab-accent-survol) !important;
  color:#fff !important;
}

/* Boutons inactifs : grisés, jamais roses */
.woocommerce :where(#content,.site-main) button.button.disabled, :where(#content,.site-main) .woocommerce button.button.disabled,
.woocommerce :where(#content,.site-main) button.button:disabled, :where(#content,.site-main) .woocommerce button.button:disabled,
.woocommerce :where(#content,.site-main) .single_add_to_cart_button.disabled, :where(#content,.site-main) .woocommerce .single_add_to_cart_button.disabled,
.woocommerce :where(#content,.site-main) .single_add_to_cart_button.wc-variation-selection-needed, :where(#content,.site-main) .woocommerce .single_add_to_cart_button.wc-variation-selection-needed{
  opacity:.4 !important;
  cursor:not-allowed;
}

.woocommerce :where(#content,.site-main) a.button:focus-visible, :where(#content,.site-main) .woocommerce a.button:focus-visible,
.woocommerce :where(#content,.site-main) button.button:focus-visible, :where(#content,.site-main) .woocommerce button.button:focus-visible,
.ab-bouton-principal:focus-visible,
.ab-lien:focus-visible{
  outline:2px solid var(--ab-accent) !important;
  outline-offset:2px;
}

/* ---------- 3. Fiche produit ---------- */

.woocommerce :where(#content,.site-main) div.product div.images img, :where(#content,.site-main) .woocommerce div.product div.images img{ border-radius:0 !important; box-shadow:none !important; }
.woocommerce :where(#content,.site-main) div.product div.images .woocommerce-product-gallery__wrapper, :where(#content,.site-main) .woocommerce div.product div.images .woocommerce-product-gallery__wrapper{ border:1px solid var(--ab-filet-doux); }

.woocommerce :where(#content,.site-main) div.product .summary .price, :where(#content,.site-main) .woocommerce div.product .summary .price,
.woocommerce :where(#content,.site-main) div.product p.price, :where(#content,.site-main) .woocommerce div.product p.price{
  font-family:var(--ab-sans) !important;
  font-size:28px !important;
  font-weight:700 !important;
  color:var(--ab-encre) !important;
  margin:0 0 6px !important;
}
.ab-prix-apartir{
  font-size:13px;
  font-weight:400;
  color:var(--ab-gris);
  text-transform:none;
  letter-spacing:0;
  margin-right:2px;
}
/* Abonnements : « 6,00 € /mois » en grand, total de la période en petit dessous */
.ab-prix-mensuel{ display:inline-block; }
.ab-par-mois{ font-size:.55em; font-weight:400; color:var(--ab-gris); margin-left:2px; }
.ab-prix-total{ display:block; font-size:13px; font-weight:400; color:var(--ab-gris); margin-top:2px; }
.ab-barre-prix .ab-prix-total{ display:none; }
/* Pictogramme dans le surtitre (abonnement, magazine) */
.ab-surtitre{ display:flex; align-items:center; gap:8px; }
.ab-surtitre .ab-icone{ width:18px; height:18px; flex:0 0 auto; }
.ab-icone-image{ object-fit:contain; }
/* Prix mensuel (ACF) — était en bleu dans style.css */
.woocommerce :where(#content,.site-main) .prix-mensuel-annuel, :where(#content,.site-main) .woocommerce .prix-mensuel-annuel{
  font-family:var(--ab-sans);
  font-size:14px !important;
  color:var(--ab-gris) !important;
  margin:0 0 18px !important;
}
.woocommerce :where(#content,.site-main) .prix-mensuel-annuel strong, :where(#content,.site-main) .woocommerce .prix-mensuel-annuel strong{ color:var(--ab-encre); }

/* Description courte */
.woocommerce :where(#content,.site-main) div.product .woocommerce-product-details__short-description, :where(#content,.site-main) .woocommerce div.product .woocommerce-product-details__short-description{
  font-size:15px;
  line-height:1.7;
  color:var(--ab-gris);
  margin:18px 0 0;
}

/* Tableau des variations */
.woocommerce :where(#content,.site-main) div.product form.cart, :where(#content,.site-main) .woocommerce div.product form.cart{ margin:20px 0 0 !important; }
.woocommerce :where(#content,.site-main) div.product form.cart table.variations, :where(#content,.site-main) .woocommerce div.product form.cart table.variations,
.woocommerce :where(#content,.site-main) div.product form.cart table.variations tbody, :where(#content,.site-main) .woocommerce div.product form.cart table.variations tbody{ display:block !important; width:100% !important; margin:0 0 12px !important; border:0 !important; }
.woocommerce :where(#content,.site-main) div.product form.cart table.variations tr, :where(#content,.site-main) .woocommerce div.product form.cart table.variations tr,
.woocommerce :where(#content,.site-main) div.product form.cart table.variations th, :where(#content,.site-main) .woocommerce div.product form.cart table.variations th,
.woocommerce :where(#content,.site-main) div.product form.cart table.variations td, :where(#content,.site-main) .woocommerce div.product form.cart table.variations td{
  display:block !important;
  padding:0 !important;
  border:0 !important;
  background:none !important;
  text-align:left !important;
}
.woocommerce :where(#content,.site-main) div.product form.cart table.variations th label, :where(#content,.site-main) .woocommerce div.product form.cart table.variations th label,
.woocommerce :where(#content,.site-main) div.product form.cart table.variations td.label label, :where(#content,.site-main) .woocommerce div.product form.cart table.variations td.label label{
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ab-encre);
  margin:0 0 10px !important;
  display:block;
}
.woocommerce :where(#content,.site-main) div.product form.cart:not(.ab-multi) .reset_variations, :where(#content,.site-main) .woocommerce div.product form.cart:not(.ab-multi) .reset_variations{ display:none !important; } /* « Effacer » gardé quand il y a plusieurs attributs */
.woocommerce :where(#content,.site-main) div.product .woocommerce-variation-price, :where(#content,.site-main) .woocommerce div.product .woocommerce-variation-price{ display:none; } /* déjà dans le prix principal */

/* Choix en boutons */
.ab-select-masque{
  position:absolute !important;
  width:1px !important; height:1px !important;
  opacity:0 !important; pointer-events:none !important;
  overflow:hidden !important; clip:rect(0 0 0 0) !important;
}
.ab-choix{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 6px; }
.ab-choix-option{
  position:relative;
  flex:1 1 140px;
  display:flex !important;
  flex-direction:column;
  gap:2px;
  padding:12px 14px !important;
  border:1px solid var(--ab-filet);
  background:#fff;
  cursor:pointer;
  transition:border-color .2s ease,box-shadow .2s ease;
  margin:0 !important;
  font-size:14px !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.ab-choix-option input{ position:absolute; opacity:0; pointer-events:none; }
.ab-choix-nom{ font-weight:700; color:var(--ab-encre); }
.ab-choix-prix{ font-size:13px; color:var(--ab-gris); }
.ab-choix-total{ font-size:11px; color:var(--ab-gris-clair); }
.ab-choix-option:hover{ border-color:var(--ab-encre); }
.ab-choix-option:has(input:checked){ border-color:var(--ab-accent); box-shadow:inset 0 0 0 1px var(--ab-accent); }
.ab-choix-option:has(input:checked) .ab-choix-prix{ color:var(--ab-accent); }
.ab-choix-option:has(input:focus-visible){ outline:2px solid var(--ab-accent); outline-offset:2px; }
.ab-choix-option.est-indisponible{ opacity:.45; cursor:not-allowed; text-decoration:line-through; }

/* Ligne quantité + boutons */
.woocommerce :where(#content,.site-main) div.product form.cart .woocommerce-variation-add-to-cart, :where(#content,.site-main) .woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce :where(#content,.site-main) div.product form.cart:not(.variations_form), :where(#content,.site-main) .woocommerce div.product form.cart:not(.variations_form){
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:10px;
}
.woocommerce :where(#content,.site-main) div.product form.cart .quantity, :where(#content,.site-main) .woocommerce div.product form.cart .quantity{ margin:0 !important; }
.woocommerce :where(#content,.site-main) div.product form.cart .prix-mensuel-annuel, :where(#content,.site-main) .woocommerce div.product form.cart .prix-mensuel-annuel{ flex:1 1 100%; }
.woocommerce :where(#content,.site-main) div.product form.cart table.variations td.value, :where(#content,.site-main) .woocommerce div.product form.cart table.variations td.value{ margin:0 0 4px !important; }
.woocommerce :where(#content,.site-main) div.product form.cart .quantity input.qty, :where(#content,.site-main) .woocommerce div.product form.cart .quantity input.qty,
.woocommerce :where(#content,.site-main) div.product form.cart .quantity .minus, :where(#content,.site-main) .woocommerce div.product form.cart .quantity .minus,
.woocommerce :where(#content,.site-main) div.product form.cart .quantity .plus, :where(#content,.site-main) .woocommerce div.product form.cart .quantity .plus{
  height:48px !important;
  border-radius:0 !important;
  border-color:var(--ab-filet) !important;
}
.woocommerce :where(#content,.site-main) div.product form.cart .single_add_to_cart_button, :where(#content,.site-main) .woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce :where(#content,.site-main) div.product form.cart .ab-acheter, :where(#content,.site-main) .woocommerce div.product form.cart .ab-acheter{
  flex:1 1 180px;
  margin:0 !important;
}

/* Réassurance sous le bouton */
.ab-conditions-courtes{ font-size:13px; color:var(--ab-gris); margin:12px 0 0; }
.ab-reassurance{
  list-style:none !important;
  margin:20px 0 0 !important;
  padding:16px 0 0 !important;
  border-top:1px solid var(--ab-filet);
  display:grid;
  gap:10px;
}
.ab-reassurance li{
  display:flex; align-items:center; gap:10px;
  font-size:13px; color:var(--ab-gris);
  margin:0 !important;
}
.ab-reassurance .ab-icone{ flex:0 0 auto; color:var(--ab-encre); }
.ab-reassurance a{ color:var(--ab-encre) !important; font-weight:700; }

/* Partage Jetpack : discret */
.woocommerce :where(#content,.site-main) div.product .sharedaddy, :where(#content,.site-main) .woocommerce div.product .sharedaddy{ margin-top:22px !important; opacity:.8; }
.woocommerce :where(#content,.site-main) div.product .sharedaddy .sd-title, :where(#content,.site-main) .woocommerce div.product .sharedaddy .sd-title{ font-size:11px !important; letter-spacing:.14em; text-transform:uppercase; }

/* Sections (anciens onglets) */
.ab-sections{ clear:both; max-width:820px; margin:30px auto 0; }
.ab-section{ margin:0 0 26px; }
.ab-section-contenu{ font-size:16px; line-height:1.75; color:#333; }
.ab-section-contenu h2,.ab-section-contenu h3{
  font-family:var(--ab-serif) !important;
  color:var(--ab-encre) !important;
  letter-spacing:-.005em;
  margin:24px 0 10px !important;
}
.ab-section-contenu h2{ font-size:24px !important; }
.ab-section-contenu h3{ font-size:19px !important; }
.ab-section-contenu img{ height:auto; max-width:100%; border-radius:0; }
.ab-section-contenu figure figcaption,.ab-section-contenu .wp-caption-text{
  font-size:12px; font-style:italic; color:var(--ab-gris-clair);
}
.ab-section-conditions .ab-section-contenu{
  background:var(--ab-fond);
  border:1px solid var(--ab-filet);
  border-left:3px solid var(--ab-accent);
  padding:16px 20px;
  font-size:14px;
}

/* Encart « Abonnez-vous » */
.ab-cta-abo{
  clear:both;
  max-width:820px;
  margin:0 auto 26px;
  padding:20px 24px;
  border:1px solid var(--ab-filet);
  border-top:3px solid var(--ab-accent);
  display:flex; flex-wrap:wrap; gap:16px;
  align-items:center; justify-content:space-between;
}
.ab-cta-abo-titre{ font-family:var(--ab-serif); font-size:19px; font-weight:700; margin:0; color:var(--ab-encre); }
.ab-cta-abo-texte{ flex:1 1 280px; }

/* Bloc d'achat bas de fiche (ab-achat-direct.php) */
.woocommerce :where(#content,.site-main) .ab-achat-bloc, :where(#content,.site-main) .woocommerce .ab-achat-bloc{
  max-width:820px; margin:0 auto 26px !important;
  border:1px solid var(--ab-filet) !important;
  border-top:3px solid var(--ab-accent) !important;
}

/* Produits similaires / grilles */
.woocommerce :where(#content,.site-main) .related > h2, :where(#content,.site-main) .woocommerce .related > h2,.woocommerce :where(#content,.site-main) .upsells > h2, :where(#content,.site-main) .woocommerce .upsells > h2{
  font-family:var(--ab-sans) !important;
  font-size:13px !important; font-weight:700 !important;
  letter-spacing:.14em; text-transform:uppercase;
  border-bottom:2px solid var(--ab-encre); padding-bottom:8px;
}
.woocommerce :where(#content,.site-main) ul.products li.product, :where(#content,.site-main) .woocommerce ul.products li.product{ text-align:left !important; }
.woocommerce :where(#content,.site-main) ul.products li.product a img, :where(#content,.site-main) .woocommerce ul.products li.product a img{ border-radius:0 !important; box-shadow:none !important; border:1px solid var(--ab-filet-doux); }
.woocommerce :where(#content,.site-main) ul.products li.product .woocommerce-loop-product__title, :where(#content,.site-main) .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--ab-serif) !important;
  font-size:16px !important; font-weight:700 !important;
  color:var(--ab-encre) !important; line-height:1.35 !important;
}
.woocommerce :where(#content,.site-main) ul.products li.product .price, :where(#content,.site-main) .woocommerce ul.products li.product .price{ font-size:14px !important; font-weight:700 !important; color:var(--ab-encre) !important; }
.woocommerce :where(#content,.site-main) ul.products li.product .ast-woo-product-category, :where(#content,.site-main) .woocommerce ul.products li.product .ast-woo-product-category{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ab-gris); }
.woocommerce :where(#content,.site-main) ul.products li.product .button, :where(#content,.site-main) .woocommerce ul.products li.product .button{ width:100%; margin-top:10px !important; }

/* Barre d'achat mobile */
.ab-barre-achat{ display:none; }
@media (max-width:768px){
  .ab-barre-achat{
    position:fixed; left:0; right:0; bottom:0; z-index:9990;
    display:flex; align-items:center; gap:12px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid var(--ab-filet);
    box-shadow:0 -4px 16px rgba(0,0,0,.06);
    transform:translateY(110%);
    visibility:hidden;
    transition:transform .25s ease,visibility .25s;
  }
  .ab-barre-achat.est-visible{ transform:none; visibility:visible; }
  .ab-barre-infos{ flex:1; min-width:0; display:flex; flex-direction:column; }
  .ab-barre-titre{ font-size:12px; color:var(--ab-gris); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ab-barre-prix{ font-size:16px; font-weight:700; color:var(--ab-encre); }
  .ab-barre-prix .ab-prix-apartir{ font-size:11px; }
  .ab-barre-bouton{ flex:0 0 auto; cursor:pointer; }
  /* Place réservée sous le contenu : la barre ne cache jamais le pied de page (mentions, CGV). */
  body.ab-a-barre{ padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- 4. Messages WooCommerce / Memberships ---------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-memberships-restriction-message,
.wc-memberships-message{
  background:var(--ab-fond) !important;
  border:1px solid var(--ab-filet) !important;
  border-left:3px solid var(--ab-encre) !important;
  border-radius:0 !important;
  color:var(--ab-encre) !important;
  font-size:14px !important;
  padding:14px 18px 14px 20px !important;
  box-shadow:none !important;
}
.woocommerce-message{ border-left-color:var(--ab-vert) !important; }
.woocommerce-error{ border-left-color:var(--ab-rouge) !important; }
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{ display:none !important; }
.woocommerce-message .button,.woocommerce-info .button{ float:right; min-height:0; padding:8px 14px !important; }
.wc-memberships-restriction-message{ border-left-color:var(--ab-accent) !important; padding:22px 24px !important; }
.wc-memberships-restriction-message a{ color:var(--ab-accent) !important; font-weight:700; }

/* ---------- 5. Champs de formulaire ---------- */

.woocommerce :where(#content,.site-main) form .form-row input.input-text, :where(#content,.site-main) .woocommerce form .form-row input.input-text,
.woocommerce :where(#content,.site-main) form .form-row textarea, :where(#content,.site-main) .woocommerce form .form-row textarea,
.woocommerce :where(#content,.site-main) form .form-row select, :where(#content,.site-main) .woocommerce form .form-row select,
.woocommerce-page :where(#content,.site-main) form .form-row input.input-text,
.woocommerce :where(#content,.site-main) .select2-container .select2-selection--single, :where(#content,.site-main) .woocommerce .select2-container .select2-selection--single{
  min-height:48px;
  font-size:16px !important; /* évite le zoom iPhone */
  border:1px solid #C8C8C8 !important;
  border-radius:0 !important;
  background:#fff !important;
  padding:10px 12px !important;
  box-shadow:none !important;
}
.woocommerce :where(#content,.site-main) .select2-container .select2-selection--single .select2-selection__rendered, :where(#content,.site-main) .woocommerce .select2-container .select2-selection--single .select2-selection__rendered{ line-height:26px !important; padding:0 !important; }
.woocommerce :where(#content,.site-main) .select2-container .select2-selection--single .select2-selection__arrow, :where(#content,.site-main) .woocommerce .select2-container .select2-selection--single .select2-selection__arrow{ height:46px !important; }
.woocommerce :where(#content,.site-main) form .form-row input.input-text:focus, :where(#content,.site-main) .woocommerce form .form-row input.input-text:focus,
.woocommerce :where(#content,.site-main) form .form-row textarea:focus, :where(#content,.site-main) .woocommerce form .form-row textarea:focus,
.woocommerce :where(#content,.site-main) form .form-row select:focus, :where(#content,.site-main) .woocommerce form .form-row select:focus{
  border-color:var(--ab-encre) !important;
  outline:2px solid rgba(204,0,0,.18);
  outline-offset:0;
}
.woocommerce :where(#content,.site-main) form .form-row label, :where(#content,.site-main) .woocommerce form .form-row label{ font-size:13px; font-weight:700; color:var(--ab-encre); margin-bottom:4px; }
.woocommerce :where(#content,.site-main) form .form-row .required, :where(#content,.site-main) .woocommerce form .form-row .required{ color:var(--ab-rouge); text-decoration:none; }
.woocommerce :where(#content,.site-main) form .form-row.woocommerce-invalid input.input-text, :where(#content,.site-main) .woocommerce form .form-row.woocommerce-invalid input.input-text{ border-color:var(--ab-rouge) !important; }

/* ---------- 6. Panier ---------- */

body.woocommerce-cart .xoo-wsc-basket,
body.woocommerce-checkout .xoo-wsc-basket{ display:none !important; } /* l'icône flottante masquait les champs (elle est hors du contenu : sélecteur sur body) */

/* Badge reCAPTCHA (Contact Form 7) : laissé visible (exigé par Google s'il n'y a pas de mention texte),
   mais remonté au-dessus de la barre d'achat mobile pour ne pas cacher le bouton. */
@media (max-width:768px){ body.ab-a-barre .grecaptcha-badge{ bottom:160px !important; } }

.woocommerce-cart :where(#content,.site-main) table.shop_table{
  border:0 !important; border-radius:0 !important;
  border-top:2px solid var(--ab-encre) !important;
}
.woocommerce-cart :where(#content,.site-main) table.shop_table th{
  font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ab-gris);
}
.woocommerce-cart :where(#content,.site-main) table.shop_table td{ border-top:1px solid var(--ab-filet) !important; padding:16px 10px !important; }
.woocommerce-cart :where(#content,.site-main) table.cart td.product-name a{ font-family:var(--ab-serif); font-weight:700; font-size:16px; color:var(--ab-encre) !important; }
.woocommerce-cart :where(#content,.site-main) table.cart img{ width:72px !important; border:1px solid var(--ab-filet-doux); }
.woocommerce-cart :where(#content,.site-main) table.cart td.product-remove a.remove{ color:var(--ab-gris-clair) !important; font-size:20px; }
.woocommerce-cart :where(#content,.site-main) table.cart td.product-remove a.remove:hover{ background:none !important; color:var(--ab-rouge) !important; }

.woocommerce-cart :where(#content,.site-main) .cart-collaterals .cart_totals{
  border:1px solid var(--ab-filet); padding:22px 22px 18px; background:#fff;
}
.woocommerce-cart :where(#content,.site-main) .cart_totals table.shop_table{ border-top:0 !important; }
.woocommerce-cart :where(#content,.site-main) .cart_totals .order-total td,
.woocommerce-cart :where(#content,.site-main) .cart_totals .order-total th{ font-size:18px; font-weight:700; }
.woocommerce-cart :where(#content,.site-main) .wc-proceed-to-checkout a.checkout-button{ width:100%; font-size:13px !important; margin-bottom:12px !important; }
.woocommerce-cart :where(#content,.site-main) .wc-proceed-to-checkout .wc-stripe-payment-request-wrapper,
.woocommerce-cart :where(#content,.site-main) .wc-proceed-to-checkout #wc-stripe-express-checkout-element{ margin-top:6px; }
.woocommerce :where(#content,.site-main) .cart-empty.woocommerce-info, :where(#content,.site-main) .woocommerce .cart-empty.woocommerce-info{ font-family:var(--ab-serif); font-size:19px !important; }

@media (max-width:768px){
  .woocommerce-cart :where(#content,.site-main) table.shop_table_responsive thead{ display:none; }
  .woocommerce-cart :where(#content,.site-main) table.shop_table_responsive tr.cart_item{
    display:grid !important;
    grid-template-columns:72px 1fr auto;
    grid-template-areas:"img nom suppr" "img prix prix" "img qte total";
    gap:4px 12px;
    padding:16px 0;
    border-bottom:1px solid var(--ab-filet);
  }
  .woocommerce-cart :where(#content,.site-main) table.shop_table_responsive tr.cart_item td{
    display:block !important; border:0 !important; padding:0 !important; text-align:left !important;
  }
  .woocommerce-cart :where(#content,.site-main) table.shop_table_responsive tr.cart_item td::before{ display:none !important; }
  .woocommerce-cart :where(#content,.site-main) td.product-thumbnail{ grid-area:img; display:block !important; }
  .woocommerce-cart :where(#content,.site-main) td.product-name{ grid-area:nom; }
  .woocommerce-cart :where(#content,.site-main) td.product-remove{ grid-area:suppr; text-align:right !important; }
  .woocommerce-cart :where(#content,.site-main) td.product-price{ grid-area:prix; font-size:13px; color:var(--ab-gris); }
  .woocommerce-cart :where(#content,.site-main) td.product-quantity{ grid-area:qte; }
  .woocommerce-cart :where(#content,.site-main) td.product-subtotal{ grid-area:total; font-weight:700; text-align:right !important; }
  .woocommerce-cart :where(#content,.site-main) .cart-collaterals .cart_totals{ width:100% !important; float:none !important; }
}

/* ---------- 7. Commande ---------- */

.woocommerce-checkout :where(#content,.site-main) #customer_details h3,
.woocommerce-checkout :where(#content,.site-main) #order_review_heading{ margin-top:8px !important; }

.woocommerce-checkout :where(#content,.site-main) #order_review{
  border:1px solid var(--ab-filet) !important;
  padding:22px !important;
  background:#fff;
}
.woocommerce-checkout :where(#content,.site-main) table.woocommerce-checkout-review-order-table{ border:0 !important; }
.woocommerce-checkout :where(#content,.site-main) table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout :where(#content,.site-main) table.woocommerce-checkout-review-order-table th{ border-color:var(--ab-filet) !important; padding:12px 0 !important; }
.woocommerce-checkout :where(#content,.site-main) .order-total td,.woocommerce-checkout :where(#content,.site-main) .order-total th{ font-size:18px !important; font-weight:700; }
.woocommerce-checkout :where(#content,.site-main) .order-total .includes_tax{ display:block; font-size:12px; font-weight:400; color:var(--ab-gris-clair); }

.woocommerce-checkout :where(#content,.site-main) #payment{ background:transparent !important; border-radius:0 !important; }
.woocommerce-checkout :where(#content,.site-main) #payment ul.payment_methods{ border:0 !important; padding:0 0 4px !important; margin:12px 0 10px !important; }
.woocommerce-checkout :where(#content,.site-main) #payment ul.payment_methods li{ border:1px solid var(--ab-filet); padding:14px !important; margin:0 0 8px !important; list-style:none; }
.woocommerce-checkout :where(#content,.site-main) #payment div.payment_box{ background:var(--ab-fond) !important; border:1px solid var(--ab-filet) !important; border-radius:0 !important; }
.woocommerce-checkout :where(#content,.site-main) #payment div.payment_box::before{ display:none !important; }
.woocommerce-checkout :where(#content,.site-main) #payment .place-order{ padding:12px 0 0 !important; }
.woocommerce-checkout :where(#content,.site-main) #payment .woocommerce-terms-and-conditions-wrapper{ margin:0 0 14px !important; }
/* Mention de confidentialité : lisible mais discrète (certains thèmes la passent en grands caractères). */
.woocommerce-checkout :where(#content,.site-main) #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout :where(#content,.site-main) #payment .woocommerce-privacy-policy-text p{ font-size:13px !important; line-height:1.5 !important; margin:0 0 12px !important; color:var(--ab-gris); }
.woocommerce-checkout :where(#content,.site-main) #place_order{ width:100% !important; font-size:14px !important; min-height:56px; float:none !important; }

.woocommerce-checkout :where(#content,.site-main) .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout :where(#content,.site-main) .ab-renonciation,
.ab-rappel-abonnement{ font-size:13px; color:var(--ab-gris); }
.woocommerce-checkout :where(#content,.site-main) .ab-renonciation label{ font-weight:400 !important; line-height:1.5; }
.ab-rappel-abonnement{ background:var(--ab-fond); border:1px solid var(--ab-filet); border-left:3px solid var(--ab-accent); padding:10px 14px; margin:0 0 12px; }

.ab-paiement-securise{
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:12px; color:var(--ab-gris); margin:12px 0 0; text-align:center;
}

.woocommerce-checkout :where(#content,.site-main) .woocommerce-form-coupon-toggle .woocommerce-info{ background:none !important; border-left:0 !important; padding:0 !important; font-size:13px !important; }

/* Récapitulatif mobile */
.ab-resume-mobile{ display:none; }
@media (max-width:921px){
  .ab-resume-mobile{
    display:block; margin:0 0 24px; border:1px solid var(--ab-filet); background:var(--ab-fond);
  }
  .ab-resume-mobile summary{
    display:flex; justify-content:space-between; align-items:center;
    padding:14px 16px; cursor:pointer; list-style:none;
    font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  }
  .ab-resume-mobile summary::-webkit-details-marker{ display:none; }
  .ab-resume-mobile summary span::after{ content:" ▾"; color:var(--ab-gris-clair); }
  .ab-resume-mobile[open] summary span::after{ content:" ▴"; }
  .ab-resume-mobile summary strong{ font-size:16px; letter-spacing:0; }
  .ab-resume-mobile ul{ list-style:none; margin:0; padding:0 16px 12px; }
  .ab-resume-mobile li{ display:grid; grid-template-columns:48px 1fr auto; gap:12px; align-items:center; padding:8px 0; border-top:1px solid var(--ab-filet); font-size:14px; }
  .ab-resume-mobile li img{ width:48px; height:auto; border:1px solid var(--ab-filet-doux); }

  /* Une seule colonne */
  .woocommerce-checkout :where(#content,.site-main) #customer_details,
.woocommerce-checkout :where(#content,.site-main) #customer_details .col-1,
.woocommerce-checkout :where(#content,.site-main) #customer_details .col-2,
.woocommerce-checkout :where(#content,.site-main) #order_review,
.woocommerce-checkout :where(#content,.site-main) #order_review_heading{
    width:100% !important; float:none !important; margin-left:0 !important; margin-right:0 !important;
  }
  .woocommerce-checkout :where(#content,.site-main) form .form-row-first,
.woocommerce-checkout :where(#content,.site-main) form .form-row-last{ width:100% !important; float:none !important; }
  .woocommerce-checkout :where(#content,.site-main) #order_review{ padding:16px !important; }
}
@media (min-width:922px){
  .woocommerce-checkout :where(#content,.site-main) #order_review{ position:sticky; top:24px; }
}

/* ---------- 8. Mon compte ---------- */

.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation ul{
  list-style:none !important; margin:0 !important; padding:0 !important;
  border-top:2px solid var(--ab-encre);
}
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li{ margin:0 !important; border-bottom:1px solid var(--ab-filet); }
/* flex + gap : les icônes déjà présentes (pseudo-élément, <i>, <img>, <svg>) sont conservées */
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li a{
  display:flex; align-items:center; gap:10px; padding:13px 4px !important;
  font-size:14px; font-weight:400; color:var(--ab-encre) !important; text-decoration:none !important;
}
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li a:hover{ color:var(--ab-accent) !important; }
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li.is-active a{
  font-weight:700; color:var(--ab-accent) !important;
  box-shadow:inset 3px 0 0 var(--ab-accent); padding-left:14px !important;
}

@media (max-width:768px){
  /* Menu en onglets défilants au lieu d'une longue liste */
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation{ width:100% !important; float:none !important; margin:0 0 24px !important; }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation ul{
    display:flex; overflow-x:auto; gap:8px; border:0; padding:0 0 6px !important;
    scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{ display:none; }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li{ border:0; flex:0 0 auto; }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li a{
    padding:10px 14px !important; border:1px solid var(--ab-filet); font-size:13px; white-space:nowrap;
  }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li.is-active a{
    box-shadow:none; border-color:var(--ab-encre); background:var(--ab-encre); color:#fff !important; padding-left:14px !important;
  }
  .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-content{ width:100% !important; float:none !important; }
}

/* Tableau de bord */
.ab-compte-entete{ margin:0 0 24px; }
.ab-compte-titre,
.woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-content h2.ab-compte-titre{
  font-family:var(--ab-serif) !important; font-size:28px !important; font-weight:700 !important;
  text-transform:none !important; letter-spacing:-.01em !important;
  border:0 !important; padding:0 !important; margin:0 0 6px !important;
}
.ab-compte-intro{ color:var(--ab-gris); margin:0; }

.ab-carte-abo{
  display:flex; flex-wrap:wrap; gap:16px 24px; align-items:center; justify-content:space-between;
  padding:22px 24px; margin:0 0 24px;
  border:1px solid var(--ab-filet); border-top:3px solid var(--ab-accent);
}
.ab-carte-abo p{ margin:0 0 4px; }
.ab-carte-abo-titre{ font-family:var(--ab-serif); font-size:22px; font-weight:700; color:var(--ab-encre); }
.ab-carte-abo-etat{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--ab-gris); }
.ab-pastille{ width:9px; height:9px; border-radius:50%; background:var(--ab-vert); display:inline-block; }
.ab-carte-abo-actions{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.ab-carte-abo-vide{ border-top-color:var(--ab-encre); background:var(--ab-fond); }

.ab-tuiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 32px; }
.ab-tuile{
  display:flex; flex-direction:column; gap:4px;
  padding:18px; border:1px solid var(--ab-filet);
  color:var(--ab-encre) !important; text-decoration:none !important;
  transition:border-color .2s ease;
}
.ab-tuile:hover{ border-color:var(--ab-encre); }
.ab-tuile .ab-icone{ color:var(--ab-accent); width:24px; height:24px; margin-bottom:6px; }
.ab-tuile-nom{ font-weight:700; font-size:15px; }
.ab-tuile-desc{ font-size:13px; color:var(--ab-gris); line-height:1.45; }
@media (max-width:900px){ .ab-tuiles{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:420px){ .ab-tuile{ padding:14px; } .ab-tuile-desc{ display:none; } }

.ab-derniers-pdf ul{ list-style:none; margin:0 0 14px; padding:0; }
.ab-derniers-pdf li{ display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--ab-filet); font-size:15px; }
.ab-compte-deco{ margin:32px 0 0; font-size:13px; color:var(--ab-gris-clair); }
.ab-compte-deco a{ color:var(--ab-gris) !important; }

/* Tableaux du compte (commandes, téléchargements) */
.woocommerce-account :where(#content,.site-main) table.shop_table{ border:0 !important; border-top:2px solid var(--ab-encre) !important; border-radius:0 !important; }
.woocommerce-account :where(#content,.site-main) table.shop_table th{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ab-gris); }
.woocommerce-account :where(#content,.site-main) table.shop_table td{ border-top:1px solid var(--ab-filet) !important; }
.woocommerce-account :where(#content,.site-main) table.shop_table .button{ min-height:36px; padding:9px 14px !important; }

/* ---------- 9. Page boutique : [ab_offres] et [ab_reassurance] ---------- */

.ab-offres{
  /* Colonnes selon la place réellement disponible (pleine largeur, colonne étroite, barre latérale…) */
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:16px;
  margin-top:0; margin-bottom:22px; font-family:var(--ab-sans); align-items:stretch;
}
.ab-offre{
  position:relative; display:flex; flex-direction:column;
  padding:26px 22px 22px; border:1px solid var(--ab-filet); background:#fff;
}
.ab-offre-vedette{ border:1px solid var(--ab-encre); }
/* Filet rouge fin en tête de la carte mise en avant (posé par-dessus l'image, sans décaler la carte). */
.ab-offre-vedette::before{ content:""; position:absolute; left:-1px; right:-1px; top:-1px; height:3px; background:var(--ab-rouge); z-index:2; }
.ab-offre-etiquette{
  position:absolute; top:-12px; left:22px; margin:0;
  background:var(--ab-rouge); color:#fff; font-size:10px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; padding:4px 8px;
}
.ab-offre-media{ position:relative; margin:-26px -22px 18px; }
.ab-offre-media .ab-offre-etiquette{ top:auto; bottom:-11px; left:auto; right:14px; }

.ab-offre-vignette{ display:block; margin:0; line-height:0; background:var(--ab-fond); }
.ab-offre-vignette img{ width:100%; height:auto; aspect-ratio:289/189; object-fit:cover; display:block; }
.ab-offre-eyebrow{ display:flex; align-items:center; gap:6px; }
.ab-offre-eyebrow .ab-icone{ width:15px; height:15px; }
.ab-offre-visuel{
  width:56px; height:56px; margin:0 0 14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--ab-filet); border-radius:50%; color:var(--ab-accent); background:#fff;
}
.ab-offre-visuel .ab-icone{ width:28px; height:28px; }
.ab-offre-visuel img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.ab-offre-vedette .ab-offre-visuel{ background:var(--ab-accent); border-color:var(--ab-accent); color:#fff; }
.ab-offre-eyebrow{
  font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ab-gris); margin:0 0 4px;
}
.ab-offre-nom{ font-family:var(--ab-serif) !important; font-size:24px !important; font-weight:700 !important; margin:0 0 4px !important; color:var(--ab-encre) !important; }
.ab-offre-accroche{ font-size:14px; color:var(--ab-gris); margin:0 0 18px; min-height:2.9em; }
.ab-offre-prix{ font-size:30px; font-weight:700; color:var(--ab-encre); margin:0; line-height:1.1; }
.ab-offre-duree{ font-size:14px; font-weight:400; color:var(--ab-gris); }
.ab-offre-mensuel{ font-size:13px; color:var(--ab-gris); margin:4px 0 18px; }
.ab-offre-inclus{ list-style:none !important; margin:0 0 22px !important; padding:16px 0 0 !important; border-top:1px solid var(--ab-filet); flex:1; }
.ab-offre-inclus li{ display:flex; gap:8px; align-items:flex-start; font-size:14px; line-height:1.45; margin:0 0 9px !important; color:#333; }
.ab-offre-inclus .ab-icone{ flex:0 0 auto; width:16px; height:16px; color:var(--ab-vert-fonce); margin-top:2px; }
.ab-offre-actions{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.ab-offre-actions .button{ width:100%; }
.ab-offre-note{ font-size:11px; line-height:1.35; color:var(--ab-gris-clair); margin:0; text-align:center; min-height:1.35em; }
.ab-offre-note-vide{ visibility:hidden; }

@media (max-width:600px){
  .ab-offres{ gap:24px; }
  .ab-offre-vedette{ order:-1; }
  .ab-offre-accroche{ min-height:0; }
}

.ab-reassurance-bande{
  /* Marges haut/bas seulement : le thème garde la main sur le centrage dans la colonne. */
  list-style:none !important; margin-top:0 !important; margin-bottom:22px !important; padding:16px 0 !important;
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  border-top:1px solid var(--ab-filet); border-bottom:1px solid var(--ab-filet);
  font-family:var(--ab-sans);
}
.ab-reassurance-bande li{ display:grid; grid-template-columns:24px 1fr; column-gap:10px; align-items:center; margin:0 !important; }
.ab-reassurance-bande .ab-icone{ grid-row:span 2; color:var(--ab-encre); width:24px; height:24px; }
.ab-rb-titre{ font-size:13px; font-weight:700; color:var(--ab-encre); }
.ab-rb-texte{ font-size:12px; color:var(--ab-gris); }
@media (max-width:768px){ .ab-reassurance-bande{ grid-template-columns:repeat(2,1fr); gap:18px 12px; } }

/* ---------- 10. Accessibilité ---------- */
@media (prefers-reduced-motion:reduce){
  .ab-barre-achat,
.ab-choix-option,
.ab-tuile,
.woocommerce :where(#content,.site-main) a.button, :where(#content,.site-main) .woocommerce a.button,
.woocommerce :where(#content,.site-main) button.button, :where(#content,.site-main) .woocommerce button.button{ transition:none !important; }
}


/* ---------- 10. Sécurité : message Memberships dans les grilles de produits ----------
 * « Cette catégorie ne peut être vue que par les membres » ne doit jamais apparaître
 * parmi les produits en vente. La vraie correction est dans WooCommerce > Memberships
 * (retirer la restriction sur la catégorie Abonnements). Ceci n'est qu'un filet de sécurité. */
.post-type-archive-product :where(#content,.site-main) ul.products .wc-memberships-restriction-message,
.tax-product_cat :where(#content,.site-main) ul.products .wc-memberships-restriction-message,
.tax-product_cat :where(#content,.site-main) .woocommerce-products-header ~ .wc-memberships-restriction-message,
.tax-product_cat :where(#content,.site-main) .woocommerce-info.wc-memberships-restriction-message{ display:none !important; }

/* ---------- 11. Icônes du menu « Mon compte » (option 'icones_menu') ---------- */
body.ab-menu-icones .woocommerce-MyAccount-navigation li a::before{
  content:""; flex:0 0 auto; width:18px; height:18px; background:currentColor;
  -webkit-mask:var(--ab-i) center/contain no-repeat; mask:var(--ab-i) center/contain no-repeat;
}
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--dashboard a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='4' y='4' width='7' height='7'/%3E%3Crect x='13' y='4' width='7' height='7'/%3E%3Crect x='4' y='13' width='7' height='7'/%3E%3Crect x='13' y='13' width='7' height='7'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--members-area a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--downloads a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--orders a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 7h14l-1 13H6z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--edit-address a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 21s7-6 7-12a7 7 0 0 0-14 0c0 6 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--payment-methods a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='6' width='18' height='13'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--edit-account a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
body.ab-menu-icones .woocommerce-MyAccount-navigation-link--customer-logout a{ --ab-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M10 4H5v16h5M15 8l4 4-4 4M19 12H9'/%3E%3C/svg%3E"); }


/* ---------- 12. Touches de rouge (fines) ----------
 * Le noir et le gris restent la base ; le rouge sert aux actions d'achat et à de petits repères. */

:root{ --ab-rouge-fonce:#a30000; }

/* Actions d'achat : rouge plein */
html body .button.ab-acheter,
html body a.checkout-button.button,
html body #place_order.button,
html body #place_order,
html body .button.ab-bouton-rouge,
html body .ab-bouton-rouge,
html body .ab-barre-bouton{
  background:var(--ab-rouge) !important;
  border-color:var(--ab-rouge) !important;
  color:#fff !important;
}
html body .button.ab-acheter:hover,
html body a.checkout-button.button:hover,
html body #place_order.button:hover,
html body .button.ab-bouton-rouge:hover,
html body .ab-bouton-rouge:hover,
html body .ab-barre-bouton:hover{
  background:var(--ab-rouge-fonce) !important;
  border-color:var(--ab-rouge-fonce) !important;
}

/* Surtitres et rubriques : rouge, en petites capitales */
.ab-rubrique-petite,
.ab-surtitre,
.ab-surtitre a,
.ab-offre-eyebrow,
.woocommerce :where(#content,.site-main) ul.products li.product .ast-woo-product-category, :where(#content,.site-main) .woocommerce ul.products li.product .ast-woo-product-category{ color:var(--ab-rouge) !important; }

/* Titres de section : filet noir + court trait rouge */
.ab-rubrique{ position:relative; }
.ab-rubrique::after{
  content:""; position:absolute; left:0; bottom:-2px; width:56px; height:2px; background:var(--ab-rouge);
}

/* Choix sélectionné : contour noir, filet rouge dessous */
.ab-choix-option:has(input:checked){
  border-color:var(--ab-encre);
  box-shadow:inset 0 0 0 1px var(--ab-encre), inset 0 -3px 0 var(--ab-rouge);
}
.ab-choix-option:has(input:checked) .ab-choix-prix{ color:var(--ab-encre); font-weight:700; }

/* Repères */
.ab-tuile{ border-top:2px solid var(--ab-rouge); }
.ab-tuile:hover{ border-color:var(--ab-encre); border-top-color:var(--ab-rouge); }
.ab-tuile .ab-icone{ color:var(--ab-encre); }
.ab-carte-abo{ border-top:2px solid var(--ab-rouge); }
.ab-carte-abo-bientot{ background:var(--ab-fond); border-left:3px solid var(--ab-rouge); }
@media (min-width:769px){ .woocommerce-account :where(#content,.site-main) .woocommerce-MyAccount-navigation li.is-active a{ box-shadow:inset 3px 0 0 var(--ab-rouge); } }
.ab-offre-visuel{ color:var(--ab-encre); }
.ab-offre-vedette .ab-offre-visuel{ background:var(--ab-rouge); border-color:var(--ab-rouge); }
.ab-reassurance-bande{ border-top-color:var(--ab-encre); }

/* Autres boutons « secondaires » : survol noir, trait rouge en dessous */
.ab-bouton-secondaire:hover,
.woocommerce :where(#content,.site-main) div.product form.cart .single_add_to_cart_button:hover, :where(#content,.site-main) .woocommerce div.product form.cart .single_add_to_cart_button:hover{ box-shadow:inset 0 -3px 0 var(--ab-rouge) !important; }

/* Étoile Premium et fiches : rien d'autre en rouge */

/* ---------- 13. Compatibilité avec les extensions du site ---------- */

/* Side Cart : le bouton flottant monte quand la barre « Acheter » du mobile est visible */
@media (max-width:768px){
  body.ab-a-barre .xoo-wsc-basket{ bottom:92px !important; }
}
/* Astra Pro : sa barre « ajout au panier » fixe ferait doublon avec la nôtre sur mobile. On garde une seule barre. */
@media (max-width:768px){
  body.ab-a-barre .ast-sticky-add-to-cart,
  body.ab-a-barre .ast-sticky-add-to-cart-wrap{ display:none !important; }
}
/* Le message « prix mensuel / annuel » du thème (ACF) : ne double pas le prix mensuel du module */
.ab-prix-mensuel ~ .prix-mensuel-annuel,
.woocommerce :where(#content,.site-main) div.product form.cart .prix-mensuel-annuel, :where(#content,.site-main) .woocommerce div.product form.cart .prix-mensuel-annuel{ color:var(--ab-gris) !important; }

/* ---------- 14. Robustesse : le thème ne doit pas écraser les tailles du module ---------- */
.woocommerce-account .woocommerce-MyAccount-content .ab-compte p{ font-size:15px; line-height:1.55; }
.woocommerce-account .woocommerce-MyAccount-content .ab-compte .ab-rubrique-petite{ font-size:11px; line-height:1.3; }
.woocommerce-account .woocommerce-MyAccount-content .ab-compte .ab-carte-abo-titre{ font-size:22px; line-height:1.2; }
.woocommerce-account .woocommerce-MyAccount-content .ab-compte .ab-carte-abo-etat{ font-size:14px; }
.woocommerce-account .woocommerce-MyAccount-content .ab-compte .ab-compte-deco{ font-size:13px; }
.ab-offre-actions .button,.ab-offre-actions .ab-bouton-principal{ white-space:nowrap; }
.ab-prix-barre{ opacity:.6; font-weight:400; margin-right:4px; }

/* ---------- 15. Superpositions ---------- */
/* La visionneuse d'images de la fiche passe devant la barre d'achat et la bulle d'aide. */
.pswp{ z-index:100000 !important; }

/* ---------- 16. Responsive : rien ne dépasse du cadre (titres longs, fil d'Ariane, petits écrans) ---------- */
.woocommerce-breadcrumb,.ast-breadcrumbs-wrapper,.ast-breadcrumbs,#breadcrumbs,.yoast-breadcrumbs,.rank-math-breadcrumb{ white-space:normal !important; overflow-wrap:anywhere; max-width:100%; line-height:1.5; }
.woocommerce-products-header__title,.page-title,.ast-archive-title,.entry-title,.product_title,
.woocommerce-loop-product__title,.ab-offre-nom,.ab-rubrique,.ab-cta-titre,.ab-cta-abo-titre,.ab-carte-abo-titre{
  max-width:100%; overflow-wrap:break-word; word-wrap:break-word; -webkit-hyphens:auto; hyphens:auto;
}
@media (max-width:600px){
  /* Petit écran : un titre de page tient sur son cadre sans couper les mots en deux. */
  .woocommerce-products-header__title.page-title,.page-title,.ast-archive-title,.entry-title,.woocommerce div.product .product_title{ font-size:clamp(24px,8.2vw,36px) !important; line-height:1.12 !important; }
}
@media (max-width:480px){
  .ab-offres{ grid-template-columns:minmax(0,1fr); }
  .ab-offre-note-vide{ display:none; }
  .ab-offre-actions .button,.ab-offre-actions .ab-bouton-principal{ white-space:normal; }
  .ab-barre-bouton{ max-width:48%; }
}

/* Fiche d'un abonnement : pas de loupe de zoom par-dessus le mot « ABONNEMENT » de l'image (le clic agrandit toujours l'image). */
.ab-produit-offre .woocommerce-product-gallery__trigger{ display:none !important; }
