/*
CTC Separate Stylesheet
Refactorisé : 2026-03-26
*/

/* ============================================================
   SOMMAIRE
   1.  VARIABLES & TOKENS
   2.  MENUS PRINCIPAUX (ast-hf-menu-1 / 2)
   3.  SOUS-MENU DÉROULANT
   4.  FOOTER — MENU TAHEFOBU
   5.  ICÔNE PANIER
   6.  FIL D'ARIANE (breadcrumb)
   7.  BOUTIQUE — LISTE PRODUITS (cartes)
   8.  BOUTIQUE — PAGE PRODUIT DÉTAIL
   9.  BOUTIQUE — BOUTONS WOOCOMMERCE
   10. BOUTIQUE — BADGE PROMO
   11. BOUTIQUE — PRIX (shortcodes & cartes)
   12. CARROUSEL IMAGES PRODUIT
   13. CARTES CATÉGORIES
   14. TITRES SECTIONS
   15. DERNIERS ARTICLES (cartes blog)
   16. ARTICLES PAR CATÉGORIE + PAGINATION
   17. PAGE PANIER / CHECKOUT
   18. RESPONSIVE
   ============================================================ */

/* ============================================================
   1. VARIABLES & TOKENS
   ============================================================ */

:root {
  --clr-orange: #ff7a00;
  --clr-orange-light: #ff8f1f;
  --clr-orange-bright: #ff9a2a;
  --clr-orange-glow: rgba(255, 122, 0, 0.25);
  --clr-bg-dark: #000;
  --clr-bg-card: #111;
  --clr-bg-card-deep: #0d0d0d;
  --clr-text: #ddd;
  --clr-text-muted: #9b9b9b;
  --clr-text-dimmed: #888;
  --clr-border-subtle: rgba(255, 120, 0, 0.08);
  --clr-border-mid: rgba(255, 120, 0, 0.35);
  --radius-card: 12px;
  --radius-btn: 6px;
  --transition-std: 0.35s ease;
  --transition-slow: 0.6s ease;
}

/* ============================================================
   2. MENUS PRINCIPAUX (ast-hf-menu-1 et ast-hf-menu-2)
   L'effet de soulignement animé est STRICTEMENT limité
   aux sélecteurs #ast-hf-menu-1 et #ast-hf-menu-2.
   Il ne doit jamais s'appliquer au reste du site.
   ============================================================ */

/* --- Liens communs aux deux menus --- */
#ast-hf-menu-1 .menu-link,
#ast-hf-menu-2 .menu-link {
  font-size: 22px;
  color: var(--clr-text);
  padding: 8px 14px;
  position: relative;
  border-bottom: none;
  transition: color var(--transition-slow);
}

#ast-hf-menu-1 .menu-link {
  font-weight: 500;
}
#ast-hf-menu-2 .menu-link {
  font-weight: 400;
}

/* Padding forcé uniquement sur le menu 2 (besoin de !important constaté) */
#ast-hf-menu-2 .menu-link {
  padding: 8px 14px !important;
}

/* Hover & item actif */
#ast-hf-menu-1 .menu-item:hover > .menu-link,
#ast-hf-menu-1 .menu-item.current-menu-item > .menu-link,
#ast-hf-menu-2 .menu-item:hover > .menu-link,
#ast-hf-menu-2 .menu-item.current-menu-item > .menu-link {
  color: var(--clr-orange);
  background: transparent;
}

/* Ligne de soulignement animée — UNIQUEMENT dans les menus */
#ast-hf-menu-1 .menu-link::after,
#ast-hf-menu-2 .menu-link::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 2px;
  width: calc(100% - 28px);
  height: 2px;
  background: var(--clr-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

#ast-hf-menu-1 .menu-item:hover > .menu-link::after,
#ast-hf-menu-1 .menu-item.current-menu-item > .menu-link::after,
#ast-hf-menu-2 .menu-item:hover > .menu-link::after,
#ast-hf-menu-2 .menu-item.current-menu-item > .menu-link::after {
  transform: scaleX(1);
}

/* Corrige la hauteur de ligne du menu 2 */
#ast-hf-menu-2 .menu-item {
  line-height: normal !important;
}

/* ============================================================
   3. SOUS-MENU DÉROULANT (menu 1 uniquement)
   ============================================================ */

