/*
Theme Name: L'Enfant Déguisé
Theme URI: https://www.lenfant-deguise.fr
Author: Votre Nom
Author URI: https://www.votre-site.fr
Description: Thème e-commerce sur mesure pour L'Enfant Déguisé - Déguisements magiques pour enfants. Direction artistique "Nuit Magique" avec ambiance galaxie étoilée.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lenfant-deguise
Tags: e-commerce, woocommerce, custom-theme, children, costumes

Ce thème a été développé sur mesure pour L'Enfant Déguisé.
Basé sur Underscores (_s) par Automattic.
*/

/* ==========================================================================
   TABLE DES MATIÈRES
   ==========================================================================
   1. Variables CSS (Design Tokens)
   2. Reset & Base
   3. Typographie
   4. Layout & Conteneurs
   5. Header & Navigation
   6. Composants (Boutons, Cards, Alertes)
   7. Page d'Accueil
   8. WooCommerce Overrides
   9. Footer
   10. Utilitaires
   11. Responsive
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS - DESIGN TOKENS "NUIT MAGIQUE"
   ========================================================================== */

:root {
    /* Couleurs principales */
    --color-night: #1e1026;
    --color-night-deep: #150a1a;
    --color-cream: #f5e8da;
    --color-cream-light: #faf4ed;
    --color-rose: #b2728b;
    --color-rose-dark: #9a5f77;
    --color-rose-light: #c98fa5;
    --color-gold: #f4d03f;
    --color-gold-light: #f9e076;
    --color-text-dark: #2b192e;
    --color-text-light: #ffffff;
    --color-text-muted: #6b5a6e;

    /* Typographie */
    --font-heading: 'Bree Serif', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Tailles de police */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);

    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Bordures & Ombres */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(30, 16, 38, 0.1);
    --shadow-md: 0 4px 12px rgba(30, 16, 38, 0.15);
    --shadow-lg: 0 10px 40px rgba(30, 16, 38, 0.2);
    --shadow-glow: 0 0 20px rgba(244, 208, 63, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-index - Échelle centralisée */
    --z-content: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    --z-header: 99999;
    --z-submenu: 999999;

    /* Conteneur */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-night);
    background-image: url('assets/images/stars-pattern.png');
    background-repeat: repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-md);
}

.text-dark {
    color: var(--color-text-dark);
}

.text-muted {
    color: var(--color-text-muted);
}

/* ==========================================================================
   4. LAYOUT & CONTENEURS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    overflow: visible;
}

.container--wide {
    max-width: 1440px;
}

.container--narrow {
    max-width: 800px;
}

.content-block {
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.content-block--light {
    background-color: var(--color-cream-light);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 TOP BAR - Bandeau défilant
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--color-rose);
    color: var(--color-text-light);
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    overflow: hidden;
}

.top-bar__marquee {
    display: flex;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.top-bar__item {
    padding-inline: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   5.2 HEADER PRINCIPAL
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--color-cream);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding: var(--space-md) 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    overflow: visible;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: clamp(50px, 8vw, 80px);
    width: auto;
}

/* --------------------------------------------------------------------------
   5.3 NAVIGATION PRINCIPALE
   -------------------------------------------------------------------------- */
.main-nav {
    display: none;
    overflow: visible;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.main-nav__list > li {
    position: relative;
    overflow: visible;
}

.main-nav__list > li > a {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-text-dark);
    padding: var(--space-sm) 0;
    position: relative;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.main-nav__list > li > a:hover {
    opacity: 0.85;
}

/* Soulignement animé au survol (sauf pour les éléments avec sous-menu) */
.main-nav__list > li:not(.menu-item-has-children) > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-rose);
    transition: width var(--transition-base);
}

.main-nav__list > li:not(.menu-item-has-children) > a:hover::after,
.main-nav__list > li:not(.menu-item-has-children).current-menu-item > a::after {
    width: 100%;
}

/* Flèche indicatrice pour les éléments avec sous-menu */
.main-nav__list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    position: static;
    background: none;
    transition: transform 0.3s ease;
}

