/*
Theme Name: Boutique Bleu
Theme URI: https://example.com/boutique-bleu
Author: Developer
Author URI: https://example.com
Description: Thème e-commerce SEO optimisé pour WooCommerce avec support des produits variables. Design épuré en bleu clair, entièrement responsive et personnalisable.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boutique-bleu
Tags: e-commerce, woocommerce, responsive-layout, custom-colors, custom-logo, custom-menu, featured-images, translation-ready

Boutique Bleu - Thème e-commerce moderne et élégant
*/

/* ==========================================================================
   CSS Variables - Palette de couleurs
   ========================================================================== */
:root {
    /* Couleurs principales - Bleu clair */
    --bb-primary: #5BA4E6;
    --bb-primary-light: #8BC4F2;
    --bb-primary-dark: #3A8AD4;
    --bb-primary-hover: #4A94D6;
    
    /* Couleurs secondaires */
    --bb-secondary: #E8F4FC;
    --bb-secondary-dark: #D0E8F8;
    
    /* Couleurs de texte */
    --bb-text-primary: #2D3748;
    --bb-text-secondary: #4A5568;
    --bb-text-light: #718096;
    --bb-text-inverse: #FFFFFF;
    
    /* Couleurs de fond */
    --bb-bg-white: #FFFFFF;
    --bb-bg-light: #F7FAFC;
    --bb-bg-gray: #EDF2F7;
    
    /* Couleurs d'état */
    --bb-success: #48BB78;
    --bb-warning: #ECC94B;
    --bb-error: #F56565;
    --bb-info: #4299E1;
    
    /* Bordures et ombres */
    --bb-border: #E2E8F0;
    --bb-border-light: #EDF2F7;
    --bb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --bb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typographie */
    --bb-font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --bb-font-secondary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espacement */
    --bb-spacing-xs: 0.25rem;
    --bb-spacing-sm: 0.5rem;
    --bb-spacing-md: 1rem;
    --bb-spacing-lg: 1.5rem;
    --bb-spacing-xl: 2rem;
    --bb-spacing-2xl: 3rem;
    --bb-spacing-3xl: 4rem;
    
    /* Rayons de bordure */
    --bb-radius-sm: 0.25rem;
    --bb-radius: 0.5rem;
    --bb-radius-lg: 0.75rem;
    --bb-radius-xl: 1rem;
    --bb-radius-full: 9999px;
    
    /* Transitions */
    --bb-transition-fast: 150ms ease;
    --bb-transition: 300ms ease;
    --bb-transition-slow: 500ms ease;
    
    /* Conteneur */
    --bb-container-max: 1600px;
    --bb-container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--bb-font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--bb-text-primary);
    background-color: var(--bb-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bb-primary);
    text-decoration: none;
    transition: color var(--bb-transition-fast);
}

a:hover {
    color: var(--bb-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bb-font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--bb-text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--bb-spacing-md);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Conteneur
   ========================================================================== */
.bb-container {
    width: 100%;
    max-width: var(--bb-container-max);
    margin: 0 auto;
    padding: 0 var(--bb-container-padding);
}

.bb-container-narrow {
    max-width: 960px;
}

.bb-container-wide {
    max-width: 1440px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bb-spacing-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--bb-font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--bb-radius);
    cursor: pointer;
    transition: all var(--bb-transition-fast);
}

.bb-btn-primary {
    background-color: var(--bb-primary);
    color: var(--bb-text-inverse);
}

.bb-btn-primary:hover {
    background-color: var(--bb-primary-hover);
    color: var(--bb-text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow);
}

.bb-btn-secondary {
    background-color: var(--bb-secondary);
    color: var(--bb-primary);
    border: 1px solid var(--bb-primary);
}

.bb-btn-secondary:hover {
    background-color: var(--bb-primary);
    color: var(--bb-text-inverse);
}

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

.bb-btn-outline:hover {
    background-color: var(--bb-primary);
    color: var(--bb-text-inverse);
}

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

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

/* ==========================================================================
   En-tête
   ========================================================================== */
.bb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bb-bg-white);
    box-shadow: var(--bb-shadow-sm);
}

