/* Footer sticky utility */
.footer-sticky {
    width: 100%;
    flex-shrink: 0;
}
/* Styles personnalisés pour DDR5 Catalog */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
}

.font-weight-medium {
    font-weight: 500;
}

.font-weight-semibold {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::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="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

/* Cards */
.product-card {
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.product-card .card-img-top {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

/* Product Specifications */
.product-specs .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    font-weight: 500;
}

/* Price Section */
.price-section .current-price {
    font-weight: 700;
    color: var(--success-color) !important;
}

/* Brand Links */
.brand-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
}

.brand-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.brand-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-link:hover .brand-logo {
    filter: grayscale(0%);
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    border: none;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control-lg, .form-select-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
}

.badge.bg-secondary {
    background: var(--secondary-color) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 0.75rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Highlights */
.search-highlight {
    background-color: #fef3c7;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* Price Comparison */
.price-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: white;
}

.price-item:last-child {
    margin-bottom: 0;
}

.store-logo {
    height: 30px;
    object-fit: contain;
}

/* Filters */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

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

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* User Reviews/Ratings (pour futures fonctionnalités) */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rating .fa-star {
    color: #fbbf24;
}

.rating .fa-star.empty {
    color: #d1d5db;
}

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f1f5f9;
        --bg-color: #0f1419;
        --card-bg: #1e293b;
    }
}

/* Catalog Specific Styles */
.catalog-filters {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: 100vh;
}

.filter-section {
    border-bottom: 1px solid #e3e6ea;
    padding: 1rem 0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section .form-label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-section .form-select,
.filter-section .form-control {
    font-size: 0.875rem;
    border-radius: 6px;
    border-color: #ced4da;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.price-range-slider {
    margin: 1rem 0;
}

.price-range-slider .noUi-connect {
    background: var(--primary-color);
}

.price-range-slider .noUi-handle {
    border-color: var(--primary-color);
    background: white;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}

.price-range-slider .noUi-handle:before,
.price-range-slider .noUi-handle:after {
    background: var(--primary-color);
}

.view-toggle .btn {
    border-color: #dee2e6;
    color: #6c757d;
}

.view-toggle .btn.active,
.view-toggle .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Product List View */
.product-card-list {
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: all 0.2s ease;
}

.product-card-list:hover {
    background-color: #f8f9fa;
}

.product-card-list .product-image {
    width: 120px;
    height: 80px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.product-card-list .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 6px;
}

.product-specifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.product-specifications .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile Filters */
.filters-mobile-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .catalog-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1050;
        background: white;
        transition: left 0.3s ease;
        overflow-y: auto;
        min-height: auto;
        border-right: none;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .catalog-filters.show {
        left: 0;
    }
    
    .filters-mobile-toggle {
        display: block;
    }
    
    .product-card-list {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card-list .product-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .product-card-list {
        padding: 0.75rem;
    }
    
    .view-toggle .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .filter-section {
        padding: 0.75rem 0;
    }
}

/* Pagination Improvements */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

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

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Responsive Grid */
@media (min-width: 1400px) {
    .col-xl-3 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Filter Reset Button */
.filter-section .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    font-size: 0.875rem;
}

.filter-section .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Brand Specific Styles */
.brand-card {
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.brand-card .card-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.brand-card .card-title a:hover {
    color: var(--primary-color);
}

.brand-logo {
    border-radius: 8px;
    background: white;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brand-logo-large {
    border-radius: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.brand-logo-placeholder {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.brand-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Brand Content Styling */
.brand-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 0.75rem;

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}

/* Featured Brands Section */
.featured-brand-logo, .featured-brand-placeholder {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.featured-brand-logo:hover, .featured-brand-placeholder:hover {
    transform: scale(1.05);
}

/* Brand Statistics */
.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Responsive Improvements for Brands */
@media (max-width: 768px) {
    .brand-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-card .brand-logo {
        margin-right: 0 !important;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .brand-content {
        padding: 1.5rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}