/* ============================================
   STYLE.CSS - Styles principaux du site
   Utilise les variables et composants du Design System
   ============================================ */

/* Import des fichiers du Design System */
@import url('reset.css');
@import url('variables.css');
@import url('typography.css');
@import url('components.css');
@import url('layout.css');
@import url('grid-system.css');
@import url('breadcrumbs.css');
@import url('images.css');
@import url('services-banner.css');
@import url('notifications.css');

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

/* Supprimer le soulignement de TOUS les liens dans les cartes de produits - Règle globale */
.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:active,
.product-card a:focus,
.product-card-large a,
.product-card-large a:link,
.product-card-large a:visited,
.product-card-large a:hover,
.product-card-large a:active,
.product-card-large a:focus,
.products-grid a,
.products-grid a:link,
.products-grid a:visited,
.products-grid a:hover,
.products-grid a:active,
.products-grid a:focus,
.featured-products-grid a,
.featured-products-grid a:link,
.featured-products-grid a:visited,
.featured-products-grid a:hover,
.featured-products-grid a:active,
.featured-products-grid a:focus {
    text-decoration: none !important;
}

/* Sections avec fond sombre */
.section.bg-dark,
.hero {
    background-color: var(--dark);
    color: var(--white);
}

.section.bg-dark-lighter {
    background-color: var(--dark-lighter);
    color: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Menu mobile drawer - Masqué par défaut sur toutes les pages */
.mobile-nav-drawer,
.mobile-nav-overlay {
    display: none !important;
    visibility: hidden !important;
}

@media (min-width: 768px) {
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Header Top Bar */
.header-top {
    background-color: #2563eb; /* Bleu vif pour la bannière */
    padding: 0.5rem 0;
    font-size: var(--text-sm); /* 0.875rem = 14px - acceptable pour texte secondaire */
    color: white;
}

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

.header-top-left {
    display: flex;
    gap: 1.5rem;
    color: white; /* Texte blanc sur fond bleu */
}

.promo-text {
    color: white; /* Texte blanc sur fond bleu */
    font-weight: 500;
}

.phone-text {
    color: rgba(255, 255, 255, 0.95); /* Texte blanc légèrement transparent */
}

.header-top-right {
    display: flex;
    gap: 1.5rem;
}

.header-top-right a {
    color: rgba(255, 255, 255, 0.9); /* Texte blanc sur fond bleu */
    text-decoration: none;
    transition: color 0.2s;
}

.header-top-right a:hover {
    color: white; /* Blanc au survol */
}

/* Header Main */
.header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
    /* Fond bleu marine qui se fond avec la navigation */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-main {
    color: var(--white);
}

.header .logo-text {
    color: var(--white);
}

.header .search-bar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header .search-input {
    color: var(--white);
}

.header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.9); /* Meilleur contraste WCAG AA (blanc sur fond sombre) */
}

.header .header-icon {
    color: var(--white);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
    margin-bottom: 0;
}

.header .container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    color: var(--dark);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--dark);
}

