/* 
 Theme Name:     AL objets publicitaires
 Author:         AD-SPI
 Author URI:     https://ad-spi.fr
 Template:       Divi
 Version:        1.2
 Description:    Thème enfant Divi optimisé WooCommerce + FDP
*/

/* =========================
   TYPOGRAPHIE GLOBALE
========================= */

html,
body {
  font-family: "Open Sans", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--al-gray);
  line-height: 1.6;
  font-weight: 400;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--al-blue-dark);
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
}

a {
  color: var(--al-blue-logo);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--al-blue-dark);
}

label,
small,
.product_meta,
.woocommerce-review-link {
  font-size: 0.9em;
  color: var(--al-gray-muted);
}

/* Divi modules = typo globale */
.et_pb_module,
.et_pb_text,
.et_pb_blurb_content,
.et_pb_button {
  font-family: inherit !important;
  color: inherit;
}

/* WooCommerce global (Divi uniquement — pages natives gérées par atelier-lambert-woo.css) */
body:not(.al-native-woo).woocommerce,
body:not(.al-native-woo).woocommerce-page {
  font-family: inherit;
  color: var(--al-gray);
}

body:not(.al-native-woo) .woocommerce div.product .product_title,
body:not(.al-native-woo).woocommerce-cart h1,
body:not(.al-native-woo).woocommerce-checkout h1 {
  font-weight: 700;
  color: var(--al-blue-dark);
}
:root {
  --al-blue-light: #00AEEF;
  --al-blue:       #0077B6;
  --al-blue-dark:  #004A7C;
  --al-blue-logo:  #006799;

  --al-green:      #16A34A;
  --al-red:        #E03131;

  --al-gray:       #4B5563;
  --al-gray-muted: #9CA3AF;
  --al-gray-light: #E5E7EB;
  --al-bg-light:   #EAF6FB;
  --al-border:     #DDDDDD;

  --checkout-step-done:   var(--al-green);
  --checkout-step-active: var(--al-blue-logo);
  --checkout-step-todo:   var(--al-gray);
  --checkout-line-active: var(--al-red);
  --checkout-line-todo:   var(--al-gray-light);
}

/* =====================================================================
   LEGACY — Bloc commenté dupliqué, à supprimer après validation bypass
   Supprimable : ce bloc est déjà inactif (commenté).
   ===================================================================== */

/* html,
body {
  font-family: "Open Sans", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--al-gray);
  line-height: 1.6;
  font-weight: 400;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--al-blue-dark);
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
}

a {
  color: var(--al-blue-logo);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--al-blue-dark);
}

label,
small,
.product_meta,
.woocommerce-review-link {
  font-size: 0.9em;
  color: var(--al-gray-muted);
}

/* Divi modules = typo globale */
.et_pb_module,
.et_pb_text,
.et_pb_blurb_content,
.et_pb_button {
  font-family: inherit !important;
  color: inherit;
}

/* WooCommerce global */
.woocommerce,
.woocommerce-page {
  font-family: inherit;
  color: var(--al-gray);
}

.woocommerce div.product .product_title,
.woocommerce-cart h1,
.woocommerce-checkout h1 {
  font-weight: 700;
  color: var(--al-blue-dark);
} */
/* ===================================================================== */

/* =========================
   FANCY PRODUCT DESIGNER
========================= */

/* Masquer le bouton natifcustomize de FPD*/
/* Cache le bouton FPD natif sur la fiche produit */
#fpd-start-customizing-button {
  display: none !important;
}
/* Notre zone autour du designer */
#fpd-zone.fpd-host {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 0;
}
/* indicateur pour dire mode personnalisation */
.my-fpd-trigger {
  background-color: #245fa4;
  color: #fff !important;
  border-radius: 30px;
  padding: 12px 26px;
  font-weight: 600;
  transition: all .3s ease;
}

.my-fpd-trigger:hover {
  background-color: #1c4f88;
}
/* On force le conteneur FPD à se comporter bien dedans */
#fpd-zone .fpd-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Optionnel : éviter qu’il colle partout */
#fpd-zone .fpd-main-bar {
  max-width: 100%;
}
/* =========================
   BREADCRUMB
========================= */

.et_pb_wc_breadcrumb_0_tb_body .woocommerce-breadcrumb a {
  text-transform: none !important;
}

/* =========================
   BTN FIX (sections Divi ciblées)
========================= */

.btn-fix .et_pb_button,
.btn-fix .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  box-sizing: border-box;
  background: var(--al-blue);
  border: 1px solid var(--al-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: none;
}

