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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 24px;
    --card-gap: 2rem;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bannière promo Noël */
.promo-banner-noel {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 30%, #dc2626 60%, #991b1b 100%);
    background-size: 200% 100%;
    animation: gradientMove 8s ease infinite;
    color: white;
    padding: 0.75rem 2rem;
    text-align: center;
    position: fixed;
    top: 130px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 999;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.promo-banner-noel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 4s infinite;
}

.promo-banner-noel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.promo-content-noel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.promo-icon-noel {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.promo-icon-noel:first-child {
    animation-delay: 0s;
}

.promo-icon-noel:last-child {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.promo-text-noel {
    color: white;
}

.promo-code-noel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    animation: pulse 2s infinite;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }
}

/* Flocons de neige */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    animation-duration: var(--fall-duration, 8s);
    animation-delay: var(--fall-delay, 0s);
    left: var(--fall-left, 0%);
}

.snowflake:nth-child(1) { --fall-left: 10%; --fall-duration: 6s; --fall-delay: 0s; }
.snowflake:nth-child(2) { --fall-left: 20%; --fall-duration: 8s; --fall-delay: 1s; }
.snowflake:nth-child(3) { --fall-left: 30%; --fall-duration: 7s; --fall-delay: 0.5s; }
.snowflake:nth-child(4) { --fall-left: 40%; --fall-duration: 9s; --fall-delay: 1.5s; }
.snowflake:nth-child(5) { --fall-left: 50%; --fall-duration: 6.5s; --fall-delay: 0.3s; }
.snowflake:nth-child(6) { --fall-left: 60%; --fall-duration: 7.5s; --fall-delay: 1.2s; }
.snowflake:nth-child(7) { --fall-left: 70%; --fall-duration: 8.5s; --fall-delay: 0.7s; }
.snowflake:nth-child(8) { --fall-left: 80%; --fall-duration: 6.8s; --fall-delay: 1.8s; }
.snowflake:nth-child(9) { --fall-left: 90%; --fall-duration: 7.2s; --fall-delay: 0.4s; }
.snowflake:nth-child(10) { --fall-left: 15%; --fall-duration: 8.2s; --fall-delay: 1.1s; }
.snowflake:nth-child(11) { --fall-left: 75%; --fall-duration: 6.3s; --fall-delay: 0.6s; }
.snowflake:nth-child(12) { --fall-left: 55%; --fall-duration: 7.8s; --fall-delay: 1.4s; }

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) rotate(360deg);
        opacity: 0;
    }
}

/* Guirlandes décoratives */
.garland {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #10b981 10%,
        #34d399 20%,
        #10b981 30%,
        #34d399 40%,
        #10b981 50%,
        #34d399 60%,
        #10b981 70%,
        #34d399 80%,
        #10b981 90%,
        transparent 100%
    );
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    z-index: 2;
    animation: garlandGlow 2s ease-in-out infinite alternate;
}

.garland-top {
    top: 0;
}

.garland-bottom {
    bottom: 0;
}

@keyframes garlandGlow {
    0% {
        opacity: 0.6;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 2px 12px rgba(16, 185, 129, 0.8);
    }
}

/* Étoiles scintillantes */
.twinkling-stars {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.star {
    position: absolute;
    font-size: 0.8rem;
    color: #fbbf24;
    animation: twinkle 2s ease-in-out infinite;
    top: 50%;
    transform: translateY(-50%);
}

.star:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    left: 50%;
    animation-delay: 0.7s;
    font-size: 1rem;
}