.search-input::placeholder {
    color: #757575; /* Meilleur contraste WCAG AA (4.54:1 au lieu de 2.85:1) */
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: #333;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Dropdown de résultats de recherche */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

/* Sur PC uniquement : le dropdown de recherche doit être au-dessus des catégories */
@media (min-width: 768px) {
    /* S'assurer que la barre de recherche elle-même a un z-index élevé et crée son propre contexte */
    .header .search-bar {
        position: relative !important;
        z-index: 2000 !important; /* Très élevé pour passer au-dessus des catégories */
        isolation: isolate; /* Créer un nouveau contexte de stacking */
    }
    
    /* Le dropdown de recherche doit être au-dessus des catégories (z-index: 1002) et du header (z-index: 1000/1001) */
    /* Avec isolation: isolate sur .search-bar, le z-index du dropdown est comparé dans ce contexte */
    .header .search-dropdown {
        z-index: 2001 !important; /* Au-dessus des catégories dans le contexte du header */
        position: absolute !important;
    }
    
    /* S'assurer que les résultats de recherche sont cliquables et au-dessus de tout */
    .header .search-result-item {
        position: relative;
        z-index: 2002 !important;
        pointer-events: auto !important;
    }
    
    /* S'assurer que le lien dans le résultat de recherche est cliquable */
    .header .search-result-item a {
        position: relative;
        z-index: 2003 !important;
        pointer-events: auto !important;
    }
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.search-result-item:hover,
.search-result-item.selected {
    background: #f5f5f5;
}

.search-result-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-price {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-more {
    padding: 12px;
    text-align: center;
    background: #f9f9f9;
    border-top: 2px solid #e0e0e0;
}

.search-result-more a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.search-result-more a:hover {
    text-decoration: underline;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    color: var(--white);
    text-decoration: none;
    position: relative;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.header-icon:hover {
    background-color: var(--dark-lightest);
    color: var(--primary);
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.favorites-icon.active svg {
    fill: currentColor;
}

.main-nav {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent; /* Le fond bleu vient du header */
    margin-top: 0;
    align-items: center;
}

.main-nav .nav-link {
    color: var(--white);
}

.main-nav .nav-link:hover {
    color: var(--accent);
}

.main-nav .nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    white-space: normal;
    line-height: 1.3;
}

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

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.dropdown-panel.dropdown-single {
    grid-template-columns: 1fr;
    min-width: 200px;
    padding: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-panel.dropdown-manga {
    min-width: 220px;
    max-height: 80vh;
}

.dropdown-panel.dropdown-single ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-panel.dropdown-single a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.dropdown-panel.dropdown-single a:hover {
    color: var(--primary);
    background-color: rgba(212, 197, 185, 0.1);
}

.dropdown-column h4 {
    margin-bottom: 0.35rem;
    color: var(--dark);
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-column a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-column a:hover {
    color: var(--primary);
}

.nav-item.dropdown:hover .dropdown-panel,
.nav-item.dropdown .dropdown-panel:hover {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Délai avant fermeture du menu - amélioration UX */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-panel {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Zone de transition pour faciliter le clic */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 99;
}

.nav-item.dropdown:hover::after {
    pointer-events: all;
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Déjà défini plus haut - supprimé pour éviter la duplication */

.header-icon:hover {
    background-color: var(--dark-lightest);
    color: var(--primary);
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.favorites-icon.active svg {
    fill: currentColor;
}

.cart-icon {
    position: relative;
}

.cart-count,
.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: var(--text-xs); /* Badge - acceptable pour élément secondaire */
    font-weight: bold;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.product-card {
    position: relative;
}

.product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-favorite-btn svg {
    width: 20px;
    height: 20px;
    color: var(--dark);
    transition: all 0.2s;
}

.product-favorite-btn.active svg {
    color: var(--primary-dark);
    fill: var(--primary-dark);
}

.product-favorite-btn:hover svg {
    color: var(--primary-dark);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--dark-lightest);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nav-mobile a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.6);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

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

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

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

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

.w-100 {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero */
/* Hero Carousel */
/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
}

.hero-carousel-bottom {
    margin: 3rem 0;
    width: 100%;
    background: transparent;
}

.hero-carousel-bottom .hero-carousel-container {
    width: 100%;
    max-width: 100%;
}

.hero-carousel-bottom .hero-carousel-slides {
    width: 100%;
    position: relative;
}

.hero-carousel-bottom .hero-carousel-slide {
    position: relative;
    width: 100%;
    opacity: 1;
}

.hero-carousel-bottom .hero-carousel-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-carousel-prev {
    left: 20px;
}

.hero-carousel-next {
    right: 20px;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-carousel-dot.active {
    background: var(--white);
}

@media (max-width: 768px) {
    .hero-carousel {
        height: calc(80px + 3rem); /* Même hauteur que sur desktop */
    }
    
    .hero-carousel-container {
        height: 100%;
    }
    
    .hero-carousel-image {
        object-fit: contain; /* Moins de zoom sur mobile aussi */
    }
    
    .hero-carousel-prev,
    .hero-carousel-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .hero-carousel-prev {
        left: 10px;
    }
    
    .hero-carousel-next {
        right: 10px;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .hero .container {
        padding: 4rem 0;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--accent);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.bg-dark-lighter {
    background-color: var(--dark-lighter);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background-color: var(--dark);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    background-color: var(--dark-lighter);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 197, 185, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(212, 197, 185, 0.4);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

/* Products */
/* Supprimer le soulignement de tous les liens dans les cartes de produits */
.product-card a,
.product-card-large a,
.products-grid a,
.featured-products-grid a {
    text-decoration: none !important;
}

.product-card a:hover,
.product-card-large a:hover,
.products-grid a:hover,
.featured-products-grid a:hover {
    text-decoration: none !important;
}

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

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background-color: transparent !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: all 0.3s;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-card:hover {
    box-shadow: none !important;
    transform: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Sur index.html et pages catégories, forcer le fond transparent - EXACTEMENT comme figurine.html */
.product-card-large {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-image {
    width: 100%;
    min-height: 250px;
    max-height: 400px;
    background-color: transparent;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Forcer le fond transparent pour product-image sur toutes les pages */
.product-card-large .product-image,
.featured-products-grid .product-card .product-image,
.products-grid .product-card-large .product-image {
    background-color: transparent !important;
    background: transparent !important;
    justify-content: center;
}

/* Supprimer TOUS les fonds gris sur les pages catégories */
.products-grid .product-image,
.products-grid .product-card .product-image,
.products-grid .product-card-large .product-image,
.products-grid .product-card-image,
.products-grid .product-card .product-card-image,
.products-grid .product-card-large .product-card-image,
.products-grid .product-card-image-wrapper,
.products-grid .product-card .product-card-image-wrapper,
.products-grid .product-card-large .product-card-image-wrapper {
    background-color: transparent !important;
    background: transparent !important;
}

/* Zoom uniquement sur l'image principale de la page produit */
body.product-page .product-main-image {
    cursor: zoom-in;
}

/* Les miniatures ont un curseur pointer (pas de zoom) */
body.product-page .product-thumbnail {
    cursor: pointer;
}

.product-image img,
.product-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* RÈGLE TRÈS SPÉCIFIQUE POUR SURCHARGER width: 100% sur les images des badges - DOIT VENIR APRÈS la règle générale */
.product-image .product-badges .badge-preorder img,
.product-image .product-badges img,
.products-grid .product-card-large .product-image .product-badges .badge-preorder img,
.products-grid .product-card-large .product-image .product-badges img,
.product-badges .badge-preorder img,
.badge-preorder img,
.product-badge.badge-preorder img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    display: block !important;
}

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

.product-info {
    padding: 1.5rem;
    background: white;
}

/* Fond transparent pour les cartes sur index.html et pages catégories */
.product-card-large .product-info,
.products-grid .product-card .product-info,
.products-grid .product-card-large .product-info,
.featured-products-grid .product-card .product-info,
.featured-products-grid .product-card-large .product-info,
#featuredProductsGrid2 .product-card .product-info,
#featuredProductsGrid2 .product-card-large .product-info,
#featuredProductsGrid3 .product-card .product-info,
#featuredProductsGrid3 .product-card-large .product-info,
#featuredProductsGrid4 .product-card .product-info,
#featuredProductsGrid4 .product-card-large .product-info {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.product-category {
    font-size: var(--text-xs); /* Catégorie - acceptable pour élément secondaire */
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.product-name,
.product-name a,
.product-name a:link,
.product-name a:visited,
a .product-name,
a .product-name:link,
a .product-name:visited {
    text-decoration: none !important;
    color: var(--dark);
    transition: color 0.2s;
}

.product-name:hover,
.product-name a:hover,
a:hover .product-name {
    color: var(--primary-dark);
    text-decoration: none !important;
}

/* Supprimer le soulignement de tous les liens contenant product-name */
.product-card a,
.product-card-large a,
a[href*="produit.html"] {
    text-decoration: none !important;
}

.product-card a:hover,
.product-card-large a:hover,
a[href*="produit.html"]:hover {
    text-decoration: none !important;
}

.product-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000 !important; /* Noir pour tous les prix */
}

.product-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: color 0.2s;
}

.product-link:hover {
    color: var(--accent);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-card {
    background-color: var(--dark);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--dark-lightest);
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--gray-300);
    font-style: italic;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
}

.review-date {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Trust banner - Style photo 1 (fond clair, 2 sections, icônes circulaires avec glow) */
.trust-banner {
    padding: var(--spacing-12) 0;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    text-align: center;
}

@media (min-width: 640px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-8);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-6);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
}

.trust-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A2E;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.trust-icon-circle svg {
    width: 32px;
    height: 32px;
    stroke: #1A1A2E;
}

.trust-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
    line-height: 1.4;
}

.trust-item p {
    font-size: 0.875rem;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}


/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(212, 197, 185, 0.4);
}

.feature-item h3 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-400);
}

/* Footer - Style photo 2 avec contenu français */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-12) 0 var(--spacing-6);
    margin-top: auto;
}

/* Section Newsletter */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    padding-bottom: var(--spacing-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-8);
}

@media (min-width: 768px) {
    .footer-newsletter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-newsletter-content {
    flex: 1;
}

.footer-newsletter-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--spacing-2);
}

.footer-newsletter-text {
    font-size: var(--text-base);
    color: var(--gray-300);
    margin: 0;
}

.footer-newsletter-form {
    display: flex;
    gap: var(--spacing-3);
    flex: 1;
    max-width: 500px;
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--text-base);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--dark);
}

