/* ==========================================================================
   FICHIER CUSTOM.CSS - V135 (MASTER + OPTIMISATION GOOGLE FONTS)
   ========================================================================== */

/* 1. BASE & POLICES */
/* NOTE : L'import Google Fonts a été déplacé dans head.tpl pour la vitesse */

html, body { overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, p, .block-title { font-family: 'Poppins', Helvetica, Arial, sans-serif !important; }

/* 2. HEADER & MENU */
header.page-header, header#header { position: relative; z-index: 1000; }
.ets_mm_megamenu, .ets_mn_menu_container { z-index: 1001; }

/* 3. PANIER */
#blockcart-modal { z-index: 10500 !important; position: fixed !important; }
.modal-backdrop { z-index: 10400 !important; }

/* 4. IMAGE STICKY */
@media (min-width: 992px) {
    .product-detail-primary, .row.product-container { display: flex !important; flex-wrap: wrap !important; align-items: flex-start !important; }
    .product-detail-primary .product-images, .col-md-6.product-images {
        position: -webkit-sticky !important; position: sticky !important; top: 120px !important;            
        z-index: 40 !important; align-self: flex-start !important; display: block !important;
        max-height: calc(100vh - 150px) !important; overflow-y: auto !important; scrollbar-width: none !important; -ms-overflow-style: none !important; 
    }
    .product-detail-primary .product-images::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
    .product-cover, .product-images img, .js-qv-product-cover { cursor: pointer !important; position: relative !important; z-index: 10 !important; }
}

/* 5. ATTRIBUTS */
.product-variants > .product-variants-item { display: block !important; text-align: left !important; margin-bottom: 20px !important; margin-left: 0 !important; }
.product-variants .control-label { display: block !important; font-size: 0.8rem !important; font-weight: 700 !important; text-transform: uppercase !important; margin-bottom: 8px !important; text-align: left !important; color: #333 !important; }
.product-variants ul { text-align: left !important; justify-content: flex-start !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.product-variants li label, .product-variants li .radio-label, .product-actions .product-variants-item ul li span {
    display: inline-block !important; border: 1px solid #ccc !important; background: #fff !important; color: #333 !important; 
    padding: 6px 12px !important; min-width: 40px !important; font-size: 0.85rem !important; text-align: center !important; font-weight: 500 !important; 
    cursor: pointer !important; border-radius: 4px !important; margin: 0 !important; box-shadow: none !important; transition: all 0.2s ease;
}
.product-variants li input:checked + span, .product-variants li input:checked + label, .product-variants li .selected, .product-variants li .radio-label.checked {
    background: #000000 !important; color: #ffffff !important; border-color: #000000 !important; font-weight: 700 !important;
}

/* 6. FIX IMAGE CATÉGORIE VS FAQ */
body#category #js-product-list-header { height: auto !important; min-height: 250px !important; overflow: visible !important; display: block !important; position: relative !important; z-index: 0 !important; }
body#category #js-product-list-header img { height: 250px !important; width: 100% !important; object-fit: cover !important; position: relative; z-index: 0; }
.faqpartout, #faqpartout { position: relative !important; z-index: 50 !important; background: #fff !important; padding: 15px !important; margin-top: 0 !important; display: block !important; width: 100% !important; box-shadow: 0 -5px 15px rgba(0,0,0,0.05); }

/* 7. ACCORDÉON */
.product-accordion-container { border-top: 1px solid #e5e5e5 !important; margin-top: 3rem !important; }
details { border-bottom: 1px solid #e5e5e5 !important; }
summary.accordion-header { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 22px 0 !important; cursor: pointer !important; list-style: none !important; font-weight: 700 !important; text-transform: uppercase !important; font-size: 1rem !important; color: #000 !important; }
summary.accordion-header::-webkit-details-marker { display: none !important; }
summary.accordion-header::after { content: '+' !important; font-size: 1.5rem !important; font-weight: 400 !important; color: #000 !important; }
details[open] summary.accordion-header::after { content: '-' !important; }
.accordion-content { padding-bottom: 30px !important; font-size: 1rem !important; color: #000 !important; line-height: 1.6 !important; }

/* 8. FIL D'ARIANE */
nav.breadcrumb, .breadcrumb { position: relative !important; z-index: 20 !important; font-size: 0.6rem !important; line-height: 1 !important; padding: 5px 0 !important; margin-bottom: 5px !important; background: transparent !important; }
.breadcrumb ol, .breadcrumb li, .breadcrumb a, .breadcrumb span { font-size: 0.6rem !important; font-weight: 400 !important; color: #888 !important; text-transform: none !important; }

/* 9. BOUTON PANIER & QUANTITÉ (VERSION DESKTOP) */
.product-quantity #quantity_wanted { height: 55px !important; width: 90px !important; font-size: 1.3rem !important; text-align: center !important; font-weight: 600 !important; border: 1px solid #ccc !important; border-radius: 4px !important; }
.product-add-to-cart .add-to-cart { padding: 15px 40px !important; min-width: 450px !important; max-width: 100% !important; font-size: 1.3rem !important; font-weight: 900 !important; text-transform: uppercase !important; background-color: #000 !important; color: #fff !important; border-radius: 4px !important; border: none !important; display: inline-block !important; text-align: center !important; margin-top: 10px !important; }
.product-add-to-cart .add-to-cart:hover { transform: scale(1.02); opacity: 0.9; }

/* 10. BOITE THOMANN */
.thomann-box { border: 1px solid #e5e5e5; border-radius: 6px; margin-top: 25px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.02); overflow: hidden; width: 100% !important; }
.thomann-header { background: #f9f9f9; padding: 8px 15px; font-size: 0.75rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #555; border-bottom: 1px solid #eee; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.thomann-content { padding: 12px 15px; font-size: 0.85rem !important; color: #333; display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; }
.thomann-content .social-sharing { display: flex !important; align-items: center !important; gap: 10px !important; }
.thomann-content .social-sharing > span { display: inline-block !important; font-weight: 700 !important; text-transform: uppercase !important; font-size: 0.75rem !important; margin-right: 5px !important; }
.thomann-content .social-sharing ul { display: flex !important; margin: 0 !important; padding: 0 !important; gap: 8px !important; }
.thomann-content .social-sharing li { margin: 0 !important; list-style: none !important; }
.thomann-content .social-sharing a { display: block !important; }
.thomann-content img { max-height: 20px !important; width: auto; vertical-align: middle; margin-right: 8px; margin-left: 0 !important; }

/* 11. AUTRES */
.custom-pack-slider { display: flex; overflow-x: auto; gap: 40px; padding-bottom: 40px; }
.custom-pack-item { flex: 0 0 400px; border: 1px solid #eee; padding: 20px; border-radius: 12px; background: #fff; text-align: center; }
.custom-pack-img { width: 100%; height: 350px; object-fit: contain; margin-bottom: 25px; display: block; }
.custom-pack-btn { display: block; border: 3px solid #000; color: #000; font-weight: 800; text-transform: uppercase; padding: 15px 0; margin-top: 15px; }
.custom-pack-btn:hover { background: #000; color: #fff; }
#carousel .caption h2 { font-size: 3.5rem !important; font-weight: 900 !important; color: #fff !important; text-transform: uppercase !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important; }
.mobile-fix-band { position: relative !important; margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important; width: 100vw !important; }
@media (max-width: 768px) { .mobile-fix-band { padding-top: 40px !important; padding-bottom: 40px !important; } }

/* 12. CACHER ETOILES/AVIS */
.product-detail-primary .product-comments-additional-info, .product-detail-primary .comments-note, .product-detail-primary .hook-reviews { display: none !important; }

/* 13. FIX ULTIME CAROUSEL PRODUITS */
.carousel-product-miniature .carousel-product-thumbnail img, .owl-item .carousel-product-miniature img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block !important; opacity: 1 !important; }
.owl-item { width: auto !important; }
.products-carousel-content .owl-carousel:not(.owl-loaded) { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; justify-content: center !important; }
.products-carousel-content .owl-carousel:not(.owl-loaded) .carousel-product-miniature { width: 200px !important; margin-bottom: 20px !important; }
.category-products .owl-stage-outer, .featured-products .owl-stage-outer, .product-accessories .owl-stage-outer, .crossselling-products .owl-stage-outer { height: auto !important; overflow: visible !important; }

/* 14. YOUTUBE */
.youtube-facade { background-color: #000; background-position: center; background-size: cover; position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; display: block; width: 100%; margin-bottom: 20px; }
.youtube-facade.taille-900 { max-width: 900px; height: 500px; margin-left: 0 !important; margin-right: auto; }
.youtube-facade.taille-700 { max-width: 700px; height: 400px; margin-left: auto; margin-right: auto; }
.youtube-facade .play-button { width: 68px; height: 48px; background-color: rgba(33, 33, 33, 0.8); border-radius: 12px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: all 0.2s; z-index: 1; }
.youtube-facade:hover .play-button { background-color: #f00; }
.youtube-facade .play-button::before { content: ""; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 920px) { .youtube-facade.taille-900, .youtube-facade.taille-700 { height: 0 !important; padding-bottom: 56.25% !important; } }

/* 15. CORRECTIF SPÉCIFIQUE MOBILE */
@media (max-width: 768px) {
    .product-add-to-cart .add-to-cart { min-width: 0 !important; width: 100% !important; padding: 12px 20px !important; font-size: 1.1rem !important; }
}

/* ==========================================================================
   16. AMÉLIORATION IMAGE CARROUSEL (FILTRES CSS)
   ========================================================================== */
#carousel .carousel-item img {
    /* Augmente la luminosité de 5% et la saturation (couleurs) de 15% */
    filter: brightness(1.05) saturate(1.15);
    transition: all 0.5s ease; /* Transition douce si on change */
}

/* Petit bonus : un effet au survol de la souris */
#carousel:hover .carousel-item img {
    /* On augmente encore un peu l'effet au survol */
    filter: brightness(1.08) saturate(1.2);
    transform: scale(1.02); /* Un très léger zoom de 2% */
}
/* ==========================================================
   STYLE BANDEAU ASSISTANT (CENTRAGE FORCÉ)
   ========================================================== */
.black-assistant-banner {
    background-color: #000000;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important; /* Force le centrage global */
}

/* Force le conteneur interne à centrer son contenu */
.black-assistant-banner .container {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Force le titre à être centré */
.black-assistant-banner h2 {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center !important;
    width: 100%;
}

/* Force le paragraphe à être centré */
.black-assistant-banner p {
    color: #cccccc !important;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
    text-align: center !important;
    margin-left: auto !important;  /* Centre le bloc lui-même */
    margin-right: auto !important; /* Centre le bloc lui-même */
}

.btn-assistant {
    display: inline-block;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin-top: 10px;
}

.btn-assistant:hover {
    background-color: #ffffff;
    color: #000000 !important;
}
/* ==========================================================================
   17. MASQUER BARRE DE TRI ET COMPTEUR (HAUT DE PAGE CATÉGORIE)
   ========================================================================== */
#js-product-list-top {
    display: none !important;
}

/* ==========================================================================
   18. MASQUER LE MESSAGE "AUCUN PRODUIT" (CORRIGÉ)
   ========================================================================== */
/* Cible le message spécifiquement sur les pages catégories et recherche */
body#category .alert.alert-warning,
body#search .alert.alert-warning,
#main .alert.alert-warning, 
#products .alert.alert-warning {
    display: none !important;
}

/* ==========================================================================
   19. MASQUER LE COMPTEUR "AFFICHAGE X-Y DE Z ARTICLES" (BAS DE PAGE)
   ========================================================================== */
.pagination-summary, 
.showing {
    display: none !important;
}

/* ==========================================================================
   20. DESIGN TITRE BLOG (CORRIGÉ SELON CAPTURE)
   ========================================================================== */
section.prestablogswip h2.title,
.prestablogswip .title {
    text-align: center !important;       /* Centre le texte */
    font-size: 1.8rem !important;        /* Taille augmentée */
    font-family: 'Poppins', sans-serif !important; 
    font-weight: 800 !important;         /* Très gras */
    text-transform: uppercase !important; 
    letter-spacing: 1px !important;      
    margin-bottom: 40px !important;      
    margin-top: 40px !important;         
    color: #000000 !important;           
    
    /* Sécurités pour forcer le centrage */
    float: none !important;
    display: block !important;
    width: 100% !important;
    border: none !important;             /* Enlève les bordures par défaut s'il y en a */
}

/* Le petit trait de soulignement décoratif */
section.prestablogswip h2.title::after,
.prestablogswip .title::after {
    content: "";
    display: block;
    width: 60px;               
    height: 3px;               
    background-color: #000;    
    margin: 15px auto 0 auto;  /* Centré sous le texte */
}