/*
 * Custom CSS for the site
 * Organisé et commenté pour une meilleure lisibilité
 */

/* ============================
   VARIABLES GLOBALES
============================ */
:root {
  --primary-color: #de3857;
  --primary-rgba-25: rgba(222, 56, 87, 0.25);
  --primary-rgba-10: rgba(222, 56, 87, 0.1);
}

/* ============================
            CONTAINER
============================ */


/* ============================
   BOUTON "EN SAVOIR PLUS" / "RÉDUIRE"
============================ */
.btn-more {
  margin-top: 10px;
  display: block;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.btn-more:hover {
  opacity: 0.85;
}

/* ============================
	         BANNER
   ============================ */
#iqithtmlandbanners-block-2 img {
    min-width: 100% !important;
    width: 100% !important;
    height: auto;
    object-fit: cover; /* Pour garder les proportions */
}

/* Contour de l'input */
#search_widget input.form-search-control {
  border: 2px solid var(--primary-color) !important;
}

/* Contour au focus */
#search_widget input.form-search-control:focus {
  border-color: var(--primary-color) !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--primary-rgba-25);
}

/* Bouton loupe */
#search_widget .search-btn {
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

#search_widget .search-btn i {
  color: #ffffff !important;
}

/* Hover sur le bouton */
#search_widget .search-btn:hover {
  background-color: var(--primary-color) !important;
  opacity: 0.9;
}

/* ============================
	Panier 
   ============================ */

/* Bouton panier dans le header */
#cart-toogle,
.header-cart-btn {
  background-color: var(--primary-color) !important;
  border: 2px solid #000 !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Icône et texte */
#cart-toogle i,
#cart-toogle .title,
#cart-toogle .cart-products-count,
#cart-toogle .value,
.header-cart-btn i,
.header-cart-btn span {
  color: #ffffff !important;
}

/* Hover */
#cart-toogle:hover,
.header-cart-btn:hover {
  background-color: var(--primary-color) !important;
  opacity: 0.9;
}

/* Badge compteur sur l'icône */
.cart-products-count-btn {
  background-color: #000 !important;
  color: #ffffff !important;
}

/* Bouton Commander */
.cart-buttons .btn-primary {
  background-color: var(--primary-color) !important;
  border: 2px solid #000 !important;
  color: #ffffff !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cart-buttons .btn-primary:hover {
  background-color: #000 !important;
  border: 2px solid var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(222, 56, 87, 0.4);
}

/* Bouton Panier */
.cart-buttons .btn-secondary {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: #000 !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cart-buttons .btn-secondary:hover {
  background-color: var(--primary-color) !important;
  border-color: #000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(222, 56, 87, 0.3);
}

/* Effet au clic (active state) */
.cart-buttons .btn-primary:active,
.cart-buttons .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Poubelle supprimer */
.remove-from-cart {
  background-color: var(--primary-color) !important;
  border: 2px solid #000 !important;
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.3s ease;
  display: inline-block;
}

.remove-from-cart i {
  color: #ffffff !important;
}

.remove-from-cart:hover {
  background-color: #000 !important;
  transform: scale(1.1);
}

.remove-from-cart:hover i {
  color: #ffffff !important;
}

/* Traits de séparation */
.cart-title hr,
.blockcart-content hr {
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
}

.cart-products li {
  border-bottom: 1px solid var(--primary-color) !important;
  padding-bottom: 15px !important;
  margin-bottom: 15px !important;
}

/* Input quantité */
.block-cart-product-quantity,
.bootstrap-touchspin input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 6px;
}

.block-cart-product-quantity:focus {
  border-color: var(--primary-color) !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--primary-rgba-25);
}

/* Boutons augmenter/diminuer quantité */
.btn-touchspin {
  background-color: var(--primary-color) !important;
  border: 2px solid #000 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-touchspin:hover {
  background-color: #000 !important;
}

.btn-touchspin:hover i {
  color: #ffffff !important;
}

.btn-touchspin i {
  color: #ffffff !important;
}

/* Container des boutons +/- */
.input-group-btn-vertical {
  border-left: 2px solid var(--primary-color) !important;
}

/* Lignes de séparation dans les totaux */
.cart-subtotals,
.cart-totals {
  border-top: 2px solid var(--primary-color) !important;
  padding-top: 15px !important;
  margin-top: 15px !important;
}

/* Alerte livraison gratuite */
.alert-info.iqitfreedeliverycount {
  border: 2px solid var(--primary-color) !important;
  background-color: var(--primary-rgba-10) !important;
  border-radius: 8px;
}