.footer-newsletter-input::placeholder {
    color: var(--gray-500);
}

.footer-newsletter-btn {
    padding: var(--spacing-3) var(--spacing-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-all);
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Section principale : Logo + Liens */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: auto 1fr;
        gap: var(--spacing-12);
        align-items: start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3);
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-brand-text {
        align-items: flex-start;
    }
}

.footer-brand-name {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Liens */
.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-links-col {
    display: flex;
    flex-direction: column;
}

.footer-links-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition-colors);
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important; /* Texte en blanc pour être visible */
    font-size: var(--text-sm);
}

.footer-bottom p {
    margin: 0;
    color: white !important; /* Texte en blanc pour être visible */
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark);
}

.page-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Filters */
.filters-section {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .filters {
        margin-bottom: 0;
    }
}

.filter-label {
    color: #666;
    font-weight: 600;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    background-color: #f0f0f0;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.products-count {
    color: #666;
    margin-bottom: 1rem;
}

/* Univers cards */
.univers-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .univers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.univers-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.univers-card h3 {
    margin-bottom: 0.25rem;
}

.category-list {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--gray-200);
    line-height: 1.7;
}

.category-list a {
    color: inherit;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--accent);
}

.category-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--gray-50);
}

.category-note {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: auto;
}

.box-grid {
    display: grid;
    gap: 0.85rem;
}

