@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

/* =========================================================
0. POLICE GLOBALE (OPEN SANS)
========================================================= */
body {
    font-family: 'Open Sans', sans-serif !important;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, a, span, div, button, input {
    font-family: 'Open Sans', sans-serif;
}

/* =========================================================
1. TITRE PRINCIPAL
========================================================= */
#index h2 {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* =========================================================
2. CARTE PRODUIT
========================================================= */
#carousel-product-1 .row.card-aligned {
    justify-content: center !important;
}

#carousel-product-1 .product-box.p160 {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    transition: transform 0.3s ease;
}

#carousel-product-1 .product-box.p160 .card {
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

#carousel-product-1 .product-box.p160 .card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

#carousel-product-1 .product-box.p160 .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

#carousel-product-1 .product-box.p160 .card-body {
    text-align: center !important;
    padding: 20px 15px !important;
}

#carousel-product-1 .product-box.p160 .card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px;
}

#carousel-product-1 .product-box.p160 .marquee-heading {
    font-size: 16px !important;
    color: #6c757d !important;
    line-height: 1.4;
    font-weight: 400;
}

/* =========================================================
3. BOUTON D'ACTION
========================================================= */
#carousel-product-1 .product-box.p160 .card-footer {
    padding: 0 20px 30px 20px !important;
    display: flex;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
}

#carousel-product-1 .product-box.p160 .card-footer .btn-info {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    min-width: 200px;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    background-color: var(--secondary-color, #ba070a) !important;
    border: none !important;
    color: #ffffff !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#carousel-product-1 .product-box.p160 .card-footer .btn-info:hover {
    background-color: var(--primary-color, #8a1702) !important;
    transform: scale(1.03);
}

#carousel-product-1 .product-box.p160 .card-footer .btn-info i {
    margin-left: 8px;
}

/* =========================================================
   SECURITE ANTI-SCROLL HORIZONTAL
   ========================================================= */
body, html {
    overflow-x: hidden !important; /* Coupe l'ascenseur horizontal définitivement */
}

/* =========================================================
   4. FOOTER
   ========================================================= */
#footer.footer-content {
    max-width: 100% !important; /* On utilise 100% au lieu de 100vw */
    width: 100% !important;
    margin-left: 0 !important; /* On retire l'astuce calc() qui poussait le footer */
    padding: 0 !important;
    background-color: #000000 !important;
}

#footer.footer-content > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.site-footer {
    width: 100%;
}

/* =========================================================
   5. COPYRIGHT
   ========================================================= */
footer.border-top {
    display: block !important;
    max-width: 100% !important; /* 100% au lieu de 100vw */
    width: 100% !important;
    margin-left: 0 !important; /* On retire le calc() ici aussi */
    background-color: #111111 !important;
    border-top: none !important;
    padding: 15px 0 !important;
}

footer.border-top .container {
    max-width: 100% !important;
}

footer.border-top p,
footer.border-top p.text-muted {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #888888 !important;
    font-size: 14px !important;
    margin: 0;
}
/* =========================================================
6. RESPONSIVE
========================================================= */
@media (max-width: 992px) {
    #carousel-product-1 .product-box.p160 {
        flex: 0 0 90% !important;
        max-width: 90% !important;
    }

    #index h2 {
        font-size: 20px !important;
    }

    #carousel-product-1 .product-box.p160 .card-footer .btn-info {
        width: 100% !important;
    }
}

/* =========================================================
   BLOC ESTIMATION DE PRIX (GRIS PLAT #F4F4F4)
   ========================================================= */
#price_calculator {
    background-color: #F4F4F4 !important;
    padding: 20px !important; /* Espace intérieur pour que le texte ne touche pas le bord gris */
    border: none !important; /* Aucune bordure */
    box-shadow: none !important; /* Aucun glow/ombre */
    outline: none !important; /* Aucun contour */
    border-radius: 0 !important; /* Angles droits, pas d'arrondis */
}

/* Supprime la petite ligne de séparation sous le titre "Personnaliser et estimer" */
#price_calculator .card-header {
    border-bottom: none !important;
    padding-bottom: 15px !important;
}

/* =========================================================
   ZONE DES PRIX ET POIDS (FOND TRANSPARENT/GRIS PLAT)
   ========================================================= */
#productpricetotal,
#producttotalprice,
#productpricetotal .content-box {
    background-color: transparent !important; /* Laisse passer le gris #F4F4F4 du bloc parent */
    background: none !important;
    border: none !important; /* Aucune bordure */
    box-shadow: none !important; /* Aucune ombre */
    padding: 0 !important; /* Enlève les marges internes si elles créent un décalage visuel */
}

#SubmitData_save {
    display: none !important;
}

/* =========================================================
   ANNULATION DE L'ANIMATION ZOOM SUR L'IMAGE DE LA CARTE
========================================================= */
#carousel-product-1 .product-box.p160 .card:hover img,
#carousel-product-1 .product-box.p160 .thumbnail:hover img {
    transform: none !important;
    -webkit-transform: none !important;
}

#carousel-product-1 .product-box.p160 .card:hover .thumbnail,
#carousel-product-1 .product-box.p160 .thumbnail:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

/* =========================================================
7. STYLISATION DES MODÈLES (TEMPLATES) - VERSION BLANCHE
========================================================= */

/* Espacement entre les blocs de cartes */
.templatebox {
    padding: 15px !important;
}

/* La carte principale (Fond blanc) */
.templatebox .card {
    border: none !important;
    background-color: #ffffff !important; /* Carte bien blanche */
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important; /* Ombre douce pour décoller la carte du fond gris de la page */
    transition: all 0.3s ease;
    overflow: hidden;
}

.templatebox .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

/* Zone qui enrobe l'image (Padding tout autour) */
.templatebox .card-body {
    padding: 25px 20px 10px 20px !important; /* Marge interne qui crée l'enrobage */
    background: #ffffff !important;
}

/* Le cadre blanc de 10px autour de l'image */
.templatebox .card-body a.thumbnail {
    display: block !important;
    border: 10px solid #ffffff !important; /* Bordure de 10px blanche */
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    /* Ombre sur l'image pour que la bordure blanche soit visible sur la carte blanche */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; 
    background: #ffffff !important;
}

.templatebox .card-body img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Style du texte (Nom du modèle) */
.templatebox .card-title {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Bouton "Personnaliser" */
.templatebox .btn-primary {
    background-color: var(--secondary-color, #ba070a) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    transition: all 0.3s ease;
}

.templatebox .btn-primary:hover {
    background-color: var(--primary-color, #8a1702) !important;
    transform: scale(1.05);
}

/* Masquer l'icône loupe pour un look plus propre */
.templatebox .zoom {
    display: none !important;
}

/* Ajustement pour que le footer de la carte soit aussi blanc */
.templatebox .card-footer {
    background: #ffffff !important;
    border: none !important;
    padding-bottom: 25px !important;
}

/* =========================================================
   8. PANIER : Masquer le bouton de sauvegarde manuel
========================================================= */
.qty-col button.save_qty,
button[id^="save_qty_"] {
    display: none !important;
}