/* Reset et Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #c9a961;
    --accent-color: #8b6f47;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Polices */
    --font-heading: 'Playfair Display', serif;  /* Police premium pour titres H1/H2 */
    --font-body: 'Inter', sans-serif;  /* Police moderne pour texte/UI/boutons */
    --font-category: 'Inter', sans-serif;  /* Police professionnelle pour catégories */
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
}

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

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Logo PNG dans le header */
.logo-img {
    height: 60px; /* Taille du logo */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.25rem;
    background: white; /* Fond blanc pour une belle intégration */
    padding: 8px 12px; /* Padding pour créer un espace autour du logo */
    border-radius: 4px; /* Légers coins arrondis */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        max-width: 150px;
        padding: 6px 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.2px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.main-nav a.admin-link {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.main-nav a.admin-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.main-nav a.admin-link::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Menu mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .main-nav a.admin-link {
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
        padding: 8px;
        margin-right: -8px;
    }
}

/* Hero Section */
.hero {
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 400px;
    }
}

/* Wrapper pour le carousel - même structure que products-wrapper */
.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    /* S'assurer que le carousel est un conteneur pour les slides */
    display: block;
}

/* Aligner le carousel avec la zone produits - exactement comme products-main */
@media (min-width: 1025px) {
    .hero-carousel-wrapper {
        /* Utiliser la même structure que products-wrapper */
        left: 50%;
        transform: translateX(-50%);
        max-width: 1400px;
        width: calc(100% - 40px); /* 100% - (2 * padding du container) */
        margin: 0;
        padding: 0 20px 0 20px; /* Padding à gauche et droite */
        display: flex;
        gap: 2rem;
        justify-content: flex-start;
        align-items: stretch;
        overflow: hidden; /* Masque tout ce qui dépasse */
        /* Alignement parfait avec products-wrapper */
        box-sizing: border-box;
    }
    
    /* Logo fixe à gauche avec rotation */
    .hero-side-logo {
        width: 80px; /* Largeur de la sidebar pliée */
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white; /* Fond blanc */
        position: relative;
        z-index: 3; /* Au-dessus du carousel et de l'overlay */
        padding: 0;
        box-sizing: border-box;
        height: 100%; /* Remplir toute la hauteur */
        overflow: hidden; /* Empêcher le logo de déborder */
    }
    
    .hero-side-logo img {
        max-width: 300%; /* Triple la taille */
        max-height: 300%; /* Triple la taille */
        width: auto;
        height: auto;
        transform: rotate(-90deg); /* Rotation de 90° vers la gauche */
        object-fit: contain; /* Garder les proportions dans l'espace */
        object-position: center center; /* Centrer l'image parfaitement */
        display: block;
    }
}