.box-card {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
}

.box-card h4 {
    margin-bottom: 0.3rem;
}

.box-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.box-value {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.box-card ul {
    list-style: disc;
    margin-left: 1.25rem;
    color: var(--gray-200);
    font-size: 0.9rem;
}

.univers-links {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.univers-link-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.univers-link-card:nth-child(1) {
    background-image: url('images/univers/librairie.jpg');
}

.univers-link-card:nth-child(2) {
    background-image: url('images/univers/deco.jpg');
}

.univers-link-card:nth-child(3) {
    background-image: url('images/univers/box.jpg');
}

.univers-link-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,9,11,0.4) 0%, rgba(9,9,11,0.85) 100%);
}

.univers-link-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: #fff;
}

.univers-link-card h3 {
    margin: 0;
}

.univers-link-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.universe-hero {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    margin: 2rem 0;
}

.universe-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.85) 100%);
}

.universe-hero .container {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0;
    color: #fff;
}

.universe-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.universe-hero p {
    max-width: 640px;
    color: rgba(255,255,255,0.85);
}

.universe-category-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .universe-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.universe-category-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.universe-category-card h3 {
    margin-bottom: 0.5rem;
}

.universe-category-card ul {
    margin-left: 1.25rem;
    color: var(--gray-200);
    line-height: 1.7;
}

.universe-tip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    color: var(--gray-300);
}