.star:nth-child(3) {
    left: 85%;
    animation-delay: 1.3s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

@media (max-width: 768px) {
    .promo-banner-noel {
        top: 95px;
        padding: 0.6rem 1rem;
    }
    
    .promo-content-noel {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .promo-icon-noel {
        font-size: 1rem;
    }
    
    .promo-code-noel {
        padding: 0.2rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding-top: 155px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 2px solid #ddd;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.375rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 113px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #555;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.owner-mode-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-mode-btn:hover {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.1);
}

.owner-mode-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 50%, #e9d5ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    padding: 190px 0 60px;
    box-sizing: border-box;
    border-bottom: 3px solid #c084fc;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(196, 181, 253, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.2) 0%, transparent 60%);
    animation: rotateGradient 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(255, 255, 255, 0.15) 80px, rgba(255, 255, 255, 0.15) 160px),
        repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(255, 255, 255, 0.08) 80px, rgba(255, 255, 255, 0.08) 160px);
    background-size: 200% 200%;
    animation: patternMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

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

/* Éléments décoratifs géométriques */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Formes géométriques abstraites animées */
.savings-badge {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(196, 181, 253, 0.4);
    animation: floatBadge 10s ease-in-out infinite;
    z-index: 1;
}

.badge-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    border-color: rgba(196, 181, 253, 0.35);
    animation-name: floatBadge, pulseBadge;
    animation-duration: 12s, 4s;
    animation-iteration-count: infinite, infinite;
}

.badge-2 {
    width: 180px;
    height: 180px;
    top: 60%;
    right: 8%;
    animation-delay: 2s;
    border-color: rgba(167, 139, 250, 0.35);
    animation-name: floatBadge, pulseBadge;
    animation-duration: 15s, 5s;
    animation-iteration-count: infinite, infinite;
    animation-direction: reverse, normal;
}

.badge-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
    border-color: rgba(192, 132, 252, 0.3);
    animation-name: floatBadge, pulseBadge;
    animation-duration: 14s, 3.5s;
    animation-iteration-count: infinite, infinite;
}

.badge-4 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 12%;
    animation-delay: 1s;
    border-color: rgba(167, 139, 250, 0.3);
    animation-name: floatBadge, pulseBadge;
    animation-duration: 13s, 4.5s;
    animation-iteration-count: infinite, infinite;
}

.badge-5 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
    border-color: rgba(196, 181, 253, 0.25);
    animation-name: floatBadgeCenter, pulseBadge;
    animation-duration: 16s, 5.5s;
    animation-iteration-count: infinite, infinite;
}

