:root { 
    --ali-orange: #ff6a00; 
    --ali-bg: #f7f8fa; 
    --ali-border: #e8e8e8; 
    --dark-footer: #1a1d20; 
}

body { background-color: var(--ali-bg); font-family: "Roboto", sans-serif; color: #333; }

/* HEADER & NAV */
.ali-header { background: #fff; border-bottom: 1px solid var(--ali-border); position: sticky; top: 0; z-index: 1000; padding: 5px 0; }
.search-box { border: 2px solid var(--ali-orange); border-radius: 25px; display: flex; background: #fff; overflow: hidden; margin: 0 10px; }
.search-box input { border: none; padding: 8px 15px; flex-grow: 1; outline: none; font-size: 14px; }
.search-btn { background: var(--ali-orange); color: #fff; border: none; padding: 0 15px; }
.cart-badge { background: var(--ali-orange); color: white; font-size: 10px; padding: 2px 6px; border-radius: 50%; position: absolute; top: -5px; right: -10px; }

/* CAROUSELS & SECTIONS */
.carousel-item { height: 400px; }
.section-actions { background: #fff; padding: 20px 0; border-bottom: 1px solid var(--ali-border); margin-bottom: 30px; }
.action-container { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; }
.btn-action { 
    flex: 1; min-width: 120px; background: #fdfdfd; border: 1px solid var(--ali-border); padding: 15px; 
    border-radius: 12px; text-align: center; text-decoration: none !important; 
    color: #333; font-weight: bold; transition: 0.3s; display: flex; flex-direction: column; align-items: center;
}
.btn-action i { font-size: 1.8rem; margin-bottom: 8px; color: var(--ali-orange); }
.btn-action:hover { background: var(--ali-orange); color: #fff; transform: translateY(-3px); }
.btn-action:hover i { color: #fff; }

/* GRILLE PRODUITS */
.ali-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.ali-card { background: #fff; border: 1px solid var(--ali-border); border-radius: 8px; overflow: hidden; text-decoration: none !important; color: inherit; transition: 0.3s; display: flex; flex-direction: column; }
.ali-card:hover { border-color: var(--ali-orange); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.img-container { position: relative; padding-top: 100%; background: #fff; }
.img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 15px; }
.ali-card-body { padding: 12px; flex-grow: 1; }
.ali-product-title { font-size: 14px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 5px; color: #444; }
.ali-product-price { font-size: 16px; font-weight: 800; color: #222; }
.ali-card-footer { border-top: 1px solid #f5f5f5; padding: 8px 12px; font-size: 11px; color: #999; display: flex; justify-content: space-between; }

/* SECTION SOMBRE */
.recommended-dark-box { background: #212529; border-radius: 12px; margin-top: 2rem; }
.h-scroll-wrapper { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; scrollbar-width: none; }
.h-scroll-wrapper::-webkit-scrollbar { display: none; }
.h-card { min-width: 160px; background: #2c3034; border-radius: 8px; border: 1px solid #3d4246; }
.h-img { height: 120px; background: #fff; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; padding: 10px; }
.h-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* FOOTER */
footer { background: var(--dark-footer); color: #adb5bd; padding: 60px 0 20px; margin-top: 50px; }
footer h6 { color: #fff; font-weight: bold; margin-bottom: 20px; }
footer a { color: #adb5bd; text-decoration: none; font-size: 14px; transition: 0.3s; }
footer a:hover { color: var(--ali-orange); }
.footer-bottom { border-top: 1px solid #343a40; margin-top: 40px; padding-top: 20px; font-size: 13px; }

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .carousel-item { height: 200px; }
    .search-box { margin: 10px 0; order: 3; width: 100%; }
    .navbar-brand { font-size: 1.2rem; }
    .ali-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ali-product-title { font-size: 12px; height: 34px; }
    .ali-product-price { font-size: 14px; }
    .section-actions { padding: 10px 0; }
    .btn-action { padding: 10px; min-width: 90px; }
    .btn-action i { font-size: 1.4rem; }
    .btn-action span { font-size: 10px; }
}
/* Ajustement des carrousels */
#productCarousel .carousel-item {
    height: 350px; /* Hauteur fixe pour le grand carrousel */
}

#productCarousel img {
    height: 100%;
    object-fit: cover; /* Évite de déformer l'image */
}

#adsCarousel {
    min-height: 350px; /* Même hauteur que le carrousel produit */
}

#adsCarousel .carousel-item {
    height: 350px;
}

@media (max-width: 991px) {
    #productCarousel .carousel-item, 
    #adsCarousel, 
    #adsCarousel .carousel-item {
        height: 250px; /* Plus petit sur tablette/mobile */
    }
}
.btn-action { 
    cursor: pointer;
    border: 1px solid var(--ali-border);
    /* ... reste de votre code ... */
}

/* Style spécifique pour les titres de modals */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}
/* Sidebar de filtres */
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--ali-border);
}

.category-list {
    margin: 0;
    padding: 0;
}

.category-list li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.category-list li a:hover, .category-list li a.active {
    background: #fff3e0;
    color: var(--ali-orange);
    font-weight: 500;
}

/* Bouton favoris sur l'image */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: 0.3s;
}

.wishlist-btn:hover {
    background: #fff;
    color: #e74c3c;
}

/* Grille Produit */
.ali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-sidebar {
        display: none; /* On cache les filtres sur mobile, on pourrait en faire un menu déroulant plus tard */
    }
}
.modal-content .form-control, 
.modal-content .form-select {
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.modal-content .form-control:focus {
    border-color: var(--ali-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.15);
}

.modal-header.bg-primary {
    background-color: #0056b3 !important; /* Couleur pro pour l'achat */
}
/* Animation des cartes de prix au survol */
#modalVendre .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
}

#modalVendre .card:hover {
    transform: translateY(-10px);
}

/* Style spécifique pour la version Business (Milieu) */
#modalVendre .border-primary {
    border-color: #0d6efd !important;
}

/* Taille du texte Pricing */
.display-5 {
    font-size: 2.2rem;
}

@media (max-width: 991px) {
    #modalVendre .display-5 {
        font-size: 1.8rem;
    }
}
/* Le conteneur avec l'entourage */
.proposed-container {
    border: 1px solid #333; /* Bordure discrète pour l'entourage */
    border-radius: 20px;
    background: linear-gradient(145deg, #0f0f0f 0%, #000000 100%);
}

/* Wrapper pour l'image avec effet sombre */
.dark-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #222;
    aspect-ratio: 1 / 1;
}

.dark-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.8);
    transition: 0.5s ease;
}

.dark-img-wrapper:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Badge de prix flottant */
.price-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--ali-orange);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

/* Style du bouton "Découvrir" au survol */
.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}
.btn-check:checked + .btn-outline-primary {
    background-color: var(--ali-orange) !important;
    border-color: var(--ali-orange) !important;
    color: white !important;
}

.x-small {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.payment-methods img {
    cursor: pointer;
    transition: transform 0.2s;
}

.payment-methods img:hover {
    transform: scale(1.1);
}