.ifdc-remaining-price {
  color: var(--primary-color) !important;
  font-weight: bold;
}


/* ============================
   STICKY NAVBAR
   ============================ */


/* Menu mobile */
#_desktop_iqitmegamenu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
}


/* ============================
   BLOCK SOCIAL LINKS
   ============================ */
.block-social-links .block-title span {
    font-size: 0; /* Masque le texte par défaut */
}

.block-social-links .block-title span::before {
    content: "Suivez-nous"; /* Texte affiché */
    font-size: 1rem; /* Taille du texte affiché */
}

/* ============================
   ELEMENTOR IMAGES
   ============================ */
/* Image spécifique - coins arrondis 10px */
.elementor-element-7kvmtvc .elementor-image img,
.elementor-element-qrj9fyv .elementor-image img {
    border-radius: 10px;
    overflow: hidden; /* Assure que les coins arrondis fonctionnent */
}

/* ============================
   ELEMENTOR BUTTONS
   ============================ */
/* Boutons Elementor avec coins arrondis */
.elementor-element-665l4bo .elementor-button,
.elementor-element-sctk5qc .elementor-button {
    border-radius: 20px;
}

/* ============================
   BOUTONS AJOUTER AU PANIER
   ============================ */
button.add-to-cart,
.btn-product-list.add-to-cart {
    border-radius: 20px !important; /* Coins arrondis pour les boutons panier */
}

/* ============================
   PAGE CATEGORIE
   ============================ */
/* Masquer le bloc de changement de vue des produits */
.col.view-switcher {
    display: none !important;
}

#product-list-header .page-title {
    font-size: 30px;
    font-weight: 700;
    display: block;
}

.category-description-top .rte-content > h1:first-child {
    font-size: 25px !important;
}


/* ============================
   PAGE PRODUIT
   ============================ */
/* Masquer les tags produits en front mais les laisser pour Google */
.iqitproducttags {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Contour du select variante */
.product-variants .custom-select2 select,
.product-variants .form-control-select {
  border-color: var(--primary-color);
}

/* Focus */
.product-variants .custom-select2 select:focus,
.product-variants .form-control-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--primary-rgba-25);
}

/* Bouton loupe agrandir l'image */
.expander {
  background-color: var(--primary-color) !important;
  border: 2px solid #000 !important;
  border-radius: 8px;
}

.expander span {
  background-color: var(--primary-color) !important;
}

.expander i.fa {
  color: #ffffff !important;
}

#product-modal .modal-content {
  border: 3px solid var(--primary-color) !important;
  border-radius: 8px;
}

/* Tabs produit actif */
#product-infos-tabs .nav-link.active,
#product-infos-tabs .nav-link.show {
  border-bottom: 3px solid var(--primary-color) !important;
  background-color: transparent !important;
  color: #000 !important;
}

/* Enlever les autres bordures */
#product-infos-tabs .nav-link {
  border: none !important;
  border-bottom: 3px solid transparent !important;
}

/* Hover tab */
#product-infos-tabs .nav-link:hover {
  border-bottom: 3px solid var(--primary-color) !important;
}

/* Bouton "En savoir plus" dans le bloc tabs.product-tabs */
.tabs.product-tabs button {
    color: #ffffff;
    background-color: var(--primary-color) !important;
    border-radius: 20px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.tabs.product-tabs button:hover {
    background-color: var(--primary-color) !important;
    opacity: 0.9;
}

#iqit-wishlist-product-btn {
  border-radius: 50% !important;
  width: 50px;
  height: 50px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color) !important;
  transition: all 0.3s ease;
}

#iqit-wishlist-product-btn:hover,
.btn-iqitwishlist-add:hover {
  background-color: var(--primary-color) !important;
  border-color: #000 !important;
  transform: scale(1.1);
}

#iqit-wishlist-product-btn:hover i,
.btn-iqitwishlist-add:hover i {
  color: #ffffff !important;
}

/*compte à rebours*/
/* === COMPTE À REBOURS EXPÉDITION === */
.delivery-countdown {
    background: #F28705;
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    margin: 18px 0 10px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.delivery-countdown .dc-line1 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.delivery-countdown .dc-label #dc-shipping-day {
    font-weight: 800;
}

.delivery-countdown .dc-line2 {
    font-size: 15px;
    margin-bottom: 6px;
}

.delivery-countdown .dc-timer {
    font-size: 22px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .delivery-countdown {
        text-align: left;
    }
    .delivery-countdown .dc-line1 {
        font-size: 17px;
    }
    .delivery-countdown .dc-line2 {
        font-size: 16px;
    }
    .delivery-countdown .dc-timer {
        font-size: 24px;
    }
}
/* === FIN COMPTE À REBOURS EXPÉDITION === */