/* Masquer le logo sur mobile */
@media (max-width: 1024px) {
    .hero-side-logo {
        display: none;
    }
    
    .hero-carousel {
        /* Le carousel doit avoir la même largeur que products-main */
        /* C'est-à-dire : flex: 1 dans le wrapper avec gap */
        flex: 1;
        min-width: 0; /* Permet au flex item de rétrécir */
        padding: 0;
        margin: 0;
        max-width: none; /* Annuler le max-width global */
        width: auto; /* Laisser flex gérer la largeur */
        overflow: hidden; /* Assurer que les images ne débordent pas de cette zone */
        position: relative; /* Conteneur pour les slides positionnées en absolute */
        height: 100%; /* Prendre toute la hauteur du wrapper */
        /* S'assurer que les images remplissent exactement la zone sans débordement */
        box-sizing: border-box;
        /* S'étendre jusqu'au bord droit sans espace */
        margin-right: -20px; /* Compenser le padding du wrapper à droite */
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden; /* Empêche les images de déborder de la slide */
    /* S'assurer que la slide ne dépasse pas du conteneur */
    box-sizing: border-box;
    /* S'assurer que les slides non actives sont vraiment invisibles */
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    /* Alignement parfait avec les bords */
    margin: 0;
    padding: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute; /* Positionner l'image pour remplir la slide */
    top: 0;
    left: 0;
    /* S'assurer que l'image ne dépasse pas et remplit exactement la zone */
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    /* Alignement parfait avec les bords */
    box-sizing: border-box;
}

/* Aligner l'overlay avec le carousel - Overlay très léger pour voir les images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.15) 0%, rgba(139, 111, 71, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Aligner l'overlay avec le carousel sur desktop */
@media (min-width: 1025px) {
    .hero-overlay {
        /* Même position et dimensions que hero-carousel-wrapper */
        left: 50%;
        transform: translateX(-50%);
        max-width: 1400px;
        width: calc(100% - 40px);
        padding: 0 20px 0 20px;
        display: flex;
        gap: 2rem;
        align-items: stretch;
    }
    
    /* Créer un espace pour la sidebar (comme dans hero-carousel-wrapper) */
    .hero-overlay::before {
        content: '';
        width: 80px;
        flex-shrink: 0;
    }
    
    /* L'overlay couvre la zone du carousel (flex: 1) via un pseudo-élément */
    .hero-overlay::after {
        content: '';
        flex: 1;
        min-width: 0;
        background: inherit; /* Utiliser le même background que l'overlay parent */
        margin-right: -20px; /* Compenser le padding du wrapper à droite pour coïncider avec le carousel */
    }
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Products Layout avec Sidebar */
.products-layout {
    padding: 2rem 0;
    background: var(--bg-white);
    min-height: calc(100vh - 400px);
}

.products-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Sidebar Catégories - État plié par défaut */
.categories-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    height: fit-content;
    min-height: 200px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible; /* Permet le scroll quand expanded */
}

/* État replié (sur mobile uniquement) */
@media (max-width: 1024px) {
    .categories-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 80px;
        padding: 1rem;
        align-items: center;
        overflow: hidden; /* Pas de scroll quand fermé */
    }
    
    .categories-sidebar .categories-list {
        display: none;
    }
}

/* État déplié */
.categories-sidebar.expanded {
    width: 280px;
    min-width: 280px;
    padding: 1.5rem;
}

@media (max-width: 1024px) {
    .categories-sidebar.expanded {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
    }
}

.categories-sidebar .categories-list {
    display: flex;
}

@media (max-width: 1024px) {
    .categories-sidebar .categories-list {
        display: none;
    }
}

.categories-sidebar.expanded .categories-list {
    display: flex;
}

.categories-sidebar .sidebar-header h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

@media (max-width: 1024px) {
    .categories-sidebar .sidebar-header h2 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 1.1rem;
        margin: 0 auto;
        padding: 0.75rem 0;
        white-space: nowrap;
        letter-spacing: 2px;
    }
    
    .categories-sidebar.expanded .sidebar-header h2 {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 1.5rem;
        margin: 0;
        padding: 0;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.categories-sidebar .sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .categories-sidebar .sidebar-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .categories-sidebar.expanded .sidebar-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--border-color);
        flex-direction: row;
        justify-content: space-between;
    }
}

.sidebar-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.categories-sidebar .sidebar-toggle {
    margin-left: auto;
}

