/*
============================================
THÈME WORDPRESS - TABLE EN BOIS
Fichier: assets/css/custom.css
Version complète finale
============================================
*/

/* ====== VARIABLES CSS ====== */
:root {
  --forest: #2F3E2C;
  --walnut: #8C5A3C;
  --sand: #F8F5F1;
  --graphite: #1A1A1A;
  --tin: #D9D6CE;
  --terracotta: #C26539;
  --max-width: 1200px;
  --font-serif: 'Spectral', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====== RESET & BASE ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans) !important;
  color: var(--graphite) !important;
  background-color: var(--sand) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ====== TYPOGRAPHIE ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-forest { color: var(--forest); }
.text-walnut { color: var(--walnut); }
.text-sand { color: var(--sand); }
.text-graphite { color: var(--graphite); }

/* ====== LAYOUT UTILITIES ====== */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  gap: 1rem;
}

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

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

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

/* ====== SECTIONS ====== */
.section {
  padding: 3.5rem 0;
}

.section-hero {
  padding: 4rem 0 5rem;
}

.section-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #F4F1EC 0%, #EAE6DF 100%);
}

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(248, 245, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tin);
  padding: 0.75rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--graphite);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--forest);
  color: var(--sand);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.025em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--graphite);
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.8;
}

.header-cta {
  display: none;
}

/* ====== MENU MOBILE ====== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--forest);
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--tin);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

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

.mobile-menu a {
  text-decoration: none;
  color: var(--graphite);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tin);
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--forest);
  color: var(--sand);
}

.btn-primary:hover {
  background-color: #1f3610;
  color: var(--sand);
}

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

.btn-secondary:hover {
  background-color: var(--forest);
  color: var(--sand);
}

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

/* ====== CARDS ====== */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--tin);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-content {
  padding: 1.25rem;
}

.card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #EDEAE4 0%, #D7D3CB 100%);
  position: relative;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--tin);
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.feature-title {
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* ====== CONFIGURATEUR ====== */
.configurateur-container {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--tin);
  margin-bottom: 1rem;
}

.configurateur-step {
  margin-bottom: 1.5rem;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--graphite);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tin);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s ease;
}

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

.price-display {
  background: var(--sand);
  border: 1px solid var(--tin);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.price-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest);
}

.price-note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* ====== LEAD FORM ====== */
.lead-form {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--tin);
  margin-top: 1.5rem;
}

.lead-form .grid {
  gap: 1rem;
}

.success-message {
  color: #059669;
  font-weight: 500;
}

/* ====== COLLECTIONS GRID ====== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.collection-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--tin);
  overflow: hidden;
  text-decoration: none;
  color: var(--graphite);
  transition: all 0.2s ease;
  display: block;
}

.collection-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--graphite);
}

.collection-content {
  padding: 1rem;
}

.collection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.collection-desc {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ====== HERO SECTION ====== */
.hero-section {
  padding: 4rem 0 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--forest);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

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

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--tin);
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #EDEAE4 0%, #D7D3CB 100%);
}

.hero-detail {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--tin);
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--walnut);
  margin-bottom: 0.25rem;
}

.detail-text {
  font-size: 0.875rem;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 3rem 0;
  background: var(--sand);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.875rem;
}

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

.footer-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--forest);
  color: var(--sand);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.footer-title {
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--graphite);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tin);
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ====== NEWSLETTER ====== */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tin);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.newsletter-btn {
  background-color: var(--forest);
  color: var(--sand);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
  background-color: #1f3610;
}