.btn-fix .et_pb_button:hover,
.btn-fix .checkout-button:hover {
  background: var(--al-blue-dark);
  border-color: var(--al-blue-dark);
  box-shadow: 0 6px 16px rgba(0,74,124,.18);
}

.btn-fix .et_pb_button::after,
.btn-fix .checkout-button::after {
  content: none !important;
}

/* =====================================================================
   LEGACY — Single product Divi layout (~340 lignes)
   Mort depuis le bypass mu-plugin : toutes les fiches produit passent
   par atelier-lambert-woo.css. Scopé body.single-product:not(.al-native-woo)
   donc ne s'exécute jamais. Supprimer après validation bypass.
   ===================================================================== */

/* =========================
   SINGLE PRODUCT - LAYOUT (Divi uniquement)
========================= */

body.single-product:not(.al-native-woo) #main-content .container {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 25px;
}

body.single-product:not(.al-native-woo) #main-content .container::before,
body.single-product:not(.al-native-woo) #main-content .container::after {
  content: none !important;
  display: none !important;
}

body.single-product:not(.al-native-woo) #left-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product:not(.al-native-woo) #sidebar {
  display: none !important;
}

/* Grille 2 colonnes */
body.single-product:not(.al-native-woo) .product > .clearfix {
  display: grid !important;
  grid-template-columns: minmax(360px, 1.3fr) minmax(0, 1.7fr);
  column-gap: 60px;
  align-items: flex-start;
}
body.single-product:not(.al-native-woo) .product > .clearfix > .woocommerce-product-gallery,
body.single-product:not(.al-native-woo) .product > .clearfix > .summary.entry-summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* Galerie */
body.single-product:not(.al-native-woo) .woocommerce-product-gallery {
  position: relative;
  background: var(--al-bg-light);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid var(--al-gray-light);
}
body.single-product:not(.al-native-woo) .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Badge promo */
body.single-product:not(.al-native-woo) .onsale {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--al-red);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  z-index: 5;
}

/* Summary */
body.single-product:not(.al-native-woo) .summary.entry-summary {
  text-align: left;
}

/* Titre produit */
body.single-product:not(.al-native-woo) .product_title.entry-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--al-blue-dark);
  letter-spacing: 0.01em;
}

/* Prix */
body.single-product:not(.al-native-woo) .summary .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--al-gray);
}
body.single-product:not(.al-native-woo) .summary .price del {
  font-size: 20px;
  color: var(--al-gray-muted);
  font-weight: 400;
}
body.single-product:not(.al-native-woo) .summary .price ins {
  color: var(--al-blue-logo);
  font-weight: 700;
  text-decoration: none;
}

/* Short description */
body.single-product:not(.al-native-woo) .woocommerce-product-details__short-description {
  font-size: 15px;
  color: var(--al-gray);
  margin-bottom: 20px;
}

/* Qte + bouton */
body.single-product:not(.al-native-woo) .summary .cart {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

body.single-product:not(.al-native-woo) .quantity .qty {
  appearance: none;
  background: #fff;
  border: 1px solid var(--al-gray-light);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--al-blue-dark);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}
body.single-product:not(.al-native-woo) .quantity .qty:focus {
  border-color: var(--al-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
  outline: none;
}
body.single-product:not(.al-native-woo) .quantity input::-webkit-inner-spin-button,
body.single-product:not(.al-native-woo) .quantity input::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* Bouton Ajouter au panier (fiche produit) */
body.single-product:not(.al-native-woo) .single_add_to_cart_button.button,
body.single-product:not(.al-native-woo) .single_add_to_cart_button.button.alt {
  padding: 14px 56px;
  border-radius: 999px;
  background: var(--al-blue);
  border: 1px solid var(--al-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  box-shadow: 0 10px 26px rgba(0, 119, 182, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.single-product:not(.al-native-woo) .single_add_to_cart_button.button:hover,
body.single-product:not(.al-native-woo) .single_add_to_cart_button.button.alt:hover {
  background: var(--al-blue-dark);
  border-color: var(--al-blue-dark);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 74, 124, 0.25);
}

/* Wishlist à côté */
body.single-product:not(.al-native-woo) .tinvwl_add_to_wishlist_button,
body.single-product:not(.al-native-woo) .tinv-wishlist {
  margin-left: 8px;
  font-size: 13px;
  color: var(--al-gray);
}

/* Métas */
body.single-product:not(.al-native-woo) .product_meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--al-gray-muted);
}
body.single-product:not(.al-native-woo) .product_meta a {
  color: var(--al-blue-logo);
}
body.single-product:not(.al-native-woo) .product_meta a:hover {
  color: var(--al-blue-dark);
}

/* Bénéfices */
body.single-product:not(.al-native-woo) .al-sp-benefits {
  margin: 26px 0 0;
  padding: 14px 22px;
  background: var(--al-bg-light);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--al-gray);
}
body.single-product:not(.al-native-woo) .al-sp-benefits div {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================
   FORMULAIRE AVIS
========================= */

body.single-product:not(.al-native-woo) #reviews {
  margin-top: 10px;
  border-top: 1px solid var(--al-gray-light);
  padding-top: 16px;
}