.bb-header-top {
    background-color: var(--bb-primary);
    color: var(--bb-text-inverse);
    padding: var(--bb-spacing-xs) 0;
    font-size: 0.875rem;
}

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

.bb-header-main {
    padding: var(--bb-spacing-md) 0;
}

.bb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bb-spacing-xl);
}

.bb-logo {
    flex-shrink: 0;
}

.bb-logo img {
    max-height: 50px;
    width: auto;
}

.bb-logo-text {
    font-family: var(--bb-font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bb-primary);
}

/* Navigation */
.bb-nav {
    display: none;
}

.bb-nav-list {
    display: flex;
    align-items: center;
    gap: var(--bb-spacing-lg);
}

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

.bb-nav-link {
    display: block;
    padding: var(--bb-spacing-sm) 0;
    font-family: var(--bb-font-primary);
    font-weight: 500;
    color: var(--bb-text-primary);
    transition: color var(--bb-transition-fast);
}

.bb-nav-link:hover,
.bb-nav-item.current-menu-item .bb-nav-link {
    color: var(--bb-primary);
}

/* Sous-menu */
.bb-nav-item .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--bb-bg-white);
    box-shadow: var(--bb-shadow-lg);
    border-radius: var(--bb-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bb-transition-fast);
    z-index: 100;
}

.bb-nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bb-nav-item .sub-menu li a {
    display: block;
    padding: var(--bb-spacing-sm) var(--bb-spacing-md);
    color: var(--bb-text-secondary);
    font-size: 0.9375rem;
}

.bb-nav-item .sub-menu li a:hover {
    background-color: var(--bb-secondary);
    color: var(--bb-primary);
}

/* Actions en-tête */
.bb-header-actions {
    display: flex;
    align-items: center;
    gap: var(--bb-spacing-md);
}

.bb-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bb-text-primary);
    border-radius: var(--bb-radius-full);
    transition: all var(--bb-transition-fast);
}

.bb-header-icon:hover {
    background-color: var(--bb-secondary);
    color: var(--bb-primary);
}

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

.bb-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: var(--bb-text-inverse);
    background-color: var(--bb-primary);
    border-radius: var(--bb-radius-full);
}

/* Menu mobile */
.bb-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.bb-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--bb-text-primary);
    transition: all var(--bb-transition-fast);
}

.bb-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bb-bg-white);
    z-index: 2000;
    overflow-y: auto;
    padding: var(--bb-spacing-xl);
}

.bb-mobile-menu.active {
    display: block;
}

.bb-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bb-spacing-xl);
}

.bb-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.bb-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--bb-spacing-sm);
}

.bb-mobile-nav-link {
    display: block;
    padding: var(--bb-spacing-md);
    font-family: var(--bb-font-primary);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--bb-text-primary);
    border-bottom: 1px solid var(--bb-border-light);
}

/* ==========================================================================
   Section Héros
   ========================================================================== */
.bb-hero {
    position: relative;
    padding: var(--bb-spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bb-secondary) 0%, var(--bb-bg-white) 100%);
    overflow: hidden;
}

.bb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, var(--bb-primary-light) 0%, transparent 70%);
    opacity: 0.15;
    animation: hero-pulse 8s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.bb-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bb-spacing-2xl);
    align-items: center;
}

.bb-hero-content {
    text-align: center;
}

.bb-hero-subtitle {
    display: inline-block;
    padding: var(--bb-spacing-xs) var(--bb-spacing-md);
    margin-bottom: var(--bb-spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bb-primary);
    background-color: var(--bb-primary);
    background-color: rgba(91, 164, 230, 0.1);
    border-radius: var(--bb-radius-full);
}

.bb-hero-title {
    margin-bottom: var(--bb-spacing-lg);
    font-size: 2.25rem;
    line-height: 1.2;
}

.bb-hero-title span {
    color: var(--bb-primary);
}

.bb-hero-text {
    max-width: 540px;
    margin: 0 auto var(--bb-spacing-xl);
    font-size: 1.125rem;
    color: var(--bb-text-secondary);
}

.bb-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--bb-spacing-md);
}

.bb-hero-image {
    display: none;
}

.bb-hero-image img {
    border-radius: var(--bb-radius-xl);
    box-shadow: var(--bb-shadow-xl);
}

