
:root {
    /* Palette Sombre (Par Défaut) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-primary: #d4af8f;
    --accent-secondary: #a37a5d;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .header-controls,
html[dir="rtl"] .cart-total,
html[dir="rtl"] .cart-item,
html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .cart-item-details,
html[dir="rtl"] .footer-col,
html[dir="rtl"] .about-text,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .section-heading {
    text-align: right;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .section-heading .label {
    text-align: center;
}

body.light-mode {
    /* Palette Claire */
    --bg-primary: #fefefe;
    --bg-secondary: #f5f5f5;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --accent-primary: #a37a5d;
    --accent-secondary: #8b5e3c;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --gradient-bg: linear-gradient(135deg, #fefefe 0%, #f5f5f5 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

h1, h2, h3, .hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
}

/* === Layout & Conteneurs Avancés === */
.section-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 5%;
    background: var(--gradient-bg);
}

.content-block {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

html[dir="rtl"] .header-controls {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switcher {
    direction: ltr;
}

.floating-bg-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.03;
    filter: blur(40px);
    z-index: 1;
    animation: float 20s infinite ease-in-out;
}
.floating-bg-element:nth-child(1) { width: 50vw; height: 50vw; top: -10%; right: -10%; animation-delay: 0s; }
.floating-bg-element:nth-child(2) { width: 40vw; height: 40vw; bottom: -5%; left: -5%; animation-delay: -5s; }
.floating-bg-element:nth-child(3) { width: 30vw; height: 30vw; top: 50%; left: 60%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === Header Minimaliste & Flottant === */
.main-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px var(--shadow-color);
}
body.light-mode .main-header { background-color: rgba(254, 254, 254, 0.8); }

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent-primary); font-style: italic; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-fast);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* === Boutons & Contrôles === */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-elevated);
}
.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}
.primary-btn:hover::before { left: 100%; }
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 143, 0.25);
}

/* === Hero Section - Typographique et Cinématique === */
#hero {
    padding-top: 8rem;
    text-align: center;
}
.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero-cta {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

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

/* === Section Produits - Galerie Artistique === */
.section-heading {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
}
.section-heading.animated { animation: fadeUp 1s forwards; }
.section-heading .label {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.section-heading h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    opacity: 0;
}
.products-grid.animated {
    animation: fadeUp 1s 0.3s forwards;
}

.product-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}
.product-card.animated {
    animation: fadeUp 0.6s forwards;
}
.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px var(--shadow-color);
}

.product-img-container {
    height: 420px;
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-info {
    padding: 2rem;
}
.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.product-price {
    font-size: 1.3rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* === Panier Modale - Design Plat et Fluide === */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cart-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cart-modal {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cart-modal-overlay.active .cart-modal {
    transform: translateX(0);
}

.cart-header {
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 { font-size: 1.8rem; }

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}
.cart-item-img { width: 80px; height: 100px; object-fit: cover; border-radius: 10px; }
.cart-item-details h4 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.cart-item-details .price { color: var(--accent-primary); font-weight: 600; }
.remove-item { color: var(--text-secondary); font-size: 1rem; }
.remove-item:hover { color: #ff6b6b; }

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-elevated);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* === Footer === */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.2rem; color: var(--accent-primary); }
.footer-col p, .footer-col a { color: var(--text-secondary); margin-bottom: 0.8rem; display: block; text-decoration: none; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--text-primary); }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.about-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    max-width: 100%;
}

/* Carte QR Code */



.qr-code-img {
    width: 100%;
    max-width: 250px;        /* Largeur maximale */
    height: auto;            /* Maintient les proportions */
    border-radius: 10px;
    transition: transform 0.5s ease;
    display: block;          /* Important pour centrer */
    margin: 0 auto;          /* Centre l'image dans son conteneur */
}

/* Responsive pour mobile */
@media (max-width: 1024px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .qr-card {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-content-wrapper {
        gap: 2rem;
    }
    
    .qr-card {
        padding: 2rem;
    }
    
    .qr-image-wrapper {
        padding: 1rem;
    }
}

        /* AJOUTE dans la section CSS existante */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 3rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

        /* Vidéo comme arrière-plan */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1);
}

/* Assure que tout le reste est au-dessus */
#hero .section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.4) 0%, 
        rgba(26, 26, 26, 0.7) 100%
    );
    z-index: 1;
}

#hero .floating-bg-element {
    z-index: 2;
}

#hero .content-block {
    z-index: 20;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    .section-wrapper { padding: 4rem 5%; }
    .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
    .products-grid { grid-template-columns: 1fr; }
    .cart-modal { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-header {
        top: 1rem;
        width: calc(100% - 20px);
        padding: 0.75rem 0.9rem;
        border-radius: 24px;
    }

    .logo {
        font-size: 0.95rem;
    }

    .header-controls {
        gap: 0.45rem;
    }

    .lang-switcher {
        padding: 0.18rem;
        gap: 0.1rem;
    }

    .lang-btn {
        font-size: 0.72rem;
        padding: 0.32rem 0.55rem;
        min-width: 40px;
    }

    .icon-btn {
        font-size: 0.95rem;
        padding: 0.35rem;
    }

    .cart-count-badge {
        top: -4px;
        right: -4px;
    }

    .nav-links {
        display: none;
    }

    #hero {
        padding-top: 7.5rem;
    }
}