/* Couleurs personnalisées */
:root {
    --primary: #e63946;
    --secondary: #457b9d;
    --dark: #1d3557;
    --light: #f1faee;
    --accent: #fca311;
}

/* Reset des marges et padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Éliminer tout espace en bas de page */
html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Styles généraux */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Définition de .page déplacée vers ligne 1673 pour éviter les conflits */

main {
    flex: 1;
}

/* Solution radicale pour éliminer l'espace en bas */
body::after,
html::after,
.page::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header & Navigation */
.navbar {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(230, 57, 70, 0.05);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.top-bar {
    background-color: var(--dark);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: white;
    text-decoration: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 9999 !important;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(230, 57, 70, 0.05);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Ensure all main content is below navigation dropdowns */
main, .content, section, article {
    position: relative;
    z-index: 1;
}

/* Barre de recherche */
.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 1px solid #ced4da;
    padding-left: 1.2rem;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.375rem 1.2rem;
}

/* Icônes de navigation */
.nav-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--dark);
    margin: 0 0.8rem;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.6)), url('/images/hero-bg.svg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 6rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Catégories */
.category-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    border: none;
    margin-bottom: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.category-card img {
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .card-body {
    padding: 1.2rem;
    text-align: center;
}

.category-card .card-title {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark);
}



/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Wrapper en haut pour forcer une hauteur d'image cohérente */
.product-image-wrapper {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.product-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

@media (min-width: 1200px) {
    .product-image-wrapper {
        height: 240px;
    }
}

.product-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.25;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
    color: #F27A1A;
}

.product-old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Modern Product Grid - Exactement 4 colonnes comme l'image de référence */
.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
}

/* Optimisation pour la grille Bootstrap 4 colonnes */
.row-cols-md-4 > .col {
    flex: 0 0 auto;
    width: 25%;
}