#ast-hf-menu-1 .sub-menu {
  background-color: #0d0d0d !important;
  background-image: none !important;
  border: 1px solid var(--clr-orange) !important;
  border-top: 2px solid var(--clr-orange) !important;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  box-shadow:
    0 0 14px rgba(255, 122, 0, 0.25),
    0 0 30px rgba(255, 122, 0, 0.1);
  min-width: 220px;
  padding: 6px 0;
}

#ast-hf-menu-1 .sub-menu .menu-link {
  font-size: 16px !important;
  font-weight: 500;
  color: var(--clr-text) !important;
  padding: 10px 20px !important;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 122, 0, 0.12) !important;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

#ast-hf-menu-1 .sub-menu .menu-item:last-child > .menu-link {
  border-bottom: none !important;
}

#ast-hf-menu-1 .sub-menu .menu-item:hover > .menu-link {
  color: var(--clr-orange) !important;
  background: rgba(255, 122, 0, 0.08) !important;
}

/* Pas de soulignement animé dans le sous-menu */
#ast-hf-menu-1 .sub-menu .menu-link::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   4. FOOTER — MENU TAHEFOBU (affichage vertical forcé)
   ============================================================ */

.elementor-widget-tahefobu-navigation-menu .tahefobu-nav-menu,
.tahefobu-nav-menu-horizontal,
.tahefobu-mobile-nav-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
}

.elementor-widget-tahefobu-navigation-menu .menu-item {
  display: block !important;
  width: 100%;
  margin-bottom: 10px;
}

.elementor-widget-tahefobu-navigation-menu .menu-link {
  display: block;
  width: 100%;
  padding: 4px 0;
}

/* ============================================================
   5. ICÔNE PANIER
   ============================================================ */

/* Couleur texte total */
.ast-woo-header-cart-total {
  color: var(--clr-orange);
  font-size: 14px;
  font-weight: 600;
}

/* SVG icône sac (header standard) */
.ast-icon.icon-bag svg path {
  fill: var(--clr-orange);
}

/* Variante "cart fill" — fond orange, texte blanc */
.ast-menu-cart-fill .ast-cart-menu-wrap .count,
.ast-menu-cart-fill .ast-cart-menu-wrap,
.ast-menu-cart-fill .ast-addon-cart-wrap .ast-woo-header-cart-info-wrap,
.ast-menu-cart-fill .ast-addon-cart-wrap {
  background-color: var(--clr-orange) !important;
  color: #ffffff !important;
  border-radius: 10px;
}

.ast-site-header-cart .ast-icon.icon-bag svg path {
  fill: #fff !important;
}

.ast-site-header-cart .ast-woo-header-cart-total,
.ast-site-header-cart .ast-woo-header-cart-total .woocommerce-Price-amount,
.ast-site-header-cart
  .ast-woo-header-cart-total
  .woocommerce-Price-currencySymbol {
  color: #fff !important;
}

/* ============================================================
   6. FIL D'ARIANE (breadcrumb via .elementor-shortcode)
   IMPORTANT : les styles de liens ci-dessous sont STRICTEMENT
   limités au fil d'ariane (.elementor-shortcode).
   Ils ne doivent PAS s'appliquer aux shortcodes WooCommerce.
   ============================================================ */

.elementor-shortcode {
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Liens du fil d'ariane */
.elementor-shortcode a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-slow);
}

/* Soulignement animé — breadcrumb uniquement */
.elementor-shortcode a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--clr-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.elementor-shortcode a:hover {
  color: var(--clr-orange);
}

.elementor-shortcode a:hover::after {
  transform: scaleX(1);
}

/* Séparateur » */
.elementor-shortcode span {
  color: var(--clr-text);
}

/* Page actuelle (non cliquable) */
.elementor-shortcode .breadcrumb_last {
  color: var(--clr-orange);
}

/* --- Neutralisation du soulignement breadcrumb dans les contextes WooCommerce --- */
/* Le shortcode WooCommerce utilise aussi .elementor-shortcode,
   on annule le ::after sur tous les liens qui ne sont PAS du breadcrumb */

.woocommerce-cart .elementor-shortcode a::after,
.woocommerce-checkout .elementor-shortcode a::after,
.woocommerce-cart .checkout-button::after,
.woocommerce-cart .product-name a::after,
/* Cartes produits */
.woocommerce ul.products li.product a::after,
.woocommerce ul.products li.product a::before,
/* Shortcodes Elementor (hors breadcrumb) */
.elementor-widget-shortcode a::after {
  display: none !important;
  content: none !important;
}