body.single-product:not(.al-native-woo) #reviews,
body.single-product:not(.al-native-woo) #reviews p,
body.single-product:not(.al-native-woo) #reviews label {
  font-size: 14px;
  color: var(--al-gray);
}

body.single-product:not(.al-native-woo) input[type="text"],
body.single-product:not(.al-native-woo) input[type="email"],
body.single-product:not(.al-native-woo) textarea {
  background: #fff;
  border: 1px solid var(--al-gray-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--al-gray);
  width: 100%;
  transition: all 0.2s ease;
}
body.single-product:not(.al-native-woo) input[type="text"]:focus,
body.single-product:not(.al-native-woo) input[type="email"]:focus,
body.single-product:not(.al-native-woo) textarea:focus {
  border-color: var(--al-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
  outline: none;
}

body.single-product:not(.al-native-woo) #reviews #commentform input[type="submit"] {
  background: var(--al-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
body.single-product:not(.al-native-woo) #reviews #commentform input[type="submit"]:hover {
  background: var(--al-blue-dark);
  box-shadow: 0 6px 18px rgba(0, 74, 124, 0.2);
}

/* Étoiles */
body.single-product:not(.al-native-woo) .stars a {
  color: var(--al-blue-logo);
}

/* =========================
   RESPONSIVE SINGLE PRODUCT
========================= */

@media (max-width: 980px) {
  body.single-product:not(.al-native-woo) .product > .clearfix {
    display: block !important;
  }

  body.single-product:not(.al-native-woo) .woocommerce-product-gallery {
    margin: 0 0 24px 0;
  }

  body.single-product:not(.al-native-woo) .product_title.entry-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  body.single-product:not(.al-native-woo) .summary .price {
    font-size: 20px;
    gap: 8px;
  }
  body.single-product:not(.al-native-woo) .summary .price del {
    font-size: 16px;
  }

  body.single-product:not(.al-native-woo) .woocommerce-product-details__short-description {
    font-size: 14px;
    margin-bottom: 16px;
  }

  body.single-product:not(.al-native-woo) .summary .cart {
    width: 100%;
    gap: 10px;
  }

  body.single-product:not(.al-native-woo) .quantity .qty {
    width: 70px;
    padding: 8px 10px;
    font-size: 14px;
  }

  body.single-product:not(.al-native-woo) .single_add_to_cart_button.button,
  body.single-product:not(.al-native-woo) .single_add_to_cart_button.button.alt {
    width: 100%;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.18);
  }

  body.single-product:not(.al-native-woo) .tinvwl_add_to_wishlist_button,
  body.single-product:not(.al-native-woo) .tinv-wishlist {
    margin-left: 0;
    margin-top: 4px;
  }

  body.single-product:not(.al-native-woo) .al-sp-benefits {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 18px;
    gap: 6px 10px;
    font-size: 12px;
  }

  body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs {
    gap: 18px;
    padding-bottom: 6px;
  }
  body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs li a {
    font-size: 14px;
    padding: 4px 0;
  }
  body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tab {
    padding-top: 16px;
  }
}
/* ===================================================================== */

/* =========================
   WISHLIST (TI Woo) - TABLE + BOUTONS
========================= */

.tinvwl-table-manage-list {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.tinvwl-table-manage-list th,
.tinvwl-table-manage-list td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--al-gray-light);
  font-size: 14px;
  color: var(--al-gray);
}

.tinvwl-table-manage-list thead th {
  font-weight: 600;
  color: var(--al-blue-dark);
  background: #f7fbff;
}

/* Lien produit */
.tinvwl-table-manage-list .product-name a {
  color: var(--al-blue-logo);
  font-weight: 600;
}
.tinvwl-table-manage-list .product-name a:hover {
  color: var(--al-blue-dark);
}