.main-nav__list > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   5.4 SOUS-MENUS DÉROULANTS - DESKTOP
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    /* Conteneur du sous-menu */
    .main-nav .sub-menu,
    .main-nav ul ul {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 220px;
        background: var(--color-rose);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(43, 25, 46, 0.25);
        padding: 0.75rem 0;
        z-index: var(--z-submenu);
        list-style: none;
        margin: 0;
        display: block;
        
        /* Masquage par défaut */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Affichage au survol */
    .main-nav__list > li:hover > .sub-menu,
    .main-nav li:hover > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    /* Éléments LI du sous-menu */
    .main-nav .sub-menu > li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        background: transparent;
    }

    /* Liens A du sous-menu */
    .main-nav .sub-menu a {
        display: block;
        width: 100%;
        padding: 0.75rem 1.5rem;
        margin: 0;
        color: #ffffff;
        background: transparent;
        font-family: var(--font-heading);
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.4;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        border-left: 3px solid transparent;
        transition: all 0.25s ease;
    }

    /* Retirer le pseudo-élément sur les liens du sous-menu */
    .main-nav .sub-menu a::after {
        display: none;
        content: none;
    }

    /* Survol des liens du sous-menu */
    .main-nav .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        border-left-color: #ffffff;
        padding-left: 1.75rem;
    }

    /* Sous-sous-menus (3ème niveau) */
    .main-nav .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        transform: translateX(10px) translateY(0);
    }

    .main-nav .sub-menu li:hover > .sub-menu {
        transform: translateX(0) translateY(0);
    }
}

/* --------------------------------------------------------------------------
   5.5 ICÔNES HEADER
   -------------------------------------------------------------------------- */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-icon {
    position: relative;
    color: var(--color-text-dark);
    transition: opacity var(--transition-fast);
}

.header-icon:hover {
    opacity: 0.8;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-rose);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   5.6 MENU MOBILE (Hamburger)
   -------------------------------------------------------------------------- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    background: none;
    border: none;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle__bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-base);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   5.7 NAVIGATION MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-rose);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        padding: var(--space-xl) var(--space-lg);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 100000;
    }
    
    .main-nav.is-open {
        left: 0;
        display: block;
    }
    
    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-nav__list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .main-nav__list > li > a {
        padding: 1rem 0;
        color: #ffffff;
    }
    
    /* Sous-menus en mobile */
    .main-nav .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    
    .main-nav__list > li.is-open > .sub-menu {
        max-height: 500px;
    }
    
    .main-nav .sub-menu a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        color: #ffffff;
    }
    
    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99999;
    }
    
    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   6. COMPOSANTS
   ========================================================================== */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-cream);
    color: var(--color-cream);
}

.btn--outline:hover {
    background-color: var(--color-cream);
    color: var(--color-text-dark);
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
}

/* Cards Produit */
.product-card {
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: var(--space-lg);
    text-align: center;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.product-card__price {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-rose);
    font-weight: 700;
}

.product-card__price del {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-right: var(--space-sm);
}

/* Alert Box */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert-box--info {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.alert-box--warning {
    background-color: #fff8e1;
    border-left: 4px solid var(--color-gold);
    color: #f57c00;
}

.alert-box--success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.alert-box__icon {
    flex-shrink: 0;
    font-size: var(--text-xl);
}

/* ==========================================================================
   7. PAGE D'ACCUEIL
   ========================================================================== */

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    background-color: var(--color-night);
}

.hero-slider__track {
    position: relative;
    min-height: 600px;
    height: 80vh;
    max-height: 900px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(30, 16, 38, 0.2) 0%,
        rgba(30, 16, 38, 0.5) 100%
    );
    z-index: 2;
}

.hero-slide__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-2xl);
    padding-top: 250px;
    max-width: 800px;
}

.hero-slide__title {
    font-size: var(--text-4xl);
    color: var(--color-text-light);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-md);
}