/* --- Annulation des effets de liens dans les cartes produits --- */
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a:hover,
.woocommerce ul.products li.product a:focus {
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* --- Annulation dans les cartes articles --- */
.da-carte a,
.da-carte a:hover,
.da-carte a:focus {
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.da-carte a::after,
.da-carte a::before {
  display: none !important;
  content: none !important;
}

/* ============================================================
   7. BOUTIQUE — LISTE PRODUITS (cartes)
   ============================================================ */

/* Grille */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: start; /* empêche l'étirement entre sections */
  overflow: visible;
}

/* Carte */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  background: var(--clr-bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid var(--clr-border-subtle);
  min-height: 0 !important;
  height: auto !important;
  position: relative;
  z-index: 1;
  isolation: isolate;
  backface-visibility: hidden;
  transition:
    box-shadow var(--transition-std),
    border-color var(--transition-std);
}

.woocommerce ul.products li.product:hover {
  box-shadow:
    0 0 20px rgba(255, 120, 0, 0.35),
    0 0 40px rgba(255, 120, 0, 0.15);
  border-color: var(--clr-border-mid);
  z-index: 10;
}

/* Image produit */
.astra-shop-thumbnail-wrap {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.astra-shop-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform var(--transition-std);
}

li.product:hover .astra-shop-thumbnail-wrap img {
  transform: scale(1.05);
}

/* Résumé texte */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 14px;
  text-align: center;
}

/* Titre — 2 lignes max, hauteur fixe pour aligner les prix */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 10px;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Catégorie */
.ast-woo-product-category {
  color: var(--clr-text-muted);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

/* Prix poussé en bas de la carte */
.woocommerce ul.products li.product .price {
  margin-top: auto;
}

/* Conteneur shortcode Elementor — stabilité */
.elementor-widget-shortcode {
  transform: none !important;
}

.elementor-widget-shortcode .woocommerce {
  overflow: visible;
}

.elementor-widget-shortcode .woocommerce ul.products {
  isolation: isolate;
}

/* Bouton "Voir l'article" — injecté par JS */
.woocommerce ul.products li.product a.ctc-voir-article {
  display: block !important;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--clr-orange);
  border-radius: var(--radius-btn);
  color: var(--clr-orange) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: all var(--transition-std);
}

.woocommerce ul.products li.product a.ctc-voir-article:hover {
  background: var(--clr-orange);
  color: #000 !important;
  box-shadow: 0 0 14px rgba(255, 120, 0, 0.45);
  transform: translateY(-2px);
}

/* Force les deux sections à la même largeur de grille */
.elementor-widget-shortcode .woocommerce ul.products {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-widget-shortcode ul.products li.product {
  width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* ============================================================
   8. BOUTIQUE — PAGE PRODUIT DÉTAIL
   ============================================================ */

.single-product,
.single-product .site,
.single-product .content-area,
.single-product .site-main,
.ast-woocommerce-container {
  background-color: var(--clr-bg-dark) !important;
}

.woocommerce div.product {
  color: #ddd;
}

.single-product div.product {
  background: var(--clr-bg-card);
  border-radius: var(--radius-card);
  padding: 80px;
  border: 1px solid var(--clr-border-mid);
  box-shadow:
    0 0 20px rgba(255, 120, 0, 0.15),
    0 0 40px rgba(255, 120, 0, 0.08);
}

.single-product div.product:hover {
  box-shadow:
    0 0 30px rgba(255, 120, 0, 0.25),
    0 0 60px rgba(255, 120, 0, 0.12);
}

.single-product .woocommerce-product-gallery img {
  border-radius: 10px;
}

.single-product .ast-article-single {
  padding: 40px !important;
}

.woocommerce-tabs {
  border-top: 1px solid rgba(255, 120, 0, 0.25);
  margin-top: 40px;
}

/* Prix — page détail */
.woocommerce div.product div.summary p.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-orange);
}

.woocommerce div.product div.summary p.price del,
.woocommerce div.product div.summary p.price del .woocommerce-Price-amount {
  color: var(--clr-text-dimmed);
  font-size: 18px;
}

.woocommerce div.product div.summary p.price ins,
.woocommerce div.product div.summary p.price ins .woocommerce-Price-amount {
  text-decoration: none;
  color: var(--clr-orange);
  font-size: 32px;
}