.newsletter-note {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-sm-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .main-nav, .header-cta {
    display: inline-flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-md-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .main-nav, .header-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
  
  .section-hero {
    padding: 5rem 0 6rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ====== UTILITIES ====== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* ====== WORDPRESS SPECIFIC ====== */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 0.5rem;
}

.aligncenter {
  text-align: center;
  margin: 1rem auto;
}

.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ====== SURCHARGE ELEMENTOR (si nécessaire) ====== */
body:not(.elementor-editor-active) {
  font-family: var(--font-sans) !important;
  background-color: var(--sand) !important;
}

.elementor-section {
  background-color: var(--sand) !important;
}
/* ======================================
   CSS POUR LES PAGES COLLECTIONS
   À AJOUTER À LA FIN DE CUSTOM.CSS
   ====================================== */

/* Hero section collection */
.collection-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-left: -2rem;
    margin-right: -2rem;
    text-align: center;
}

.collection-hero h1 {
    font-size: 3rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.collection-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenu collection */
.collection-content {
    padding: 3rem 0;
}

.collection-products {
    padding: 4rem 0;
    background: #f8fafc;
    margin-left: -2rem;
    margin-right: -2rem;
}

/* Grille des produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.product-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-meta {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #059669;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

/* Message aucun produit */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.no-products h3 {
    color: #4a5568;
    margin-bottom: 1rem;
}

.no-products p {
    color: #718096;
}

/* Contenu bas de page */
.collection-bottom-content {
    padding: 4rem 0;
    background: white;
}

.bottom-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.bottom-content h2,
.bottom-content h3 {
    color: #1a202c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.bottom-content h2 {
    font-size: 1.8rem;
}

.bottom-content h3 {
    font-size: 1.4rem;
}

/* CTA section */
.collection-cta {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 4rem 0;
    margin-left: -2rem;
    margin-right: -2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    background: white;
    color: #059669;
    border: 2px solid white;
}

.cta-content .btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Shortcode collection pour réutilisation */
.page-collection {
    margin: 2rem 0;
}

.collection-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 3rem;
}

.collection-grid {
    display: grid;
    gap: 2rem;
}

.collection-grid[data-colonnes="2"] {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.collection-grid[data-colonnes="3"] {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.collection-grid[data-colonnes="4"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
    .collection-hero {
        padding: 3rem 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .collection-hero h1 {
        font-size: 2.2rem;
    }
    
    .collection-products {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 3rem 0;
    }
    
    .collection-cta {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 3rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        flex: none;
    }
    
    .collection-grid[data-colonnes="2"],
    .collection-grid[data-colonnes="3"],
    .collection-grid[data-colonnes="4"] {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}
/* ======================================
   MENU HEADER DYNAMIQUE
   ====================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
}

/* Menu desktop */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
}

.menu-item > a:hover {
    color: #059669;
    background: #f0fff4;
}

/* Sous-menus */
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1001;
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sub-menu a:hover {
    background: #f8fafc;
    color: #059669;
}

/* Bouton CTA header */
.header-cta .btn {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
}

/* Menu mobile */
.mobile-menu-container {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a5568;
    margin: 6px 0;
    transition: 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    z-index: 1999;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.mobile-menu-items {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-menu-items li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-submenu-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-submenu-item a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.mobile-menu-cta {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* État ouvert du menu mobile */
.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-open .mobile-menu {
    right: 0;
}

.mobile-menu-open body {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-menu {
        gap: 1rem;
    }
    
    .menu-item > a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-container {
        display: block;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
}
/* ===============================
   SOUS-MENUS — taille & colonnes
   =============================== */

/* 1) Taille de police + espacement des items de sous-menu (desktop & mobile) */
.main-menu .sub-menu a,
.mobile-menu-items .sub-menu a {
  font-size: 0.85rem;      /* ↓ police */
  line-height: 1.35;       
  padding: 0.5rem 1rem;    /* ↓ padding vertical */
}

/* 2) Mise en colonnes automatique sur desktop : 6 lignes par colonne,
      puis on passe à la colonne suivante (grille verticale -> colonnes) */
@media (min-width: 1024px) {
  /* Le panneau du sous-menu (desktop) */
  .main-menu .menu-item-has-children > .sub-menu {
    /* on remplace le layout par une grille en colonnes */
    display: grid;
    grid-auto-flow: column;            /* remplir verticalement puis créer une nouvelle colonne */
    grid-template-rows: repeat(6, auto); /* 6 items max par colonne */
    grid-auto-columns: 240px;          /* largeur d'une colonne (ajuste si besoin) */

    /* esthétique */
    gap: 0;                             /* pas d'espace entre LI (on garde le padding des <a>) */
    padding: 0.5rem 0;
    min-width: calc(240px * 2);         /* au moins 2 colonnes si besoin (480px) */
    max-width: calc(240px * 3);         /* limite soft à 3 colonnes (720px) — ajuste si tu veux plus */
  }

  /* Empêcher la casse d’un item sur deux colonnes */
  .main-menu .sub-menu li {
    break-inside: avoid;
  }
}
/* HUB BLOG */
.hub-title{font-family:var(--font-serif);color:var(--forest);font-size:clamp(1.5rem,2.5vw,2rem);margin-bottom:1rem}
.hub-grid{display:grid;gap:1.25rem}
.hub-grid[data-columns="1"]{grid-template-columns:1fr}
.hub-grid[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.hub-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.hub-grid[data-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1024px){.hub-grid[data-columns="3"],.hub-grid[data-columns="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.hub-grid{grid-template-columns:1fr!important}}
.hub-card .card-image{aspect-ratio:16/9}

