/* Variables CSS */
:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
    padding-top: 80px; /* Pour compenser la navbar fixe */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Navigation */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-black) !important;
}

.navbar-nav .nav-link {
    color: var(--primary-black) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gray-600) !important;
}

.navbar-toggler {
    border: 1px solid var(--gray-300);
    color: var(--primary-black);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    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="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-black);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.hero-cta:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    padding: 4rem 0;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.product-availability {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.availability-in-stock {
    color: #28a745;
}

.availability-out-of-stock {
    color: #dc3545;
}

.availability-coming-soon {
    color: #ffc107;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-product {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-black);
    transition: all 0.3s ease;
}

.btn-product-primary {
    background-color: var(--primary-black);
    color: var(--white);
}

.btn-product-primary:hover {
    background-color: transparent;
    color: var(--primary-black);
}

.btn-product-secondary {
    background-color: transparent;
    color: var(--primary-black);
}

.btn-product-secondary:hover {
    background-color: var(--primary-black);
    color: var(--white);
}

/* Cart */
.cart-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    padding-left: 1rem;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-variant {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--gray-100);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--gray-300);
    padding: 0.25rem;
}

.cart-total {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-total-row:last-child {
    font-weight: 700;
    font-size: 1.25rem;
    border-top: 1px solid var(--gray-300);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Forms */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

/* Buttons */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-black);
    border-color: var(--primary-black);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-black);
    color: var(--white);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background-color: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--white);
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-link {
    color: #d0d0d0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--white) !important;
    transform: translateX(4px);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--white) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.newsletter-btn {
    transition: all 0.3s ease;
    border: 1px solid #333 !important;
}

.newsletter-btn:hover {
    background: var(--primary-black) !important;
    color: var(--white) !important;
    border-color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-grid {
        padding: 2rem 0;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-details {
        padding-left: 0;
        margin-top: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-black);
    animation: spin 1s ease-in-out infinite;
}

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

