/* ==========================
   CSS PERSONNALISÉ YAPLA - COMCEBO
   Kermesse 14 juin 2026
   ========================== */

/* ========================================
   MASQUER LE MENU BURGER
   ======================================== */
.line-menu,
.navbar,
.navbar-header,
.navbar-toggle,
.navbar-collapse,
.menu-vertical-2283120 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ========================================
   TITRE H2 — KERMESSE 14 JUIN 2026
   ======================================== */
.zone-shop_product_list h2 {
    text-align: center !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin: 30px 0 4px 0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Sous-titre date de fin automatique */
.zone-shop_product_list h2::after {
    content: "Commandes en ligne jusqu'au samedi 13 juin 2026 (ne compte plus pour le meilleur vendeur)" !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e67e22 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 6px !important;
    margin-bottom: 20px !important;
}

/* ========================================
   BANNIÈRE
   ======================================== */
.mod-banner__wrapper {
    height: auto !important;
    position: relative !important;
}

.mod-banner__img {
    min-height: 120px !important;
    max-height: 180px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.mod-banner__img::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: rgba(0,0,0,0.25) !important;
    z-index: 1 !important;
}

.mod-banner__content {
    padding: 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

.mod-banner__content p {
    font-size: 15px !important;
    margin: 6px 0 !important;
    line-height: 1.4 !important;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
}

/* ========================================
   GRILLE PRODUITS — 4 SUR UNE LIGNE
   ======================================== */
.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    padding: 0 40px 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.container-fluid .products {
    padding: 0 40px 40px !important;
}

/* ========================================
   CARTE PRODUIT
   ======================================== */
.product {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-height: auto !important;
    height: auto !important;
    transition: all 0.3s ease !important;
    animation: fadeInUp 0.5s ease forwards !important;
    box-sizing: border-box !important;
}

.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    transform: translateY(-4px) !important;
    border-color: #e0e0e0 !important;
}

/* ========================================
   IMAGE PRODUIT
   ======================================== */
.product .product-image-container,
.product-image-container {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.product .product-image,
.product-image,
.product-image-container img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.product-image-container picture,
.product-image-container source {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   PRIX — BADGE SUR L'IMAGE
   ======================================== */
.product .product-image-container .product-price,
.product-image-container .product-price {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #e67e22 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 10px rgba(230,126,34,0.4) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    border: none !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 !important;
}

/* Masquer le prix hors image */
.product .product-content .product-price,
.product-detail-container .product-price {
    display: none !important;
    visibility: hidden !important;
}

.product-price::before,
.product-price::after {
    display: none !important;
    content: none !important;
}

/* ========================================
   CONTENU PRODUIT
   ======================================== */
.product .product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: 10px !important;
    padding: 0 !important;
}

.product .product-detail-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: 8px !important;
}

.product .product-title,
.product-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.product .product-description,
.product-description {
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    flex: 1 !important;
    overflow: visible !important;
    display: block !important;
}

/* ========================================
   BOUTON AJOUTER AU PANIER
   ======================================== */
.product .add-to-cart,
.product button.add-to-cart,
button.add-to-cart {
    background: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.product .add-to-cart:hover,
button.add-to-cart:hover {
    background: #229954 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(39,174,96,0.3) !important;
}

/* ========================================
   ICÔNE PANIER
   ======================================== */
.mod-cart-bloc,
.header-ext-cart {
    position: relative !important;
    padding-left: 30px !important;
    margin-right: 15px !important;
    top: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.mod-cart-bloc__link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.cart-icon__wrapper {
    position: relative !important;
    display: inline-flex !important;
    transform: scale(1.5) !important;
    transform-origin: center !important;
    margin-right: 32px !important;
    padding-right: 8px !important;
}

.cart-icon__icon,
.mod-cart-bloc .fa,
.mod-cart-bloc i {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    color: var(--primary, #F45975) !important;
    transition: color 0.3s ease !important;
}

.cart-icon__wrapper .cart-count,
.mod-cart-bloc .badge {
    font-size: 10px !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: -4px !important;
    right: -12px !important;
}

.mod-cart-bloc::after {
    content: "Cliquez sur le panier pour mettre à jour votre commande";
    position: absolute;
    right: calc(100% + 30px);
    top: calc(50% - 5px);
    transform: translateY(-50%);
    background: white !important;
    color: #e67e22 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    z-index: 999;
}

/* ========================================
   POPUP CONFIRMATION PANIER
   ======================================== */
.added-to-cart-notice-container {
    position: fixed !important;
    z-index: 999999 !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
}

.added-to-cart-notice {
    background: #27ae60 !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(39,174,96,0.4) !important;
    padding: 20px 32px !important;
    border-radius: 12px !important;
    max-width: 600px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    animation: slideDownBounce 0.6s ease-out !important;
}

@keyframes slideDownBounce {
    0%   { transform: translateY(-100px); opacity: 0; }
    60%  { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); }
}

.added-to-cart-text {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: block !important;
}

.added-to-cart-notice::after {
    content: "Actualisez la page ou cliquez sur le panier en haut à droite pour voir votre commande";
    display: block;
    margin-top: 16px;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border: 1px solid #c0392b !important;
    background: white !important;
    color: #c0392b !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
}

/* ========================================
   MASQUER BOUTONS PRÉCÉDENT/SUIVANT
   ======================================== */
.previous-button[data-ref],
button.previous-button[data-ref],
form button[class*="previous"],
form button[class*="next"],
form .previous-button,
form .next-button {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   PANIER & RÉSUMÉ COMMANDE
   ======================================== */
.cart-item {
    border-bottom: 1px solid #ecf0f1 !important;
    padding: 16px 0 !important;
}

.cart-item__name {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
}

.cart-item__price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #e67e22 !important;
}

.order-summary {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.order-summary__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
}

.order-summary__total {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

/* ========================================
   BOUTONS PAIEMENT
   ======================================== */
#validate,
button#validate,
button[name="validate"] {
    display: none !important;
}

.btn-pay,
#external_payment,
button#external_payment {
    background: #3498db !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-pay:hover,
#external_payment:hover {
    background: #2980b9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(52,152,219,0.3) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   LOGO
   ======================================== */
@media screen and (max-width: 1023px) {
    img[src*="logo"], img[alt*="logo" i], .navbar-brand img, header img {
        max-width: 200px !important;
        max-height: 55px !important;
        width: auto !important;
        height: auto !important;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* TABLETTES LARGES (1024px–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
    .products {
        padding: 0 24px 32px !important;
        gap: 14px !important;
    }
    .product .product-title { font-size: 13px !important; }
    .product .product-description { font-size: 11.5px !important; }
}

/* TABLETTES PORTRAIT (768px–1023px) : 2 par ligne */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 30px 30px !important;
        gap: 18px !important;
    }

    .mod-cart-bloc {
        position: fixed !important;
        right: 0 !important;
        top: 25px !important;
        z-index: 99999 !important;
        padding-left: 0 !important;
    }

    .cart-icon__wrapper {
        transform: scale(2.0) !important;
        margin-right: 35px !important;
    }

    .mod-cart-bloc::after { display: none !important; }
}

/* MOBILES LARGES (600px–767px) : 2 par ligne */
@media screen and (min-width: 600px) and (max-width: 767px) {
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 20px 24px !important;
        gap: 14px !important;
    }

    .mod-cart-bloc {
        position: fixed !important;
        right: 15px !important;
        top: 23px !important;
        z-index: 99999 !important;
        padding-left: 0 !important;
    }

    .cart-icon__wrapper {
        transform: scale(1.8) !important;
        margin-right: 28px !important;
    }

    .mod-cart-bloc::after { display: none !important; }
}

/* MOBILES (481px–599px) : 1 par ligne */
@media screen and (min-width: 481px) and (max-width: 599px) {
    .products {
        grid-template-columns: 1fr !important;
        padding: 0 20px 20px !important;
        gap: 14px !important;
    }

    .mod-cart-bloc {
        position: fixed !important;
        right: 15px !important;
        top: 22px !important;
        z-index: 99999 !important;
        padding-left: 0 !important;
    }

    .cart-icon__wrapper {
        transform: scale(1.7) !important;
        margin-right: 25px !important;
    }

    .mod-cart-bloc::after { display: none !important; }
}

/* PETITS MOBILES (375px–480px) : 1 par ligne */
@media screen and (min-width: 375px) and (max-width: 480px) {
    .products {
        grid-template-columns: 1fr !important;
        padding: 0 16px 20px !important;
        gap: 14px !important;
    }

    .zone-shop_product_list h2 { font-size: 22px !important; }

    .mod-cart-bloc {
        position: fixed !important;
        right: 12px !important;
        top: 22px !important;
        z-index: 999999 !important;
        padding-left: 0 !important;
    }

    .cart-icon__wrapper {
        transform: scale(1.6) !important;
        margin-right: 20px !important;
    }

    .mod-cart-bloc::after { display: none !important; }
}

/* TRÈS PETITS MOBILES (< 375px) : 1 par ligne */
@media screen and (max-width: 374px) {
    .products {
        grid-template-columns: 1fr !important;
        padding: 0 12px 16px !important;
        gap: 12px !important;
    }

    .zone-shop_product_list h2 { font-size: 18px !important; }

    .mod-cart-bloc {
        position: fixed !important;
        right: 10px !important;
        top: 20px !important;
        z-index: 999999 !important;
        padding-left: 0 !important;
    }

    .cart-icon__wrapper {
        transform: scale(1.4) !important;
        margin-right: 18px !important;
    }

    .mod-cart-bloc::after { display: none !important; }
}

/* PAYSAGE MOBILE */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 24px 20px !important;
    }

    .mod-cart-bloc {
        position: fixed !important;
        right: 15px !important;
        top: 20px !important;
        z-index: 999999 !important;
    }

    .cart-icon__wrapper { transform: scale(1.5) !important; }
    .mod-cart-bloc::after { display: none !important; }
}