/* Product detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(60px, 90px) minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

@media (max-width: 1200px) {
    .product-detail-layout {
        grid-template-columns: minmax(60px, 80px) minmax(0, 1fr) minmax(280px, 0.9fr);
    }
}

@media (max-width: 980px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: sticky;
    top: 120px;
}

@media (max-width: 980px) {
    .product-thumbs {
        flex-direction: row;
        position: static;
        order: 2;
    }
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 1rem;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}

.product-main-media {
    background: #fff;
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 540px;
}

.product-main-photo {
    width: auto;
    max-width: 100%;
    height: auto;
    flex: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
    cursor: zoom-in;
    /* Qualité maximale - mêmes propriétés que le lightbox */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    image-rendering: -moz-crisp-edges;
    image-rendering: auto;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.media-btn {
    flex: 1;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

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

.product-info-panel {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-info-panel h1 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.price-panel {
    border: 1px solid #f1f1f1;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.price-badges .badge {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #fef3c7;
    color: #92400e;
}

.badge-discount {
    background: #fee2e2;
    color: var(--primary-dark);
}

.price-values {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-current {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #000;
}

.price-old {
    color: #94a3b8;
    text-decoration: line-through;
}

.price-note {
    color: #94a3b8;
    font-size: 0.9rem;
}

.product-info-panel .btn {
    width: 100%;
    justify-content: center;
}

.delivery-date {
    font-weight: 600;
    color: #111;
}

.service-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.service-card {
    border: 1px solid #f1f1f1;
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.service-card span {
    font-weight: 600;
    color: #111;
}

.service-card small {
    color: #64748b;
}

.product-meta {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.product-description-full {
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.7;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.stock-badge.in-stock {
    background-color: #065F46;
    color: #6EE7B7;
}

.stock-badge.out-of-stock {
    background-color: #991B1B;
    color: #FCA5A5;
}

.product-highlights {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--dark);
    border-radius: 1rem;
}

.product-highlights h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.highlights-list li {
    color: var(--gray-300);
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-specs-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 1rem;
}

.product-specs-section h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.specs-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 1rem;
    font-weight: 600;
    color: var(--dark);
    width: 40%;
    background: #f5f5f5;
}

.spec-value {
    padding: 1rem;
    color: var(--gray-600);
}

.product-description-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .product-description-section {
        flex-direction: column;
    }
}

.product-description-block {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.product-description-block h2 {
    margin-bottom: 1rem;
}

.image-zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.image-zoom-modal.active {
    display: flex;
}

.image-zoom-overlay {
    position: absolute;
    inset: 0;
}

.image-zoom-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    z-index: 1;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#imageZoomTarget {
    max-width: min(90vw, 900px);
    max-height: min(90vh, 900px);
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-item {
    background-color: transparent !important; /* Transparent au lieu de fond coloré */
    border-radius: 0 !important; /* Pas de border-radius */
    padding: 1rem 0 !important; /* Padding vertical seulement */
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0 !important; /* Pas de marge en bas */
    border: none !important; /* Pas de bordure */
    border-bottom: 1px solid #e2e8f0 !important; /* Ligne de séparation uniquement */
    box-shadow: none !important; /* Pas d'ombre */
}

.cart-item:last-child {
    border-bottom: none !important; /* Pas de ligne sous le dernier produit */
}

.cart-item-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: var(--dark);
    flex-shrink: 0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item-info a:hover {
    color: var(--accent);
}

.cart-item-category {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

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

.quantity-controls button {
    width: 32px;
    height: 32px;
    background-color: var(--dark);
    border: none;
    border-radius: 0.5rem;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-controls button:hover {
    background-color: var(--dark-lightest);
}

.quantity-controls span {
    font-weight: 600;
    width: 32px;
    text-align: center;
}

.cart-item-price {
    text-align: right;
    color: #000 !important; /* Forcer prix en noir dans panier */
}

.price-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    display: block;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #EF4444;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.cart-summary {
    background-color: #f9f9f9;
    border-radius: 1rem;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid #e0e0e0;
}

.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: bold;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-lightest);
    margin-top: 1rem;
}

.summary-total span:last-child {
    color: var(--primary);
}

.btn-link {
    display: block;
    text-align: center;
    color: var(--gray-400);
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--accent);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-cart h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Products Section - Fond transparent comme sur les pages catégories */
.featured-products-section {
    background-color: transparent !important;
    background: transparent !important;
    padding: 4rem 0;
}

.featured-products-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    /* Fond blanc - retiré le fond bleu */
}

.featured-product-main {
    display: flex;
    align-items: stretch;
    flex: 0 0 280px;
    max-width: 280px;
    margin-right: 1rem;
}

.featured-product-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-product-image {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.featured-product-info {
    padding: 1.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.featured-product-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin: 0;
    text-align: center;
}

.featured-product-info p,
.featured-product-info a {
    display: none;
}

.featured-products-grid {
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

/* Les cartes dans le carousel ont une largeur fixe pour 3 colonnes */
.carousel-track .product-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: 0;
}

.featured-products-grid .product-card {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    box-shadow: none !important; /* Supprimer toute ombre qui créerait une séparation */
}

/* Forcer le fond transparent pour toutes les variantes */
.featured-products-grid .product-card-large,
.featured-products-grid .product-card.product-card-large,
#featuredProductsGrid .product-card,
#featuredProductsGrid .product-card-large,
#featuredProductsGrid2 .product-card,
#featuredProductsGrid2 .product-card-large,
#featuredProductsGrid3 .product-card,
#featuredProductsGrid3 .product-card-large,
#featuredProductsGrid4 .product-card,
#featuredProductsGrid4 .product-card-large {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Supprimer les encadrés gris sur les produits de décoration dans featuredProductsGrid2 */
#featuredProductsGrid2 .product-card .product-image,
#featuredProductsGrid2 .product-card-large .product-image,
#featuredProductsGrid2 .product-card .product-image-wrapper,
#featuredProductsGrid2 .product-card-large .product-image-wrapper {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#featuredProductsGrid2 .product-card-image-wrapper,
#featuredProductsGrid2 .product-card .product-card-image-wrapper {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

.featured-products-grid .product-card:hover {
    transform: translateY(-2px);
}

.featured-products-grid .product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: transparent !important;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Première grille (à côté de la mystery box) : images plus grandes */
#featuredProductsGrid .product-card .product-image {
    aspect-ratio: 1 / 1;
    padding: 1rem;
}

.featured-products-grid .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.featured-products-grid .product-card:hover .product-image img {
    transform: scale(1.05);
}

.featured-products-grid .product-card .product-info {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    min-height: 120px;
    background-color: transparent !important; /* Fond transparent comme sur les pages catégories */
    background: transparent !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.featured-products-grid .product-card .product-category {
    display: none;
}

.featured-products-grid .product-card .product-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--dark);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.featured-products-grid .product-card .product-name,
.featured-products-grid .product-card .product-name a,
.featured-products-grid .product-card .product-name a:link,
.featured-products-grid .product-card .product-name a:visited,
.featured-products-grid .product-card a .product-name,
.featured-products-grid .product-card a .product-name:link,
.featured-products-grid .product-card a .product-name:visited {
    text-decoration: none !important;
    color: var(--dark);
    transition: color 0.2s;
}

.featured-products-grid .product-card .product-name:hover,
.featured-products-grid .product-card .product-name a:hover,
.featured-products-grid .product-card a:hover .product-name {
    color: var(--primary-dark);
    text-decoration: none !important;
}

/* Supprimer le soulignement de tous les liens dans les cartes featured */
.featured-products-grid .product-card a {
    text-decoration: none !important;
}

.featured-products-grid .product-card a:hover {
    text-decoration: none !important;
}

/* Première grille (à côté de la mystery box) : texte plus grand */
#featuredProductsGrid .product-card .product-name {
    font-size: 1rem;
}

.featured-products-grid .product-card .product-description {
    display: none;
}

.featured-products-grid .product-card .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    width: 100%;
    flex-shrink: 0;
}