@keyframes floatBadgeCenter {
    0% {
        transform: translateX(-50%) translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(-50%) translate(30px, -40px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translateX(-50%) translate(0, -60px) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translateX(-50%) translate(-30px, -40px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translateX(-50%) translate(0, 0) rotate(360deg) scale(1);
    }
}

@keyframes floatBadge {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40px, -50px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translate(20px, -80px) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translate(-30px, -60px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

/* Particules flottantes */
.hero-decorations::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(192, 132, 252, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(196, 181, 253, 0.4), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(192, 132, 252, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes particleFloat {
    0% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.8;
    }
    100% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 88px;
    }
    
    .savings-badge {
        display: none;
    }
}

.hero-background {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #5b21b6;
    width: 100%;
    max-width: 1400px;
    padding: 2rem 2rem;
    box-sizing: border-box;
}

.hero-title-new-arrivals {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #5b21b6;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 1rem;
    position: relative;
}

.hero-title-new-arrivals::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #a855f7;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: #6b21a8;
    font-weight: 500;
    padding: 0 1rem;
}

/* Grille des produits dans le hero */
.hero-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto 3rem;
    max-width: 1200px;
    position: relative;
    z-index: 3;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(124, 58, 237, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 16px rgba(216, 180, 254, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
}

.hero-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(216, 180, 254, 0.1) 0%, rgba(196, 181, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
    border-radius: 20px;
}

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

.hero-product-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 32px rgba(124, 58, 237, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 6px 16px rgba(216, 180, 254, 0.2);
    border-color: rgba(255, 255, 255, 0.85);
}

.hero-product-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    z-index: 1;
}

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

.hero-product-info {
    padding: 1.5rem;
    color: var(--dark);
    background: transparent;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.hero-product-name {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    margin: 0;
    color: var(--dark);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-product-price-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-product-original-price {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.hero-product-price {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #10b981;
}

.hero-product-savings {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: #10b981;
    font-weight: 600;
}

.hero-product-btn {
    width: 100%;
    padding: 0.875rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.hero-product-btn:hover {
    background: #6d28d9;
}


.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #7c3aed;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #7c3aed;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Animations simplifiées */
.animate-slide-up,
.animate-slide-up-delay,
.animate-slide-up-delay-2 {
    /* Animations désactivées pour un design plus basique */
}

/* Sections */
.boutique-section,
.contact-section,
.legal-section {
    padding: 6rem 0;
    position: relative;
}

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

.contact-section {
    background: var(--light);
}

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

.section-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--card-gap);
    margin-top: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #ddd;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card.new-badge::before {
    content: '🆕 NOUVEAU';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: badgePulse 2s infinite ease-in-out;
}

.product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 0.5rem;
    z-index: 15;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions,
.owner-mode-active .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edit-product-btn {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

.edit-product-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.delete-product-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.delete-product-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(236, 72, 153, 0.7);
    }
}

.product-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

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

.product-image-overlay {
    display: none;
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: white;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    line-height: 1.4;
}

.product-description {
    display: none;
}

/* Icône info avec tooltip */
.product-info-icon-container {
    position: relative;
    flex-shrink: 0;
}

.product-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 0.85rem;
    cursor: help;
    transition: all 0.3s ease;
    font-style: normal;
}

.product-info-icon:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.product-description-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.product-info-icon-container:hover .product-description-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 19px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #e5e7eb;
}

.tooltip-content strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tooltip-content p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

/* Responsive tooltip */
@media (max-width: 768px) {
    .product-description-tooltip {
        width: 250px;
        right: -10px;
    }
    
    .tooltip-content {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.product-original-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.product-savings {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #444 0%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Shop Controls */
.shop-controls {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #333;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
    overflow: hidden;
}

.checkout-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: modalBackdropPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes modalBackdropPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.checkout-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 60%);
    animation: checkoutBackgroundPulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.checkout-modal .modal-content::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.02) 50%, transparent 70%);
    background-size: 100px 100px;
    animation: checkoutGridMove 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes checkoutBackgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.9;
        transform: scale(1.05) rotate(2deg);
    }
    66% {
        opacity: 0.95;
        transform: scale(0.98) rotate(-2deg);
    }
}

@keyframes checkoutGridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content h2 {
    padding: 2rem 2.5rem 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.checkout-modal .modal-content h2::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: checkoutHeaderShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes checkoutHeaderShine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0;
    }
}

#checkoutModal .modal-content > form {
    padding: 0 2.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

/* Styles pour les formulaires d'ajout/modification de produit */
#addProductModal .modal-content > form,
#editProductModal .modal-content > form {
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

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

