:root {
    --mm-red: #c32026;
    --mm-dark-red: #92181c;
    --mm-dark: #2b2d30;
    --mm-yellow: #ffcc00;
    --mm-text: #ffffff;
    --mm-radius: 12px;
}

.elementor-image-carousel .swiper-slide-inner {
  position: relative;
  overflow: hidden;
}

.elementor-image-carousel .swiper-slide-image {
  display: block;
  width: 100%;
}

.elementor-image-carousel .elementor-image-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 12px;
  text-align: center;

  background: rgba(0,0,0,0.5);
  color: white;

  box-sizing: border-box;
}

.red-title {
    color:#C81925;
}

.main-navbar {
  line-height: 2rem;
  align-items: justify;
}

.main-navbar .elementor-icon-list-items {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.main-navbar .elementor-icon-list-item {
    flex-grow: 1;
    text-align: center;
}

/* La navbar */
.main-navbar,
.elementor-element.elementor-section:has(.main-navbar) {
  z-index: 90 !important;
}

.elementor-search__container {
  padding: 1% !important;
  border: solid 1px grey !important;
  border-radius: 20px !important;
}

.elementor-search__submit {
  border-radius: 20px !important;
}

/* Le panier */
.elementor-cart__main,
.elementor-menu-cart__container {
  z-index: 150 !important;
}

.cart-button {
  padding: 0px !important;
  height: 40px !important;
  width: 40px !important;
  display: flex !important;
}

.cart-button a {padding: 0px !important;}

/* ============================================
   STYLE PANIER MODAL - DESIGN COHÉRENT
   ============================================ */

/* 1. Fond et structure globale */
.elementor-cart__main {
    background-color: var(--mm-dark) !important; /* Anthracite identique au menu */
    color: var(--mm-text) !important;
    padding: 40px 30px !important;
    border-radius: var(--mm-radius) !important; /* */
    box-shadow: 0 30px 80px rgba(0,0,0,0.5) !important; /* */
    font-family: 'Roboto', sans-serif !important;
}

/* 2. Titre avec ton image Underline */
.elementor-cart__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--mm-text) !important;
    margin-bottom: 35px !important;
    position: relative !important;
    padding-bottom: 15px !important;
    min-height: 40px;
}

.elementor-cart__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px; /* Largeur du brush jaune */
    height: 15px; 
    background-image: url('../img/underline.png'); /* */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: left bottom;
}

/* 3. Zone produits et Scrollbar jaune */
.elementor-cart__products {
    padding-right: 10px !important;
}

.ce-scrollbar-y--auto::-webkit-scrollbar {
    width: 6px !important;
}

.ce-scrollbar-y--auto::-webkit-scrollbar-thumb {
    background: var(--mm-yellow) !important; /* Jaune DomPro */
    border-radius: 10px !important;
}

/* 4. Résumé et prix Total */
.elementor-cart__summary {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 20px 0 !important;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 0;
}

.elementor-cart__summary-label {
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px !important;
}

.elementor-cart__summary-value {
    color: var(--mm-text) !important;
    font-weight: 600 !important;
}

/* Mise en avant du TOTAL en Jaune */
strong.elementor-cart__summary-label,
strong.elementor-cart__summary-value {
    font-size: 19px !important;
    color: var(--mm-yellow) !important; /* */
    text-transform: uppercase !important;
    margin-top: 10px !important;
}

/* 5. Boutons du bas */
.elementor-cart__footer-buttons {
    padding-top: 3% !important;
    display: flex;
    flex-direction: column;
    gap: 15px !important;
}

