/* =============================================
   STYLE.CSS - SURA MEUBELS ROTTERDAM - VERSION AVEC LIGHTBOX
   Version: 2.2 - Ajout Lightbox produits
   Dernière mise à jour: 2024
   ============================================= */

/* ==== VARIABLES CSS (CUSTOM PROPERTIES) ==== */
:root {
    /* ===== COULEURS PRINCIPALES ===== */
    --primary: #2D5A45;
    --primary-dark: #1E3D2F;
    --secondary: #8B7355;
    --secondary-dark: #6B5A45;
    --accent: #D4AF37;
    
    /* ===== COULEURS NEUTRES ===== */
    --dark: #222;
    --gray: #666;
    --gray-light: #999;
    --light-gray: #e9ecef;
    --light: #f8f9fa;
    --white: #fff;
    --border: #dee2e6;
    
    /* ===== COULEURS CATÉGORIES PRODUITS ===== */
    --budget: #2D5A45;
    --premium: #8B7355;
    --premium-plus: #D4AF37;
    
    /* ===== EFFETS VISUELS ===== */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    
    /* ===== RAYONS & TRANSITIONS ===== */
    --radius-sm: 6px;
    --radius: 12px;
    --transition: 0.3s ease;
    --container-max: 1200px;
    
    /* ===== NOUVELLES VARIABLES MOBILE ===== */
    --touch-target: 44px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    
    /* ===== VARIABLES LIGHTBOX ===== */
    --lightbox-bg: rgba(0, 0, 0, 0.95);
    --lightbox-z-index: 9999;
}

/* ==== RÉINITIALISATION & STYLES DE BASE ==== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

main { 
    flex: 1; 
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==== TYPOGRAPHIE ==== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { 
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.1;
}

h2 { 
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.2;
}

h3 { 
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.7;
    word-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    touch-action: manipulation;
}

/* ==== COMPOSANTS BOUTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-height: var(--touch-target);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    width: auto;
    max-width: 100%;
    text-align: center;
}

.btn:hover,
.btn:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--white);
    outline: none;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Variantes de boutons */
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover,
.btn-secondary:focus-visible { 
    background: var(--secondary-dark); 
}

.btn-accent { 
    background: var(--accent); 
    color: var(--dark); 
}
.btn-accent:hover,
.btn-accent:focus-visible { 
    background: #C9A432; 
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--primary);
    color: var(--white);
}

/* Tailles de boutons */
.btn-large { 
    padding: 1rem 1.75rem; 
    font-size: 1.1rem; 
    min-height: 56px; 
}
.btn-small { 
    padding: 0.625rem 1.25rem; 
    font-size: 0.875rem; 
    min-height: 40px; 
}

/* Groupe de boutons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ==== NAVIGATION PRINCIPALE ==== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: var(--safe-area-inset-top);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 1rem;
    min-height: var(--touch-target);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Menu desktop (caché sur mobile) */
.nav-menu {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    position: relative;
    white-space: nowrap;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

/* Effet underline animé */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    width: calc(100% - 1.5rem);
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.nav-link:hover::after,
.nav-link.active::after { 
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link:hover,
.nav-link:focus-visible { 
    color: var(--primary); 
    outline: none;
}
.nav-link.active { 
    color: var(--primary); 
    font-weight: 600; 
}

/* ==== MENU MOBILE ==== */
.menu-toggle {
    display: flex !important; /* FORCE L'AFFICHAGE DU BOUTON SUR MOBILE */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    z-index: 1001;
    border-radius: var(--radius-sm);
    touch-action: manipulation;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--light);
    color: var(--primary);
    outline: none;
}

/* Overlay semi-transparent */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

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

/* Panneau menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding-top: calc(70px + var(--safe-area-inset-top));
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active { 
    transform: translateX(0); 
}

.mobile-link {
    display: block;
    padding: 1.125rem 1.5rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
    touch-action: manipulation;
}

.mobile-link:hover,
.mobile-link.active,
.mobile-link:focus-visible {
    background: var(--light);
    color: var(--primary);
    padding-left: 2rem;
    outline: none;
}

.mobile-btn {
    display: block;
    margin: 1.5rem;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    touch-action: manipulation;
}

.mobile-btn:hover,
.mobile-btn:focus-visible {
    background: var(--primary-dark);
    color: var(--white);
    outline: none;
}

/* ==== SECTION HERO AVEC CARROUSEL ==== */
.hero {
    position: relative;
    color: var(--white);
    padding: clamp(4rem, 12vw, 6rem) 1.25rem;
    text-align: center;
    min-height: clamp(400px, 60vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Carrousel d'arrière-plan */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { 
    opacity: 1; 
}

/* Overlay coloré sur l'image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 69, 0.85), rgba(30, 61, 47, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p,
.hero-subtitle {
    color: var(--white);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 auto 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

/* Boutons hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    width: 100%;
}

/* ==== SECTIONS GÉNÉRIQUES ==== */
.section {
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

/* Ligne décorative sous le titre */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: -0.5rem auto 2rem;
}

/* ==== GRILLE DE PRODUITS ==== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.products-count {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* Boutons de filtre */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    width: 100%;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    min-height: 40px;
}

.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

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

/* Grille de produits responsive */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-height: 300px;
    width: 100%;
}