/* ==========================================================================
   Section Caractéristiques
   ========================================================================== */
.bb-features {
    padding: var(--bb-spacing-2xl) 0;
    background-color: var(--bb-bg-white);
    border-top: 1px solid var(--bb-border-light);
    border-bottom: 1px solid var(--bb-border-light);
}

.bb-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bb-spacing-md);
}

.bb-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--bb-spacing-sm);
    padding: var(--bb-spacing-md);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius-lg);
    transition: all var(--bb-transition);
}

@media (min-width: 768px) {
    .bb-feature-item {
        flex-direction: row;
        text-align: left;
        gap: var(--bb-spacing-md);
        padding: var(--bb-spacing-lg);
    }
}

.bb-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow);
}

.bb-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--bb-primary);
    background-color: var(--bb-secondary);
    border-radius: var(--bb-radius);
}

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

.bb-feature-content h3 {
    font-size: 1rem;
    margin-bottom: var(--bb-spacing-xs);
}

.bb-feature-content p {
    font-size: 0.875rem;
    color: var(--bb-text-light);
    margin: 0;
}

/* ==========================================================================
   Sections générales
   ========================================================================== */
.bb-section {
    padding: var(--bb-spacing-3xl) 0;
}

.bb-section-header {
    text-align: center;
    margin-bottom: var(--bb-spacing-2xl);
}

.bb-section-subtitle {
    display: inline-block;
    margin-bottom: var(--bb-spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bb-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bb-section-title {
    margin-bottom: var(--bb-spacing-md);
}

.bb-section-desc {
    max-width: 640px;
    margin: 0 auto;
    color: var(--bb-text-secondary);
}

.bb-section-bg-light {
    background-color: var(--bb-bg-light);
}

.bb-section-bg-blue {
    background-color: var(--bb-secondary);
}

/* ==========================================================================
   Grille de produits
   ========================================================================== */
.bb-products-grid {
    --bb-home-columns: 4; /* Valeur par défaut */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bb-spacing-md);
}

/* Grille de produits sur la page d'accueil avec colonnes personnalisées */
.bb-home-products .bb-products-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: toujours 2 colonnes */
}

.bb-product-card {
    position: relative;
    background-color: var(--bb-bg-white);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    box-shadow: var(--bb-shadow-sm);
    transition: all var(--bb-transition);
}

.bb-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-product-badge {
    position: absolute;
    top: var(--bb-spacing-sm);
    left: var(--bb-spacing-sm);
    z-index: 10;
    padding: var(--bb-spacing-xs) var(--bb-spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bb-text-inverse);
    background-color: var(--bb-primary);
    border-radius: var(--bb-radius-sm);
}

.bb-product-badge.sale {
    background-color: var(--bb-error);
}

.bb-product-badge.new {
    background-color: var(--bb-success);
}

.bb-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.bb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bb-transition);
}

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

.bb-product-actions {
    position: absolute;
    bottom: var(--bb-spacing-sm);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: var(--bb-spacing-sm);
    opacity: 0;
    transition: all var(--bb-transition);
}

.bb-product-card:hover .bb-product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bb-product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bb-text-primary);
    background-color: var(--bb-bg-white);
    border-radius: var(--bb-radius-full);
    box-shadow: var(--bb-shadow);
    transition: all var(--bb-transition-fast);
}

.bb-product-action-btn:hover {
    color: var(--bb-text-inverse);
    background-color: var(--bb-primary);
}

.bb-product-info {
    padding: var(--bb-spacing-md);
}

.bb-product-category {
    display: block;
    margin-bottom: var(--bb-spacing-xs);
    font-size: 0.75rem;
    color: var(--bb-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bb-product-title {
    display: block;
    margin-bottom: var(--bb-spacing-sm);
    font-family: var(--bb-font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--bb-text-primary);
    line-height: 1.4;
    transition: color var(--bb-transition-fast);
}

.bb-product-title:hover {
    color: var(--bb-primary);
}

.bb-product-price {
    display: flex;
    align-items: center;
    gap: var(--bb-spacing-sm);
    font-family: var(--bb-font-primary);
}

.bb-product-price .price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bb-primary);
}

.bb-product-price del {
    font-size: 0.875rem;
    color: var(--bb-text-light);
}