/* Bouton Voir le panier (Contour Blanc) */
.elementor-button--view-cart {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: var(--mm-radius) !important; /* */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.elementor-button--view-cart:hover {
    background-color: #ffffff !important;
    color: var(--mm-dark) !important;
}

/* Bouton Commander (Rouge DomPro) */
.elementor-button--checkout {
    background-color: var(--mm-red) !important; /* */
    color: #ffffff !important;
    border-radius: var(--mm-radius) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(195, 32, 38, 0.4) !important;
    transition: transform 0.2s ease !important;
}

.elementor-button--checkout:hover {
    background-color: var(--mm-dark-red) !important;
    transform: translateY(-2px) !important;
}

/* Bouton de fermeture */
.elementor-cart__close-button {
    color: var(--mm-text) !important;
    font-size: 22px !important;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.elementor-cart__close-button:hover {
    opacity: 1;
    color: var(--mm-red) !important;
}

.cart-button a {
  padding: 3% !important;
}

.elementor-cart__footer-buttons > .elementor-align-justify {
  text-align: center !important;
}

/* ==================================================
   1. STYLE DU TEXTE DE CATÉGORIE (Partie du haut)
   ================================================== */

.category-description {
    font-family: 'Roboto', sans-serif;
    color: var(--mm-text-grey);
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Titres H2 : Style "DomPro" avec soulignage Brush */
.category-description h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--mm-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

/* L'image de soulignage jaune */
.category-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* Largeur du trait */
    height: 12px;
    background-image: url('../img/underline.png'); /* Ton image */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: left bottom;
    /* Fallback couleur si l'image charge pas */
    background-color: transparent; 
}

/* Titres H3 : En rouge pour la hiérarchie */
.category-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--mm-red);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Paragraphes */
.category-description p {
    margin-bottom: 15px;
    font-size: 15px;
    text-align: justify;
}

/* Liens dans le texte : Rouge + Souligné discret */
.category-description a {
    color: var(--mm-red);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(195, 32, 38, 0.2);
    transition: all 0.2s;
}

.category-description a:hover {
    border-bottom-color: var(--mm-red);
    background-color: rgba(195, 32, 38, 0.05);
}

/* ==================================================
   2. STYLE DE LA FAQ (Partie du bas)
   ================================================== */

.faq-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Roboto', sans-serif;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

/* Titre principal FAQ */
.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mm-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; 
    height: 12px;
    background-image: url('../img/underline.png');
    background-size: contain; 
    background-repeat: no-repeat;
}

.faq-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* --- ITEM FAQ --- */
.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--mm-radius);
    margin-bottom: 15px;
    overflow: hidden; /* INDISPENSABLE pour l'animation */
    transition: all 0.3s ease;
}

/* État actif (géré par ton JS) */
.faq-item.active {
    border-color: var(--mm-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Question (Bouton) */
.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fffbf0; /* Léger fond jaune au survol */
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--mm-dark);
    flex: 1;
}

.faq-item.active .faq-question h3 {
    color: var(--mm-red); /* Titre devient rouge quand ouvert */
}

/* Icône (+ / -) */
.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--mm-red);
    transition: transform 0.3s ease;
    line-height: 1;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Le + tourne en x */
}

/* --- RÉPONSE (ANIMATION) --- */
.faq-answer {
    max-height: 0; /* Fermé par défaut */
    overflow: hidden;
    opacity: 0;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, padding 0.3s ease;
    background: #fff;
}

/* Quand la classe active est ajoutée par le JS */
.faq-item.active .faq-answer {
    max-height: 1000px; /* Suffisamment grand pour tout afficher */
    opacity: 1;
    padding: 10px 25px 25px 25px; /* On ajoute le padding */
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    margin: 0;
    color: var(--mm-text-grey);
    font-size: 15px;
    line-height: 1.6;
}

/* .product-box-minia {
    width: 335px !important;
    height: 526px !important;
} */

.ce-product-meta__value {
    color:#9C9C9C !important;
}

.ce-product-price.ce-has-discount span {
    color: var(--mm-dark-red) !important; 
    font-weight: 700;
}

.elementor-accordion-item {
    border-left: 0px solid black !important;
    border-right: 0px solid black !important;
}

/* 1. Le Conteneur (La forme globale) */
.ce-product-quantity {
    display: inline-flex;
    align-items: stretch; /* Important pour que les boutons fassent toute la hauteur */
    gap: 0; /* Pas d'espace entre les éléments */
    border: 2px solid #a1a1a1; /* La bordure grise contour */
    border-radius: 50px; /* L'arrondi pilule */
    overflow: hidden; /* Coupe ce qui dépasse des arrondis */
    background: #ffffff;
    padding: 0; /* IMPORTANT : On enlève le padding pour que les boutons touchent les bords */
    height: 35px; /* Ajuste la hauteur selon tes besoins */
    width: auto;
}

