/* =====================================================================
   MediUniforme — Améliorations transverses
   Tâches : #14 (hero 100vh), #15 (produits cliquables), #16 (divs CTA),
            #17 (reviews animées), #21 (coupon visible), #22 (login mobile)
   ===================================================================== */

/* ---------------------------------------------------------------------
   #14 — Hero en plein viewport (100vh) sans scroll
   On cible les patterns courants de hero (Elementor / Woostify) sur l'accueil.
   --------------------------------------------------------------------- */
body.home .hero-section,
body.home .hero,
body.home .mediuniforme-hero,
body.home [data-medi-hero]:not(.mu-quality-hero),
body.home .home-hero {
  min-height: 100vh;
  min-height: 100svh; /* prise en compte des barres mobiles iOS/Android */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.home .hero-section img,
body.home .hero img,
body.home [data-medi-hero]:not(.mu-quality-hero) img,
body.home .home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Le slider hero occupe toute la hauteur */
body.home .hero-slider,
body.home .hero-slider .swiper,
body.home .hero-slider .swiper-wrapper,
body.home .hero-slider .swiper-slide {
  height: 100vh;
  height: 100svh;
}

body.home .hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   #16 — Divs pleine hauteur avec 1 ou 2 CTA bien visibles
   Classe utilitaire réutilisable dans le contenu / Elementor : .full-height-cta
   --------------------------------------------------------------------- */
.full-height-cta {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 40px 20px;
}

.full-height-cta .cta-btn,
.full-height-cta a.button {
  display: inline-block;
  padding: 16px 38px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 40px;
  background: #48aa9d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(72, 170, 157, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
}

.full-height-cta .cta-btn:hover,
.full-height-cta a.button:hover {
  background: #3a8a7f;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(72, 170, 157, 0.55);
}

.full-height-cta .cta-btn.secondary {
  background: transparent;
  color: #48aa9d;
  border: 2px solid #48aa9d;
  box-shadow: none;
}

/* ---------------------------------------------------------------------
   #15 — Photos cliquables dans la section "Nos produits"
   --------------------------------------------------------------------- */
.nos-produits .product,
.nos-produits .product-item,
.nos-produits a,
.nos-produits img[data-href],
[data-medi-products] img[data-href],
.products .product a img {
  cursor: pointer;
}

.nos-produits .product img,
.nos-produits .product-item img,
[data-medi-products] img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 12px;
}

.nos-produits .product:hover img,
.nos-produits .product-item:hover img,
[data-medi-products] img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------------------
   #17 — Section avis / reviews : animation engageante (cards en fondu/translation)
   --------------------------------------------------------------------- */
.medi-reviews,
.reviews-section,
.mu-reviews,
[data-medi-reviews] {
  position: relative;
  overflow: hidden;
}

.medi-reviews .review-card,
.reviews-section .review-card,
.mu-reviews .review-card,
[data-medi-reviews] .review-card {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
}

.medi-reviews .review-card.is-visible,
.reviews-section .review-card.is-visible,
.mu-reviews .review-card.is-visible,
[data-medi-reviews] .review-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Carrousel 3D doux quand les cards sont en ligne */
.medi-reviews .review-card.is-active,
.mu-reviews .review-card.is-active,
[data-medi-reviews] .review-card.is-active {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 50px rgba(72, 170, 157, 0.25);
  z-index: 2;
}

@media (max-width: 768px) {
  .mu-reviews .review-card,
  [data-medi-reviews] .review-card {
    opacity: 1 !important;
    transform: none !important;
    padding: 0 !important;
    box-shadow: none;
  }

  .mu-reviews .review-card.is-visible,
  [data-medi-reviews] .review-card.is-visible,
  .mu-reviews .review-card.is-active,
  [data-medi-reviews] .review-card.is-active {
    transform: none !important;
    box-shadow: none !important;
  }
}

@keyframes mediReviewFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------------------------------------------------------------
   #21 — Bouton / champ COUPON plus visible (panier + checkout)
   --------------------------------------------------------------------- */