.hero-slide__subtitle {
    font-size: var(--text-xl);
    color: var(--color-cream);
    margin-bottom: var(--space-xl);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Pagination du slider */
.hero-slider__pagination {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-slider__dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-slider__dot.is-active {
    background-color: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

/* Hero par défaut */
.hero-default {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-night) 0%, var(--color-rose-dark) 100%);
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.hero-default__content h1 {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.hero-default__content p {
    color: var(--color-cream);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

/* Navigation catégories */
.category-nav {
    padding: var(--space-3xl) 0;
}

.category-nav__title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.category-nav__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    justify-items: center;
}

@media (min-width: 576px) {
    .category-nav__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .category-nav__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .category-nav__grid {
        grid-template-columns: repeat(7, 1fr);
        gap: var(--space-md);
    }
}

.category-nav__item {
    text-align: center;
    transition: transform var(--transition-base);
}

.category-nav__item:hover {
    transform: scale(1.05);
}

.category-nav__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--color-gold);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-glow);
}

.category-nav__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-nav__label {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-text-light);
    display: block;
    line-height: 1.3;
}

@media (min-width: 1200px) {
    .category-nav__label {
        font-size: var(--text-sm);
    }
}

/* Section Best-Sellers */
.bestsellers {
    padding: var(--space-3xl) 0;
}

.bestsellers__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.bestsellers__title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}

.bestsellers__title::before,
.bestsellers__title::after {
    content: '⭐';
}

.bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .bestsellers__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .bestsellers__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Galerie "Mur des Stars" */
.gallery-stars {
    padding: var(--space-3xl) 0;
}

.gallery-stars__grid {
    columns: 2;
    column-gap: var(--space-md);
}

@media (min-width: 768px) {
    .gallery-stars__grid {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .gallery-stars__grid {
        columns: 4;
    }
}

.gallery-stars__item {
    break-inside: avoid;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.gallery-stars__item:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   8. WOOCOMMERCE OVERRIDES
   ========================================================================== */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce .price {
    font-family: var(--font-heading);
    font-size: var(--text-2xl) !important;
    color: var(--color-rose) !important;
}

.woocommerce .price del {
    font-size: var(--text-base) !important;
    color: var(--color-text-muted) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%) !important;
    color: var(--color-text-light) !important;
    font-family: var(--font-heading) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-md) var(--space-xl) !important;
    transition: all var(--transition-base) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Bouton sticky mobile */
@media (max-width: 767px) {
    .single-product .cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-cream);
        padding: var(--space-md);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: var(--z-fixed);
        display: flex;
        gap: var(--space-md);
    }

    .single-product .cart .quantity {
        flex-shrink: 0;
    }

    .single-product .cart button {
        flex: 1;
    }
}

.woocommerce .cross-sells {
    background-color: var(--color-cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
}

.woocommerce .cross-sells h2 {
    color: var(--color-text-dark);
    text-align: center;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-night-deep);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-widget__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.footer-widget__text {
    color: var(--color-cream);
    opacity: 0.8;
    line-height: 1.8;
}

.footer-widget__list li {
    margin-bottom: var(--space-sm);
}

.footer-widget__list a {
    color: var(--color-cream);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-widget__list a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-cream);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background-color: var(--color-rose);
    transform: translateY(-3px);
}

.site-footer__bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-cream);
    opacity: 0.6;
    font-size: var(--text-sm);
}

/* ==========================================================================
   10. UTILITAIRES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-night-deep);
    z-index: var(--z-modal);
    padding: var(--space-2xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.mobile-menu.is-active {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--color-text-light);
    font-size: var(--text-2xl);
}

.mobile-menu__list {
    margin-top: var(--space-3xl);
}

.mobile-menu__link {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-light);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   12. CORRECTIFS PRIORITAIRES - À NE PAS SUPPRIMER
   ========================================================================== */

/* Force overflow visible sur toute la chaîne du header */
.site-header,
.site-header__inner,
.container,
.main-nav,
.main-nav__list,
.main-nav__list > li {
    overflow: visible !important;
}

/* Header au-dessus de tout le contenu */
.site-header {
    z-index: 99999 !important;
}

/* Sous-menus encore au-dessus */
.main-nav .sub-menu,
ul.sub-menu {
    z-index: 999999 !important;
}

/* Force les styles des liens du sous-menu */
@media (min-width: 992px) {
    .main-nav .sub-menu a,
    ul.sub-menu a {
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-nav .sub-menu a::after,
    ul.sub-menu a::after {
        display: none !important;
    }
}