.featured-products-grid .product-card .product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

/* Première grille (à côté de la mystery box) : prix plus grand */
#featuredProductsGrid .product-card .product-price {
    font-size: 1.25rem;
}

.featured-products-grid .product-card .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.featured-products-grid .product-card .btn:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.featured-products-grid .product-card .product-link {
    display: none;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 2.5rem;
    z-index: 1;
}

.carousel-window .carousel-arrow {
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.carousel-track {
    --carousel-visible: 3;
    --carousel-rows: 1;
    --carousel-gap: 0.5rem; /* Espace réduit de moitié (1rem -> 0.5rem) */
    display: flex;
    gap: var(--carousel-gap);
    transition: transform 0.4s ease;
    flex-wrap: nowrap;
    flex-direction: row;
}

/* Pour les carousels avec plusieurs lignes - utiliser grid */
[data-carousel-rows="3"] .carousel-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    grid-auto-flow: column !important;
    gap: 0.5rem; /* Espace réduit de moitié pour les grilles aussi */
    width: max-content;
    min-width: 0;
    height: auto;
}

[data-carousel-rows="3"] .carousel-track .product-card {
    margin-bottom: 0 !important;
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
}

.carousel-track .product-card {
    flex: 0 0 calc((100% - (var(--carousel-visible) - 1) * var(--carousel-gap)) / var(--carousel-visible));
    min-width: 0;
    max-width: calc((100% - (var(--carousel-visible) - 1) * var(--carousel-gap)) / var(--carousel-visible));
}

/* Pour les carousels avec 5 colonnes (Décoration) */
[data-carousel-columns="5"] .carousel-track .product-card {
    flex: 0 0 calc((100% - 4 * var(--carousel-gap)) / 5);
    max-width: calc((100% - 4 * var(--carousel-gap)) / 5);
}

/* Pour les carousels avec plusieurs lignes - utiliser grid */
[data-carousel-rows="3"] .carousel-track {
    display: grid !important;
    grid-template-columns: repeat(var(--carousel-visible), 1fr);
    grid-template-rows: repeat(var(--carousel-rows), auto);
    grid-auto-flow: column;
    gap: 0.5rem; /* Espace réduit de moitié */
    width: auto;
    min-width: 0;
}

