/* ==========================================================================
   1. PARAMÈTRES DU HEADER ET NAVIGATION (COMMUNS À TOUT LE SITE)
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Centrage vertical parfait du menu et du CTA */
  padding: 0 6%;       /* Pas de padding vertical pour verrouiller la hauteur */
  height: 90px;        /* Hauteur fixe et fine de la barre */
  position: sticky;
  top: 0;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(32, 32, 28, 0.08);
}

.site-header .logo-img {
  height: 48px;        /* Taille de calcul pour le navigateur */
  width: auto;
  display: block;
  max-width: 100%;
  transform: scale(4.8); /* Agrandissement du logo conservé à l'identique */
  transform-origin: left center; /* Aligné à gauche */
  transition: transform 0.3s ease;
}

.main-nav { 
  display: flex; 
  gap: 32px; 
  align-items: center; /* Aligne le bouton Contact et les liens textuels */
  height: 100%;
}

/* ==========================================================================
   2. HERO SECTIONS & SLIDER PHOTO
   ========================================================================== */
.page-hero.hero-with-photo {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-hero-text .hero-lead { 
  max-width: 460px; 
}

.hero-photo-frame {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 6s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: scale(1.08);
  z-index: 2;
}

/* ==========================================================================
   3. CATALOG GRID (GRILLE DES MEUBLES)
   ========================================================================== */
.catalog { 
  padding: 20px 6% 90px; 
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.catalog-card {
  background: #fff;
  border: 1px solid rgba(32,32,28,0.08);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  /* Reset des styles par défaut d'un <button> */
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

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

.catalog-card:focus-visible {
  outline: 2px solid var(--forest-deep, #16332c);
  outline-offset: 2px;
}

.catalog-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}

.catalog-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin-bottom: 10px;
}

.catalog-card p { 
  font-size: 0.92rem; 
  color: #4a4a43; 
}

/* --------------------------------------------------------------------------
   3bis. GALERIE PHOTO PAR CATÉGORIE (affichée au clic sur un onglet)
   -------------------------------------------------------------------------- */
.catalog-gallery[hidden] {
  display: none;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-deep, #16332c);
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  transition: opacity 0.2s ease;
}

.gallery-back:hover {
  opacity: 0.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e5ded2;
  border: 1px dashed rgba(32,32,28,0.18);
  margin: 0;
}

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

.gallery-item figcaption {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  color: #7a7364;
  background: #e5ded2;
}

/* Affiché uniquement si la vraie photo est absente/introuvable */
.gallery-item.is-missing figcaption {
  display: flex;
}

.gallery-item.is-missing img {
  display: none;
}

/* ==========================================================================
   4. MATERIALS BAND (SECTION ESSENCES DE BOIS & MATÉRIAUX)
   ========================================================================== */
.materials-band {
  background: var(--forest);
  color: var(--ivory);
  padding: 90px 6%;
}

.materials-band .section-label {
  font-family: var(--font-display);
  font-size: 1.8rem; 
  font-weight: 600;
  color: var(--brass) !important; 
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: start;
}

.materials-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.material {
  padding: 26px 20px;
  border-radius: 6px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.material h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.material p { 
  font-size: 0.85rem; 
  opacity: 0.9; 
}

/* Gradients texturés pour les bois et métaux */
.material-iroko  { background: linear-gradient(160deg, #6e4c2a, #4a3017); }
.material-acajou { background: linear-gradient(160deg, #8a3b27, #5c2417); }
.material-metal  { background: linear-gradient(160deg, #2c2c2c, #131313); }
.material-rotin  { 
  background: linear-gradient(160deg, #c9a463, #9a7a45); 
  color: var(--ivory); 
}
.material-rotin h3, 
.material-rotin p { 
  color: var(--ivory); 
}

/* ==========================================================================
   5. DOWNLOAD CATALOG BAND (SECTION APPAREILS DE TÉLÉCHARGEMENT)
   ========================================================================== */
section.download-catalog-band h2.testimonial-title {
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important; 
  font-weight: 600 !important;
  color: var(--brass) !important; 
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: block !important;
}

.download-catalog-band {
  background: var(--forest-deep, #16332c); 
  padding: 80px 6%;
  text-align: center;
  border-bottom: 1px solid rgba(201, 164, 99, 0.15); 
}

.download-catalog-content {
  max-width: 700px;
  margin: 0 auto;
}

.download-catalog-content p {
  color: var(--ivory);
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.5;
  opacity: 0.9;
}

.catalog-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.catalog-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body, "Work Sans", sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

.btn-visualize:hover {
  background: var(--brass);
  color: var(--forest-deep, #16332c);
}

.btn-download {
  background: var(--brass);
  color: var(--forest-deep, #16332c);
  border: 2px solid var(--brass);
}

.btn-download:hover {
  background: transparent;
  color: var(--brass);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   6. RESPONSIVE DISPOSITIFS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
  .page-hero.hero-with-photo {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-photo-frame { 
    height: 260px; 
  }
  .catalog-grid,
  .materials-grid,
  .gallery-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 600px) {
  .catalog-grid,
  .materials-grid,
  .gallery-grid { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 550px) {
  .catalog-actions {
    flex-direction: column;
    gap: 15px;
  }
  .catalog-actions a {
    width: 100%;
    justify-content: center;
  }
}