/**
Theme Name: Maison Percy
Author: Brainstorm Force
Author URI: http://wpastra.com/about/

Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. 

Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!

Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maison-percy
Template: astra
*/

/* ===== COLLECTION TEXT CONTAINER ===== */

/* Style pour les boutons de filtre actifs */
.e-filter-item.collection-active {
    background-color: #171E1D !important;
    color: white !important;
}

/* Transition pour le texte de collection (peut être surchargé par Elementor) */
.collection-text-transition {
    transition: opacity 0.3s ease-in-out;
}

/* ===== GALLERY NAVIGATION ARROWS ===== */

/* Container de la galerie avec position relative pour les flèches absolues */
.woocommerce-product-gallery {
    position: relative !important;
}

/* Positionnement des flèches sur le conteneur de l'image principale */
.woocommerce-product-gallery .flex-viewport {
    position: relative !important;
}

/* Styles pour les flèches de navigation */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Flèche précédente - côté gauche */
.gallery-nav-prev {
    left: 10px;
}

/* Flèche suivante - côté droit */
.gallery-nav-next {
    right: 10px;
}

/* Effet hover sur les flèches */
.gallery-nav-arrow:hover {
    background: #F7CE69 !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: black !important;
}

/* Effet actif/focus */
.gallery-nav-arrow:focus {
    outline: none;
    background: #F7CE69 !important;
    transform: translateY(-50%) scale(0.95);
    color: black !important;
}