.woocommerce-form-coupon-toggle {
  display: block;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.checkout_coupon .woocommerce-info {
  background: #fff7ed !important;
  border-top: 3px solid #f59e0b !important;
  border-radius: 10px;
  font-weight: 600;
  color: #92400e !important;
}

.woocommerce-form-coupon-toggle .showcoupon,
.cart .coupon a,
a.showcoupon {
  display: inline-block !important;
  background: #f59e0b !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.cart .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 12px;
  background: #fffbeb;
}

.cart .coupon input.input-text {
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 12px;
}

.cart .coupon .button {
  background: #f59e0b !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ---------------------------------------------------------------------
   #22 — Layout mobile de la page connexion (Ancien client / Nouveau client)
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  #customer-choice {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  #customer-choice button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  #old-client-fields {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 12px;
  }

  #old-client-fields input,
  #old-client-fields select,
  #old-client-fields .input-text {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 46px;
    font-size: 16px; /* évite le zoom auto iOS */
  }

  #old-client-fields .phone-row,
  #old-client-fields .phone-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }

  #old-client-fields #country_code_selector {
    flex: 0 0 35%;
    min-width: 0;
  }

  #old-client-fields #phone_input {
    flex: 1 1 auto;
    min-width: 0;
  }

  #validate-old-client,
  #new-client,
  #old-client {
    width: 100%;
    min-height: 48px;
  }

  /* Formulaire WooCommerce nouveau client : pas de débordement */
  .woocommerce-billing-fields .form-row,
  #customer_details .form-row {
    width: 100% !important;
    float: none !important;
    padding: 0 0 12px 0 !important;
    box-sizing: border-box;
  }

  .woocommerce-billing-fields .form-row input,
  .woocommerce-billing-fields .form-row select {
    font-size: 16px;
    min-height: 46px;
  }
}

/* =====================================================================
   ADAPTATION RESPONSIVE DE TOUTES LES IMAGES
   Objectif : chaque image s'affiche à une taille adaptée à l'écran de
   l'utilisateur (jamais plus large que son conteneur, ratio préservé,
   pas de déformation ni de débordement), sur desktop comme sur mobile.
   ===================================================================== */

/* Base universelle : aucune image ne dépasse la largeur disponible */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Les images se chargent en douceur et préservent leur ratio */
img {
  vertical-align: middle;
}

/* On NE force PAS la mise à l'échelle des éléments à taille fixe
   (logos, icônes, pastilles couleur, badges de paiement, drapeaux…) */
.custom-logo,
.site-logo img,
.medi-footer-logo img,
.medi-pay-badge,
.wp-smiley,
.emoji {
  max-width: 100%;
}

/* ---------------------------------------------------------------------
   Cartes produit (boutique, archives, produits liés, ventes croisées)
   -> vignettes homogènes, produit entièrement visible (contain), centré
   --------------------------------------------------------------------- */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
ul.products li.product img,
.related.products img,
.up-sells img,
.cross-sells img,
.nos-produits .product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Fiche produit : la photo principale tient dans l'écran (responsive)
   --------------------------------------------------------------------- */