/* Éléments masqués */
.woocommerce-notices-wrapper,
.ast-shipping-text,
.product_meta,
.woocommerce-tabs,
.woocommerce div.product .price small,
.woocommerce div.product .price .woocommerce-shipping-destination {
  display: none;
}

/* ============================================================
   9. BOUTIQUE — BOUTONS WOOCOMMERCE
   ============================================================ */

.woocommerce a.button {
  background: var(--clr-orange);
  border-radius: var(--radius-btn);
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  transition: all 0.3s ease;
}

.woocommerce a.button:hover {
  background: var(--clr-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 120, 0, 0.45);
}

.woocommerce button.single_add_to_cart_button.button.alt {
  background: var(--clr-orange) !important;
  border-color: var(--clr-orange) !important;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-weight: 600;
  color: #fff !important;
}

.woocommerce button.single_add_to_cart_button.button.alt:hover {
  background: var(--clr-orange-light) !important;
  border-color: var(--clr-orange-light) !important;
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.6);
}

.single_add_to_cart_button.loading {
  background: #444 !important;
  pointer-events: none;
  position: relative;
}

.single_add_to_cart_button.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.6s linear infinite;
}

.single_add_to_cart_button.added {
  background: #28a745 !important;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ============================================================
   10. BOUTIQUE — BADGE PROMO
   ============================================================ */

.woocommerce span.onsale {
  background: linear-gradient(135deg, #ff7a00, #ff3c00);
  color: white;
  font-size: 22px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  top: 12px;
  right: 12px;
  left: auto;
  min-width: auto;
  min-height: auto;
  line-height: 1;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.6);
}

/* ============================================================
   11. BOUTIQUE — PRIX
   ============================================================ */

/* Prix dans les cartes liste */
.woocommerce ul.products li.product .price {
  color: var(--clr-orange) !important;
  font-weight: 600;
  font-size: 18px;
}

.woocommerce ul.products li.product .price del {
  color: var(--clr-text-dimmed);
  opacity: 0.7;
  margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
  color: var(--clr-orange);
  font-weight: 700;
  text-decoration: none;
}

/* Shortcode affichage prix (.wc-price-shortcode) */
.wc-price-shortcode .woocommerce-Price-amount,
.wc-price-shortcode ins .woocommerce-Price-amount {
  font-size: 22px;
  font-weight: 500;
  color: var(--clr-orange);
}

.wc-price-shortcode ins {
  text-decoration: none;
}

.wc-price-shortcode del,
.wc-price-shortcode del .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  margin-right: 6px;
  opacity: 1;
}

/* Shortcode bouton achat aventure (.bouton-achat-aventure) */
.bouton-achat-aventure del .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  margin-right: 6px;
  opacity: 1;
}

.bouton-achat-aventure ins {
  text-decoration: none;
}

.bouton-achat-aventure ins .woocommerce-Price-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--clr-orange);
}

/* ============================================================
   12. CARROUSEL IMAGES PRODUIT (#carrousel-perso)
   ============================================================ */

#carrousel-perso .swiper {
  overflow: hidden;
}

#carrousel-perso .swiper-wrapper {
  padding: 20px 0;
}

#carrousel-perso .swiper-slide {
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

#carrousel-perso .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#carrousel-perso .swiper-slide:hover img {
  box-shadow:
    0 0 0 1px rgba(255, 120, 0, 0.7),
    0 0 10px rgba(255, 120, 0, 0.7),
    0 0 25px rgba(255, 120, 0, 0.35);
  transform: scale(1.03);
}

/* Boutons navigation */
#carrousel-perso .elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#carrousel-perso .elementor-swiper-button-prev {
  left: 10px;
}
#carrousel-perso .elementor-swiper-button-next {
  right: 10px;
}

#carrousel-perso .elementor-swiper-button:hover {
  background: var(--clr-orange);
  color: #000;
}

/* Pagination */
#carrousel-perso .swiper-pagination-bullet {
  background: #999;
  opacity: 0.5;
}

#carrousel-perso .swiper-pagination-bullet-active {
  background: var(--clr-orange);
  opacity: 1;
}

/* ============================================================
   13. CARTES CATÉGORIES
   ============================================================ */

.shop-category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-std);
}

.shop-category-card img {
  transition: transform var(--transition-std);
}

.shop-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 120, 0, 0.5);
}

.shop-category-card:hover img {
  transform: scale(1.05);
}

.category-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
}

/* ============================================================
   14. TITRES SECTIONS
   ============================================================ */

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--clr-orange);
  margin-top: 10px;
}

