/* 
 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 */
.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);
}
: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);
}

/* =========================
   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 */
.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;
}

/* =========================
   SINGLE PRODUCT - LAYOUT
========================= */

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

body.single-product #main-content .container::before,
body.single-product #main-content .container::after {
  content: none !important;
  display: none !important;
}

body.single-product #left-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product #sidebar {
  display: none !important;
}

/* Grille 2 colonnes */
body.single-product .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 .product > .clearfix > .woocommerce-product-gallery,
body.single-product .product > .clearfix > .summary.entry-summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* Galerie */
body.single-product .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 .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Badge promo */
body.single-product .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 .summary.entry-summary {
  text-align: left;
}

/* Titre produit */
body.single-product .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 .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 .summary .price del {
  font-size: 20px;
  color: var(--al-gray-muted);
  font-weight: 400;
}
body.single-product .summary .price ins {
  color: var(--al-blue-logo);
  font-weight: 700;
  text-decoration: none;
}

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

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

body.single-product .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 .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 .quantity input::-webkit-inner-spin-button,
body.single-product .quantity input::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* Bouton Ajouter au panier (fiche produit) */
body.single-product .single_add_to_cart_button.button,
body.single-product .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 .single_add_to_cart_button.button:hover,
body.single-product .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 .tinvwl_add_to_wishlist_button,
body.single-product .tinv-wishlist {
  margin-left: 8px;
  font-size: 13px;
  color: var(--al-gray);
}

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

/* Bénéfices */
body.single-product .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 .al-sp-benefits div {
  display: flex;
  align-items: center;
  gap: 6px;
}


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

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

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

body.single-product input[type="text"],
body.single-product input[type="email"],
body.single-product 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 input[type="text"]:focus,
body.single-product input[type="email"]:focus,
body.single-product textarea:focus {
  border-color: var(--al-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
  outline: none;
}

body.single-product #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 #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 .stars a {
  color: var(--al-blue-logo);
}

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

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

  body.single-product .woocommerce-product-gallery {
    margin: 0 0 24px 0;
  }

  body.single-product .product_title.entry-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  body.single-product .summary .price {
    font-size: 20px;
    gap: 8px;
  }
  body.single-product .summary .price del {
    font-size: 16px;
  }

  body.single-product .woocommerce-product-details__short-description {
    font-size: 14px;
    margin-bottom: 16px;
  }

  body.single-product .summary .cart {
    width: 100%;
    gap: 10px;
  }

  body.single-product .quantity .qty {
    width: 70px;
    padding: 8px 10px;
    font-size: 14px;
  }

  body.single-product .single_add_to_cart_button.button,
  body.single-product .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 .tinvwl_add_to_wishlist_button,
  body.single-product .tinv-wishlist {
    margin-left: 0;
    margin-top: 4px;
  }

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

  body.single-product .woocommerce-tabs .wc-tabs {
    gap: 18px;
    padding-bottom: 6px;
  }
  body.single-product .woocommerce-tabs .wc-tabs li a {
    font-size: 14px;
    padding: 4px 0;
  }
  body.single-product .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 */
.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: 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: 0 4px 10px rgba(0,119,182,.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 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 6px 16px rgba(0,74,124,.22);
}

/* 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;
}

/* =========================
   BOUTONS WOO GLOBAL
========================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-cart .cart input.button,
.woocommerce-cart .cart button.button,
.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;
}

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

.woocommerce a.button::after,
.woocommerce button.button::after,
.woocommerce input.button::after {
  content: none !important;
}

/* =========================
   CART / CHECKOUT
========================= */

.woocommerce-checkout .checkout_v1 .woocommerce-checkout-review-order {
  background-color: #fcfdff;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: #f1f1f1 !important;
  border-radius: 5px;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fcfdff !important;
  border: 1px solid #e2e2e2 !important;
  color: #000 !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: #000 !important;
}

.woocommerce #respond input#submit,
.woocommerce-page #respond input#submit,
.woocommerce #content input.button,
.woocommerce-page #content input.button,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: #fcfdff !important;
  border: 1px solid #e2e2e2 !important;
  color: #000 !important;
}