/* Supprimer */
.tinvwl-table-manage-list .product-remove button {
  background: transparent;
  border: none;
  color: var(--al-red);
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.tinvwl-table-manage-list .product-remove button:hover {
  transform: scale(1.15);
  color: #b32020;
}

/* Boutons principaux wishlist — taille compacte */
.tinvwl-table-manage-list .product-action .button,
.tinvwl-table-manage-list tfoot .button,
.tinvwl-to-right .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 8px 18px !important;
  border-radius: 6px;
  background: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tinvwl-table-manage-list .product-action .button:hover,
.tinvwl-table-manage-list tfoot .button:hover,
.tinvwl-to-right .button:hover {
  background: var(--al-blue-dark) !important;
  border-color: var(--al-blue-dark) !important;
  box-shadow: 0 4px 10px rgba(0,74,124,.18);
}

/* Bouton "Appliquer" secondaire */
.tinvwl-table-manage-list .tinvwl-input-group .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px !important;
  border-radius: 999px;
  background: #ffffff !important;
  color: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}
.tinvwl-table-manage-list .tinvwl-input-group .button:hover {
  background: var(--al-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,119,182,0.18);
}

/* Select "Actions" */
.tinvwl-table-manage-list .tinvwl-input-group select {
  border-radius: 999px 0 0 999px;
  border: 1px solid var(--al-gray-light);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--al-gray);
}

/* Pas de chevrons dans le tableau wishlist */
.tinvwl-table-manage-list .button::after {
  content: none !important;
}

/* Texte vide wishlist — Divi hérite color: white sur certaines pages */
.tinv-wishlist {
  color: var(--al-gray);
}
.tinv-wishlist .woocommerce-info,
.tinv-wishlist .cart-empty,
.tinv-wishlist p {
  color: var(--al-gray) !important;
}

/* =========================
   BOUTONS WOO GLOBAL (Divi uniquement)
========================= */

body:not(.al-native-woo) .woocommerce a.button,
body:not(.al-native-woo) .woocommerce button.button,
body:not(.al-native-woo) .woocommerce input.button,
body:not(.al-native-woo).woocommerce-cart .cart input.button,
body:not(.al-native-woo).woocommerce-cart .cart button.button,
body:not(.al-native-woo).woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  box-sizing: border-box;
  background: var(--al-blue);
  border: 1px solid var(--al-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body:not(.al-native-woo) .woocommerce a.button:hover,
body:not(.al-native-woo) .woocommerce button.button:hover,
body:not(.al-native-woo) .woocommerce input.button:hover,
body:not(.al-native-woo).woocommerce-cart .cart input.button:hover,
body:not(.al-native-woo).woocommerce-cart .cart button.button:hover,
body:not(.al-native-woo).woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--al-blue-dark);
  border-color: var(--al-blue-dark);
  color: #fff;
}

body:not(.al-native-woo) .woocommerce a.button::after,
body:not(.al-native-woo) .woocommerce button.button::after,
body:not(.al-native-woo) .woocommerce input.button::after {
  content: none !important;
}

/* =====================================================================
   LEGACY — Cart/Checkout Divi (~35 lignes)
   Mort depuis le bypass mu-plugin : panier et checkout passent
   par atelier-lambert-woo.css. Supprimer après validation bypass.
   ===================================================================== */

/* =========================
   CART / CHECKOUT (Divi uniquement)
========================= */

body:not(.al-native-woo) .woocommerce-checkout .checkout_v1 .woocommerce-checkout-review-order {
  background-color: #fcfdff;
}

body:not(.al-native-woo) #add_payment_method #payment,
body:not(.al-native-woo).woocommerce-cart #payment,
body:not(.al-native-woo).woocommerce-checkout #payment {
  background: #f1f1f1;
  border-radius: 5px;
}

body:not(.al-native-woo) .woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fcfdff;
  border: 1px solid #e2e2e2;
  color: #000;
}
body:not(.al-native-woo) .woocommerce-form-coupon-toggle .woocommerce-info a {
  color: #000;
}

body:not(.al-native-woo) .woocommerce #respond input#submit,
body:not(.al-native-woo) .woocommerce-page #respond input#submit,
body:not(.al-native-woo) .woocommerce #content input.button,
body:not(.al-native-woo) .woocommerce-page #content input.button,
body:not(.al-native-woo) .woocommerce-message,
body:not(.al-native-woo) .woocommerce-error,
body:not(.al-native-woo) .woocommerce-info {
  background: #fcfdff;
  border: 1px solid #e2e2e2;
  color: #000;
}
/* ===================================================================== */