@media (max-width: 768px) {
    .product-grid-modern {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .row-cols-1 > .col {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Badge styles modernes */
.badge-discount {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(46, 213, 115, 0.3);
}

.badge-sale {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* Prix modernes */
.current-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #F27A1A;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
}

.price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Boutons d'action */
.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), #d63031);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-form {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .product-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .category-card img {
        height: 150px;
    }

    .product-card .card-img-top {
        height: 160px;
    }

    .product-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid-modern {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-card .card-img-top {
        height: 140px;
    }

    .btn-add-cart {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Améliorations pour mobile */
    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .categories-section .col-6 {
        margin-bottom: 1rem;
    }

    .category-card {
        padding: 0.5rem;
    }

    .category-card h6 {
        font-size: 0.85rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .btn-view-all {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Amélioration des cartes produits sur mobile */
    .product-card {
        margin-bottom: 1rem;
    }

    .product-card .card-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .current-price {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .old-price {
        font-size: 0.8rem;
    }

    /* Actions utilisateur sur mobile */
    .user-actions .action-item {
        margin-left: 10px;
    }

    .action-badge {
        font-size: 0.7rem;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
}

/* Ajout de styles pour corriger les problèmes de navbar */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

/* Correction pour le panier et les boutons de connexion/inscription */
.d-flex.align-items-center {
    margin-left: auto;
}

/* Style pour le titre principal sans encadrement */
.display-4.fw-bold {
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #FF6B35 0%, #F59E0B 100%);
    color: white;
    padding: 40px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    /* Animation désactivée pour éviter le clignotement */
    /* animation: shimmer 3s infinite; */
}

/* Animation shimmer désactivée pour éviter les problèmes de performance
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
} */

.promo-banner h3 {
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.promo-banner p {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.promo-banner .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.promo-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.promo-banner .bi-truck {
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem !important;
}

/* Responsive pour la bannière promotionnelle */
@media (max-width: 768px) {
    .promo-banner {
        padding: 30px 0;
        margin: 40px 0;
    }

    .promo-banner h3 {
        font-size: 1.5rem;
    }

    .promo-banner p {
        font-size: 1rem;
    }

    .promo-banner .bi-truck {
        font-size: 3rem !important;
    }
}

/* Styles pour les nouvelles pages */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0;
    font-weight: 500;
}

.filters-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.3;
}

/* Badge styles pour les classements */
.badge-ranking {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-ranking.position-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.badge-ranking.position-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.badge-ranking.position-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.badge-bestseller {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Stats cards */
.promotion-stats, .bestsellers-stats {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card {
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.savings-amount {
    margin-top: 0.5rem;
}

/* Blog styles - Utilise maintenant le système harmonisé */
.featured-article {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.featured-article .article-content {
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.article-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.article-meta {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.blog-categories {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.blog-categories h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.category-tags .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-tags .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tags .btn-outline-primary:hover,
.category-tags .btn-outline-primary.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 60, 48, 0.3);
}

.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.02);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card .card-text {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-category .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.blog-card .btn-outline-primary {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 60, 48, 0.2);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    padding: 2rem;
}

/* Prévention des débordements pour le blog */
.blog-categories,
.featured-article,
.blog-card,
.newsletter-section {
    box-sizing: border-box;
    max-width: 100%;
}

.blog-categories .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-categories .category-tags .btn {
    flex-shrink: 0;
}

/* Stabilité de la page */
body {
    overflow-x: hidden;
}

.content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Optimisations pour éviter le clignotement */
/* IMPORTANT: Ne pas appliquer transform globalement car cela casse position: fixed */
/* Appliquer uniquement aux éléments qui en ont besoin */
.blog-card,
.featured-article,
.category-tags .btn,
.product-card,
.category-card {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Réduction des transitions agressives */
.blog-card:hover,
.product-card:hover,
.category-card:hover {
    transition-duration: 0.2s;
}

/* Contact styles */
.contact-form-card, .contact-info-card, .social-media-card, .faq-card, .map-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(231, 60, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-details h6 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--dark);
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.instagram:hover { background: #e4405f; }
.social-link.linkedin:hover { background: #0077b5; }
.social-link.whatsapp:hover { background: #25d366; }

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.map-content {
    padding: 2rem;
}

/* Nouveautés, Promotions, Meilleures Ventes styles améliorés */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #1a2b4a;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a2b4a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.filters-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-section h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.filters-section .form-select,
.filters-section .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filters-section .form-select:focus,
.filters-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(231, 60, 48, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-category {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.price-section {
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.price-with-discount {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    background: linear-gradient(135deg, var(--secondary), #ff6b35);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.bestseller-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.card-actions {
    margin-top: auto;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 60, 48, 0.4);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
}

/* Pagination améliorée */
.pagination .page-link {
    border-radius: 12px;
    margin: 0 0.25rem;
    border: 2px solid transparent;
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 60, 48, 0.3);
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== FOOTER MODERNE ===== */
.footer-modern {
    background: #003366;
    color: white;
    margin-top: auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-section {
    height: 100%;
    text-align: left;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-subtitle {
    color: #F96302;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #F96302;
    transform: translateX(5px);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #F96302;
    color: white;
    transform: translateY(-2px);
}

/* Contact Info */
.footer-contact {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-item i {
    color: #F96302;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Newsletter */
.newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #F96302;
    box-shadow: 0 0 0 0.25rem rgba(249, 99, 2, 0.25);
    color: white;
}

.newsletter-form .btn {
    background: #F96302;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #E73C30;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 60, 48, 0.4);
}

/* Section Sécurité */
.footer-security {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.security-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.security-item i {
    color: #F96302;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icons i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

.payment-brand {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Copyright */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #F96302;
}

/* Section Pourquoi choisir - Style Cdiscount */
.why-choose-section {
    background: #1d3557 !important;
    color: white;
    padding: 3rem 0 !important;
    margin-bottom: 0 !important;
}

/* Éliminer tout espace en bas de page */
.footer-modern .footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 1.5rem !important;
}

/* Structure de page avec footer en bas - DÉFINITION UNIQUE */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenu principal qui prend l'espace disponible */
.main-content {
    flex: 1;
    padding-bottom: 2rem;
}

/* Pas de padding pour la page avec carousel */
.main-content:has(.hero-carousel-section) {
    padding-top: 0 !important;
}

/* Footer toujours en bas - DÉFINITION UNIQUE */
.footer-modern {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Pseudo-élément supprimé pour éviter les conflits */

.why-choose-section h2 {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.why-choose-section .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 1rem !important;
}

.why-choose-section .card h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-choose-section .card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.why-choose-section .card i {
    color: #F96302 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-section {
        margin-bottom: 2rem;
    }

    .why-choose-section {
        padding: 2.5rem 0 !important;
    }
}

@media (max-width: 992px) {
    .footer-main {
        padding: 2.5rem 0 2rem;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .footer-links {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .why-choose-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .security-badges {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
    }

    .security-item {
        justify-content: center;
    }

    .payment-methods {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .payment-text {
        margin-bottom: 0.5rem;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        align-self: stretch;
    }

    .why-choose-section {
        padding: 2rem 0 !important;
    }

    .why-choose-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 1.1rem;
        justify-content: center;
    }

    .footer-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 1.5rem 0 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-subtitle {
        font-size: 0.9rem;
    }

    .footer-text,
    .footer-links a,
    .contact-item,
    .newsletter-text {
        font-size: 0.85rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .security-badges {
        gap: 0.75rem;
    }

    .security-item,
    .payment-text {
        font-size: 0.85rem;
    }

    .payment-icons i {
        font-size: 1.3rem;
    }

    .payment-brand {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .copyright,
    .footer-bottom-links a {
        font-size: 0.8rem;
    }

    .footer-bottom-links {
        gap: 1rem;
    }

    .why-choose-section {
        padding: 1.5rem 0 !important;
    }

    .why-choose-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .why-choose-section .card {
        padding: 0.75rem !important;
    }

    .why-choose-section .card h4 {
        font-size: 1rem;
    }

    .why-choose-section .card p {
        font-size: 0.85rem;
    }

    .why-choose-section .card i {
        font-size: 1.3rem !important;
    }
}

/* Espacement spécifique pour les pages de paiement et checkout */
.checkout-page,
.payment-page {
    min-height: calc(100vh - 400px);
    padding: 1rem 0 3rem 0;
    margin-bottom: 1.5rem;
}

/* Pages d'authentification */
.auth-page,
.login-page,
.register-page {
    min-height: calc(100vh - 400px);
    padding: 2rem 0 6rem 0;
    margin-bottom: 3rem;
}

/* Conteneur principal pour toutes les pages avec formulaires */
.form-container {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
}

/* Assurer que le contenu ne soit jamais masqué par le footer */
body {
    padding-bottom: 0;
}

/* Espacement global pour éviter le chevauchement du footer */
.container {
    margin-bottom: 2rem;
}

/* Styles spécifiques pour les cartes dans les pages d'auth et checkout */
.auth-page .card,
.checkout-page .card,
.payment-page .card {
    margin-bottom: 3rem;
}

/* Espacement supplémentaire pour les derniers éléments */
.auth-page .card:last-child,
.checkout-page .checkout-container > *:last-child,
.payment-page .container > *:last-child {
    margin-bottom: 2rem;
}

/* Assurer un espacement minimum avant le footer pour toutes les pages */
main {
    padding-bottom: 2rem;
}

/* Espacement spécifique pour les pages avec beaucoup de contenu */
.page-content {
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

/* Media queries pour les petits écrans */
@media (max-width: 768px) {
    .auth-page,
    .checkout-page,
    .payment-page {
        padding-bottom: 2rem;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Conteneur principal pour checkout */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Styles pour la page de checkout */
.checkout-page .container {
    margin-bottom: 0;
}

.checkout-page h1 {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Formulaire de checkout */
.checkout-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.checkout-form h3 {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.4rem;
}

/* Résumé de commande */
.order-summary-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.order-summary-card h3 {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.4rem;
}

/* Styles compacts pour le résumé de commande */
.order-summary-card h6 {
    font-size: 0.85rem;
    font-weight: 500;
}

.order-summary-card small {
    font-size: 0.75rem;
}

.order-summary-card .fw-bold {
    font-size: 0.9rem;
}

.order-summary-card .mb-2 {
    margin-bottom: 0.4rem !important;
}

.order-summary-card .mb-3 {
    margin-bottom: 0.75rem !important;
}

.order-summary-card hr {
    margin: 0.5rem 0;
}

.order-summary-card .order-summary span {
    font-size: 0.85rem;
}

.order-summary-card .total-row {
    font-size: 1.1rem;
}

/* Définition supprimée - voir ligne 1673 pour la définition unique */

/* Styles pour les champs de formulaire */
.checkout-form .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.checkout-form .form-control {
    border: 1px solid #dde1e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.checkout-form .mb-3 {
    margin-bottom: 0.75rem !important;
}

.checkout-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(231, 60, 48, 0.15);
}

/* Styles pour les modes de paiement */
.payment-method {
    border: 1px solid #dde1e6;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.payment-method:hover {
    border-color: var(--primary);
    background-color: rgba(231, 60, 48, 0.05);
}

.payment-method input[type="radio"]:checked + label {
    color: var(--primary);
    font-weight: 600;
}

/* Bouton de validation */
.checkout-form .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.checkout-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 60, 48, 0.3);
}
/* Container style Cdiscount - marges réduites */
.container-cdiscount {
    width: 100%;
    max-width: 100%;
    padding-left: 150px;
    padding-right: 150px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .container-cdiscount {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 1200px) {
    .container-cdiscount {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 992px) {
    .container-cdiscount {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .container-cdiscount {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .container-cdiscount {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ============================================
   Hero Carousel Style Cdiscount
   ============================================ */

.hero-carousel-section {
    margin: 0;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 30px;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
}

#heroCarousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

#heroCarousel .carousel-inner {
    border-radius: 0;
}

.carousel-slide {
    min-height: 280px;
    padding: 40px 80px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .carousel-slide {
        min-height: 200px;
        padding: 25px 20px;
    }
}

.carousel-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-text {
    flex: 1;
    color: white;
}

.carousel-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.carousel-badge.badge-new {
    background: #28a745;
}

.carousel-badge.badge-delivery {
    background: #17a2b8;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.6rem;
    }
}

.carousel-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
    color: white;
}

@media (max-width: 768px) {
    .carousel-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

.carousel-btn {
    background: white;
    color: #333;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .carousel-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.carousel-image-wrapper {
    flex: 0 0 auto;
    margin-left: 40px;
}

@media (max-width: 768px) {
    .carousel-image-wrapper {
        display: none;
    }
}

.carousel-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .carousel-icon {
        font-size: 5rem;
    }
}

/* Slide backgrounds */
.carousel-slide-promo {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
}

.carousel-slide-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f953c6 100%);
}

.carousel-slide-delivery {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #56ccf2 100%);
}

/* Carousel controls - Flèches à l'extérieur du carousel */
#heroCarousel {
    overflow: visible !important;
    margin-left: 50px;
    margin-right: 50px;
}

#heroCarousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

#heroCarousel .carousel-control-prev {
    left: -50px;
}

#heroCarousel .carousel-control-next {
    right: -50px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: transparent;
    border-radius: 0;
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: invert(0.3);
}

/* Carousel indicators - Indicateurs élégants */
#heroCarousel .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

#heroCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 4px;
    transition: all 0.4s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#heroCarousel .carousel-indicators button.active {
    background: white;
    width: 24px;
    border-radius: 10px;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Flèches discrètes - visibles au hover */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

/* Pause au survol via CSS (indicateur visuel) */
#heroCarousel:hover .carousel-indicators button.active {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}