.bb-product-price ins {
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bb-primary);
}

/* Variations */
.bb-product-variations {
    display: flex;
    gap: var(--bb-spacing-xs);
    margin-top: var(--bb-spacing-sm);
}

.bb-product-variation {
    width: 20px;
    height: 20px;
    border-radius: var(--bb-radius-full);
    border: 2px solid var(--bb-border);
    cursor: pointer;
    transition: border-color var(--bb-transition-fast);
}

.bb-product-variation:hover,
.bb-product-variation.active {
    border-color: var(--bb-primary);
}

/* ==========================================================================
   Catégories Carousel
   ========================================================================== */
.bb-categories-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--bb-spacing-md);
}

.bb-categories-carousel {
    flex: 1;
    overflow: hidden;
}

.bb-categories-track {
    display: flex;
    gap: var(--bb-spacing-md);
    transition: transform 0.4s ease;
}

.bb-carousel-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--bb-bg-white);
    border: 2px solid var(--bb-border);
    border-radius: 50%;
    color: var(--bb-text-primary);
    cursor: pointer;
    transition: all var(--bb-transition-fast);
    z-index: 2;
}

.bb-carousel-btn:hover {
    background-color: var(--bb-primary);
    border-color: var(--bb-primary);
    color: var(--bb-bg-white);
}

.bb-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .bb-carousel-btn {
        display: none;
    }
    
    .bb-categories-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .bb-categories-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .bb-categories-track {
        padding: 0 var(--bb-spacing-sm);
    }
}

.bb-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: calc(50% - var(--bb-spacing-md) / 2);
    padding: var(--bb-spacing-lg);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--bb-transition);
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .bb-category-card {
        width: calc(33.333% - var(--bb-spacing-md) * 2 / 3);
        padding: var(--bb-spacing-xl);
    }
}

@media (min-width: 1024px) {
    .bb-category-card {
        width: calc(25% - var(--bb-spacing-md) * 3 / 4);
    }
}

.bb-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-primary-light) 100%);
    opacity: 0;
    transition: opacity var(--bb-transition);
}

.bb-category-card:hover::before {
    opacity: 0.95;
}

.bb-category-card > * {
    position: relative;
    z-index: 1;
}

.bb-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: var(--bb-spacing-md);
    color: var(--bb-primary);
    background-color: var(--bb-secondary);
    border-radius: var(--bb-radius-full);
    transition: all var(--bb-transition);
}

.bb-category-card:hover .bb-category-icon {
    color: var(--bb-primary);
    background-color: var(--bb-bg-white);
}

.bb-category-icon svg {
    width: 32px;
    height: 32px;
}

.bb-category-title {
    margin-bottom: var(--bb-spacing-xs);
    font-size: 1.125rem;
    transition: color var(--bb-transition);
}

.bb-category-card:hover .bb-category-title {
    color: var(--bb-text-inverse);
}

.bb-category-count {
    font-size: 0.875rem;
    color: var(--bb-text-light);
    transition: color var(--bb-transition);
}

.bb-category-card:hover .bb-category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Bannière promotionnelle
   ========================================================================== */
.bb-promo-banner {
    position: relative;
    padding: var(--bb-spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-primary-dark) 100%);
    color: var(--bb-text-inverse);
    overflow: hidden;
}

.bb-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.bb-promo-inner {
    position: relative;
    text-align: center;
}

.bb-promo-subtitle {
    display: inline-block;
    padding: var(--bb-spacing-xs) var(--bb-spacing-md);
    margin-bottom: var(--bb-spacing-md);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(255,255,255,0.2);
    border-radius: var(--bb-radius-full);
}

.bb-promo-title {
    margin-bottom: var(--bb-spacing-md);
    font-size: 2rem;
    color: var(--bb-text-inverse);
}

.bb-promo-text {
    max-width: 540px;
    margin: 0 auto var(--bb-spacing-xl);
    opacity: 0.9;
}

.bb-promo-banner .bb-btn-outline {
    color: var(--bb-text-inverse);
    border-color: var(--bb-text-inverse);
}

.bb-promo-banner .bb-btn-outline:hover {
    background-color: var(--bb-text-inverse);
    color: var(--bb-primary);
}