/* ==== CARTE PRODUIT ==== */
.product-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Slider d'images produit */
.product-slider {
    height: 200px;
    background: var(--light);
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
}

.product-slide.active { 
    opacity: 1; 
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    will-change: transform;
}

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

/* Navigation du slider */
.product-slider-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
    padding: 0 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    touch-action: manipulation;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-dot:hover,
.slider-dot:focus-visible {
    background: var(--white);
    outline: none;
}

/* Image produit (version simple) */
.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    will-change: transform;
}

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

/* Badge catégorie prix */
.product-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.category-budget { 
    background: var(--budget); 
    color: var(--white); 
}
.category-premium { 
    background: var(--premium); 
    color: var(--white); 
}
.category-premium-plus { 
    background: var(--premium-plus); 
    color: var(--dark); 
}

/* Contenu produit */
.product-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ==== LIGHTBOX STYLES ==== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    z-index: var(--lightbox-z-index);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.lightbox-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
    color: var(--white);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lightbox-product-name {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    font-size: 0.875rem;
    opacity: 0.8;
    color: var(--gray-light);
}

/* Bouton fermeture */
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: var(--touch-target);
    height: var(--touch-target);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    touch-action: manipulation;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    outline: none;
}

/* Boutons de navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--touch-target);
    height: var(--touch-target);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    touch-action: manipulation;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.lightbox-prev {
    left: 1rem;
    padding-right: 3px;
}

.lightbox-next {
    right: 1rem;
    padding-left: 3px;
}

/* Loader */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.lightbox-loader.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-loader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==== PAGINATION ==== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.page-link {
    padding: 0.625rem 0.875rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    color: var(--gray);
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.page-link:hover,
.page-link:focus-visible {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Message aucun produit */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-style: italic;
    background: var(--light);
    border-radius: var(--radius);
    width: 100%;
}

/* ==== GRILLE CATÉGORIES ==== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
    width: 100%;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    outline: none;
}

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

.category-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light-gray);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    will-change: transform;
}

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

.category-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.category-link {
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
    transition: var(--transition);
    display: inline-block;
}

.category-card:hover .category-link {
    color: var(--accent);
    transform: translateX(5px);
}

/* ==== SECTION EXPERTISE / SERVICES ==== */
.expertise-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.expertise-category,
.service-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.expertise-category:hover,
.service-card:hover,
.expertise-category:focus-within,
.service-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-icon,
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: block;
}

.expertise-category h3,
.service-card h3 {
    margin-bottom: 0.75rem;
}

.expertise-category p,
.service-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==== SECTION AVANTAGES ==== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin: 2rem 0;
    width: 100%;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    width: 100%;
}

.advantage-item:hover,
.advantage-item:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.advantage-item p {
    margin: 0;
    font-weight: 500;
    color: var(--dark);
}

/* ==== SECTION RENDEZ-VOUS / APPEL À L'ACTION ==== */
.appointment-section,
.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #f0f7f4, #e8f5e9);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    width: 100%;
}

.appointment-section h3,
.cta-section h2 {
    margin-bottom: 1rem;
}

.appointment-section p,
.cta-section p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* ==== MESSAGES STOCK & AIDE ==== */
.stock-message {
    background: #e8f5e9;
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    width: 100%;
}

