/*!
Theme Name: StyleetMode Optimized
Description: Thème WooCommerce optimisé pour boutique de mode luxe avec performance améliorée, chargement d'images corrigé et design responsive perfectionné.
Author: E1 Agent
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: styleetmode
Domain Path: /languages
Tags: ecommerce, woocommerce, fashion, luxury, responsive, modern, optimized
WC requires at least: 5.0
WC tested up to: 8.0
*/

/* CSS Variables for better maintainability */
/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES - VERSION OPTIMISÉE AVEC OPACITÉS STANDARDISÉES
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Couleurs principales */
    --primary-color: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #fce7f3;
    --secondary-color: #111827;
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    
    /* ✨ OPACITÉS STANDARDISÉES */
    --opacity-high: 0.9;      /* Éléments très opaques (modals, overlays) */
    --opacity-medium: 0.6;    /* Éléments semi-transparents (badges hover) */
    --opacity-low: 0.3;       /* Éléments légers (borders, backgrounds) */
    --opacity-subtle: 0.1;    /* Effets très subtils (hover backgrounds) */
    
    /* Shadows avec opacités standardisées */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, var(--opacity-subtle));
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, var(--opacity-subtle));
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, var(--opacity-subtle));
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, var(--opacity-low));
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ═══════════════════════════════════════════════════════════════

CORRECTION LIENS BLEUS PAR DÉFAUT

═══════════════════════════════════════════════════════════════ */

/* Forcer tous les liens à utiliser la couleur primaire */

a {

color: var(--primary-color);

text-decoration: none;

transition: var(--transition);

}

a:hover,

a:focus {

color: var(--primary-dark);

text-decoration: none;

}

/* Liens visités */

a:visited {

color: var(--primary-color);

}

/* Exceptions pour les liens dans le contenu */

.entry-content a,

.page-content a,

.post-content a {

color: var(--primary-color);

text-decoration: underline;

text-decoration-color: rgba(236, 72, 153, 0.3);

text-underline-offset: 3px;

}

.entry-content a:hover,

.page-content a:hover,

.post-content a:hover {

color: var(--primary-dark);

text-decoration-color: var(--primary-dark);

}

/* Liens dans le header */

.site-header a:not(.btn) {

color: var(--secondary-color);

}

.site-header a:not(.btn):hover {

color: var(--primary-color);

}

/* Liens dans la navigation */

.main-navigation a {

color: var(--secondary-color);

}

.main-navigation a:hover,

.main-navigation a:focus,

.main-navigation .current-menu-item > a {

color: var(--primary-color);

}
/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Inter', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════════════════════════════════════════════════
   CORRECTION LIENS BLEUS PAR DÉFAUT
   ═══════════════════════════════════════════════════════════════ */

/* Forcer tous les liens à utiliser la couleur primaire */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Improved Image Loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

.image-placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    min-height: 200px;
}

/* Header Styles - Improved */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--bg-light);
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-logo:hover {
    color: var(--primary-color);
}

.site-logo .highlight {
    color: var(--primary-color);
}

/* Navigation - Enhanced */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color);
}

/* Header Actions - Improved */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action {
    background: none;
    border: none;
    padding: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-action:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    80% { transform: translateY(-1px); }
}

/* Hero Section - Optimized */
.hero-section {
    background: var(--bg-gradient);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    background: var(--primary-light);
    color: #be185d;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.promotion-box {
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    display: inline-block;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.promotion-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promotion-icon {
    font-size: 28px;
}

.promotion-text h4 {
    color: #059669;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.promotion-text p {
    color: #065f46;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.8s both;
}

/* Button Styles - Enhanced */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

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

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

/* Hero Images - Fixed Loading */
.hero-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-image-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.05), rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: var(--transition);
}

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

.hero-image-card:first-child {
    transform: rotate(2deg);
}

.hero-image-card:last-child {
    transform: rotate(-2deg);
    margin-top: 40px;
}