[data-carousel-rows="3"] .carousel-track .product-card {
    margin-bottom: 0;
    width: 100%;
}

.carousel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--dark);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000 !important;
    pointer-events: auto !important;
    user-select: none;
    cursor: pointer !important;
}

.carousel-arrow[data-carousel-prev] {
    left: 0;
}

.carousel-arrow[data-carousel-next] {
    right: 0;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-arrow:not(:disabled):hover {
    transform: translateY(-50%) scale(1.05);
}

.featured-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-section-header .section-title {
    margin: 0;
}

/* Le header reste blanc, seul le layout a le fond bleu */
.featured-section-header {
    color: var(--dark);
}

.featured-products-second-row {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e0e0e0;
    background-color: transparent !important; /* Fond transparent comme sur les pages catégories */
    background: transparent !important;
}

.featured-products-second-row .featured-subtitle,
.featured-products-second-row .btn-view-all {
    color: var(--dark);
}

.featured-products-second-row .btn-view-all {
    border-color: rgba(15, 23, 42, 0.95);
    color: rgba(15, 23, 42, 0.95);
}

.featured-products-second-row .btn-view-all:hover {
    background: rgba(15, 23, 42, 0.95);
    color: var(--white);
}

.featured-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.featured-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    margin: 0;
}

.btn-view-all {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-view-all:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Home Gym / Devis Page Styles */
.homegym-page {
    background: #f2f2ed;
}

.homegym-hero-block {
    position: relative;
    min-height: 75vh;
    border-radius: 2.5rem;
    overflow: hidden;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vw, 4rem);
    color: #fff;
    max-width: 1280px;
}

.homegym-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/placeholder-category.jpg') center/cover no-repeat;
    filter: brightness(0.35);
}

.homegym-hero-overlay {
    position: relative;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.homegym-hero-overlay h1 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.2;
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.hero-subcopy {
    font-size: 1.1rem;
    opacity: 0.95;
}

.homegym-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.homegym-description {
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    text-align: center;
}

.homegym-best-sellers {
    padding: 3rem 0;
}

.functional-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.functional-header p {
    color: var(--gray-600);
}

.functional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.functional-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.functional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.functional-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.functional-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.functional-card-body {
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.functional-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
}

.functional-card-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0;
}

.functional-card-subtitle .badge {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: var(--text-xs); /* Badge - acceptable pour élément secondaire */
    font-weight: 600;
    text-transform: uppercase;
}

.functional-card-subtitle a {
    color: var(--primary);
    text-decoration: underline;
}

.functional-card-price {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--dark);
}

.functional-card button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.functional-card button:hover {
    background: var(--primary-dark);
}

.homegym-overview {
    padding: 3rem 0;
}

.homegym-overview-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.homegym-overview-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.homegym-overview-icons > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.homegym-overview-icons span {
    font-size: 2rem;
}

.homegym-steps {
    padding: 3rem 0;
}

.homegym-steps .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.step-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0;
}

.step-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.homegym-roomplanner {
    padding: 4rem 0;
}

.roomplanner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.roomplanner-image img {
    width: 100%;
    border-radius: 2rem;
}

.roomplanner-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.roomplanner-note {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 1rem;
}

.homegym-contact {
    background: #dcdcd3;
    padding: 4rem 0;
}

.homegym-form {
    max-width: 900px;
    margin: 0 auto;
}

.homegym-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.homegym-form > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.homegym-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.homegym-form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.homegym-form-grid input,
.homegym-form-grid select {
    margin-top: 0.25rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    background: #fff;
}

.homegym-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
}

.homegym-checkbox {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    text-transform: none;
    letter-spacing: 0;
}