/* ============================
   PAGE CONTACT
   ============================ */
/* Bordure pour l'input email */
.elementor-contactform-wrapper input[type="email"] {
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
}

/* Bordure pour le textarea */
.elementor-contactform-wrapper textarea.form-control {
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
}

/* Bordure pour le champ fichier */
.elementor-contactform-wrapper .bootstrap-filestyle input.form-control {
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
}

/* Focus */
.elementor-contactform-wrapper input[type="email"]:focus,
.elementor-contactform-wrapper textarea.form-control:focus,
.elementor-contactform-wrapper .bootstrap-filestyle input.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 3px var(--primary-color);
}

.elementor-contactform-wrapper .btn-elementor-send {
    border-radius: 20px !important; /* coins arrondis */
}


/* ============================
 MOBILE 
   ============================ */ 
.mobile-menu__close {
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-panel__header.mobile-menu__header-wrapper {
    position: relative;
    z-index: 10000;
}

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

/* Fond rouge charcutier */
#footer {
  background: #DE3857;
  color: #ffffff;
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
  pointer-events: none;
}

@keyframes moveBackground {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

#footer .container {
  position: relative;
  z-index: 1;
}

/* === Layout des cartes === */
#footer .container > .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#footer .block {
  background: rgba(255, 255, 255, 0.12);
  padding: 30px 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#footer .block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4), rgba(255,255,255,0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
}

#footer .block:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#footer .block:hover::before {
  opacity: 1;
}

#footer .block-title {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#footer .block-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), transparent);
  border-radius: 2px;
}

#footer .block-title::before {
  content: '●';
  color: rgba(255,255,255,0.8);
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  padding: 12px 0;
  transition: all 0.3s ease;
}

#footer ul li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#footer ul li:hover {
  padding-left: 10px;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

#footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

#footer a::before {
  content: '▸';
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#footer a:hover {
  color: #ffffff;
}

#footer a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

#footer hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 20px 0;
  position: relative;
}

#footer hr::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  background: #DE3857;
  padding: 0 10px;
  font-size: 10px;
}

#footer .contact-rich {
  background: rgba(255, 255, 255, 0.12);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

#footer .contact-rich strong {
  color: #ffffff;
  font-size: 17px;
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#footer .contact-rich .icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#footer .contact-rich .part {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  max-width: 100%;
  overflow: hidden;
}

#footer .contact-rich .data {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#footer .contact-rich .part:hover .icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.35);
}

#footer .contact-rich .data a {
  color: #ffffff;
  font-weight: 500;
}

/* Réseaux sociaux premium */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-links a {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  border-color: #ffffff;
  transform: translateY(-8px) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.social-links a:hover i {
  color: #000;
  position: relative;
  z-index: 1;
}

.social-links a i {
  transition: color 0.4s ease;
  font-size: 20px;
}

/* Copyright — masqué */
#footer-copyrights {
  display: none !important;
}

/* Supprimer le gap blanc/beige autour du footer */
#footer-container-first {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#wrapper {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#footer {
  margin-top: 0 !important;
}
/* Supprimer les lignes/bordures du thème autour du footer */
#footer-container-main {
  border-top: none !important;
  padding-top: 2rem !important;
}

/* === MOBILE FIX === */
@media (max-width: 767px) {

  /* Écart entre fiches produits — carousel (2 colonnes) et grille catégorie */
  .mobile-swiper-cls-fix-2 .swiper-slide .product-carousel {
    padding: 0 3px;
  }

  .products.row > .col,
  .products.row > [class*="col-"] {
    padding: 0 3px !important;
  }

  /* Écart visible entre fiches produits sur page catégorie */
  #js-product-list .product-miniature,
  .products-grid .product-miniature {
    margin: 0 3px 6px;
  }

  #footer .container > .row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }

  #footer .block {
    padding: 20px 15px;
  }

}

/* Revolution Slider — barre de progression en rouge */
rs-progress-bar {
  background: var(--primary-color) !important;
}

body #dgcc-reopen.dgcc-reopen {
  position: fixed !important;
  right: 15px !important;
  left: auto !important;
  bottom: 120px !important;
  z-index: 999999 !important;
}
	
	#product-list-header .page-title {
    font-size: 20px;
    font-weight: 700;
    display: block;
}
	.category-description-top .rte-content > h1:first-child {
    font-size: 20px !important;
}
	
	
}