.hero-image-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hero-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.hero-badge-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge-overlay.new {
    background: #f97316;
}

/* Product Sections - Enhanced */
.product-section {
    padding: 80px 0;
}

.product-section.alt-bg {
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.countdown-timer .label {
    font-size: 16px;
    color: var(--text-light);
}

.countdown-display {
    background: #ef4444;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

/* WooCommerce Products - Completely Redesigned */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    height: fit-content;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Product Image Container - Fixed */
.woocommerce ul.products li.product .product-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 4/5;
}

.woocommerce ul.products li.product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover .product-image img {
    transform: scale(1.1);
}

/* Fallback for missing images */
.woocommerce ul.products li.product .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.woocommerce ul.products li.product .product-image img:not([src]),
.woocommerce ul.products li.product .product-image img[src=""],
.woocommerce ul.products li.product .product-image img[src*="data:image/svg"] {
    opacity: 0;
}

/* Product Badges - Improved */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.product-badge.hot-deal {
    background: #f97316;
}

.product-badge.sale {
    background: #10b981;
}

.product-badge.promo {
    background: #ef4444;
}

.discount-badge {
    background: #7c3aed;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

/* Product Actions - Enhanced */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.product-action-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Product Info - Redesigned */
.woocommerce ul.products li.product .product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.woocommerce ul.products li.product h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover h3 {
    color: var(--primary-color);
}

/* Pricing - Enhanced */
.woocommerce ul.products li.product .price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product .price .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.woocommerce ul.products li.product .price del {
    color: var(--text-muted);
    font-size: 16px;
}

.price-savings {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* Add to Cart Button - Enhanced */
.woocommerce ul.products li.product .button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce ul.products li.product:hover .button {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Services Section - Enhanced */
.services-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-item {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer - Enhanced */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 24px;
    position: relative;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-section .site-logo {
    color: white;
    margin-bottom: 16px;
    display: block;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: #374151;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 14px;
    border: 1px solid #374151;
    border-radius: var(--radius-md);
    background: #1f2937;
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Menu - Enhanced */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

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

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

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-images {
        grid-template-columns: 1fr;
    }
    
    .hero-image-card:first-child,
    .hero-image-card:last-child {
        transform: none;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .product-section,
    .services-section {
        padding: 60px 0;
    }
    
    .site-footer {
        padding: 60px 0 20px;
    }
    
    .woocommerce ul.products li.product .product-info {
        padding: 16px;
    }
}

/* Performance Optimizations */
.woocommerce ul.products li.product {
    will-change: transform;
}

.hero-image-card {
    will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d91f85;
        --text-color: #000;
        --border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SOUS-MENUS DÉROULANTS - VERSION CORRIGÉE
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   SOUS-MENUS DÉROULANTS - VERSION FINALE CORRIGÉE
   ═══════════════════════════════════════════════════════════════ */

/* Menu principal - Liste */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

/* Items de menu - IMPORTANT: position relative pour les sous-menus */
.main-navigation .nav-menu > li {
    position: relative;
    list-style: none;
}

/* Liens du menu principal */
.main-navigation .nav-menu > li > a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 10px 0;
}

/* Flèche pour indiquer les sous-menus */
.main-navigation .menu-item-has-children > a::after,
.main-navigation li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 9px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* SOUS-MENUS - Configuration de base */
.main-navigation .sub-menu,
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 0;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    list-style: none;
    border: 1px solid var(--border-color);
}

/* AFFICHAGE des sous-menus au hover - RÈGLE PRINCIPALE */
.main-navigation li:hover > .sub-menu,
.main-navigation li:hover > ul,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:focus-within > ul,
.main-navigation li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Si le menu parent est proche du bord droit, ouvrir vers la gauche */
.main-navigation .nav-menu > li:nth-last-child(-n+2) .sub-menu,
.main-navigation .nav-menu > li:nth-last-child(-n+2) ul ul {
    left: auto;
    right: 0;
}

/* Items des sous-menus */
.main-navigation .sub-menu li,
.main-navigation ul ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Liens des sous-menus */
.main-navigation .sub-menu a,
.main-navigation ul ul a {
    display: block;
    padding: 12px 24px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover,
.main-navigation ul ul a:hover {
    background: #fdf2f8;
    color: var(--primary-color);
    padding-left: 30px;
}

/* Sous-menus de niveau 3 (si vous en avez) */
.main-navigation .sub-menu .sub-menu,
.main-navigation ul ul ul {
    top: -12px;
    left: 100%;
    margin-left: 8px;
    margin-top: 0;
}

.main-navigation .sub-menu li:hover > .sub-menu,
.main-navigation ul ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navigation li:hover > .sub-menu {
    animation: slideDown 0.3s ease;
}

/* Style du sélecteur de langue */
.sml-lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sml-lang-switcher a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sml-lang-switcher a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MENU MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    /* Cacher le menu desktop */
    .main-navigation {
        display: none;
    }
    
    /* Menu mobile */
    .mobile-menu {
        display: none;
        width: 100%;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    /* Sous-menus en mobile */
    .mobile-menu .sub-menu,
    .mobile-menu ul ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f9fafb;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        border: none;
        margin-top: 8px;
        display: none;
    }
    
    .mobile-menu .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-menu .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }
    
    .mobile-menu .nav-menu > li > a {
        padding: 16px 20px;
    }
    
    /* Afficher les sous-menus en mobile au clic/hover */
    .mobile-menu li:hover > .sub-menu,
    .mobile-menu li.active > .sub-menu,
    .mobile-menu li:hover > ul,
    .mobile-menu li.active > ul {
        display: block;
    }
    
    .mobile-menu .sub-menu a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .mobile-menu .sub-menu a:hover {
        padding-left: 25px;
    }
}

@media (min-width: 993px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION NOS CATÉGORIES - CORRECTION COMPLÈTE
   ═══════════════════════════════════════════════════════════════ */

.categories-section {
    padding: 80px 0;
    background: #f9fafb;
}

.categories-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.categories-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.categories-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Grille de catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Carte de catégorie */
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

.category-card:hover::before {
    opacity: 1;
}

/* Image de catégorie */
.category-card .category-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Overlay gradient au survol */
.category-card .category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.category-card:hover .category-image::after {
    opacity: 1;
}

/* Info de catégorie */
.category-card h3 {
    padding: 24px 20px 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card p {
    padding: 0 20px 24px;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* Icône devant le nombre de produits */
.category-card p::before {
    content: '📦';
    font-size: 16px;
}

/* Badge de catégorie au survol */
.category-card::after {
    content: '→';
    position: absolute;
    bottom: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 3;
}

.category-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Placeholder pour catégories sans image */
.category-card .category-image:empty,
.category-card .category-image img[src=""],
.category-card .category-image img[src*="woocommerce-placeholder"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
}

.category-card .category-image:empty::before {
    content: '📦';
    font-size: 80px;
    opacity: 0.3;
}

/* Animation d'apparition progressive */
.category-card {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive pour catégories */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .category-card .category-image {
        height: 250px;
    }
    
    .categories-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 50px 0;
    }
    
    .categories-section .section-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card .category-image {
        height: 200px;
    }
    
    .category-card h3 {
        font-size: 18px;
        padding: 16px 16px 8px;
    }
    
    .category-card p {
        font-size: 13px;
        padding: 0 16px 16px;
    }
    
    .category-card::after {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card .category-image {
        height: 250px;
    }
    
    .categories-section .section-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHOP HEADER - POUR PAGES DE CATÉGORIES
   ═══════════════════════════════════════════════════════════════ */

.shop-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    padding: 60px 0 40px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.shop-header .page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.shop-header .shop-description,
.shop-header .category-description {
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.product-count {
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .shop-header {
        padding: 40px 0 30px;
    }
    
    .shop-header .page-title {
        font-size: 32px;
    }
    
    .shop-header .shop-description,
    .shop-header .category-description {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CORRECTIONS POUR LES PRODUITS WOOCOMMERCE DANS LES CATÉGORIES
   ═══════════════════════════════════════════════════════════════ */

/* S'assurer que les produits s'affichent correctement */
.woocommerce-page .woocommerce-content {
    background: transparent;
    padding: 0;
}

/* Résultat et tri */
.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce .woocommerce-ordering select:hover {
    border-color: var(--primary-color);
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Barre d'outils de la boutique */
.woocommerce .woocommerce-result-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Pagination améliorée */
.woocommerce nav.woocommerce-pagination {
    margin-top: 60px;
    text-align: center;
    padding: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    background: white;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Fil d'Ariane (Breadcrumb) */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 30px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .woocommerce nav.woocommerce-pagination {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .woocommerce nav.woocommerce-pagination ul {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Responsive mobile pour les sous-menus */
@media (max-width: 992px) {
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        border-radius: 0;
        background: #f9fafb;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .main-navigation .nav-menu > li:nth-last-child(-n+3) .sub-menu {
        left: 0;
        right: auto;
    }
}

/* Dashboard icon in header */
.header-action.dashboard-link {
    position: relative;
}

.header-action.dashboard-link::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s ease-in-out infinite;
}

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

.header-action.dashboard-link:hover {
    color: #10b981;
    background: #dcfce7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH OVERLAY - DESIGN MODERNE ET ÉLÉGANT 🔍
   ═══════════════════════════════════════════════════════════════════════════ */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOUTON FERMER - DESIGN FUTURISTE
   ═══════════════════════════════════════════════════════════════════════════ */
.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
    z-index: 1;
}

.search-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
}

.search-close:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TITRE DE RECHERCHE - GRADIENT ANIMÉ
   ═══════════════════════════════════════════════════════════════════════════ */
.search-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 40px 0;
    text-align: center;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: gradientShift 3s ease infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULAIRE DE RECHERCHE - STYLE GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */
.search-form-wrapper {
    margin-bottom: 40px;
}

.search-overlay .search-form {
    position: relative;
    max-width: 100%;
}

.search-overlay .search-field {
    width: 100%;
    padding: 24px 70px 24px 30px;
    font-size: 20px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-overlay .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay .search-field:focus {
    border-color: #ec4899;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2), 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOUTON SUBMIT - GRADIENT AVEC EFFET HOVER
   ═══════════════════════════════════════════════════════════════════════════ */
.search-overlay .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.search-overlay .search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.search-overlay .search-submit:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

/* État de chargement */
.search-overlay .search-submit.loading {
    pointer-events: none;
}

.search-overlay .search-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SUGGESTIONS DE RECHERCHE - TAGS INTERACTIFS
   ═══════════════════════════════════════════════════════════════════════════ */
.search-suggestions {
    text-align: center;
}

.search-suggestions-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 0 20px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.search-tag::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.5s;
}

.search-tag:hover::before {
    left: 100%;
}

.search-tag:hover {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.search-tag:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS D'ENTRÉE EN CASCADE
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-overlay.active .search-title {
    animation: fadeInUp 0.5s ease 0.1s backwards;
}

.search-overlay.active .search-form-wrapper {
    animation: fadeInUp 0.5s ease 0.2s backwards;
}

.search-overlay.active .search-suggestions {
    animation: fadeInUp 0.5s ease 0.3s backwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE & TABLET
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .search-overlay-content {
        padding: 40px 16px;
    }
    
    .search-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .search-overlay .search-field {
        padding: 20px 60px 20px 24px;
        font-size: 18px;
        border-radius: 14px;
    }
    
    .search-close {
        top: -50px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .search-tag {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-overlay .search-submit {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .search-overlay .search-field {
        padding: 16px 50px 16px 20px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .search-overlay .search-submit {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .search-suggestions-title {
        font-size: 14px;
    }
    
    .search-tags {
        gap: 8px;
    }
    
    .search-tag {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITÉ - FOCUS VISIBLE
   ═══════════════════════════════════════════════════════════════════════════ */
.search-overlay *:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRÉFÉRENCE UTILISATEUR - REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .search-overlay,
    .search-overlay-content,
    .search-close,
    .search-tag {
        transition: none;
        animation: none;
    }
    
    .search-title {
        animation: none;
        background: linear-gradient(135deg, #ec4899, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EFFETS SUPPLÉMENTAIRES - PARTICULES (OPTIONNEL)
   ═══════════════════════════════════════════════════════════════════════════ */
.search-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   PARTICULES FLOTTANTES DANS LA RECHERCHE (OPTIONNEL)
   ═══════════════════════════════════════════════════════════════════════════ */
.search-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(236, 72, 153, 0.4);
    border-radius: 50%;
    animation: float-particle 8s infinite ease-in-out;
}

.particle-0 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle-1 {
    left: 30%;
    top: 60%;
    animation-delay: 1s;
    width: 6px;
    height: 6px;
}

.particle-2 {
    left: 50%;
    top: 40%;
    animation-delay: 2s;
}

.particle-3 {
    left: 70%;
    top: 70%;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
}

.particle-4 {
    left: 90%;
    top: 30%;
    animation-delay: 4s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DÉSACTIVER COMPLÈTEMENT LE SEARCH SUR MY ACCOUNT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Forcer le masquage sur My Account */
body.woocommerce-account .search-overlay,
body.woocommerce-account #search-overlay,
body.page-template-page-mon-compte .search-overlay,
body.page-template-page-mon-compte #search-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Même si la classe active est présente */
body.woocommerce-account .search-overlay.active,
body.woocommerce-account #search-overlay.active,
body.page-template-page-mon-compte .search-overlay.active,
body.page-template-page-mon-compte #search-overlay.active {
    display: none !important;
}

/* Restaurer le scroll du body */
body.woocommerce-account.search-overlay-open,
body.page-template-page-mon-compte.search-overlay-open {
    overflow: auto !important;
}

/* Optionnel : Cacher aussi le bouton de recherche */
body.woocommerce-account .header-action#search-toggle,
body.page-template-page-mon-compte .header-action#search-toggle {
    display: none !important;
}

/**
 * ═══════════════════════════════════════════════════════════════════════════
 * MISE EN PAGE PROFESSIONNELLE - PAGE PRODUIT WOOCOMMERCE
 * Design moderne, responsive et épuré
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. LAYOUT GÉNÉRAL DE LA PAGE PRODUIT
   ═══════════════════════════════════════════════════════════════════════════ */

.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Colonne gauche : Images */
.single-product .woocommerce-product-gallery {
    max-width: 600px;
    width: 100%;
}

/* Colonne droite : Informations produit */
.single-product .summary {
    max-width: 550px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. GALERIE D'IMAGES PRODUIT
   ═══════════════════════════════════════════════════════════════════════════ */

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Miniatures */
.woocommerce-product-gallery__wrapper + .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.flex-control-thumbs li {
    width: 80px;
    height: 80px;
    list-style: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.flex-control-thumbs li:hover,
.flex-control-thumbs li.flex-active {
    border-color: var(--primary-color, #ec4899);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. INFORMATIONS PRODUIT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Titre produit */
.single-product .product_title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Prix */
.single-product .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color, #ec4899);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-product .price del {
    font-size: 24px;
    color: #94a3b8;
    font-weight: 500;
}

.single-product .price ins {
    text-decoration: none;
}

/* Badge promo */
.single-product .onsale {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Description courte */
.single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color, #ec4899);
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. FORMULAIRE ADD TO CART (Quantité + Bouton)
   ═══════════════════════════════════════════════════════════════════════════ */

.single-product .cart {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Champ de quantité */
.single-product .quantity {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 56px;
    min-width: 140px;
}

.single-product .quantity input[type="number"] {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    -moz-appearance: textfield;
    appearance: textfield;
}

.single-product .quantity input[type="number"]::-webkit-inner-spin-button,
.single-product .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Boutons +/- */
.single-product .quantity::before,
.single-product .quantity::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 100%;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    user-select: none;
}

.single-product .quantity::before {
    content: '−';
    left: 0;
    border-right: 2px solid #e2e8f0;
}

.single-product .quantity::after {
    content: '+';
    right: 0;
    border-left: 2px solid #e2e8f0;
}

.single-product .quantity::before:hover,
.single-product .quantity::after:hover {
    background: var(--primary-color, #ec4899);
    color: white;
}

/* Bouton Ajouter au panier */
.single-product .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    height: 56px;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.5);
}

.single-product .single_add_to_cart_button:active {
    transform: translateY(0);
}

.single-product .single_add_to_cart_button::before {
    content: '🛒';
    font-size: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. MÉTADONNÉES PRODUIT (SKU, Catégories, Tags)
   ═══════════════════════════════════════════════════════════════════════════ */

.single-product .product_meta {
    margin: 30px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 14px;
    line-height: 2;
}

.single-product .product_meta > span {
    display: block;
    color: #64748b;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
    display: flex;
    gap: 10px;
}

.single-product .product_meta strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 100px;
}

.single-product .product_meta a {
    color: var(--primary-color, #ec4899);
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.single-product .product_meta a:hover {
    background: var(--primary-color, #ec4899);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ONGLETS (DESCRIPTION, AVIS, INFORMATIONS)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Réduit l’espace entre l’image produit et les onglets WooCommerce */
.single-product .woocommerce-tabs {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.single-product div.product {
    margin-bottom: 0 !important;
}

.woocommerce-tabs {
    margin: 60px 0;
    max-width: 1200px;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 15px 30px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.woocommerce-tabs .tabs li.active a {
    color: var(--primary-color, #ec4899);
    border-bottom-color: var(--primary-color, #ec4899);
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--primary-color, #ec4899);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. RELATED PRODUCTS (PRODUITS SIMILAIRES)
   ═══════════════════════════════════════════════════════════════════════════ */

.related.products {
    margin: 80px 0 40px 0;
    max-width: 1200px;
}

.related.products h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
    text-align: center;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related.products .product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related.products .product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related.products .product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.related.products .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    margin: 0;
    color: #1e293b;
}

.related.products .product .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color, #ec4899);
    padding: 0 15px 15px 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .single-product .product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-product .woocommerce-product-gallery,
    .single-product .summary {
        max-width: 100%;
    }
    
    .single-product .product_title {
        font-size: 24px;
    }
    
    .single-product .price {
        font-size: 24px;
    }
    
    .single-product .cart {
        flex-direction: column;
    }
    
    .single-product .quantity,
    .single-product .single_add_to_cart_button {
        width: 100%;
    }
    
    .woocommerce-tabs .tabs {
        flex-wrap: wrap;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Messages de stock */
.single-product .stock {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin: 20px 0;
    display: inline-block;
}

.single-product .stock.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.single-product .stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Variations de produit */
.single-product .variations {
    margin: 25px 0;
}

.single-product .variations label {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 10px;
}

.single-product .variations select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-product .variations select:hover,
.single-product .variations select:focus {
    border-color: var(--primary-color, #ec4899);
    outline: none;
}

/* Bouton reset variations */
.single-product .reset_variations {
    color: var(--primary-color, #ec4899);
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.single-product .reset_variations:hover {
    text-decoration: underline;
}