.delete-btn {
    width: 100%;
    padding: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #333;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Bouton génération IA */
.ai-generate-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ai-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.ai-generate-btn:active {
    transform: translateY(0);
}

.ai-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Bouton changement clé API */
.ai-change-key-btn {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-change-key-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.ai-change-key-btn:active {
    transform: translateY(0);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #555;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(20px);
    overflow: hidden;
}

.cart-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.cart-sidebar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(99, 102, 241, 0.03) 2px,
            rgba(99, 102, 241, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 92, 246, 0.03) 2px,
            rgba(139, 92, 246, 0.03) 4px
        );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.cart-sidebar.open {
    right: 0;
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        right: -400px;
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-header {
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
    animation: fadeInDown 0.5s ease 0.1s both;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cart-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerShine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header h2::before {
    content: '🛒';
    font-size: 1.3rem;
}

.close-cart {
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: fadeInUp 0.4s ease both;
    z-index: 1;
}

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

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.15s; }
.cart-item:nth-child(3) { animation-delay: 0.2s; }
.cart-item:nth-child(4) { animation-delay: 0.25s; }
.cart-item:nth-child(5) { animation-delay: 0.3s; }
.cart-item:nth-child(n+6) { animation-delay: 0.35s; }

.cart-item:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #f1f5f9;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.4;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-quantity {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.cart-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.cart-item-remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.5s ease 0.2s both;
    position: relative;
    z-index: 1;
}

.cart-total {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
}

.cart-total span {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.checkout-btn {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Checkout Modal Styles */
.checkout-modal .modal-content {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.checkout-section {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.5s ease both;
    opacity: 0;
}

.modal.show .checkout-section:nth-child(1) { animation-delay: 0.1s; }
.modal.show .checkout-section:nth-child(2) { animation-delay: 0.15s; }
.modal.show .checkout-section:nth-child(3) { animation-delay: 0.2s; }
.modal.show .checkout-section:nth-child(4) { animation-delay: 0.25s; }

.modal.show .checkout-section {
    opacity: 1;
}

/* Animation pour le header du checkout */
.checkout-modal .modal-content h2 {
    animation: fadeInDown 0.4s ease 0.05s both;
}

.checkout-section:last-of-type {
    margin-bottom: 0;
}

.checkout-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
    transform: translateX(4px);
}

.payment-method input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.payment-method span {
    font-weight: 500;
    color: #1e293b;
    font-size: 1rem;
}

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

.payment-method:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.payment-details {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.payment-details p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Code promo */
.promo-code-section {
    margin-top: 1rem;
}

.promo-code-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.promo-code-input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-code-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.apply-promo-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.apply-promo-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.apply-promo-btn:active {
    transform: translateY(0);
}

.promo-code-message {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    min-height: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.promo-success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: slideInRight 0.3s ease;
}

.promo-success-message .promo-success {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: shake 0.4s ease;
}

.promo-error-message .promo-error {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

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

.checkout-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    animation: fadeInLeft 0.3s ease both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.summary-item:nth-child(1) { animation-delay: 0.05s; }
.summary-item:nth-child(2) { animation-delay: 0.1s; }
.summary-item:nth-child(3) { animation-delay: 0.15s; }
.summary-item:nth-child(4) { animation-delay: 0.2s; }
.summary-item:nth-child(n+5) { animation-delay: 0.25s; }

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

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 600;
    color: #1e293b;
}

.summary-item-qty {
    color: #64748b;
    font-size: 0.9rem;
}

.summary-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.checkout-total {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #475569;
}

.total-line.total-final {
    border-top: 2px solid #cbd5e1;
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.total-line.total-final span:last-child {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.cancel-btn {
    flex: 1;
    padding: 1rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
}

.checkout-modal .submit-btn {
    flex: 2;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-modal .submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.checkout-modal .submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .checkout-modal .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .checkout-modal .modal-content h2 {
        padding: 1.5rem 1.25rem 1rem;
        font-size: 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    #checkoutModal .modal-content > form {
        padding: 0 1.25rem 1.5rem;
    }
    
    .checkout-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .payment-methods {
        gap: 0.75rem;
    }
    
    .payment-method {
        padding: 1rem;
    }
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.payment-method input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

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

.payment-method span {
    font-size: 1rem;
}

.payment-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-details input {
    font-family: 'Poppins', sans-serif;
}

/* Formatage automatique du numéro de carte */
#cardNumber {
    letter-spacing: 2px;
}

#cardNumber:focus {
    letter-spacing: 3px;
}

.checkout-summary {
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 500;
    color: var(--dark);
}

.summary-item-qty {
    font-size: 0.9rem;
    color: var(--gray);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-total {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.total-line.total-final {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-actions .cancel-btn,
.checkout-actions .submit-btn {
    flex: 1;
}

/* Confirmation Modal Styles */
.confirmation-content {
    padding: 2rem 1rem;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-content h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.confirmation-message {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.order-number {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-number strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.confirmation-details {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-details strong {
    color: var(--dark);
}

/* Styles pour la gestion des commandes */
.orders-section {
    padding: 1rem 0;
}

.orders-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Le h3 est dans le header du panneau, pas besoin ici */

.orders-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-status-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s ease;
}

.filter-status-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-status-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.order-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem 0;
}

.order-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.order-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-customer {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark);
}

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

.order-items strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.order-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-items li {
    padding: 0.25rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.order-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-total strong {
    font-size: 1.2rem;
    color: var(--dark);
}

.order-payment {
    font-size: 0.85rem;
    color: var(--gray);
}

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

.order-actions button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.order-actions .status-btn {
    background: #64748b;
    color: white;
}

.order-actions .status-btn:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.order-actions .invoice-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
}

.order-actions .invoice-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .order-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .status-btn {
        width: 100%;
    }
}

/* Floating Add Button */
.floating-add-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #333;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.floating-add-btn:hover {
    background: #555;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    border: 1px solid #ddd;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--gray);
}

/* Section Mentions Légales */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.legal-section-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.legal-section-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal-section-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.legal-section-item ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section-item li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.5rem;
}

.legal-section-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Smooth scroll reveal */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panneau de personnalisation du design */
.design-panel-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #333;
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: background 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.design-panel-toggle:hover {
    background: #555;
}

.design-panel-toggle.owner-visible {
    display: flex;
}

/* Bouton panneau commandes */
.orders-panel-toggle {
    bottom: 6rem; /* Au-dessus du bouton design */
    background: #6366f1;
}

.orders-panel-toggle:hover {
    background: #4f46e5;
}

.design-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.design-panel.open {
    right: 0;
}

/* Panneau des commandes - plus large (50% de la page) */
#ordersPanel {
    width: 50vw;
    max-width: 800px;
    min-width: 500px;
    right: -50vw;
}

#ordersPanel.open {
    right: 0;
}

@media (max-width: 1024px) {
    #ordersPanel {
        width: 70vw;
        max-width: 700px;
        min-width: 400px;
        right: -70vw;
    }
}

@media (max-width: 768px) {
    #ordersPanel {
        width: 100vw;
        min-width: 100%;
        right: -100vw;
    }
}

.design-panel-header {
    padding: 1.5rem;
    border-bottom: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: white;
}

.design-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.panel-tab-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.design-panel-content {
    overflow-y: auto;
    flex: 1;
}

.toggle-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.design-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.design-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-picker-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.color-picker-group label span:first-child {
    font-weight: 500;
    color: var(--dark);
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker-group input[type="color"]:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.range-group label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-group label span:first-child {
    font-weight: 500;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
}

.range-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.range-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.design-action-btn {
    width: 100%;
    padding: 0.875rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 0.5rem;
}

.design-action-btn:hover {
    background: #555;
}

.design-action-btn.secondary {
    background: #666;
}

.design-action-btn.secondary:hover {
    background: #777;
}

/* Options de fond */
.background-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

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

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.background-option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.background-option label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.background-option label span:first-child {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.background-option input[type="url"],
.background-option input[type="text"],
.background-option select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.background-option input[type="url"]:focus,
.background-option input[type="text"]:focus,
.background-option select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Vidéo de fond */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

body.has-video-background {
    position: relative;
}

body.has-video-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: -2;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero-product-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .design-panel {
        width: 100%;
        right: -100%;
    }
    
    .design-panel-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1rem;
        left: 1rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title-new-arrivals {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem 1rem;
    }

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

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
        max-width: 400px;
        padding: 0 0.5rem;
    }
    
    .hero-product-image-wrapper {
        height: 220px;
    }
    
    .animation-circle,
    .animation-ring {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

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

    .filter-buttons {
        gap: 0.5rem;
    }

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

