/* --- TES STYLES EXISTANTS NETTOYÉS --- */
#header .logo { max-width: 200px; max-height: 200px; }
.page-home .banner-wr .product-banner .banner-text-bl { text-align: right; }
.promoblocks-img { background-size: cover !important; }
.anthemebanner { max-width: 100% !important; }
.grecaptcha-badge { visibility: hidden; }

#contact .input-group .input-group-btn > .btn {
    font-size: 9px;
    background: #000;
    width: auto !important;
    height: 50px;
    line-height: 1 !important;
    display: flex !important;
    color: #fff !important;
    align-items: center !important;
    padding: 0 8px;
}



/* ============================================================
   STRUCTURE FULL-WIDTH & SLIDER RESPONSIVE - YIO ÉCHOPPE
   ============================================================ */

/* 1. MISE EN PAGE FULL-WIDTH (DESKTOP & MOBILE) */
#index .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. GRILLE DE PRODUITS DESKTOP */
@media (min-width: 992px) {
    #index .products.row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    #index .product-miniature {
        flex: 0 0 calc(25% - 20px) !important;
        max-width: calc(25% - 20px) !important;
        margin: 10px !important;
        margin-bottom: 30px !important;
    }
}

/* 3. COMPORTEMENT DU SLIDER SUR MOBILE (MAX 767px) */
@media (max-width: 767px) {
    
    /* On verrouille la hauteur du slider */
    .anthemeblocks_homeslider-block, 
    .anthemeblocks_homeslider-block .owl-stage-outer,
    .anthemeblocks_homeslider-block .owl-item,
    .anthemeblocks_homeslider-block .item {
        height: 500px !important;
        min-height: 500px !important;
    }

    .anthemeblocks_homeslider-block img {
        height: 500px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* ON "ANNULE" LES BOITES QUI BLOQUENT LE FLUX */
    .anthemeblocks-caption, 
    .anthemeblocks-caption .container {
        display: contents !important;
    }

    /* LE CHEF D'ORCHESTRE : ON CENTRE TOUT ICI */
    .anthemeblocks-homeslider-desc {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Centrage vertical */
        align-items: center !important;    /* Centrage horizontal */
        
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        
        z-index: 10 !important;
        background: transparent !important;
        padding: 20px !important;
    }

    /* ON NETTOIE LA DIV INTERMÉDIAIRE (Celle qui posait problème) */
    .anthemeblocks-homeslider-desc > div {
        display: contents !important; /* On l'empêche de prendre de la place pour que le H1 et P soient gérés par le parent */
        padding: 0 !important;
    }

    /* TYPOGRAPHIES */
    .anthemeblocks-homeslider-desc h1 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    }

    .anthemeblocks-homeslider-desc p {
        display: block !important;
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
        text-align: center !important;
        color: white !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
    }

    /* LE BOUTON REVIENT DANS LE FLUX */
    .anthemeblocks-homeslider-desc .btn {
        display: inline-block !important;
        margin: 0 auto !important;
      }
 }
/* --- FIN AJUSTEMENTS MOBILE POUR LE HERO SLIDER --- */

/* --- CORRECTION PUSH STUDIO/ATELIER (BYPASS 4 BLOCS) --- */

/* On force le container parent à ignorer la largeur limitée du thème */
#index .anthemeblocks-staticblockcategory-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* On transforme la rangée en grille à 2 colonnes forcées */
#index .anthemeblocks-staticblockcategory {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* On force chaque item à faire 50% de large, peu importe le réglage du module */
#index .staticblockcategory-item-big {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* On s'assure que l'image remplit tout l'espace */
#index .satitblock-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Responsive : On repasse à 100% sur mobile */
@media (max-width: 767px) {
    #index .staticblockcategory-item-big {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
  FIN  PUSH STUDIO & ATELIER - 50/50 FULL WIDTH
   ============================================================ */

/* ============================================================
Bloc spécifique atelier - YIO ÉCHOPPE
   ============================================================ */

/* CONTAINER PRINCIPAL */
.split-banner-container {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Sort du container comme tes pushs */
    background-color: #2a2444;
    min-height: 500px;
    overflow: hidden;
}

/* CÔTÉ TEXTE */
.split-text-side {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-sizing: border-box;
}

.split-text-content {
    max-width: 450px;
}

.split-title {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.split-description {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
}

.split-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #e65100; /* Ta couleur de base */
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease; /* Animation fluide */
    border: 2px solid transparent;
}

/* L'ÉTAT HOVER */
.split-btn:hover {
    background-color: #ffffff; /* Le fond devient blanc */
    color: #e65100 !important; /* Le texte prend la couleur de l'orange */
    border-color: #e65100; /* Ajout d'une bordure orange */
    transform: translateY(-3px); /* Le bouton s'élève légèrement */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Ombre portée */
}

/* CÔTÉ IMAGE */
.split-image-side {
    flex: 0 0 50%;
}

.split-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit tout l'espace sans se déformer */
    display: block;
}

