/* ===== MODERN DESIGN SYSTEM ===== */

:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ===== GLOBAL STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */

.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    text-decoration: none;
    color: var(--gray-900) !important;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    display: block;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.modern-dropdown {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.modern-dropdown .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== CART SIDEBAR ===== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-900);
}

.btn-close-cart {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-close-cart:hover {
    color: var(--gray-900);
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px); /* Hauteur fixe moins header */
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 200px); /* Hauteur maximale pour forcer le scroll */
    min-height: 300px; /* Hauteur minimale */
    -webkit-overflow-scrolling: touch; /* Scroll fluide sur iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #007bff #f1f1f1; /* Firefox */
}

/* Styles de scrollbar pour WebKit (Chrome, Safari) */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0; /* Empêche le footer de se réduire */
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cart-btn:hover {
    color: var(--primary-color);
}

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

/* ===== MOBILE MENU TOGGLE ===== */

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    margin: 6px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.6));
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ===== FEATURES SECTION ===== */

.features-section {
    background: var(--gray-50);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h5 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    margin: 0;
}

/* ===== BUTTONS ===== */

.btn {
    font-weight: 500;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: transparent;
}

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== ABOUT SECTION ===== */

.about-section {
    padding: var(--section-padding);
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-subtext {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content {
    padding-left: 2rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== PRODUCTS SECTION ===== */

.products-section {
    padding: var(--section-padding);
}

.product-filters {
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.product-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

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

.product-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-rating i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-price {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

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

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-stock.in-stock {
    color: var(--success-color);
}

.product-stock.out-of-stock {
    color: var(--danger-color);
}

/* ===== CART STYLES ===== */

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--gray-300);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.75rem;
}

.quantity-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.remove-btn:hover {
    color: var(--danger-color);
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-total {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== CHECKOUT MODAL ===== */

.checkout-modal,
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.checkout-modal.show,
.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content,
.confirmation-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.checkout-modal.show .checkout-modal-content,
.confirmation-modal.show .confirmation-modal-content {
    transform: translateY(0);
}

.checkout-header,
.confirmation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.checkout-body,
.confirmation-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 200px);
}

.checkout-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: #f8f9fa;
    flex-shrink: 0;
}

/* Scroll dans le body du modal */
.checkout-body::-webkit-scrollbar {
    width: 6px;
}

.checkout-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.checkout-body::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.checkout-body::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.confirmation-header {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.checkout-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.checkout-summary {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.order-items {
    margin: 1rem 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    text-align: right;
}

.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.checkout-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.checkout-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkout-notice {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
}

.checkout-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.checkout-actions,
.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.confirmation-body {
    padding: 2rem;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-content {
        height: calc(100vh - 100px);
    }

    .cart-items {
        max-height: calc(100vh - 180px);
        padding: 0.75rem;
    }

    .cart-footer {
        padding: 1rem;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .checkout-actions .btn {
        width: 100%;
    }
}

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

    .hero-stats .row {
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cart-item-controls {
        justify-content: center;
    }
}

/* ===== TESTIMONIALS SECTION ===== */

.testimonials-section {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

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

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h6 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== CONTACT SECTION ===== */

.contact-section {
    padding: var(--section-padding);
}

.contact-info {
    padding-right: 2rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.contact-details h6 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form select.form-control {
    cursor: pointer;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */

.footer {
    background: var(--gray-900) !important;
    color: var(--gray-300);
}

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

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

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

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    background: var(--gray-800);
    color: var(--white);
    border-radius: 0;
}

.newsletter-form .form-control:focus {
    background: var(--gray-700);
    box-shadow: none;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .btn {
    border-radius: 0;
    border: none;
    padding: 0.75rem 1rem;
}

.footer-divider {
    border-color: var(--gray-700);
    margin: 2rem 0;
}

.copyright {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.875rem;
}

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

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

/* ===== ADDITIONAL RESPONSIVE STYLES ===== */

@media (max-width: 992px) {
    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 2rem;
    }

    .contact-method {
        margin-bottom: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }

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

@media (max-width: 576px) {
    .testimonial-content p {
        font-size: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

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

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== IMAGE OPTIMIZATIONS ===== */

/* Optimisation des images produits */
.product-image img,
.about-image img,
.testimonial img,
.hero-fallback {
    transition: transform var(--transition-normal);
}

/* Effet de zoom sur les images produits */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Optimisation des galeries d'images */
.gallery-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Images responsives */
.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Amélioration des images de la galerie footer */
.footer-gallery img {
    transition: transform var(--transition-fast);
}

.footer-gallery:hover img {
    transform: scale(1.1);
}

/* Amélioration de l'affichage des avatars */
.author-avatar img,
.testimonial-author img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

/* Style pour les images de salon */
.salon-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.salon-showcase img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.salon-showcase img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Amélioration des images de produits dans le panier */
.cart-item-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.cart-item-image img {
    transition: transform var(--transition-fast);
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

/* Lightbox simple pour les images */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

/* Responsive pour les images */
@media (max-width: 768px) {
    .salon-showcase {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }

    .salon-showcase img {
        height: 150px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ===== CHECKOUT MODAL IMPROVEMENTS ===== */

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

/* Styles pour les produits sélectionnés dans le modal */
.selected-products-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.selected-product-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.selected-product-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.selected-product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.selected-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-product-details {
    flex: 1;
}

.selected-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.selected-product-category {
    font-size: 0.75rem;
    color: #666;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.selected-product-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-product-quantity {
    font-weight: 600;
    color: #007bff;
    min-width: 30px;
    text-align: center;
}

/* Scroll dans la liste des produits sélectionnés */
.selected-products-container::-webkit-scrollbar {
    width: 6px;
}

.selected-products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.selected-products-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.selected-products-container::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Responsive pour le modal de checkout */
@media (max-width: 768px) {
    .checkout-modal-content {
        width: 95%;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .checkout-body {
        max-height: calc(95vh - 180px);
        padding: 1rem;
    }

    .selected-products-container {
        max-height: 250px;
    }

    .checkout-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .checkout-actions .btn {
        width: 100%;
    }
}

/* ===== ANIMATIONS ===== */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