/* Icônes SVG dans les flèches */
.gallery-nav-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Responsive - tablettes */
@media (max-width: 768px) {
    .gallery-nav-arrow {
        width: 40px;
        height: 40px;
        left: 5px;
    }
    .gallery-nav-next {
        right: 5px;
    }
    .gallery-nav-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive - mobiles */
@media (max-width: 480px) {
    .gallery-nav-arrow {
        width: 35px;
        height: 35px;
        background: white;
    }
    .gallery-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation d'apparition des flèches */
@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.gallery-nav-arrow {
    animation: fadeInArrow 0.3s ease-out;
}

/* Masquer les flèches sur les très petits écrans si nécessaire */

/* ===== CARROUSEL DE MINIATURES ===== */

/* Wrapper pour le carrousel de miniatures */
.thumbnails-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
}

/* Container de scroll */
.thumbnails-scroll-container {
    position: relative;
    overflow: hidden;
    width: calc(100% - 80px); /* Laisser de la place pour les flèches */
    display: flex;
    justify-content: center;
}

/* Liste de miniatures dans le carrousel */
.flex-control-thumbs.carousel-initialized {
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.flex-control-thumbs.carousel-initialized li {
    flex-shrink: 0 !important;
    width: auto !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    margin: 0 !important;
    list-style: none !important;
}

.flex-control-thumbs.carousel-initialized li img {
    display: block !important;
}

/* Flèches de navigation pour les miniatures */
.thumbnails-carousel-wrapper .thumb-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: black !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Flèche précédente - côté gauche */
.thumbnails-carousel-wrapper .thumb-nav-prev {
    left: 0 !important;
}

/* Flèche suivante - côté droit */
.thumbnails-carousel-wrapper .thumb-nav-next {
    right: 0 !important;
}

/* Effet hover sur les flèches des miniatures */
.thumbnails-carousel-wrapper .thumb-nav-arrow:hover {
    background: #F7CE69 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    color: black !important;
}

/* Effet actif/focus pour les flèches des miniatures */
.thumbnails-carousel-wrapper .thumb-nav-arrow:focus {
    outline: none !important;
    background: #F7CE69 !important;
    transform: translateY(-50%) scale(0.95) !important;
    color: black !important;
}

/* Icônes SVG dans les flèches des miniatures */
.thumbnails-carousel-wrapper .thumb-nav-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
}

/* Responsive pour les miniatures */
@media (max-width: 768px) {
    .thumbnails-carousel-wrapper .thumb-nav-arrow {
        width: 35px !important;
        height: 35px !important;
    }
    
    .thumbnails-carousel-wrapper .thumb-nav-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .thumbnails-scroll-container {
        width: calc(100% - 70px) !important;
    }
}

@media (max-width: 480px) {
    .thumbnails-carousel-wrapper .thumb-nav-arrow {
        width: 30px !important;
        height: 30px !important;
        background: white !important;
    }
    
    .thumbnails-carousel-wrapper .thumb-nav-arrow svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .thumbnails-scroll-container {
        width: calc(100% - 60px) !important;
    }
}

/* ===== NAVBAR TEXT COLOR FOR WHITE SECTIONS ===== */

/* Change la couleur du texte de la navbar en noir sur les pages avec fond blanc */
/* Règles ultra-spécifiques pour surcharger widget-mega-menu.min.css */
/* EXCEPTION: Ne pas appliquer aux éléments avec e-n-menu-content e-active */

body.has-white-section .e-n-menu-title-text:not(.e-n-menu-content.e-active *),
body.has-white-section .e-n-menu-title:not(.e-n-menu-content.e-active *),
body.has-white-section span.e-n-menu-title-text:not(.e-n-menu-content.e-active *),
body.has-white-section a .e-n-menu-title-text:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-menu-anchor:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-nav-menu--main a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-nav-menu a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-widget-n-menu .e-n-menu-title:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-widget-n-menu span.e-n-menu-title-text:not(.e-n-menu-content.e-active *),
body.has-white-section nav a:not(.e-n-menu-content.e-active *),
body.has-white-section header a:not(.e-n-menu-content.e-active *),
body.has-white-section .site-header a:not(.e-n-menu-content.e-active *),
body.has-white-section .ast-header-navigation a:not(.e-n-menu-content.e-active *),
body.has-white-section .main-navigation a:not(.e-n-menu-content.e-active *),
body.has-white-section .ast-navigation-menu a:not(.e-n-menu-content.e-active *),
body.has-white-section .menu-item a:not(.e-n-menu-content.e-active *),
body.has-white-section .e-n-menu .e-n-menu-item a:not(.e-n-menu-content.e-active *),
body.has-white-section .e-n-menu .e-n-menu-item .e-n-menu-title-text:not(.e-n-menu-content.e-active *) {
    color: #000000 !important;
}

/* Règles encore plus spécifiques pour Elementor Nav Menu et Mega Menu */
/* EXCEPTION: Ne pas appliquer aux éléments avec e-n-menu-content e-active */
body.has-white-section header .elementor-nav-menu--main a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-element .elementor-nav-menu--main a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-widget-nav-menu .elementor-nav-menu a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-widget-n-menu .e-n-menu-wrapper a:not(.e-n-menu-content.e-active *),
body.has-white-section .elementor-widget-n-menu .e-n-menu-wrapper .e-n-menu-title-text:not(.e-n-menu-content.e-active *) {
    color: #000000 !important;
}

/* Change aussi la couleur des icônes de menu si nécessaire */
body.has-white-section .elementor-menu-toggle,
body.has-white-section .eicon-menu-bar,
body.has-white-section .ast-mobile-menu-buttons,
body.has-white-section .ast-button-wrap,
body.has-white-section .menu-toggle {
    color: #000000 !important;
}

/* Change la couleur du stroke des icônes Elementor (utilisateur, panier, etc.) */
/* Cibler currentColor et le remplacer par #000000 */
body.has-white-section .elementor-icon,
body.has-white-section .elementor-icon svg,
body.has-white-section .elementor-widget-icon .elementor-icon,
body.has-white-section .elementor-widget-icon .elementor-icon svg,
body.has-white-section .uael-mc__btn-icon,
body.has-white-section .uael-mc__btn-icon svg,
body.has-white-section .uael-mc__btn,
body.has-white-section .uael-mc__btn svg,
body.has-white-section .uael-mc-dropdown__header-icon,
body.has-white-section .uael-mc-dropdown__header-icon svg,
body.has-white-section .uael-mc-offcanvas__icon-wrap,
body.has-white-section .uael-mc-offcanvas__icon-wrap svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

/* Retirer le filter invert du logo sur les pages avec section blanche */
body.has-white-section #logo-header {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Badge du panier avec texte blanc sur les pages avec section blanche */
body.has-white-section .uael-mc__btn-badge {
    color: #ffffff !important;
}

/* Surcharger le hover pour garder le texte blanc sur les pages avec section blanche */
body.has-white-section #hover-navbar:hover .uael-mc__btn-badge {
    color: #ffffff !important;
}

/* Préserver la couleur jaune pour les éléments de menu actifs */
/* Règles spécifiques pour Elementor Nav Menu avec .e-current */
body.has-white-section .elementor-widget-n-menu .e-n-menu-title.e-current,
body.has-white-section .elementor-widget-n-menu .e-n-menu-title.e-current a,
body.has-white-section .elementor-widget-n-menu .e-n-menu-title.e-current .e-n-menu-title-text,
body.has-white-section .e-n-menu-title.e-current,
body.has-white-section .e-n-menu-title.e-current a,
body.has-white-section .e-n-menu-title.e-current .e-n-menu-title-text {
    color: #F7CE69 !important; /* Couleur jaune pour les éléments actifs */
}

/* dans Apparence > Personnaliser > CSS additionnel (ou stylesheet) */
#serenity, #le-clou-de-percy, #les-twin{
  scroll-margin-top: 52.5px !important;
}