/* ==========================================================================
   Témoignages
   ========================================================================== */
.bb-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bb-spacing-lg);
}

.bb-testimonial-card {
    padding: var(--bb-spacing-xl);
    background-color: var(--bb-bg-white);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow);
}

.bb-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--bb-spacing-md);
    color: var(--bb-warning);
}

.bb-testimonial-text {
    margin-bottom: var(--bb-spacing-lg);
    font-style: italic;
    color: var(--bb-text-secondary);
}

.bb-testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--bb-spacing-md);
}

.bb-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
}

.bb-testimonial-name {
    font-weight: 600;
    color: var(--bb-text-primary);
}

.bb-testimonial-role {
    font-size: 0.875rem;
    color: var(--bb-text-light);
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.bb-newsletter {
    padding: var(--bb-spacing-3xl) 0;
    background-color: var(--bb-secondary);
}

.bb-newsletter-inner {
    text-align: center;
}

.bb-newsletter-title {
    margin-bottom: var(--bb-spacing-sm);
}

.bb-newsletter-text {
    max-width: 480px;
    margin: 0 auto var(--bb-spacing-xl);
    color: var(--bb-text-secondary);
}

.bb-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--bb-spacing-sm);
    max-width: 480px;
    margin: 0 auto;
}

.bb-newsletter-form input[type="email"] {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    background-color: var(--bb-bg-white);
    transition: border-color var(--bb-transition-fast);
}

.bb-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--bb-primary);
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.bb-footer {
    background-color: var(--bb-text-primary);
    color: var(--bb-text-inverse);
}

.bb-footer-main {
    padding: var(--bb-spacing-3xl) 0;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bb-spacing-2xl);
}

.bb-footer-brand {
    margin-bottom: var(--bb-spacing-lg);
}

.bb-footer-logo {
    margin-bottom: var(--bb-spacing-md);
}

.bb-footer-logo img {
    /* max-height removed */
}

.bb-footer-logo-text {
    font-family: var(--bb-font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bb-text-inverse);
}

.bb-footer-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--bb-spacing-lg);
}

.bb-footer-social {
    display: flex;
    gap: var(--bb-spacing-sm);
}

.bb-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bb-text-inverse);
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--bb-radius-full);
    transition: all var(--bb-transition-fast);
}

.bb-social-link:hover {
    color: var(--bb-text-primary);
    background-color: var(--bb-text-inverse);
}

.bb-footer-title {
    margin-bottom: var(--bb-spacing-lg);
    font-size: 1.125rem;
    color: var(--bb-text-inverse);
}

.bb-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--bb-spacing-sm);
}

.bb-footer-link {
    color: rgba(255,255,255,0.7);
    transition: color var(--bb-transition-fast);
}

.bb-footer-link:hover {
    color: var(--bb-text-inverse);
}

.bb-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--bb-spacing-sm);
    margin-bottom: var(--bb-spacing-md);
    color: rgba(255,255,255,0.7);
}

.bb-footer-contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.bb-footer-bottom {
    padding: var(--bb-spacing-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bb-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bb-spacing-md);
    text-align: center;
}

.bb-copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.bb-payment-methods {
    display: flex;
    gap: var(--bb-spacing-sm);
}

.bb-payment-methods img {
    height: 24px;
}

/* ==========================================================================
   WooCommerce - Page Produit
   ========================================================================== */
.woocommerce div.product {
    padding: var(--bb-spacing-2xl) 0;
}

.woocommerce div.product div.images {
    margin-bottom: var(--bb-spacing-xl);
}

.woocommerce div.product div.images img {
    border-radius: var(--bb-radius-lg);
}

.woocommerce div.product .product_title {
    font-family: var(--bb-font-primary);
    font-size: 1.75rem;
    margin-bottom: var(--bb-spacing-md);
}

.woocommerce div.product p.price {
    font-family: var(--bb-font-primary);
    font-size: 1.5rem;
    color: var(--bb-primary);
    margin-bottom: var(--bb-spacing-lg);
}