/* ============================================================
   15. DERNIERS ARTICLES — cartes blog (.da-*)
   ============================================================ */

.derniers-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Carte */
.da-carte {
  display: flex;
  flex-direction: column;
  background-color: var(--clr-bg-card-deep);
  border: 1px solid var(--clr-orange);
  border-radius: 10px;
  box-shadow:
    0 0 10px rgba(255, 122, 0, 0.2),
    0 0 28px rgba(255, 122, 0, 0.08);
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.da-carte:hover {
  border-color: var(--clr-orange-bright);
  box-shadow:
    0 0 16px rgba(255, 122, 0, 0.35),
    0 0 40px rgba(255, 122, 0, 0.15);
}

/* Image */
.da-image-wrap {
  display: block;
  overflow: hidden;
  height: 220px;
}

.da-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.da-carte:hover .da-image-wrap img {
  transform: scale(1.04);
}

/* Contenu texte */
.da-contenu {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 20px 20px;
  gap: 8px;
}

/* Date */
.da-date {
  font-size: 0.8rem;
  color: var(--clr-text-dimmed);
  margin: 0;
  text-transform: none;
  font-variant: normal;
  letter-spacing: normal;
}

/* Titre H3 */
.da-titre {
  font-size: 1.05rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-transform: none;
  font-variant: normal;
  letter-spacing: normal;
}

.da-titre a {
  color: #d0d0d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.da-titre a:hover {
  color: var(--clr-orange);
}

/* Extrait */
.da-extrait,
.da-extrait p {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.6;
  text-transform: none !important;
  font-variant: normal !important;
  font-variant-caps: normal !important;
  letter-spacing: normal !important;
}

.da-extrait {
  flex-grow: 1;
  margin: 20px 0;
}

.da-extrait p {
  margin: 0;
}

/* Bouton "Lire l'article" */
.da-bouton {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 16px 28px;
  background: var(--clr-orange) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-btn);
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  transform: translateY(0px);
  box-shadow: 0 0 0 rgba(255, 120, 0, 0);
  transition:
    transform 0.8s ease,
    box-shadow 0.8s ease;
}

.da-bouton:hover {
  background: var(--clr-orange-light) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 120, 0, 0.55);
  text-decoration: none !important;
}

/* ============================================================
   16. ARTICLES PAR CATÉGORIE + PAGINATION
   ============================================================ */

/* Grille 3 colonnes — spécificité renforcée */
.articles-categorie .ac-grille.derniers-articles {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Pagination */
.ac-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding: 16px 0;
}

.ac-btn-prev,
.ac-btn-next {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--clr-orange);
  border: 1px solid var(--clr-orange);
  border-radius: var(--radius-btn);
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transform: translateY(0px);
  box-shadow: 0 0 0 rgba(255, 120, 0, 0);
  transition:
    background 0.6s ease,
    color 0.6s ease,
    transform 0.8s ease,
    box-shadow 0.8s ease;
}

.ac-btn-prev:hover:not(:disabled),
.ac-btn-next:hover:not(:disabled) {
  background: var(--clr-orange);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 120, 0, 0.5);
}

.ac-btn-prev:disabled,
.ac-btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #555;
  color: #555;
}

.ac-info {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  color: var(--clr-text-dimmed);
  letter-spacing: 0.5px;
}

/* ============================================================
   17. PAGE PANIER / CHECKOUT
   ============================================================ */

/* ── Visiteur non connecté : masquages natifs WooCommerce ── */

/* Titre "Détails de facturation" inutile car remplacé par notre formulaire */
body:not(.logged-in) .woocommerce-billing-fields h3 {
  display: none !important;
}

/* Champs billing cachés (type=hidden via PHP) — supprime l'espace résiduel */
.fdmj-hidden-billing,
p:has(> .fdmj-hidden-billing) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Champ natif "Créer le mot de passe du compte" et case "Créer un compte ?"
   — remplacés par notre formulaire fdmj-register-at-checkout */
body:not(.logged-in) .woocommerce-account-fields,
body:not(.logged-in) #account_password_field,
body:not(.logged-in) #createaccount_field,
body:not(.logged-in) .create-account {
  display: none !important;
}

/* ── Formulaire de création de compte au checkout ── */

.fdmj-register-at-checkout h3 {
  margin-bottom: 6px;
}

.fdmj-register-at-checkout .fdmj-register-subtitle {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 18px;
}