@media (max-width: 1024px) {
    .categories-sidebar .sidebar-toggle {
        margin: 0 auto;
    }
    
    .categories-sidebar.expanded .sidebar-toggle {
        margin-left: auto;
    }
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.sidebar-toggle:hover span {
    background: var(--secondary-color);
}

.categories-sidebar .sidebar-toggle span {
    width: 18px;
}

.categories-sidebar.expanded .sidebar-toggle span {
    width: 20px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    flex: 1;
}

.category-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-card:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.category-card.active {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: var(--shadow-hover);
}

.category-card h3 {
    font-family: var(--font-category);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    /* text-transform retiré - géré par JavaScript pour préserver les accents */
}

.category-card.active h3 {
    color: white;
    font-weight: 600;
}

.category-card .count {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.category-card.active .count {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Zone Principale Produits */
.products-main {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .products-header .section-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 0;
    }
}

.products-header .section-title {
    font-size: 2rem;
    margin-bottom: 0;
    text-align: left;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box input {
    font-family: var(--font-body);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: 0.1px;
}

@media (max-width: 768px) {
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        min-width: 0;
        flex: 1;
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    .search-box button {
        padding: 0.875rem 1.25rem;
        font-size: 1.1rem;
    }
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-box button {
    font-family: var(--font-body);
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    font-weight: 500;
}

.search-box button:hover {
    background: var(--accent-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

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

.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .product-card {
        border-radius: 8px;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

@media (max-width: 768px) {
    .product-image {
        height: 180px;
    }
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .product-info {
        padding: 1.25rem;
    }
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .product-name {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .product-details {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1.35rem;
    }
}

.product-details {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-weight: 400;
    line-height: 1.5;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto;
    letter-spacing: 0.2px;
}

/* Encadrés stylés pour Prix et Code - Style épuré */
.product-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-badge:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.product-badge-price {
    background: var(--bg-white);
}

.product-badge-code {
    background: var(--bg-white);
}

.badge-label {
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.1px;
    font-size: 0.8125rem;
}

.badge-value {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.1px;
    font-size: 0.9375rem;
}

.product-badge-price .badge-value {
    color: var(--secondary-color);
}

.product-category {
    font-family: var(--font-body);
    display: inline-block;
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.no-results {
    font-family: var(--font-body);
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.about-text p {
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Formulaire de contact */
.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        border-radius: 6px;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .about-text h3 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group input:invalid:not(:placeholder-shown) + .error-message,
.form-group select:invalid:not(:placeholder-shown) + .error-message,
.form-group textarea:invalid:not(:placeholder-shown) + .error-message {
    display: block;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    font-family: var(--font-body);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn-submit:hover {
        transform: none;
    }
    
    .btn-submit:active {
        transform: scale(0.98);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        padding: 0.875rem 1rem;
    }
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

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

.btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message.form-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-message p {
    margin: 0;
    font-size: 0.9375rem;
}

.contact-tagline {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 2rem;
    font-style: italic;
    line-height: 1.6;
}

.contact-alternative {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.alternative-title {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
}

.contact-info p {
    margin-bottom: 0.5rem;
    letter-spacing: 0.1px;
    color: var(--text-light);
}

.contact-info strong {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    font-family: var(--font-body);
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-wrapper {
        flex-direction: column;
    }

    .categories-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: 400px;
        overflow-y: auto;
        padding: 1.5rem;
    }
    
    .categories-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 80px;
        padding: 1rem;
    }
    
    .categories-sidebar.expanded {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
        overscroll-behavior: contain; /* Empêche le scroll de se propager */
    }

    .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--bg-light);
        z-index: 10;
        padding-top: 1rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .categories-sidebar .sidebar-header {
        flex-direction: row;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .categories-sidebar.expanded .sidebar-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--border-color);
    }
    
    .categories-sidebar .sidebar-header h2 {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 1.5rem;
        margin: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .categories-sidebar .categories-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .categories-sidebar.expanded .categories-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .products-header .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
        min-width: 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        min-width: 100%;
        margin-bottom: 1.5rem;
        padding: 1rem;
        overflow: hidden; /* Pas de scroll quand fermé */
    }
    
    .categories-sidebar.expanded {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
        overscroll-behavior: contain; /* Empêche le scroll de se propager */
    }
    
    .categories-sidebar .categories-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .products-layout {
        padding: 1.5rem 0;
    }
    
    .products-wrapper {
        padding: 0 15px;
        gap: 1rem;
    }
    
    .products-main {
        width: 100%;
    }
    
    .category-card {
        padding: 0.875rem 1rem;
    }
    
    .category-card h3 {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .category-card {
        padding: 0.875rem 1rem;
    }
}

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

.product-card {
    animation: fadeIn 0.5s ease-out;
}

.category-card {
    animation: fadeIn 0.5s ease-out;
}