.woocommerce div.product p.price del {
    color: var(--bb-text-light);
    font-size: 1.125rem;
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

.woocommerce div.product form.cart {
    margin-bottom: var(--bb-spacing-xl);
}

.woocommerce div.product form.cart .variations {
    margin-bottom: var(--bb-spacing-lg);
}

.woocommerce div.product form.cart .variations td.label {
    padding-right: var(--bb-spacing-md);
    font-weight: 600;
}

.woocommerce div.product form.cart .variations select {
    padding: var(--bb-spacing-sm) var(--bb-spacing-md);
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    background-color: var(--bb-bg-white);
    min-width: 200px;
}

.woocommerce div.product form.cart .quantity {
    margin-right: var(--bb-spacing-md);
}

.woocommerce div.product form.cart .quantity .qty {
    padding: 0.75rem;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    text-align: center;
    width: 80px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    padding: 0.875rem 2rem;
    font-family: var(--bb-font-primary);
    font-weight: 500;
    background-color: var(--bb-primary);
    border: none;
    border-radius: var(--bb-radius);
    transition: all var(--bb-transition-fast);
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: var(--bb-primary-hover);
    transform: translateY(-2px);
}

.woocommerce div.product .woocommerce-tabs {
    margin-top: var(--bb-spacing-2xl);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: var(--bb-spacing-sm);
    padding: 0;
    margin-bottom: var(--bb-spacing-xl);
    border: none;
    list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: var(--bb-spacing-sm) var(--bb-spacing-lg);
    font-family: var(--bb-font-primary);
    font-weight: 500;
    color: var(--bb-text-secondary);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius);
    transition: all var(--bb-transition-fast);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--bb-text-inverse);
    background-color: var(--bb-primary);
}

/* ==========================================================================
   WooCommerce - Panier
   ========================================================================== */
.woocommerce-cart .woocommerce {
    padding: var(--bb-spacing-2xl) 0;
}

.woocommerce table.shop_table {
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background-color: var(--bb-bg-light);
    font-family: var(--bb-font-primary);
    font-weight: 600;
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--bb-border);
    padding: var(--bb-spacing-md);
}

.woocommerce .cart_totals {
    padding: var(--bb-spacing-xl);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius-lg);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    padding: 1rem;
    font-family: var(--bb-font-primary);
    font-weight: 500;
    text-align: center;
    background-color: var(--bb-primary);
    border-radius: var(--bb-radius);
    transition: all var(--bb-transition-fast);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--bb-primary-hover);
}

/* ==========================================================================
   WooCommerce - Messages
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--bb-spacing-md) var(--bb-spacing-lg);
    border-radius: var(--bb-radius);
    margin-bottom: var(--bb-spacing-lg);
}

.woocommerce-message {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid var(--bb-success);
}

.woocommerce-info {
    background-color: rgba(66, 153, 225, 0.1);
    border-left: 4px solid var(--bb-info);
}

.woocommerce-error {
    background-color: rgba(245, 101, 101, 0.1);
    border-left: 4px solid var(--bb-error);
}

/* ==========================================================================
   Page de blog
   ========================================================================== */
.bb-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bb-spacing-xl);
}

.bb-blog-card {
    background-color: var(--bb-bg-white);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    box-shadow: var(--bb-shadow-sm);
    transition: all var(--bb-transition);
}

.bb-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow);
}

.bb-blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.bb-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bb-transition);
}

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

.bb-blog-content {
    padding: var(--bb-spacing-lg);
}

.bb-blog-meta {
    display: flex;
    gap: var(--bb-spacing-md);
    margin-bottom: var(--bb-spacing-sm);
    font-size: 0.875rem;
    color: var(--bb-text-light);
}

.bb-blog-title {
    margin-bottom: var(--bb-spacing-sm);
    font-size: 1.25rem;
    line-height: 1.4;
}

.bb-blog-title a {
    color: var(--bb-text-primary);
}

.bb-blog-title a:hover {
    color: var(--bb-primary);
}

.bb-blog-excerpt {
    color: var(--bb-text-secondary);
    margin-bottom: var(--bb-spacing-md);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.bb-pagination {
    display: flex;
    justify-content: center;
    gap: var(--bb-spacing-sm);
    margin-top: var(--bb-spacing-2xl);
}

.bb-pagination a,
.bb-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--bb-spacing-sm);
    font-weight: 500;
    color: var(--bb-text-secondary);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius);
    transition: all var(--bb-transition-fast);
}