.homegym-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.privacy-note {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.privacy-note a {
    color: var(--primary);
    text-decoration: underline;
}

.homegym-form-grid button {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 1rem auto 0;
}

.homegym-slider {
    padding: 3rem 0;
}

.homegym-slider .carousel-window {
    padding: 0 2.5rem;
}

.homegym-slider .category-card {
    background: #fff;
    color: var(--dark);
}

@media (max-width: 768px) {
    .homegym-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .homegym-form-grid {
        grid-template-columns: 1fr;
    }
    
    .homegym-phone {
        grid-template-columns: 1fr;
    }
}

/* Categories Equipment Carousel */
.categories-grid-equipement {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .categories-grid-equipement {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid-equipement {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card-equipement {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-card-equipement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.category-image-equipement {
    width: 100%;
    height: 150px;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-equipement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-equipement h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .category-image-equipement {
        height: 180px;
    }
    
    .category-card-equipement h3 {
        font-size: 1rem;
    }
}

.equipment-carousel .carousel-window {
    padding: 0 2.5rem;
}

.equipment-carousel .categories-grid-equipement {
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (4 - 1) * 1rem) / 4);
    gap: 1rem;
    margin: 0;
    display: grid;
}

.category-card-equipement p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

/* ============================================
   STYLES POUR TEMPLATE PRODUIT SEO
   ============================================ */

/* Above the fold - Hero produit */
.product-hero {
    margin: 2rem 0;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Galerie images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0.5rem;
    overflow: visible;
    background: transparent;
    object-fit: contain;
    /* Qualité maximale - EXACTEMENT les mêmes propriétés que le lightbox */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    image-rendering: -moz-crisp-edges;
    image-rendering: auto;
    /* Empêcher le navigateur de redimensionner l'image de manière à dégrader la qualité */
    /* Ne pas forcer width: 100% car cela peut forcer un redimensionnement */
    display: block;
    margin: 0 auto;
    /* Forcer le même contexte de rendu que le lightbox - pas de filtres ni transformations */
    filter: none !important;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    /* Forcer le navigateur à utiliser le même algorithme de rendu */
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

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

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.3s;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
    border-color: var(--primary);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations produit principales */
.product-info-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title-h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin: 0;
}

@media (max-width: 768px) {
    .product-title-h1 {
        font-size: 1.5rem;
    }
}

/* Badges */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: absolute;
    top: 2px !important;
    left: 10px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

/* ✅ FORCER badge-precommande EN VERT sur produit.html */
.badge-precommande,
span.badge-precommande,
#productBadges .badge-precommande {
    color: #28a745 !important;
    border-color: #28a745 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.badge-danger {
    background: #f44336;
    color: white;
}

.badge-info {
    background: #2196f3;
    color: white;
}

/* Prix */
.product-pricing {
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.price-pvc {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.price-quantity {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Bouton CTA principal */
.btn-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-cta-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-cta-primary:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.25rem;
}

/* Moyens de paiement */
.payment-methods {
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
}

.payment-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
}

.payment-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Infos clés rapides */
.product-key-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
}

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

.key-info-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.key-info-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Description SEO */
.product-description-seo {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.product-description-text {
    line-height: 1.8;
    color: var(--dark);
}

.description-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.description-highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.description-highlights li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.description-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Bloc rassurance */
.product-reassurance {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .reassurance-grid {
        grid-template-columns: 1fr;
    }
}

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

.reassurance-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.reassurance-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.reassurance-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Fiche technique */
.product-specs-table {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.specs-table-detailed {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.specs-table-detailed tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table-detailed tr:last-child {
    border-bottom: none;
}

.specs-table-detailed .spec-label {
    padding: 1rem;
    font-weight: 600;
    color: var(--dark);
    background: #f8f8f8;
    width: 30%;
    border-right: 1px solid #e0e0e0;
}

.specs-table-detailed .spec-value {
    padding: 1rem;
    color: var(--gray-600);
}

/* Accordéon livraison */
.product-delivery-info {
    margin: 3rem 0;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-icon {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.accordion-content {
    padding: 1.25rem;
    display: none;
    background: white;
    line-height: 1.8;
    color: var(--gray-600);
}

.accordion-content p {
    margin-bottom: 0.75rem;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Produits similaires */
.similar-products {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Styles pour les menus déroulants verticaux */
.vertical-dropdown {
    position: relative;
    z-index: 1002 !important;
}

.vertical-dropdown-panel {
    position: absolute !important;
    z-index: 1002 !important;
    pointer-events: all !important;
    cursor: default !important;
    isolation: isolate; /* Créer un nouveau contexte de stacking */
}

.vertical-dropdown-panel[style*="display: block"] {
    pointer-events: all !important;
    z-index: 1002 !important;
    display: block !important;
}

.vertical-dropdown-panel a {
    pointer-events: all !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1003;
    display: block;
}

/* S'assurer que le header ne bloque pas les clics sur les panels */
.header {
    z-index: 1001 !important;
    isolation: isolate; /* Créer un contexte de stacking séparé */
}

.header .vertical-dropdown {
    z-index: 1002 !important;
    position: relative;
}

/* Forcer les panels à être au-dessus de tout */
.header .vertical-dropdown-panel {
    z-index: 1002 !important;
    position: absolute !important;
}