/* RESPONSIVE MOBILE */
@media (max-width: 767px) {
    .split-text-side, .split-image-side {
        flex: 0 0 100%;
    }
    .split-text-side {
        padding: 40px 20px;
        order: 1; /* Le texte reste en haut */
    }
    .split-image-side {
        height: 300px;
        order: 2;
    }
    .split-title { font-size: 2rem; }
}

/* ============================================================
FIN Bloc spécifique atelier - YIO ÉCHOPPE
   ============================================================ */

/* --- BLOC PERSONNALISÉ POUR LE TEXTE INSTAGRAM --- */
.custom-block-dark {
    background-color: #2a2444;
    color: #ffffff !important;
    padding: 60px 20px !important;
    text-align: center !important;
    
    /* Sortie du container pour le plein écran */
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* On s'assure que les titres et textes à l'intérieur sont blancs */
.custom-block-dark h1, 
.custom-block-dark h2, 
.custom-block-dark h3, 
.custom-block-dark p {
    color: #ffffff !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px; /* Pour garder une lecture confortable */
}

/* --- RÉDUCTION DE LA LARGEUR DES BLOCS PRODUITS --- */

/* On cible les sections de produits sur la home pour les limiter à 75% */
#index .featured-products, 
#index .products-section {
    max-width: 75% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 75% !important;
}

/* On s'assure que la rangée de produits est bien centrée à l'intérieur */
#index .products.row {
    justify-content: center !important;
    margin: 0 !important;
}

/* Sur mobile, on repasse à une largeur plus importante pour la lisibilité */
@media (max-width: 767px) {
    #index .featured-products, 
    #index .products-section {
        max-width: 95% !important;
        width: 95% !important;
    }
}

/* --- FORÇAGE DU RATIO PORTRAIT 4:5 --- */

/* 1. On réinitialise le conteneur de l'image */
#index .promoblocks-item .promoblocks-img {
    width: 100% !important;
    height: 0 !important; /* On annule la hauteur fixe */
    padding-top: 125% !important; /* C'est le secret : 1350/1080 = 1.25 */
    position: relative !important;
    background-size: cover !important;
}

/* 2. On force l'image à remplir ce nouveau cadre */
#index .promoblocks-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 3. On nettoie le parent au cas où une hauteur y traîne */
#index .promoblocks-item {
    height: auto !important;
    min-height: 0 !important;
}

/* --- LE FOND BLANC --- */
#index .anthemeblocks-promoblocks {
    background-color: #ffffff !important;
    padding: 40px 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

#index .promoblocks-item {
    flex: 0 0 calc(16.66% - 15px) !important; /* 6 colonnes */
    margin: 7px !important;
}
/* --- RESPONSIVE : FEED INSTA 1080x1350 --- */

/* 1. TABLETTE (Moins de 991px) : On passe à 3 colonnes */
@media (max-width: 991px) {
    #index .anthemeblocks-promoblocks {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important; 
        gap: 10px !important;
        padding: 20px 10px !important;
    }

    #index .promoblocks-item {
        flex: none !important; /* On annule le calcul desktop */
        width: 100% !important;
        margin: 0 !important;
    }
}

/* 2. MOBILE (Moins de 575px) : On passe à 2 colonnes */
@media (max-width: 575px) {
    #index .anthemeblocks-promoblocks {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 15px 5px !important;
    }

    /* Optionnel : On réduit un peu le titre du bloc sur mobile si tu en as un */
    .insta-title {
        font-size: 1.4rem !important;
    }
}