/* 2. Les Boutons (- et +) */
/* On cible les boutons ou liens à l'intérieur */
.ce-product-quantity .ce-quantity-down,
.ce-product-quantity .ce-quantity-up,
.ce-product-quantity button {
    color: #ffffff;
    border: none;
    width: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: normal;
    transition: background 0.3s;
    margin: 0;
    height: 100%; 
}

/* 3. L'input (Le chiffre au milieu) */
.ce-product-quantity input[type="number"],
.ce-product-quantity .ce-quantity-field {
    background-color: #ffffff; /* Fond blanc */
    color: var(--mm-dark); /* Texte foncé */
    border-top: 0px solid black;
    border-bottom: 0px solid black;
    border-left: 1px solid #858c93;
    border-right: 1px solid #858c93;    text-align: center;
    width: 40px; /* Largeur de la zone blanche */
    font-weight: 500;
    font-size: 15px;
    padding: 0;
    padding-bottom: 10px;
    border-radius: 0px;
    margin: 0;
    height: 100%;
    -moz-appearance: textfield; /* Cache les petites flèches par défaut du navigateur */
}

/* Cache les flèches natives sur Chrome/Safari */
.ce-product-quantity input[type="number"]::-webkit-inner-spin-button, 
.ce-product-quantity input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.icon-contact span:hover {
    color: var(--mm-dark-red) !important;
}

.elementor-widget-google_maps iframe {
    border-radius: 20px !important;
}

.product-img img {
    object-fit: contain !important;
    padding: 5% !important;
}

/* --- STRUCTURE GLOBALE DES BLOCS --- */
.ce-filters__tab {
    background-color: #f9f9f9 !important;
    padding: 15px 20px !important;
    border-radius: 5px 5px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer;
    border: none !important;
    margin-bottom: 0 !important;
}

.elementor-field-subgroup {
    background-color: #fff !important;
    padding: 15px 20px 25px !important;
    margin-bottom: 20px !important;
    border-radius: 0 0 5px 5px !important;
}

/* --- TYPOGRAPHIE DES TITRES --- */
.ce-filters__title {
    font-family: 'Montserrat', sans-serif; /* Ou la font DomPro */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    color: #222 !important;
    letter-spacing: 0.5px;
}

/* --- ICONES DE FLÈCHES --- */
.ce-filters__tab-icon i {
    font-size: 12px !important;
    color: #222 !important;
    transition: transform 0.3s ease;
}

.ce-filters__tab[aria-expanded="true"] .ce-filters__tab-icon i {
    transform: rotate(90deg);
}

/* --- OPTIONS & CHECKBOXES --- */
.elementor-field-option {
    display: flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.elementor-field-option:hover .elementor-field-label {
    color: #E31E24; /* Rouge DomPro au survol */
}

.elementor-field-label {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* Masquer le checkbox natif pour utiliser l'icône CE */
.elementor-field-option input[type="checkbox"] {
    display: none !important;
}

.ce-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 3px !important;
    margin-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    color: transparent !important; /* Cacher le check si non coché */
}

/* Style quand coché */
.elementor-field-option.active .ce-checkbox,
.elementor-field-option:active .ce-checkbox {
    border-color: #FFD200 !important; /* Jaune DomPro */
    background-color: #fff !important;
    color: #222 !important; /* Couleur du check */
}

/* --- SLIDER DE PRIX (Style Maquette) --- */
.ce-filter-slider .ui-slider-horizontal {
    height: 4px !important;
    background: #eee !important;
    border: none !important;
    margin: 20px 10px !important;
}

.ce-filter-slider .ui-slider-range {
    background: #FFD200 !important; /* Barre Jaune */
}

.ce-filter-slider .ui-slider-handle {
    width: 16px !important;
    height: 16px !important;
    background: #FFD200 !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    top: -6px !important;
}

.ce-filter-slider__values {
    font-weight: 700 !important;
    color: #222 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}