:root {
    /* GymDépôt Color Palette */
    --primary: 164 62% 32%; /* #1F8570 - GymDépôt Green */
    --primary-dark: 164 62% 25%; /* #197A5A */
    --primary-light: 164 62% 95%; /* #E8F5F2 */
    
    --secondary: 0 0% 0%; /* #000000 - GymDépôt Black */
    --success: 164 62% 32%; /* #1F8570 */
    --danger: 354 70% 54%; /* #DC3545 */
    --warning: 45 100% 51%; /* #FFC107 */
    --info: 164 62% 32%; /* #1F8570 */
    
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --surface-variant: 210 11% 96%; /* #F1F3F6 */
    
    --text-primary: 0 0% 0%; /* #000000 - GymDépôt Black */
    --text-secondary: 0 0% 25%; /* #404040 */
    --text-muted: 0 0% 50%; /* #808080 */
    
    --border: 164 62% 85%; /* #B3D9CF */
    --border-light: 164 62% 92%; /* #D9EDE8 */
    
    /* Spacing and Layout */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}

/* Global Styles */
body {
    font-family: var(--font-family-base);
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    line-height: var(--line-height-base);
}

/* Bootstrap customizations */
.text-primary {
    color: hsl(var(--primary)) !important;
}

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

.btn-primary, .btn-primary:active, .btn-primary:focus {
    background-color: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark)) !important;
    border-color: hsl(var(--primary-dark)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
    background-color: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
}

/* Override Bootstrap blue defaults */
.btn-info, .btn-info:active, .btn-info:focus {
    background-color: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
}

.btn-info:hover {
    background-color: hsl(var(--primary-dark)) !important;
    border-color: hsl(var(--primary-dark)) !important;
}

.text-info {
    color: hsl(var(--primary)) !important;
}

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

/* Navigation */
.navbar {
    border-bottom: 1px solid hsl(var(--border));
    backdrop-filter: blur(10px);
}

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

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

.nav-link:hover {
    color: hsl(var(--primary)) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--surface)) 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}

.hero-image {
    max-height: 400px;
    filter: drop-shadow(var(--shadow-lg));
}

/* Product Cards */
.product-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.product-image-placeholder {
    height: 200px;
    background-color: #ffffff;
    border-bottom: 1px solid hsl(var(--border));
}

.product-icon {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    filter: brightness(0) saturate(100%) invert(27%) sepia(15%) saturate(1171%) hue-rotate(195deg) brightness(97%) contrast(89%);
}

.product-icon-large {
    width: 120px;
    height: 120px;
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(27%) sepia(15%) saturate(1171%) hue-rotate(195deg) brightness(97%) contrast(89%);
}

.product-image-large {
    height: 400px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
}

.product-specs {
    font-size: 0.875rem;
}

.price {
    color: hsl(var(--primary));
}

/* Brand Cards */
.brand-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.brand-icon {
    background: hsl(var(--primary-light));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    background: hsl(var(--primary-light));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Filters Section */
.filters-section {
    background-color: hsl(var(--surface-variant));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

/* Product Detail Page */
.product-details .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.purchase-section .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
}

.purchase-section .btn-lg {
    padding: 0.75rem 1.5rem;
}

.key-features .feature-item {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.key-features .feature-item:hover {
    background-color: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

/* Specifications Table */
.table {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: hsl(var(--surface-variant));
}

/* Info Cards */
.info-card {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
}

/* Footer */
footer {
    background-color: hsl(var(--surface-variant));
    border-top: 1px solid hsl(var(--border));
}

footer a {
    color: hsl(var(--text-secondary));
    transition: color 0.3s ease;
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
    color: hsl(var(--text-muted));
}

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

.breadcrumb-item a:hover {
    color: hsl(var(--primary));
}

/* Image Fixes for Mobile */
.hero-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.card img {
    object-fit: cover;
    width: 100%;
    height: 200px;
}

/* Fix for Top 5 Section Images */
.card .row .col-md-4 img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-image {
        max-height: 300px;
        width: 100%;
        object-fit: contain;
        margin-top: 2rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Top 5 Section Mobile Fixes */
    .card .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card .row .col-md-4 img {
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .card .row .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-image {
        max-height: 250px;
        width: 100%;
        object-fit: contain;
    }
    
    .product-image-large {
        height: 250px;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    /* Product cards mobile fixes */
    .product-card img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Grid layout fixes for mobile */
    .col-lg-4, .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Animation and Transitions */
.card, .btn, .feature-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem hsla(var(--primary), 0.25);
}

/* Commercial Section Styles */
.commercial-brand-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.commercial-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.brand-icon-large {
    background: hsl(var(--primary-light));
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.comparison-card {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.comparison-card:hover {
    background-color: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

.application-item {
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-2px);
}

.contact-commercial-section {
    background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--surface)) 100%);
    border: 1px solid hsl(var(--border));
}

.brand-header-section {
    background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--surface)) 100%);
    border: 1px solid hsl(var(--border));
}

.feature-card {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

.advantage-card {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background-color: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

.application-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: hsl(var(--primary));
}

.coming-soon-section {
    background: linear-gradient(135deg, #FFF3E0 0%, hsl(var(--surface)) 100%);
    border: 1px solid hsl(var(--border));
}

/* Commercial Product Styles */
.commercial-product-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commercial-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.commercial-product-card:hover::before {
    opacity: 1;
}

.commercial-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.commercial-product-image {
    height: 180px;
    background: linear-gradient(135deg, hsl(var(--surface-variant)) 0%, hsl(var(--border-light)) 100%);
    border-bottom: 1px solid hsl(var(--border));
}

.commercial-product-icon {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1171%) hue-rotate(195deg) brightness(97%) contrast(89%);
}

.commercial-product-icon-large {
    width: 150px;
    height: 150px;
    opacity: 0.9;
    filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1171%) hue-rotate(195deg) brightness(97%) contrast(89%);
}

.commercial-product-image-large {
    height: 400px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, hsl(var(--surface-variant)) 0%, hsl(var(--border-light)) 100%);
}

.commercial-product-details .badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.commercial-specs {
    background-color: hsl(var(--surface-variant));
    border: 1px solid hsl(var(--border));
}

.criteria-card {
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.criteria-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: hsl(var(--primary));
}

.price-info-card {
    background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--surface)) 100%);
    border: 1px solid hsl(var(--border));
}

.investment-highlight {
    background-color: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
}

.contact-quote-section {
    background: linear-gradient(135deg, #FFF3E0 0%, hsl(var(--surface)) 100%);
    border: 1px solid hsl(var(--border));
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}