/* =========================
   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;
}

/* 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 "Categorie" : panneau sous la barre ==== */
/* Barre principale Max Mega Menu */
/* Reset du conteneur MMM pour le menu header */
/* Applique Roboto à tous les liens de catégories à l'intérieur du Mega Menu */
.mega-sub-menu a {
    font-family: Roboto, sans-serif !important;
    /* Vous pouvez également définir le poids ici pour les sous-catégories, par exemple 400 */
    font-weight: 400; 
}
#mega-menu-wrap-primary-menu.mega-menu-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 20px;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1320px;              /* ou 100%, comme tu préfères */
}
/* ========= Méga-menu "Categories" : panneau large centré (desktop) ========= */

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
  position: absolute;
  top: 100%;                         /* juste sous la barre noire */
  /* left: 50%;                       
  transform: translateX(-50%); */
  width: min(1320px, 100vw - 40px);  /* largeur maxi, avec un peu de marge */
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 9999;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 1.8rem 2rem 2.2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #f0f0f0;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col:first-child { padding-left: 0; }
#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col:last-child  { padding-right: 0; }

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-top {
  margin: 0 0 0.6rem;
  padding: 0 0 0.6rem;
  border-bottom: 2px solid #0073aa;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-top-link {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #004A7C;
  text-decoration: none;
  white-space: normal;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-1,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-2 {
  margin: 0;
  padding: 0;
  list-style: none;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-1 a,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-2 a {
  display: block;
  padding: 3px 6px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.15s, background-color 0.15s, transform 0.12s;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-1 a:hover,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-level-2 a:hover {
  color: #0073aa;
  background-color: #f0faff;
  transform: translateX(2px);
}
/* ====== Ajustements "desktop moyen" : 769px à 1200px ====== */
@media (min-width: 769px) and (max-width: 1200px) {

  /* Le panneau ne déborde pas, un peu moins large */
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
    width: min(1000px, 100vw - 24px);
  }

  /* Grille plus compacte */
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.4rem;
    padding: 1.4rem 1.4rem 1.6rem;
  }

  /* On calme les séparateurs verticaux qui prennent trop de place */
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col {
    padding: 0 1rem;
  }
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col::after {
    display: none;
  }

  /* Titres un poil plus serrés */
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-top {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
  }
}


@media (max-width: 768px) {
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
    padding: 0.8rem 1rem 1rem;
    border: none;
    box-shadow: none;
    border-radius: 20px;
  }

  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col {
    padding: 0 0 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col::after {
    display: none;
  }

  #mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-sub-menu .mmm-col:last-child {
    border-bottom: none;
  }

  
  #mega-menu-wrap-primary-menu.mega-menu-wrap {
  max-width: 100%;
}


}



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

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

body.single-product .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 .woocommerce-tabs .wc-tabs li {
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
}

body.single-product .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 .woocommerce-tabs .wc-tabs li a:hover {
  color: var(--al-blue-logo);
}
body.single-product .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 .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 .woocommerce-Tabs-panel h2 {
  display: none !important;
}
/* =========================
   FLY CART – LIENS PANIER & CHECKOUT EN TEXTE
========================= */

.woofc-area-bot .woofc-action a.woofc-action-cart,
.woofc-area-bot .woofc-action a.woofc-action-checkout {
  /* Réinitialisation complète */
  all: unset !important;
  display: inline-block !important;

  /* Style texte propre */
  color: var(--al-blue-dark) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woofc-area-bot .woofc-action a.woofc-action-cart:hover,
.woofc-area-bot .woofc-action a.woofc-action-checkout:hover {
  color: var(--al-blue) !important;
  text-decoration: underline !important;
}

/* Alignement en ligne */
.woofc-area-bot .woofc-action-inner {
  display: flex !important;
  justify-content: space-between !important;
  margin: 12px 0 18px !important;
}
/* =========================
   FLY CART : ZONE BAS (totaux + liens)
========================= */

/* Totaux plus propres */
.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);
}

/* "Panier" + "Valider la commande" = liens texte, plus de gros boutons */
.woofc-area-bot .woofc-action-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 6px;
}

.woofc-area-bot .woofc-action a,
.woofc-area-bot .woofc-action-cart,
.woofc-area-bot .woofc-action-checkout {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--al-blue-dark) !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  line-height: 1.4;
  cursor: pointer;
}

.woofc-area-bot .woofc-action a:hover,
.woofc-area-bot .woofc-action-cart:hover,
.woofc-area-bot .woofc-action-checkout:hover {
  color: var(--al-blue) !important;
  text-decoration: underline;
}

/* Gros bouton uniquement pour "Continuer les achats" */
.woofc-area-bot .woofc-continue {
  margin-top: 20px;
  text-align: center;
}

.woofc-area-bot .woofc-continue .woofc-continue-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  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;
}