.stock-message strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.help-box {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    width: 100%;
}

.help-box h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* ==== SECTION TÉMOIGNAGES ==== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2rem;
    align-items: start;
    width: 100%;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testimonial-author strong {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.google-icon {
    font-size: 1rem;
    color: #fbbc04;
}

.testimonial-author span {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.testimonial-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}

/* ==== SECTION POURQUOI NOUS CHOISIR ==== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    width: 100%;
}

.why-us-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.why-us-card:hover,
.why-us-card:focus-within {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.why-us-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.why-us-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==== PAGE À PROPOS ==== */
.about-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    width: 100%;
}

.about-card h2 {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Liste de valeurs */
.values-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    width: 100%;
}

.values-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: 2rem;
    width: 100%;
}

.value-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.value-card:hover,
.value-card:focus-within {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    width: 100%;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    width: 100%;
}

.team-member:hover,
.team-member:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-gray);
}

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

.team-member h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ==== FORMULAIRE DE CONTACT ==== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px; /* Empêche le zoom automatique iOS */
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    min-height: var(--touch-target);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 69, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* États erreur */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-text {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    padding: 0.5rem;
    background: #f8d7da;
    border-radius: 0.25rem;
    width: 100%;
}

::placeholder {
    color: var(--gray-light);
    opacity: 1;
}

/* Case à cocher */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary);
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

/* ==== CARTE INFORMATIONS CONTACT ==== */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
    width: 100%;
}

.contact-info-card:hover,
.contact-info-card:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.contact-detail {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary);
    word-break: break-all;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    outline: none;
}

/* ==== MESSAGES DE SUCCÈS/ERREUR ==== */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
    width: 100%;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
    width: 100%;
}

.success-message strong,
.error-message strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* ==== SECTION CARTE GOOGLE MAPS ==== */
.map-section {
    margin-top: 3rem;
    width: 100%;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==== SECTION FAQ ==== */
.faq-section {
    margin-top: 3rem;
    width: 100%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.faq-item {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    width: 100%;
}

.faq-item:hover,
.faq-item:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==== PIED DE PAGE ==== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), #1a2e23);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Bande colorée en haut du footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-column h3,
.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

/* Ligne décorative sous les titres */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer p {
    color: #d4d4d4;
    margin-bottom: 0.75rem;
}

.footer a {
    color: #d4d4d4;
    display: block;
    padding: 0.25rem 0;
    word-break: break-word;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--accent);
}

/* Horaires d'ouverture */
.hours-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    width: 100%;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 600;
    color: var(--white);
}

.hours-list .time {
    color: #d4d4d4;
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    transition: var(--transition);
    touch-action: manipulation;
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Bas du footer (copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* ==== CLASSES UTILITAIRES ==== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.loading-text { text-align: center; color: var(--gray); padding: 2rem; width: 100%; }
.w-100 { width: 100%; }

/* ==== ANIMATIONS CSS ==== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* ==== ÉTATS DE CHARGEMENT ==== */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, #f0f0f0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Loading state pour boutons */
.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==== ACCESSIBILITÉ ==== */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(45, 90, 69, 0.2);
}

/* Masquer visuellement mais accessible aux lecteurs d'écran */
.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;
}

/* Réduction motion (préférences utilisateur) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==== RESPONSIVE DESIGN - CORRECTIONS CRITIQUES ==== */

/* MOBILE FIRST - Toujours afficher le bouton menu sur mobile */
.menu-toggle {
    display: flex !important; /* FORCER L'AFFICHAGE PAR DÉFAUT */
}

/* Cacher le menu desktop sur mobile */
@media (max-width: 767px) {
    .nav-menu {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important; /* CONFIRMER L'AFFICHAGE SUR MOBILE */
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: block !important;
    }
}