.single-product .woocommerce-product-gallery,
.single-product .product-gallery {
  width: 100%;
  margin: 0 auto;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .product-gallery img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Images de contenu (pages, articles, Elementor) : jamais hors-cadre
   --------------------------------------------------------------------- */
.entry-content img,
.page-content img,
.elementor-widget-image img,
.elementor-widget-image-box img,
.wp-block-image img,
figure img {
  max-width: 100%;
  height: auto;
}

/* Vignettes panier / mini-panier : compactes et nettes */
.woocommerce-cart-form .cart_item img,
.woocommerce-mini-cart .mini_cart_item img,
.cart_item td.product-thumbnail img {
  width: 72px;
  height: auto;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   Ajustements par taille d'écran (la photo principale se réduit pour
   laisser la place aux options sans scroll excessif)
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  .single-product .woocommerce-product-gallery__image img,
  .single-product .product-gallery img {
    max-height: 46vh;
  }

  .woocommerce ul.products li.product img,
  ul.products li.product img {
    aspect-ratio: 3 / 4; /* cadrage portrait plus flatteur sur mobile */
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .single-product .woocommerce-product-gallery__image img,
  .single-product .product-gallery img {
    max-height: 42vh;
  }

  /* Grille boutique à deux colonnes lisible sur petit écran */
  .woocommerce ul.products li.product img,
  ul.products li.product img {
    aspect-ratio: 1 / 1;
  }
}

/* Évite tout débordement horizontal global dû à une image trop large */
html,
body {
  overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   Nos produits — image dominante, titre + prix + bouton seulement
   (section Elementor .product-section + variante .mu-products)
   --------------------------------------------------------------------- */

/* Page accueil 4980 — remplir le conteneur Elementor 04c0a9c */
.elementor-4980 .elementor-element.elementor-element-eb4bb26.e-con,
.elementor-4980 .elementor-element.elementor-element-04c0a9c.e-con,
.elementor-4980 .elementor-element.elementor-element-04c0a9c .elementor-element-71b2d65.e-con {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  flex: 1 1 auto !important;
  box-sizing: border-box;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c.e-con {
  --padding-left: 0px;
  --padding-right: 0px;
  --container-max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c .elementor-element-71b2d65.e-con {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c .elementor-element-e43da09,
.elementor-4980 .elementor-element.elementor-element-04c0a9c .elementor-element-e43da09 .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2rem 1rem !important;
  box-sizing: border-box;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section .section-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section .product-grid {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.product-section .color-options,
.product-section .product-tags,
.product-section .product-features,
.product-section .swipe-hint,
.mu-products .mu-badge,
.mu-products .mu-tags,
.mu-products .mu-features,
.mu-products .mu-color-line,
.mu-products .mu-back {
  display: none !important;
}

.product-section .product-grid,
.mu-products .mu-grid {
  align-items: stretch;
}

.product-section .product-card,
.mu-products .mu-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto;
}

.mu-products .mu-card-inner {
  display: block !important;
  flex: 1 1 auto;
  height: 100%;
  min-height: inherit;
}

/* Legacy .mu-front-body (old layout) — hidden when .mu-overlay is used */
.mu-products .mu-overlay ~ .mu-front-body,
.mu-products .mu-front-body:not(:only-child) {
  display: none !important;
}

.mu-products .mu-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
}

.mu-products .mu-overlay-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.product-section .product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  min-height: 0;
}

.product-section .product-title {
  margin: 0;
  flex: 0 0 auto;
  min-height: 4.2em;
  max-height: 4.2em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-section .product-image {
  flex: 0 0 auto;
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}

.product-section .product-footer {
  margin-top: auto !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  flex-shrink: 0;
}

.product-section .product-image,
.mu-products .mu-image {
  cursor: pointer;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: inherit;
}

.product-section .product-image img,
.mu-products .mu-slide img {
  cursor: pointer;
}

.mu-products .mu-slide img {
  object-fit: cover;
}

.mu-products .mu-image {
  background: linear-gradient(135deg, #d4efe9 0%, #48aa9d 100%);
}

.mu-products .mu-card-inner {
  border-radius: 20px;
  width: 100%;
}

.mu-products .mu-details-btn {
  flex-shrink: 0;
  border-radius: 12px;
}
.mu-products .mu-image:not(:has(.mu-overlay)) + .mu-front-body,
.mu-products .mu-card-inner > .mu-front-body:last-child {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1rem;
  gap: 0.5rem;
  min-height: 118px;
}

.mu-products .mu-title {
  margin: 0;
}

.mu-products .mu-image:not(:has(.mu-overlay)) {
  flex: 0 0 auto;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}

.mu-products .mu-price {
  flex: 0 0 auto;
}

@media (min-width: 769px) {
  .product-section .product-card {
    min-height: 460px;
  }

  .product-section .product-image {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }

  .product-section .product-content {
    padding: 0.85rem 1rem 1rem;
  }

  .product-section .slider-slide {
    padding: 0.5rem;
  }

  .product-section .slider-slide img {
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-section .product-card:hover .slider-slide img {
    transform: scale(1.03);
  }

  .mu-products .mu-card {
    min-height: min(72vh, 520px);
    height: auto;
  }

  .mu-products .mu-image {
    height: 100%;
    min-height: inherit;
    max-height: none;
  }

  .mu-products .mu-slide {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .elementor-4980 .elementor-element.elementor-element-04c0a9c.e-con,
  .elementor-4980 .elementor-element.elementor-element-04c0a9c .elementor-element-71b2d65.e-con {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
  }

  .elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 0.75rem !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  .elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section .section-container,
  .elementor-4980 .elementor-element.elementor-element-04c0a9c .product-section .product-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body.home .elementor-widget-html:has(.product-section),
  body.home .elementor-widget-html:has(.product-section) .elementor-widget-container,
  body.home .elementor-element:has(.product-section) > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .product-section,
  .mu-products {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 0.5rem !important;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .product-section .section-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .product-section .product-grid,
  .mu-products .mu-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-items: stretch;
    gap: 1.25rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .product-section .product-card,
  .mu-products .mu-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .product-section .product-card {
    min-height: 600px;
  }

  .product-section .product-image,
  .product-section .image-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .product-section .slider-track {
    max-width: none;
  }

  .product-section .product-image {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }

  .product-section .product-content {
    padding: 1rem 1rem 1.15rem;
    width: 100%;
    box-sizing: border-box;
  }

  .product-section .product-title {
    text-align: center;
    width: 100%;
  }

  .product-section .product-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    width: 100%;
  }

  .product-section .product-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .mu-products .mu-card {
    height: auto;
    min-height: min(72vh, 520px);
    width: 100%;
  }

  .mu-products .mu-image {
    height: 100%;
    min-height: inherit;
    max-height: none;
    width: 100%;
    overflow: hidden;
  }

  .mu-products .mu-overlay {
    padding: 2.75rem 1rem 1.1rem;
  }

  .mu-products .mu-details-btn {
    width: auto;
    max-width: none;
  }

  .mu-products .mu-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .mu-products .mu-details-btn {
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .mu-products .mu-price {
    font-size: 1.35rem !important;
  }

  .mu-products .mu-overlay {
    gap: 0.85rem !important;
  }
}

/* ---------------------------------------------------------------------
   Nos produits — overlay JAANUU (image pleine largeur, titre + Voir + prix)
   S'applique à .product-section (Elementor accueil) sans modifier le HTML.
   --------------------------------------------------------------------- */
.product-section .product-grid {
  gap: 1.25rem !important;
}

@media (min-width: 1200px) {
  .product-section .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .product-section .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.product-section .product-card {
  position: relative !important;
  display: block !important;
  min-height: 420px !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  .product-section .product-card {
    min-height: 460px !important;
  }
}

.product-section .product-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  background: linear-gradient(135deg, #d4efe9 0%, #48aa9d 100%) !important;
}

.product-section .image-slider,
.product-section .slider-track,
.product-section .slider-slide {
  height: 100% !important;
  min-height: 100% !important;
}

.product-section .slider-slide {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.product-section .slider-slide img {
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  filter: none !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-section .product-card:hover .slider-slide img {
  transform: scale(1.04) !important;
}

.product-section .product-content {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 4 !important;
  padding: 2.5rem 1.15rem 1.15rem !important;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  ) !important;
  flex-grow: 0 !important;
  gap: 0.65rem !important;
  pointer-events: none;
  min-height: 0 !important;
}

.product-section .product-content > * {
  pointer-events: auto;
}

.product-section .product-title {
  color: #fff !important;
  text-align: left !important;
  min-height: auto !important;
  max-height: none !important;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem) !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  width: 100% !important;
}

.product-section .product-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  width: 100% !important;
  text-align: left !important;
}

.product-section .product-button {
  order: 1 !important;
  background: #fff !important;
  color: #1a202c !important;
  border-radius: 12px !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  flex-shrink: 0;
}

.product-section .product-button::before {
  display: none !important;
}

.product-section .product-button .button-icon {
  display: none !important;
}

.product-section .product-button:hover {
  background: #48aa9d !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.product-section .product-price {
  order: 2 !important;
  margin-left: auto !important;
  color: #fff !important;
  font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.product-section .slide-indicators {
  bottom: 7.5rem !important;
  background: transparent !important;
  backdrop-filter: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.product-section .indicator {
  width: 7px !important;
  height: 7px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: none !important;
  transform: none !important;
}

.product-section .indicator.active {
  width: 20px !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .product-section .product-card {
    min-height: min(72vh, 520px) !important;
    border-radius: 20px !important;
  }

  .product-section .product-grid {
    gap: 1rem !important;
    padding: 0 !important;
  }

  .product-section .slide-indicators {
    bottom: 8.5rem !important;
  }

  .product-section .product-content {
    padding: 2.75rem 1rem 1.1rem !important;
  }

  .product-section .product-footer {
    flex-direction: row !important;
    align-items: flex-end !important;
  }

  .product-section .product-button {
    width: auto !important;
    max-width: none !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .product-section .product-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .product-section .product-price {
    font-size: 1.35rem !important;
  }

  .product-section .product-content {
    gap: 0.85rem !important;
  }
}

/* ---------------------------------------------------------------------
   Meilleures ventes — même design overlay que « Nos produits »
   Image pleine hauteur, titre + Voir + prix en bas.
   --------------------------------------------------------------------- */
.best-sellers-grid ul.products {
  gap: 1.25rem !important;
  align-items: stretch !important;
}

.best-sellers-grid ul.products li.product {
  position: relative !important;
  display: block !important;
  min-height: 420px !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 992px) {
  .best-sellers-grid ul.products li.product {
    min-height: 460px !important;
  }
}

.best-sellers-grid .product-loop-wrapper {
  position: relative !important;
  display: block !important;
  min-height: inherit !important;
  height: 100% !important;
  border-radius: 20px;
  overflow: hidden;
}

.best-sellers-grid .product-loop-wrapper::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.best-sellers-grid .product-loop-image-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  background: linear-gradient(135deg, #d4efe9 0%, #48aa9d 100%) !important;
  flex: none !important;
  display: block !important;
  cursor: pointer;
}

.best-sellers-grid .product-loop-image-wrapper > a.woocommerce-LoopProduct-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.best-sellers-grid .product-loop-image-wrapper img.product-loop-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Woostify masque l'image principale au hover et affiche product-loop-hover-image —
   on la cache, donc le fond vert (#48aa9d) apparaissait. Forcer l'image visible. */
.best-sellers-grid .product-loop-image-wrapper:hover .product-loop-hover-image + .product-loop-image,
.best-sellers-grid .product-loop-image-wrapper:hover img.product-loop-image,
.best-sellers-grid li.product:hover .product-loop-image-wrapper img.product-loop-image {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.best-sellers-grid .product-loop-hover-image {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.best-sellers-grid .product-loop-image-wrapper:hover .product-loop-hover-image {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.best-sellers-grid .product-loop-image-wrapper,
.best-sellers-grid .product-loop-image-wrapper .product-loop-image,
.best-sellers-grid .product-loop-image-wrapper .product-loop-hover-image {
  transition: none !important;
}

.best-sellers-grid .product-loop-action,
.best-sellers-grid .tinvwl-loop-button-wrapper {
  display: none !important;
}

.best-sellers-grid .product-loop-content {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  padding: 2.5rem 1.15rem 1.15rem !important;
  margin: 0 !important;
  background: none !important;
  text-align: left !important;
  flex: none !important;
  pointer-events: none;
}

.best-sellers-grid .product-loop-content > * {
  pointer-events: auto;
}

.best-sellers-grid .woocommerce-loop-product__title {
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  min-height: auto !important;
  width: 100% !important;
}

.best-sellers-grid .woocommerce-loop-product__title a {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-sellers-grid .product-loop-meta,
.best-sellers-grid .product-loop-meta:not(.no-transform) {
  order: 2 !important;
  position: static !important;
  inset: auto !important;
  z-index: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  overflow: visible !important;
  background: none !important;
  pointer-events: none;
  width: 100% !important;
}

.best-sellers-grid .product-loop-meta .animated-meta,
.best-sellers-grid .product-loop-meta:not(.no-transform) .animated-meta {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto;
  width: 100% !important;
}

.best-sellers-grid .product-loop-meta .tinv-wraper,
.best-sellers-grid .product-loop-meta .screen-reader-text {
  display: none !important;
}

.best-sellers-grid .products .product:hover .product-loop-meta .animated-meta,
.best-sellers-grid .product-loop-meta .animated-meta:focus-within {
  transform: none !important;
}

.best-sellers-grid .product-loop-meta .price {
  order: 2 !important;
  margin: 0 0 0 auto !important;
  color: #fff !important;
  font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.best-sellers-grid .product-loop-meta .woocommerce-Price-amount,
.best-sellers-grid .product-loop-meta .woocommerce-Price-currencySymbol {
  color: #fff !important;
}

.best-sellers-grid .loop-add-to-cart-btn,
.best-sellers-grid .product-discover-btn,
.best-sellers-grid .product-loop-meta .button {
  order: 1 !important;
  flex-shrink: 0;
  background: #fff !important;
  color: #1a202c !important;
  border-radius: 12px !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  min-height: auto !important;
  width: auto !important;
  max-width: none !important;
  border: none !important;
  gap: 0 !important;
}

.best-sellers-grid .loop-add-to-cart-btn:hover,
.best-sellers-grid .product-discover-btn:hover {
  background: #fff !important;
  color: #1a202c !important;
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.best-sellers-grid .loop-add-to-cart-btn .woostify-svg-icon,
.best-sellers-grid .product-discover-btn__icon {
  display: none !important;
}

@media (max-width: 768px) {
  .best-sellers-grid {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .best-sellers-grid .woocommerce,
  .best-sellers-grid ul.products {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .best-sellers-grid ul.products li.product {
    min-height: min(65vh, 460px) !important;
    border-radius: 20px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: unset;
  }

  .best-sellers-grid .product-loop-content {
    padding: 2rem 1rem 1.1rem !important;
    gap: 0.55rem !important;
  }

  .best-sellers-grid .loop-add-to-cart-btn,
  .best-sellers-grid .product-discover-btn {
    width: auto !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .best-sellers-grid .woocommerce-loop-product__title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .best-sellers-grid .product-loop-meta .price {
    font-size: 1.35rem !important;
  }

  .best-sellers-grid .product-loop-content {
    gap: 0.85rem !important;
  }
}

/* ---------------------------------------------------------------------
   Produits similaires — cartes plus hautes (desktop)
   --------------------------------------------------------------------- */
@media (min-width: 769px) {
  .related.products ul.products li.product {
    min-height: 460px;
    height: auto;
  }

  .related.products ul.products li.product .product-loop-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
    overflow: visible;
  }

  .related.products ul.products li.product .product-loop-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.25rem 1rem 1.5rem;
  }

  .related.products .product-loop-meta:not(.no-transform) {
    height: auto !important;
    min-height: 118px;
    line-height: 1.4 !important;
    overflow: visible !important;
    margin-top: auto;
    padding-top: 0.75rem;
  }

  .related.products .product-loop-meta:not(.no-transform) .animated-meta {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: none !important;
    transition: none;
  }

  .related.products .products .product:hover .product-loop-meta:not(.no-transform) .animated-meta,
  .related.products .product-loop-meta:not(.no-transform) .animated-meta:focus-within {
    transform: none !important;
  }

  .related.products .product-loop-meta .loop-add-to-cart-btn,
  .related.products .product-loop-meta .button {
    width: 100%;
    max-width: 100%;
  }

  .related.products .tinvwl-loop-button-wrapper {
    width: 100%;
  }

  .related.products .tinvwl-loop-button-wrapper a.tinvwl_add_to_wishlist_button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------
   Page boutique (/shop/) + page catalogue (/products/) + archives — cartes plus hautes
   Zone actions élargie pour afficher les boutons sans survol.
   --------------------------------------------------------------------- */
@media (min-width: 769px) {
  body.medi-product-catalog ul.products li.product {
    min-height: 460px;
    height: auto;
  }

  body.medi-product-catalog ul.products li.product .product-loop-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
    overflow: visible;
  }

  body.medi-product-catalog ul.products li.product .product-loop-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.25rem 1rem 1.5rem;
  }

  body.medi-product-catalog .product-loop-meta:not(.no-transform) {
    height: auto !important;
    min-height: 118px;
    line-height: 1.4 !important;
    overflow: visible !important;
    margin-top: auto;
    padding-top: 0.75rem;
  }

  body.medi-product-catalog .product-loop-meta:not(.no-transform) .animated-meta {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: none !important;
    transition: none;
  }

  body.medi-product-catalog .products .product:hover .product-loop-meta:not(.no-transform) .animated-meta,
  body.medi-product-catalog .product-loop-meta:not(.no-transform) .animated-meta:focus-within {
    transform: none !important;
  }

  body.medi-product-catalog .product-loop-meta .loop-add-to-cart-btn,
  body.medi-product-catalog .product-loop-meta .button,
  body.medi-product-catalog .product-loop-meta .custom-personnaliser-btn {
    width: 100%;
    max-width: 100%;
  }

  body.medi-product-catalog .tinvwl-loop-button-wrapper {
    width: 100%;
  }

  body.medi-product-catalog .tinvwl-loop-button-wrapper a.tinvwl_add_to_wishlist_button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------
   Catalogue (/shop/, /products/) — même logique que Découvrir (.product-section)
   Image dominante, titre + prix + « Voir », pas de wishlist sur la carte.
   --------------------------------------------------------------------- */
body.medi-product-catalog .product-loop-action,
body.medi-product-catalog .tinvwl-loop-button-wrapper {
  display: none !important;
}

body.medi-product-catalog .product-loop-image-wrapper {
  flex: 0 0 auto;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.medi-product-catalog .product-loop-image-wrapper > a.woocommerce-LoopProduct-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

body.medi-product-catalog .product-loop-image-wrapper img.product-loop-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.medi-product-catalog .loop-add-to-cart-btn .woostify-svg-icon {
  display: none !important;
}

body.medi-product-catalog .product-discover-btn {
  gap: 6px;
}

body.medi-product-catalog .product-discover-btn__icon {
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 769px) {
  body.medi-product-catalog .product-loop-image-wrapper {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }

  body.medi-product-catalog ul.products li.product {
    min-height: 520px;
  }

  body.medi-product-catalog ul.products li.product .product-loop-wrapper {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  body.medi-product-catalog .product-loop-image-wrapper {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  body.medi-product-catalog ul.products li.product {
    min-height: 600px;
  }

  body.medi-product-catalog ul.products li.product .product-loop-wrapper {
    min-height: 600px;
  }
}

/* =====================================================================
   « Ajouter au panier » & « Ajouter à la liste de souhaits » EN BOUTONS
   Objectif : sur TOUTES les pages et sections (boutique, archives,
   produits liés / cross-sells / up-sells, quick view, accueil, recherche),
   ces deux actions s'affichent comme de vrais boutons cliquables, visibles
   et tactiles (≥ 44 px), au lieu de simples liens texte.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Bouton « Ajouter au panier » (boucle WooCommerce + liens personnalisés)
   Couvre : add_to_cart_button, "Voir les options"/"Choix des options"
   (product_type_variable), liens .btn-shop / .loop-add-to-cart-btn.
   --------------------------------------------------------------------- */
.woocommerce a.button.add_to_cart_button,
.woocommerce a.add_to_cart_button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.products .product a.loop-add-to-cart-btn,
a.loop-add-to-cart-btn,
.btn-shop,
a.btn-shop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #48aa9d !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center;
  padding: 12px 22px !important;
  border: none !important;
  border-radius: 30px !important;
  min-height: 44px;
  line-height: 1.2 !important;
  box-shadow: 0 4px 14px rgba(72, 170, 157, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.woocommerce a.button.add_to_cart_button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button:hover,
.products .product a.loop-add-to-cart-btn:hover,
a.loop-add-to-cart-btn:hover,
.btn-shop:hover,
a.btn-shop:hover {
  background: #3a8a7f !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(72, 170, 157, 0.5);
}

/* Le lien « Voir le panier » qui apparaît après l'ajout reste un bouton */
.woocommerce a.added_to_cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #2d6f65 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  min-height: 40px;
  margin-left: 8px;
}

/* Bouton d'ajout dans la modale de suggestions / quick view */
button.suggestion-modal-add-to-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #48aa9d !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 22px !important;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(72, 170, 157, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}
button.suggestion-modal-add-to-cart:hover {
  background: #3a8a7f !important;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   Bouton « Ajouter à la liste de souhaits »
   Plugin actif : TI WooCommerce Wishlist (.tinvwl_add_to_wishlist_button)
   + repli YITH (.yith-wcwl-add-to-wishlist). Style « bouton secondaire »
   (contour vert) pour le distinguer du panier sans le rendre discret.
   --------------------------------------------------------------------- */
.tinv-wishlist a.tinvwl_add_to_wishlist_button,
.tinv-wraper a.tinvwl_add_to_wishlist_button,
a.tinvwl_add_to_wishlist_button,
.tinvwl_add_to_wishlist_button,
.yith-wcwl-add-to-wishlist a,
.yith-wcwl-add-to-wishlist .add_to_wishlist {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff !important;
  color: #48aa9d !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center;
  padding: 10px 20px !important;
  border: 2px solid #48aa9d !important;
  border-radius: 30px !important;
  min-height: 44px;
  line-height: 1.2 !important;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.tinv-wishlist a.tinvwl_add_to_wishlist_button:hover,
.tinv-wraper a.tinvwl_add_to_wishlist_button:hover,
a.tinvwl_add_to_wishlist_button:hover,
.yith-wcwl-add-to-wishlist a:hover {
  background: #48aa9d !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(72, 170, 157, 0.35);
}

/* L'icône cœur reste alignée et hérite de la couleur du texte du bouton */
.tinvwl_add_to_wishlist_button i,
.tinvwl_add_to_wishlist_button .tinvwl-icon,
.yith-wcwl-add-to-wishlist a i {
  color: inherit !important;
  font-size: 1em;
  margin: 0;
}

/* Bouton wishlist sur la fiche produit : pleine largeur sous le panier */
.single-product .tinv-wraper.tinv-wishlist {
  display: block;
  margin-top: 10px;
}
.single-product .tinv-wraper a.tinvwl_add_to_wishlist_button {
  width: 100%;
}

/* Mobile : actions panier + wishlist bien tactiles et lisibles */
@media (max-width: 600px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce a.add_to_cart_button,
  .products .product a.loop-add-to-cart-btn,
  a.tinvwl_add_to_wishlist_button,
  .btn-shop {
    width: 100%;
    min-height: 48px;
    padding: 14px 18px !important;
  }
}

/* =====================================================================
   LANDING PAGE & NAVIGATION (lot d'ajustements UI)
   - Hero : image complète visible sans scroll + plein écran sans marge
   - Logo plus petit / navbar minimale
   - Bouton « Déconnexion » visible en desktop
   ===================================================================== */

/* ---------------------------------------------------------------------
   Landing — Hero du slider d'accueil (#14, raffinement)
   Le markup et le CSS du hero vivent dans le contenu de la page (widget
   HTML Elementor) : on surcharge donc ici avec une spécificité supérieure.
   --------------------------------------------------------------------- */

/* Page d'accueil bord à bord : le <body> portait un padding: 20px qui
   créait des marges grises autour de la navbar ET du hero. On le retire
   sur l'accueil pour que tout occupe toute la largeur (et toute la hauteur). */
body.home {
  padding: 0 !important;
  margin: 0 !important;
}

/* Le hero occupe TOUTE la largeur (bord à bord), sans espace autour :
   on neutralise le padding / la largeur « boxed » des conteneurs Elementor
   qui enveloppent le hero — SANS décalage (pas de hack 100vw). */
body.home .e-con.e-parent:has(.hero-slider),
body.home .e-con.e-parent:has(.hero-slider) > .e-con-inner,
body.home .elementor-widget-html:has(.hero-slider) {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hauteur calée sur l'espace réellement disponible = hauteur d'écran
   MOINS la hauteur de la navbar (variable --medi-header-h fixée en JS).
   Ainsi tout le hero (image + titre + bouton + les 2 puces) est visible
   SANS scroller. On retire aussi le plancher min-height: 700/800px du
   contenu qui débordait. */
body.home .hero-slider {
  height: calc(100vh - var(--medi-header-h, 72px));
  height: calc(100svh - var(--medi-header-h, 72px));
  min-height: calc(100svh - var(--medi-header-h, 72px)) !important;
  max-height: calc(100svh - var(--medi-header-h, 72px)) !important;
}

@supports (height: 100dvh) {
  body.home .hero-slider {
    height: calc(100dvh - var(--medi-header-h, 72px));
    min-height: calc(100dvh - var(--medi-header-h, 72px)) !important;
    max-height: calc(100dvh - var(--medi-header-h, 72px)) !important;
  }
}

/* La grille image/contenu remplit toute la hauteur disponible du hero. */
body.home .hero-slider .slider,
body.home .hero-slider .slider-item {
  height: 100% !important;
}

/* Les puces (dots) restent à l'intérieur du hero, donc visibles sans scroll. */
body.home .hero-slider .slider-dots {
  bottom: 12px;
}

/* ---------------------------------------------------------------------
   UI — Logo visible + navbar équilibrée
   Le logo source fait 120×120 ; on le met en avant sans surcharger la barre.
   --------------------------------------------------------------------- */
.site-header .site-branding .custom-logo,
.site-header .custom-logo-link .custom-logo,
.site-header img.custom-logo {
  width: auto !important;
  height: 72px !important;
  max-height: 72px !important;
}

.site-header .site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

/* Bandeau adapté à la taille du logo */
.site-header .site-header-inner,
.site-header .site-header-inner .woostify-container {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  min-height: 0 !important;
}

.site-header.header-layout-1 {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Desktop : les liens du menu portaient un grand padding vertical
   (≈ 36px de chaque côté) qui rendait la navbar haute (≈107px).
   On le réduit pour une barre compacte sans toucher au mobile. */
@media (min-width: 769px) {
  .site-header .main-navigation .primary-navigation > li > a,
  .site-header .primary-navigation li a,
  .site-header .main-navigation a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
  }

  .site-header .site-navigation,
  .site-header .main-navigation,
  .site-header #menu-header-primary,
  .site-header .primary-navigation,
  .site-header .primary-navigation > li {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 768px) {
  .site-header .site-branding .custom-logo,
  .site-header .custom-logo-link .custom-logo,
  .site-header img.custom-logo {
    height: 56px !important;
    max-height: 56px !important;
  }

  .site-header .site-header-inner,
  .site-header .site-header-inner .woostify-container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}

/* ---------------------------------------------------------------------
   Bug — Bouton « Déconnexion » visible en desktop (#23, correctif)
   Renforce la visibilité et l'alignement du bouton de déconnexion du
   checkout (#logged-in-status) et du lien dans le menu « Mon compte »,
   y compris sur grand écran.
   --------------------------------------------------------------------- */
#logged-in-status {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#custom-logout-btn,
#checkout-logout-btn,
.checkout-logout-btn,
.woocommerce-MyAccount-navigation-link--customer-logout,
.woocommerce-MyAccount-navigation-link--customer-logout a {
  display: inline-flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (min-width: 769px) {
  #logged-in-status {
    display: flex !important;
  }

  #custom-logout-btn,
  #checkout-logout-btn,
  .checkout-logout-btn {
    display: inline-flex !important;
  }
}

/* Best sellers — bouton « Voir » (priorité sur styles globaux « Ajouter au panier ») */
.best-sellers-grid .loop-add-to-cart-btn,
.best-sellers-grid .product-discover-btn,
.best-sellers-grid .product-loop-meta a.button.add_to_cart_button {
  background: #fff !important;
  color: #1a202c !important;
  border-radius: 12px !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.78rem !important;
  min-height: auto !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
}

.best-sellers-grid .loop-add-to-cart-btn:hover,
.best-sellers-grid .product-discover-btn:hover,
.best-sellers-grid .product-loop-meta a.button.add_to_cart_button:hover {
  background: #fff !important;
  color: #1a202c !important;
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Meilleures ventes — neutraliser les survols hérités du thème Woostify */
.best-sellers-grid li.product:hover .product-loop-hover-image,
.best-sellers-grid li.product:hover .woocommerce-loop-product__title a,
.best-sellers-grid li.product:hover .woocommerce-loop-product__title {
  color: #fff !important;
  transform: none !important;
}

.best-sellers-grid li.product:hover .product-loop-wrapper,
.best-sellers-grid li.product:hover .product-loop-content,
.best-sellers-grid li.product:hover .product-loop-meta {
  transform: none !important;
}

/* Mobile — tailles lisibles (Nos produits + Meilleures ventes) */
@media (max-width: 768px) {
  .mu-products .mu-title,
  .product-section .product-title,
  .best-sellers-grid .woocommerce-loop-product__title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .mu-products .mu-details-btn,
  .product-section .product-button,
  .best-sellers-grid .loop-add-to-cart-btn,
  .best-sellers-grid .product-discover-btn,
  .best-sellers-grid .product-loop-meta a.button.add_to_cart_button,
  .best-sellers-grid .product-loop-meta .button {
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .mu-products .mu-price,
  .product-section .product-price,
  .best-sellers-grid .product-loop-meta .price {
    font-size: 1.35rem !important;
  }
}

/* On vous promet — pleine largeur mobile (conteneurs Elementor) */
@media (max-width: 768px) {
  body.home .elementor-widget-html:has(.mu-promet),
  body.home .elementor-widget-html:has(.mu-promet) .elementor-widget-container,
  body.home .elementor-element:has(.mu-promet),
  body.home .elementor-element:has(.mu-promet) > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .elementor-element.elementor-element-bbf8f2f.e-con,
  .elementor-element.elementor-element-bbf8f2f .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .mu-promet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .mu-promet__grid,
  .mu-promet__card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