.bb-pagination a:hover,
.bb-pagination span.current {
    color: var(--bb-text-inverse);
    background-color: var(--bb-primary);
}

/* ==========================================================================
   Sidebar / Widget
   ========================================================================== */
.bb-sidebar {
    margin-top: var(--bb-spacing-2xl);
}

.bb-widget {
    padding: var(--bb-spacing-lg);
    margin-bottom: var(--bb-spacing-lg);
    background-color: var(--bb-bg-light);
    border-radius: var(--bb-radius-lg);
}

.bb-widget-title {
    margin-bottom: var(--bb-spacing-md);
    padding-bottom: var(--bb-spacing-sm);
    font-size: 1.125rem;
    border-bottom: 2px solid var(--bb-primary);
}

/* ==========================================================================
   Formulaires
   ========================================================================== */
.bb-form-group {
    margin-bottom: var(--bb-spacing-md);
}

.bb-form-label {
    display: block;
    margin-bottom: var(--bb-spacing-xs);
    font-weight: 500;
    color: var(--bb-text-primary);
}

.bb-form-input,
.bb-form-textarea,
.bb-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    background-color: var(--bb-bg-white);
    transition: border-color var(--bb-transition-fast);
}

.bb-form-input:focus,
.bb-form-textarea:focus,
.bb-form-select:focus {
    outline: none;
    border-color: var(--bb-primary);
}

.bb-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.bb-text-center { text-align: center; }
.bb-text-left { text-align: left; }
.bb-text-right { text-align: right; }

.bb-mt-sm { margin-top: var(--bb-spacing-sm); }
.bb-mt-md { margin-top: var(--bb-spacing-md); }
.bb-mt-lg { margin-top: var(--bb-spacing-lg); }
.bb-mt-xl { margin-top: var(--bb-spacing-xl); }

.bb-mb-sm { margin-bottom: var(--bb-spacing-sm); }
.bb-mb-md { margin-bottom: var(--bb-spacing-md); }
.bb-mb-lg { margin-bottom: var(--bb-spacing-lg); }
.bb-mb-xl { margin-bottom: var(--bb-spacing-xl); }

.bb-hidden { display: none; }
.bb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive - Tablette
   ========================================================================== */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .bb-nav {
        display: block;
    }
    
    .bb-mobile-toggle {
        display: none;
    }
    
    .bb-hero-inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .bb-hero-content {
        text-align: left;
    }
    
    .bb-hero-title {
        font-size: 2.75rem;
    }
    
    .bb-hero-text {
        margin-left: 0;
    }
    
    .bb-hero-buttons {
        justify-content: flex-start;
    }
    
    .bb-hero-image {
        display: block;
    }
    
    .bb-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--bb-spacing-lg);
    }
    
    /* Grille personnalisée sur la page d'accueil (tablette) */
    .bb-home-products .bb-products-grid {
        grid-template-columns: repeat(min(var(--bb-home-columns), 3), 1fr);
    }
    
    .bb-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-newsletter-form {
        flex-direction: row;
    }
    
    .bb-newsletter-form input[type="email"] {
        flex: 1;
    }
    
    .bb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .bb-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-sidebar {
        margin-top: 0;
    }
}

/* ==========================================================================
   Responsive - Desktop
   ========================================================================== */
@media (min-width: 1024px) {
    .bb-hero-title {
        font-size: 3.25rem;
    }
    
    .bb-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bb-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Grille personnalisée sur la page d'accueil (desktop) */
    .bb-home-products .bb-products-grid {
        grid-template-columns: repeat(var(--bb-home-columns), 1fr);
    }
    
    .bb-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bb-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .bb-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bb-content-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: var(--bb-spacing-2xl);
    }
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--bb-primary);
    outline-offset: 2px;
}

/* Skip link */
.bb-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--bb-spacing-sm) var(--bb-spacing-md);
    background-color: var(--bb-primary);
    color: var(--bb-text-inverse);
    border-radius: var(--bb-radius);
    z-index: 9999;
    transition: top var(--bb-transition-fast);
}

.bb-skip-link:focus {
    top: var(--bb-spacing-sm);
}