/* Afficher le menu desktop sur tablette/desktop */
@media (min-width: 768px) {
    .nav-menu {
        display: flex !important;
    }
    
    .menu-toggle {
        display: none !important; /* CACHER LE BOUTON MENU SUR DESKTOP */
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

/* MOBILE - Petits écrans (< 576px) */
@media (max-width: 575px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero {
        min-height: 50vh !important;
        padding: 2rem 1rem !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p,
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    /* CORRECTION BOUTON HERO SUR MOBILE */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        min-height: 44px !important;
    }
    
    .section {
        padding: 2.5rem 1rem !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .product-slider,
    .product-image {
        height: 180px !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
    
    .logo-img {
        height: 38px !important;
    }
    
    .nav-container {
        padding: 0.5rem 1rem !important;
    }
    
    .contact-form {
        padding: 1.25rem !important;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    /* FILTRES MOBILE - Points colorés */
    .filter-buttons {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0.5rem 0;
        overflow-x: visible;
    }
    
    .filter-btn {
        width: 14px;
        height: 14px;
        min-height: auto;
        padding: 0;
        border-radius: 50%;
        border: 2px solid transparent;
        background: var(--light-gray);
        font-size: 0;
        color: transparent;
        flex-shrink: 0;
        transition: var(--transition);
        cursor: pointer;
    }
    
    .filter-btn[data-filter="all"] {
        background: var(--dark);
    }
    
    .filter-btn[data-filter="Budget"] {
        background: var(--budget);
    }
    
    .filter-btn[data-filter="Premium"] {
        background: var(--premium);
    }
    
    .filter-btn[data-filter="Premium+"] {
        background: var(--premium-plus);
    }
    
    .filter-btn.active {
        transform: scale(1.3);
        border-color: var(--dark);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .filter-btn:hover,
    .filter-btn:focus-visible {
        transform: scale(1.2);
        outline: none;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .mobile-menu {
        width: 90vw !important;
    }
    
    .mobile-link {
        padding: 1.125rem 1.5rem !important;
        font-size: 1.05rem !important;
    }
    
    /* Boutons généraux sur mobile */
    .btn-large {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        min-height: 48px !important;
    }
    
    .btn {
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }
    
    /* Lightbox mobile optimisations */
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        padding: 0 1rem;
    }
}

/* Tablettes et mobiles larges (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .expertise-grid,
    .services-grid,
    .why-us-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .nav-menu {
        display: none !important; /* FORCER LE MENU MOBILE SUR CETTE PLAGE */
    }
    
    .menu-toggle {
        display: flex !important; /* FORCER L'AFFICHAGE DU BOUTON MENU */
    }
    
    /* Correction boutons hero */
    .hero-buttons {
        max-width: 90%;
    }
    
    .hero-buttons .btn {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.25rem !important;
    }
}

/* Tablettes (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.25rem !important;
    }
    
    .nav-menu {
        display: flex !important; /* AFFICHER LE MENU DESKTOP */
        gap: 0.75rem !important;
    }
    
    .nav-link {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr !important;
        gap: 2.5rem !important;
    }
    
    .menu-toggle {
        display: none !important; /* CACHER LE BOUTON MENU */
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
    
    /* Lightbox tablette */
    .lightbox-content {
        max-width: 85vw;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .menu-toggle {
        display: none !important; /* CACHER LE BOUTON MENU */
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important; /* AFFICHER LE MENU DESKTOP */
    }
}

/* Desktop large (1200px+) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Orientation paysage sur mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 70vh !important;
        padding: 2rem 1.25rem !important;
    }
    
    .mobile-menu {
        height: 100vh !important;
        overflow-y: auto !important;
        padding-top: 60px !important;
    }
    
    /* Lightbox paysage */
    .lightbox-image {
        max-height: 75vh;
    }
    
    .lightbox-caption {
        margin-top: 0.5rem;
    }
}

/* Hauteur d'écran très petite */
@media (max-height: 400px) {
    .hero {
        min-height: 80vh !important;
    }
    
    .product-slider,
    .product-image {
        height: 150px !important;
    }
    
    .lightbox-nav {
        display: none !important; /* Cacher nav sur très petit écran, utiliser swipe */
    }
}

/* ==== STYLES IMPRESSION ==== */
@media print {
    .navbar,
    .footer,
    .btn,
    .menu-toggle,
    .mobile-menu,
    .mobile-overlay,
    .button-group,
    .filter-buttons,
    .pagination,
    .hero-buttons,
    .social-links,
    .lightbox-overlay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.4;
        overflow: visible !important;
        position: static !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .hero h1,
    .hero p {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .product-card,
    .category-card,
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .product-slide img,
    .product-image img {
        max-height: 300px;
        object-fit: contain;
    }
}