/* =========================
   FLY CART / QUICK VIEW
========================= */

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item .woofc-item-inner {
  background-color: #f6f9fc;
}
.woofc-area.woofc-style-01 .woofc-area-top {
  background-color: var(--al-blue-light);
}
.woofc-count span,
.woofc-menu-item .woofc-menu-item-inner:after {
  background-color: #ee1c06 !important;
}
/* =========================
   FLY CART : BOUTON "Continuer les achats"
========================= */

.woofc-area-bot .woofc-continue .woofc-continue-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woofc-area-bot .woofc-continue .woofc-continue-url:hover {
  background: var(--al-blue-dark) !important;
  border-color: var(--al-blue-dark) !important;
  color: #fff !important;
}

/* =========================
   FLY CART : BOUTONS DU BAS
========================= */

.woofc-area-bot a.woofc-view-cart,
.woofc-area-bot a.woofc-checkout,
.woofc-area-bot .woofc-continue-url,
.woofc-area-bot .woofc-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  background: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease;
}

.woofc-area-bot a.woofc-view-cart:hover,
.woofc-area-bot a.woofc-checkout:hover,
.woofc-area-bot .woofc-continue-url:hover,
.woofc-area-bot .woofc-btn:hover {
  background: var(--al-blue-dark) !important;
  border-color: var(--al-blue-dark) !important;
  color: #fff !important;
}
/* Quick View add to cart */
#yith-quick-view-content button.single_add_to_cart_button {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--al-blue);
  border: 1px solid var(--al-blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
  transform: none;
}
#yith-quick-view-content button.single_add_to_cart_button:hover {
  background: var(--al-blue-dark);
  border-color: var(--al-blue-dark);
}

/* =========================
   HEADER / FOOTER
========================= */

.header-v1-row-search {
  display: flex;
  align-items: center;
}
.header-v1-menu-tab-column .et_pb_blurb_position_left .et_pb_blurb_container {
  padding-left: 0;
}
.header-v1-row-search-last-column {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* Top bar slider */
.titan-top-bar-slider .et-pb-arrow-next,
.titan-top-bar-slider .et-pb-arrow-prev,
.top-bar-slider .et-pb-arrow-next,
.top-bar-slider .et-pb-arrow-prev {
  font-size: 24px !important;
  margin-top: -12px !important;
  opacity: 1 !important;
}
.titan-top-bar-slider .et-pb-arrow-next,
.top-bar-slider .et-pb-arrow-next {
  right: 22px !important;
}
.titan-top-bar-slider .et-pb-arrow-prev,
.top-bar-slider .et-pb-arrow-prev {
  left: 22px !important;
}

/* Colonne support */
.menu-support-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.menu-v1-phone p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
.menu-promo-tab-hot-deals .et_pb_blurb_content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.menu-promo-tab-hot-deals .et_pb_main_blurb_image .et-pb-icon {
  font-size: 26px;
  color: #000000;
}
.menu-promo-tab-hot-deals .et_pb_blurb_description p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #020817;
}
@media (min-width: 981px) {
  .et_pb_row_2_tb_header.et_pb_gutters2 .menu-support-column.et_pb_column_1_3 {
    width: 31.3333%;
    margin-right: 0;
  }
}

/* Footer optin */
@media only screen and (min-width: 981px) {
  .et-db #et-boc .et-l .titan-custom-optin p.et_pb_newsletter_field {
    flex: 2 !important;
    padding-bottom: 0;
  }
  .et-db #et-boc .et-l .titan-custom-optin .et_pb_newsletter_form p.et_pb_newsletter_field input {
    border-radius: 25px 0 0 25px !important;
    padding-left: 6% !important;
  }
  .et-db #et-boc .et-l .titan-custom-optin p {
    flex: 1 !important;
  }
  body.et-db #et-boc .et-l .titan-custom-optin .et_pb_button {
    border-radius: 0 25px 25px 0 !important;
    height: 47px;
    display: flex;
    justify-content: center;
  }
  body.et-db #et-boc .et-l .titan-custom-optin .et_pb_button .et_pb_newsletter_button_text {
    align-self: center;
  }
}

/* =========================
   DIVERS
========================= */

.woocommerce a.added_to_cart {
  margin-top: 0 !important;
  color: #000 !important;
}

/* =========================
   FIX VUE RAPIDE (YITH) - LOOP
========================= */