.fdmj-register-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.fdmj-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.fdmj-privacy-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.fdmj-checkout-reassurance {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--clr-orange);
  font-size: 13px;
  line-height: 2;
  opacity: 0.85;
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .articles-categorie .ac-grille.derniers-articles {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .derniers-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products,
  .derniers-articles {
    grid-template-columns: 1fr;
  }

  .articles-categorie .ac-grille.derniers-articles {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   19. BLOG
   ============================================================ */
/* ============================================================
   PAGE ARTICLES DE BLOG — Fond noir
   ============================================================ */

body.single-post,
body.single-post #page,
body.single-post #content,
body.single-post .ast-container,
body.single-post #primary,
body.single-post #main,
body.single-post article.ast-article-single,
body.single-post .entry-content {
  background-color: #000 !important;
}

/* Cadre et glow — conteneur article de blog */
body.single-post article.ast-article-single {
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--radius-card);
  box-shadow:
    0 0 20px rgba(255, 120, 0, 0.15),
    0 0 40px rgba(255, 120, 0, 0.08);
  padding: 40px;
  background: var(--clr-bg-card);
}

/* ============================================================
   20. INSCRIPTION
   ============================================================ */
.user-registration a {
  color: #f39c12;
  text-decoration: underline;
}

.user-registration label {
  color: #ffffff !important;
}
/* ============================================================
   21. RESET PASSWORD
   ============================================================ */

/* ============================================================
   RESET PASSWORD — VERSION PROPRE & PREMIUM
   ============================================================ */

/* RESET PASSWORD — fix Elementor */
/* Fix fond blanc Elementor shortcode */
.reset-pass {
  background: #000 !important;
  padding: 20px !important;
  margin-top: 50px !important;
  margin-bottom: 80px !important;
}

.ur-lost-password-title .ur-lost-password-message p {
  color: #fff !important;
}

#user-registration p {
  color: #fff !important;
}

#user-registration {
  background: #000;
}

/* RESET PASSWORD — override propre du plugin */
body.user-registration-page .ur-frontend-form.login {
  background: #0d0d0d !important;
  border: 1px solid rgba(255, 122, 0, 0.35) !important;

  padding: 50px;
  max-width: 600px;
  margin: 0 auto;

  box-shadow:
    0 0 20px rgba(255, 122, 0, 0.15),
    0 0 50px rgba(255, 122, 0, 0.08);
}

.ur-frontend-form:hover {
  box-shadow:
    0 0 30px rgba(255, 122, 0, 0.25),
    0 0 70px rgba(255, 122, 0, 0.12);
}

/* TITRE */
.ur-lost-password-title {
  color: #ffffff;
  font-size: 32px;
  text-align: center;
  margin-bottom: 15px;
}

/* TEXTE */
.ur-lost-password-message {
  color: #fff;
  text-align: center;
  margin-bottom: 35px;
}

/* LABEL */
.user-registration-form-row label {
  color: #ffffff !important;
  margin-bottom: 8px;
  display: block;
}

/* INPUT */
.user-registration input[type="email"] {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  transition: 0.3s;
}

.user-registration input[type="email"]:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
  outline: none;
}

/* BOUTON */
.user-registration button {
  background: linear-gradient(135deg, #ff7a00, #d28c2f);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  width: 100%;
  margin-top: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s;
}

.user-registration button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
}

/* ── Badge compteur panier ────────────────────────────────────────────────────
   Le JS (fdmj_cart_badge_script dans functions.php) copie data-cart-total
   du <i.ast-icon-shopping-bag> vers le <span.ast-icon.icon-bag>.
   Le ::after lit l'attribut sur ce span pour afficher le chiffre.
   display:grid + place-items:center est la seule méthode fiable sur ::after.
----------------------------------------------------------------------------- */

/* Masque le badge natif Astra et le span JS obsolète */
.ast-cart-count,
.custom-cart-count {
  display: none !important;
}

/* Le span interne est le point d'ancrage du badge */
.ast-icon.icon-bag {
  position: relative;
  display: inline-block;
}

/* Badge visible uniquement quand data-cart-total est rempli */
.ast-icon.icon-bag::after {
  content: attr(data-cart-total);
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff7a00;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 10;
  line-height: 1;
}

/* Masqué quand le panier est vide */
.ast-icon.icon-bag:not([data-cart-total])::after,
.ast-icon.icon-bag[data-cart-total=""]::after {
  display: none;
}