.woocommerce ul.products li.product a.button.yith-wcqv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--al-blue);
  border: 1px solid var(--al-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
  transform: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.woocommerce ul.products li.product a.button.yith-wcqv-button:hover {
  background: var(--al-blue-dark);
  border-color: var(--al-blue-dark);
  color: #fff;
  padding: 8px 18px;
  box-shadow: 0 4px 10px rgba(0,74,124,.18);
  transform: none !important;
}
.woocommerce ul.products li.product a.button.yith-wcqv-button::after {
  content: none !important;
}

/* =========================
   POPUP WISHLIST (TI Woo)
========================= */

.tinv-wishlist .button,
.tinv-wishlist button,
.tinv-wishlist input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 9px 20px !important;
  border-radius: 999px;
  background: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transform: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tinv-wishlist .button:hover,
.tinv-wishlist button:hover,
.tinv-wishlist input[type="submit"]:hover {
  background: var(--al-blue-dark) !important;
  border-color: var(--al-blue-dark) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  box-shadow: 0 4px 10px rgba(0,74,124,.18);
  transform: none !important;
}
.tinv-wishlist .button::after,
.tinv-wishlist button::after,
.tinv-wishlist input[type="submit"]::after {
  content: none !important;
}

/* =========================
   LOOP PRODUIT : VUE RAPIDE + COEUR
========================= */

.et_pb_shop .products li.product {
  position: relative;
  text-align: center;
}

/* Quick View + cœur alignés sur une ligne */
.et_pb_shop .products li.product .yith-wcqv-button,
.et_pb_shop .products li.product .tinvwl-loop-button-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

/* Cœur : à droite & ajustement vertical */
.et_pb_shop .products li.product .tinvwl-loop-button-wrapper {
  position: relative;
  top: -5px;
  margin-left: 10px;
  margin-top: 5px;
}

/* Style du cœur */
.et_pb_shop .products li.product .tinvwl_add_to_wishlist_button.tinvwl-icon-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--al-blue);
  background: #fff;
  color: var(--al-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.et_pb_shop .products li.product .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:hover {
  background: var(--al-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Boutons wishlist tableau / popup non impactés */
.tinv-wishlist .tinvwl-table-manage-list .button,
.tinvwl-modal .button {
  display: inline-flex;
  padding: 9px 20px;
  border-radius: 999px;
}

/* =========================
   LOOP PRODUIT : SUPPRESSION OVERLAY DIVI
========================= */

.et_pb_shop .et_overlay:before,
.et_pb_shop .et_overlay:after {
  content: none !important;
}
.et_pb_shop .et_overlay {
  background: transparent !important;
}

/* =========================
   LOOP : BOUTON AJOUTER AU PANIER (HOVER)
========================= */

/* Bouton Woo dans le flux, sous Vue Rapide + Cœur, masqué par défaut */
.et_pb_shop .products li.product a.button.add_to_cart_button,
.et_pb_shop .products li.product a.button.product_type_variable,
.et_pb_shop .products li.product a.button.product_type_grouped,
.et_pb_shop .products li.product a.button.product_type_external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--al-blue);
  color: #fff !important;
  border: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  pointer-events: none;
}

/* Affichage au survol de la carte produit */
.et_pb_shop .products li.product:hover a.button.add_to_cart_button,
.et_pb_shop .products li.product:hover a.button.product_type_variable,
.et_pb_shop .products li.product:hover a.button.product_type_grouped,
.et_pb_shop .products li.product:hover a.button.product_type_external {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hover bouton loop */
.et_pb_shop .products li.product a.button.add_to_cart_button:hover,
.et_pb_shop .products li.product a.button.product_type_variable:hover,
.et_pb_shop .products li.product a.button.product_type_grouped:hover,
.et_pb_shop .products li.product a.button.product_type_external:hover {
  background: var(--al-blue-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}



/* ===================================================================
   MEGA MENU "CATÉGORIES" — VERSION FINALE (layout .mmm-catalog)
=================================================================== */

/* 0) Ciblage : idéalement, mets l'ID de l'item Catégories */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu{
  position: absolute;
  top: 100%;
  width: min(1180px, 100vw - 40px);     /* ajuste : 1100 / 1180 / 1320 */
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 99999;
}

/* 1) Police (uniquement dans ce panneau) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu a{
  font-family: Roboto, sans-serif !important;
}

/* 2) Wrapper catalogue (carte blanche avec ombre) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-catalog{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* 3) Supprimer puces / marges / padding (et puces via pseudo-élément du thème) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-catalog ul,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-catalog li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-catalog li::before{
  content: none !important;
}

/* 4) Colonne gauche (N1) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-left{
  background: #f6f8fb; /* moins transparent */
  border-right: 1px solid rgba(0,0,0,.08);
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-level1 > li{
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-l1-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
  color: #004A7C;
  text-decoration: none !important;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-level1 > li:hover > .mmm-l1-link,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-level1 > li.is-active > .mmm-l1-link{
  background: #fff;
  box-shadow: inset -3px 0 0 #0073aa;
}

/* 5) Panneau droit */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-right{
  padding: 16px 20px;
  background: #fff;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-panel{
  display: none;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-panel.is-active{
  display: block;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-panel-title{
  font-size: 20px;
  font-weight: 800;
  margin: 2px 0 12px;
  color: #004A7C;
}

/* 6) Colonnes Niveau 2 
 *AVANT
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-panel-grid{
  display: grid;
  grid-template-columns: repeat(var(--mmm-panel-cols, 3), minmax(180px, 1fr));
  column-gap: 28px;
  row-gap: 18px;
  align-content: start;
} */

/* APRÈS (Masonry) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713 > ul.mega-sub-menu .mmm-panel-grid {
    display: block;
    column-count: var(--mmm-panel-cols, 3);
    column-gap: 28px;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713 > ul.mega-sub-menu .mmm-block {
    break-inside: avoid;
    margin-bottom: 20px;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-h2{
  display: inline-block;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  text-decoration: none !important;
  color: #004A7C;
}

/* 7) Niveau 3 */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-h3{
  margin: 0;
  padding: 0;
  list-style: none;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-h3 li a{
  display: block;
  padding: 5px 0;
  font-size: 15px;
  text-decoration: none !important;
  color: #666;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-h3 li a:hover{
  color: #0073aa;
  text-decoration: underline !important;
}

/* 8) Thumbs */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-thumb-wrap{
  display: inline-flex;
  margin-right: 10px;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-thumb{
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
}

/* 9) Responsive */
@media (max-width: 900px){
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu{
    position: static;
    width: 100%;
    max-width: 100%;
  }
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-catalog{
    grid-template-columns: 1fr;
  }
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li#mega-menu-item-88713> ul.mega-sub-menu .mmm-left{
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
}
/* =====================================================================
   LEGACY — Tabs produit Divi (~60 lignes)
   Mort depuis le bypass mu-plugin : les onglets fiche produit sont
   gérés par atelier-lambert-woo.css. Supprimer après validation bypass.
   ===================================================================== */

/* =========================
   TABS PRODUIT a la fin du css pour application
========================= */

body.single-product:not(.al-native-woo) .woocommerce-tabs.wc-tabs-wrapper {
  margin: 40px 0 40px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs {
  display: flex;
  gap: 32px;
  margin: 0 0 20px;
  padding: 0 0 10px;
  list-style: none;
  border-bottom: 2px solid var(--al-gray-light);
  background: transparent !important;
}

body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs li {
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
}

body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs li a {
  display: inline-block;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--al-gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs li a:hover {
  color: var(--al-blue-logo);
}
body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tabs li.active a {
  color: var(--al-blue-logo);
  border-bottom-color: var(--al-blue-logo);
  font-weight: 700;
}

body.single-product:not(.al-native-woo) .woocommerce-tabs .wc-tab {
  padding: 24px 0 0 0;
  border: none !important;
  background: transparent;
  font-size: 15px;
  color: var(--al-gray);
  line-height: 1.7;
}

/* Supprimer H2 redondants */
body.single-product:not(.al-native-woo) .woocommerce-Tabs-panel h2 {
  display: none !important;
}
/* ===================================================================== */

/* =========================
   FLY CART : ZONE BAS (totaux + boutons)
========================= */

/* Totaux */
.woofc-area-bot .woofc-subtotal,
.woofc-area-bot .woofc-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin: 4px 0;
}

.woofc-area-bot .woofc-subtotal .woofc-data-left,
.woofc-area-bot .woofc-subtotal .woofc-data-right {
  color: var(--al-gray);
}

.woofc-area-bot .woofc-total .woofc-data-left,
.woofc-area-bot .woofc-total .woofc-data-right {
  font-weight: 700;
  color: var(--al-blue-dark);
}

/* Conteneur des deux boutons d'action */
.woofc-area-bot .woofc-action-inner {
  display: flex;
  gap: 10px;
  margin: 14px 0 6px;
}

/* Base commune : les deux boutons sont des pills */
.woofc-area-bot .woofc-action a.woofc-action-cart,
.woofc-area-bot .woofc-action a.woofc-action-checkout {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

/* Bouton "Voir le panier" — outline */
.woofc-area-bot .woofc-action a.woofc-action-cart {
  background: #fff !important;
  border: 2px solid var(--al-blue) !important;
  color: var(--al-blue) !important;
}
.woofc-area-bot .woofc-action a.woofc-action-cart:hover {
  background: var(--al-blue) !important;
  color: #fff !important;
}

/* Bouton checkout — masqué (géré par mmm-flycart.php, remplacé par "Continuer") */
.woofc-area-bot .woofc-action a.woofc-action-checkout {
  display: none !important;
}

/* Bouton "Continuer les achats" — primaire pleine largeur */
.woofc-area-bot .woofc-continue {
  margin-top: 10px;
  text-align: center;
}

.woofc-area-bot .woofc-continue .woofc-continue-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--al-blue) !important;
  border: 1px solid var(--al-blue) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woofc-area-bot .woofc-continue .woofc-continue-url:hover {
  background: var(--al-blue-dark) !important;
  border-color: var(--al-blue-dark) !important;
  color: #fff !important;
}

/* ======================================================
   BeRocket Categories (FINAL) — filtre #bapf_3
   - layout grid stable
   - supprime + / - / — injectés par BeRocket
   - chevrons CSS (sans Font Awesome)
   - pointillés + connecteurs
====================================================== */

/* --- Reset / containment --- */
#bapf_3,
#bapf_3 .bapf_body,
#bapf_3 .bapf_body ul,
#bapf_3 .bapf_body li{
  float: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#bapf_3 .bapf_body{
  overflow: hidden !important;
}

#bapf_3 .bapf_body ul{
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

/* --- IMPORTANT : supprime les glyphes BeRocket (+ / - / —) --- */
/* BeRocket met souvent des content sur li/label OU sur i.fa::before */
#bapf_3 .bapf_body li::before,
#bapf_3 .bapf_body li::after,
#bapf_3 .bapf_body label::before,
#bapf_3 .bapf_body label::after,
#bapf_3 .bapf_body i.fa::before{
  content: none !important;
}

/* --- Item layout: checkbox | label | chevron --- */
#bapf_3 .bapf_body > ul > li,
#bapf_3 .bapf_body li{
  display: grid !important;
  grid-template-columns: 18px 1fr 30px !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
}

/* checkbox */
#bapf_3 .bapf_body li > input[type="checkbox"]{
  grid-column: 1 !important;
  width: 16px !important;
  height: 16px !important;
}

/* label */
#bapf_3 .bapf_body li > label{
  grid-column: 2 !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  min-width: 0 !important;
  text-align: left !important;
  justify-self: start !important;
  overflow-wrap: anywhere !important;
}

/* bouton chevron (rond à droite) */
#bapf_3 .bapf_body li > i.bapf_ochild,
#bapf_3 .bapf_body li > i.bapf_cchild{
  grid-column: 3 !important;
  justify-self: end !important;
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: #fff !important;
  cursor: pointer !important;
  color: #111 !important;
}

/* --- Chevrons CSS (dessin) --- */
#bapf_3 i.bapf_ochild::after,
#bapf_3 i.bapf_cchild::after{
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  display: inline-block !important;
  transform: rotate(-45deg) !important; /* fermé => */
}

#bapf_3 i.bapf_cchild::after{
  transform: rotate(45deg) !important; /* ouvert v */
}

/* --- Sous-niveaux (pointillés + tree) --- */
/* ne PAS toucher au display -> BeRocket gère le show/hide */
#bapf_3 .bapf_body li > ul{
  grid-column: 2 / -1 !important;
  width: 100% !important;
  margin-top: 2px !important;
  padding-left: 14px !important;
  border-left: 1px dashed rgba(0,0,0,.35) !important;
}

/* compact + connecteur horizontal */
#bapf_3 .bapf_body li > ul > li{
  padding: 3px 0 !important;
  position: relative !important;
}

#bapf_3 .bapf_body li > ul > li::before{
  content: "" !important;
  position: absolute !important;
  left: -14px !important;
  top: 14px !important;
  width: 10px !important;
  border-top: 1px dashed rgba(0,0,0,.35) !important;
}

/* hover léger */
#bapf_3 .bapf_body li:hover{
  background: rgba(0,0,0,.03) !important;
}