/* Style général */
body {
  margin: 0;
  background-color: #f6f7f4;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-left {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.navbar-logo img {
  height: 24px;
  vertical-align: middle;
}

.navbar-logo {
  margin-right: 8px; /* espace entre l'image et le texte */
  display: flex;
  align-items: center;
  height: 20px; /* Réduit la taille du logo */
  width: auto;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3e7d4c;
}

/* Sidebar */
.container {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.sidebar {
  width: 300px;
  padding: 30px;
  background-color: #1c1c1c;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  color: white;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.profile-photo {
  width: 100%;
  max-height: 450px; /* ← limite la hauteur */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Main content */
.main-content {
  margin-left: 280px;
  flex-grow: 1;
  padding: 40px;
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.sidebar-contact-block {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-visible-email {
  font-size: 13px;
  color: #ccc;
  margin-top: 6px;
}

.sidebar-btn {
  display: inline-block;
  width: 90%;
  max-width: 220px;
  padding: 10px 15px;
  background-color: #d4af37;
  color: #1c1c1c;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-btn:hover {
  background-color: #e5c158; /* Doré plus clair au survol */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-btn.whatsapp {
  background-color: #bfa97a;
}

.sidebar-btn.whatsapp:hover {
  background-color: #a8905d;
}

.sidebar-name {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 6px;
}

.sidebar-role {
  font-size: 14px;
  color: #ccc;
  text-align: center;
  margin-bottom: 15px;
}

.sidebar-description {
  font-size: 14px;
  color: #ddd;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Section introduction */
.section.introduction {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 1100px;
  margin: 0 auto 60px auto;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.section.introduction h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #111;
}

.section.introduction p {
  margin-bottom: 20px;
}

.section.introduction strong {
  color: #3e7d4c;
  font-weight: bold;
}

.section.about-us strong {
  color: #3e7d4c;
  font-weight: bold;
}

/* Galerie */
.section.gallery {
  max-width: 1100px;
  margin: 0 auto 80px auto;
  text-align: center;
}

.section.gallery h2 {
  font-size: 26px;
  margin-bottom: 40px;
  color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Carousel */
.section.carousel {
  margin-top: 40px;
  perspective: 1200px;
  overflow: hidden;
}

.carousel-3d {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item {
  position: absolute;
  width: 260px;
  height: 320px;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.carousel-item img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-item p {
  margin-top: 10px;
  font-weight: bold;
}

.carousel-item.center {
  transform: translateX(0px) scale(1.2);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.carousel-item.left {
  transform: translateX(-360px) rotateY(25deg) scale(0.9);
  opacity: 0.8;
  z-index: 2;
  pointer-events: auto;
}

.carousel-item.right {
  transform: translateX(360px) rotateY(-25deg) scale(0.9);
  opacity: 0.8;
  z-index: 2;
  pointer-events: auto;
}

.carousel-item.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.carousel-item .view-details {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-item.center .view-details {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #3e7d4c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.carousel-item.center .view-details:hover {
  background-color: #2f5d39;
}

/* Détails bois */
.section.wood-details {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.wood-details-content h3 {
  font-size: 24px;
  color: #3e7d4c;
  margin-bottom: 10px;
}

.wood-details-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.wood-details-content {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Switch de langue */
.language-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 80px;
  height: 30px;
  background: #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0 10px;
  box-sizing: border-box;
  transition: background 0.3s;
}

.lang-ball {
  width: 36px;
  height: 24px;
  background-color: #3e7d4c;
  border-radius: 30px;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: left 0.3s ease;
}

.lang-toggle.active .lang-ball {
  left: 40px;
}

.lang-label {
  z-index: 1;
  font-size: 12px;
  font-weight: bold;
  color: #444;
  width: 30px;
  text-align: center;
}


.section.about-us {
  max-width: 1100px;
  margin: 80px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section.about-us h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #111;
}

.about-us-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  flex: 1 1 60%;
  font-size: 18px;
  line-height: 1.9;
  color: #333;
}

.about-image {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-image img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section.wood-processing {
  max-width: 900px;
  margin: 40px auto 80px auto;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.wood-processing-content h3 {
  font-size: 22px;
  color: #3e7d4c;
  margin-bottom: 15px;
}

.wood-processing-content ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
  color: #333;
}

.wood-processing-content ul li {
  margin-bottom: 10px;
}

html {
  scroll-behavior: smooth;
}

#introduction,
#about,
#carousel {
  scroll-margin-top: 70px;
}

.wood-premium-sheet {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wood-premium-sheet h4, .wood-premium-sheet h5 {
  color: #3e7d4c;
}
.wood-highlight {
  font-weight: bold;
  margin-bottom: 20px;
}
.wood-summary-table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}
.wood-summary-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.wood-tech-sheet strong {
  color: #3e7d4c; /* Vert comme dans l'intro */
  font-weight: bold;
}

.intro-highlights {
  max-width: 900px;
  margin: 40px auto; /* ← centre horizontalement */
  text-align: center; /* ← centre le texte à l'intérieur */
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  padding: 20px 30px;
  background-color: #f9fbfa;
  border-left: none;
  border-top: 2px solid #3e7d4c;
  border-radius: 8px;
  background: linear-gradient(to right, #f2f6f3 90%, #3e7d4c1a 100%);
  margin-bottom: 100px; /* ← ou 80px pour + d'espace */
}

.intro-highlights p {
  margin: 10px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.navbar-logo img {
  height: 50px; /* ajuste selon ton rendu */
  width: auto;
  object-fit: contain;
}

.hero-banner {
  width: 100%;
  max-width: 1180px;
  height: 250px;
  margin: 40px auto;
  border-radius: 20px;
  background-image: url('./Images/foret.PNG');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.55); /* ← plus visible */
  padding: 10px 20px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-logo {
  height: 45px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 5px 0;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 8px;
  font-style: italic;
  color: #eaeaea;
}

hr {
  margin: 25px auto;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  width: 90%;
}

.production-gallery {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin: 80px auto;
  max-width: 1100px;
}

.production-gallery h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #1c1c1c;
  font-weight: 700;
}

.production-gallery .section-description {
  text-align: center;
  font-size: 16px;
  max-width: 750px;
  margin: 0 auto 40px auto;
  color: #555;
  line-height: 1.6;
}

.production-intro {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.production-intro strong {
  color: #3e7d4c;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Au survol */
.gallery-grid img:hover {
  transform: scale(1.025);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Classe pour ajuster le cadrage si besoin */
.gallery-grid img.zoom-adjusted {
  object-position: top; /* ou center, bottom, left, right selon le cadrage que tu veux */
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.3s cubic-bezier(0.25, 1, 0.5, 1), transform 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto; /* ✅ permet de scroller si besoin */
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: zoomInImg 0.3s ease-out;
}

@keyframes zoomInImg {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.carousel-title {
  text-align: center;
  font-size: 28px;
  margin: 30px 0;
  color: #111;
}

.mobile-carousel-instruction {
  display: none;
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 10px 0 20px;
  font-style: italic;
}

@media screen and (max-width: 768px) {
  /* Base layout */
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 15px;
  }
  
  .container {
    flex-direction: column;
    padding-top: 120px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Navbar */
  .navbar {
    position: fixed;
    height: auto;
    min-height: 60px;
    padding: 10px 15px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    z-index: 1100;
  }
  
  .navbar-left {
    display: flex;
    align-items: center;
    width: auto;
  }
  
  .navbar-logo img {
    height: 18px;
  }
  
  .logo {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .navbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    margin-top: 5px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
    padding: 0 5px;
  }
  
  .nav-links a {
    font-size: 13px;
    text-align: center;
    padding: 5px;
    background-color: rgba(62, 125, 76, 0.1);
    border-radius: 5px;
    min-width: 90px;
  }

  .language-switch {
    margin: 5px 0 0 0;
  }

  /* Sidebar - version plus compacte */
  .sidebar {
    width: 100%;
    height: auto;
    max-height: unset;
    position: relative;
    top: 0;
    overflow-y: visible;
    padding: 20px;
  }
  
  .profile-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  .profile-section:last-child {
    margin-bottom: 0;
  }

  /* Photo plus petite */
  .profile-photo {
    width: 90px; /* Réduit */
    height: 90px; /* Réduit */
    max-height: unset;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    border: 3px solid #fff; /* Légèrement réduit */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    flex: 0 0 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  
  /* Colonne pour les informations */
  .sidebar-info {
    flex: 1;
    min-width: 180px;
    max-width: 65%;
    text-align: left;
    padding: 0 5px;
    animation: fadeIn 0.5s ease-out;
  }

  /* Nom de la personne */
  .sidebar-name {
    font-size: 22px;
    margin: 0 0 6px;
    text-align: left;
    color: #1c1c1c;
    font-weight: 700;
    letter-spacing: -0.3px;
  }

  /* Rôle professionnel */
  .sidebar-role {
    font-size: 15px;
    margin: 0 0 10px;
    text-align: left;
    color: #3e7d4c;
    font-weight: 600;
    background: linear-gradient(90deg, #3e7d4c, #5a9a69);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Description */
  .sidebar-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    color: #555;
  }

  /* Section de boutons de contact */
  .sidebar-buttons {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 0;
    width: 100%;
    padding: 0;
    justify-content: space-between;
  }
  
  /* Conteneur de bouton individuel */
  .sidebar-contact-block {
    flex: 1;
    min-width: 140px;
    margin: 0;
    transition: transform 0.3s ease;
  }
  
  .sidebar-contact-block:hover {
    transform: translateY(-3px);
  }

  /* Style de bouton */
  .sidebar-btn {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  }
  
  .sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  }
  
  /* Icônes des boutons */
  .sidebar-btn::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }
  
  .sidebar-btn:hover::before {
    transform: scale(1.1);
  }
  
  /* Email et whatsapp spécifiques */
  .sidebar-btn.email {
    background: linear-gradient(135deg, #3e7d4c 0%, #2c6339 100%);
  }
  
  .sidebar-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  }
  
  .sidebar-btn.email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  }
  
  .sidebar-btn.whatsapp::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.6 14c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1-.2.2-.6.8-.8 1-.1.2-.3.2-.5.1-.7-.3-1.4-.7-2-1.2-.5-.5-1-1.1-1.4-1.7-.1-.2 0-.4.1-.5.1-.1.2-.3.4-.4.1-.1.2-.3.2-.4.1-.1.1-.3 0-.4-.1-.1-.6-1.3-.8-1.8-.1-.7-.3-.7-.5-.7h-.5c-.2 0-.5.2-.6.3-.6.6-.9 1.3-.9 2.1.1.9.4 1.8 1 2.6 1.1 1.6 2.5 2.9 4.2 3.7.5.2.9.4 1.4.5.5.2 1 .2 1.6.1.7-.1 1.3-.6 1.7-1.2.2-.4.2-.8.1-1.2l-.4-.2m2.5-9.1C15.2 1 8.9 1 5 4.9c-3.2 3.2-3.8 8.1-1.6 12L2 22l5.3-1.4c1.5.8 3.1 1.2 4.7 1.2 5.5 0 9.9-4.4 9.9-9.9.1-2.6-1-5.1-2.8-7m-2.7 14c-1.3.8-2.8 1.3-4.4 1.3-1.5 0-2.9-.4-4.2-1.1l-.3-.2-3.1.8.8-3-.2-.3c-2.4-4-1.2-9 2.7-11.5S16.6 3.7 19 7.5c2.4 3.9 1.3 9-2.6 11.4'/%3E%3C/svg%3E");
  }

  /* Email sous le bouton */
  .sidebar-visible-email {
    font-size: 12px;
    margin: 8px 0 0;
    color: #666;
    text-align: center;
    padding: 5px 8px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .sidebar-visible-email strong {
    color: #3e7d4c;
  }
  
  /* Main content ajustement pour accompagner la sidebar redesignée */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0 15px 20px;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Hero banner */
  .hero-banner {
    height: 200px;
    margin: 15px auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-title {
    font-size: 1.6rem;
    word-wrap: break-word;
    width: 100%;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    word-wrap: break-word;
    width: 100%;
  }
  
  .hero-banner-overlay {
    padding: 15px;
    width: 85%;
    max-width: 320px;
    box-sizing: border-box;
  }

  /* Sections */
  .section.introduction,
  .section.about-us,
  .section.wood-details,
  .section.wood-processing,
  .production-gallery {
    padding: 20px 15px;
    margin: 15px auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  .about-us-content {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  .about-text {
    width: 100%;
  }
  
  .about-image {
    width: 100%;
  }
  
  .about-image img {
    width: 100%;
    max-height: 250px;
    margin-bottom: 15px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  
  .gallery-grid img {
    height: 220px;
  }

  /* Carousel instructions */
  .mobile-carousel-instruction {
    display: block;
    margin-bottom: 15px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .carousel-title {
    font-size: 22px;
    margin: 15px 0;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Carousel - optimisé pour mobile */
  .section.carousel {
    margin: 15px 0;
    padding: 0;
    width: 100%;
    overflow: visible;
    perspective: none;
    box-sizing: border-box;
  }
  
  .carousel-3d {
    height: auto;
    padding: 10px 0 30px;
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    position: relative;
    justify-content: flex-start;
    box-sizing: border-box;
    padding-left: 15px;
  }
  
  .carousel-3d::after {
    content: "";
    display: none;
  }
  
  .carousel-item {
    position: relative !important;
    width: 200px !important;
    min-width: 200px !important;
    height: auto;
    margin: 0 5px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    scroll-snap-align: center;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .carousel-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  .carousel-item p {
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
  .carousel-item .view-details {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    margin-top: 5px;
    background-color: #3e7d4c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }

  /* Reset pour éviter conflits des classes 3D sur mobile */
  .carousel-item.left,
  .carousel-item.right,
  .carousel-item.center,
  .carousel-item.hidden {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }
  
  /* Affinage de l'expérience mobile */
  .intro-highlights {
    padding: 15px;
    margin: 20px auto 25px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .intro-highlights p {
    margin: 12px 0;
    word-wrap: break-word;
  }
  
  .section.introduction p {
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 15px;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
  .about-text p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
  /* Détails bois en mobile */
  .wood-details-content h3 {
    font-size: 20px;
    text-align: center;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .wood-details-content p {
    font-size: 15px;
    text-align: left;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
  .wood-processing-content h3 {
    font-size: 18px;
    text-align: center;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .wood-processing-content ul {
    font-size: 14px;
    padding-left: 25px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .wood-processing-content ul li {
    margin-bottom: 8px;
    padding-right: 5px;
    word-wrap: break-word;
  }
  
  /* Production gallery */
  .production-intro {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  
  .production-gallery h2 {
    font-size: 22px;
    margin-bottom: 15px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }

  .carousel-item .view-details.lang-fr,
  .carousel-item .view-details.lang-en {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    margin-top: 5px;
    background-color: #3e7d4c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: none; /* Masqué par défaut, sera contrôlé par JS */
  }
  
  /* Position des boutons qui doivent s'afficher au même endroit */
  .carousel-item .view-details {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* Boutons du carousel en mobile - RÈGLES SIMPLIFIÉES */
  .button-container {
    width: 100%;
    min-height: 40px;
    position: relative;
    margin-top: 5px;
  }
  
  /* Styles simplifiés pour les boutons de détails en mobile */
  .carousel-item .view-details {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    background-color: #3e7d4c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: block;
  }
}

/* Conteneur des boutons de langue */
.button-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  min-height: 40px;
}

/* Styles de base pour tous les boutons de détails */
.view-details {
  padding: 6px 12px;
  background-color: #3e7d4c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.view-details:hover {
  background-color: #2f5d39;
}

/* Style par défaut pour les boutons selon la langue */
.view-details.lang-fr,
.view-details.lang-en {
  width: 100%;
}

/* Style uniquement pour le bouton visible dans le carousel 3D */
.carousel-item.center .view-details {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
}

@media screen and (max-width: 768px) {
  /* Boutons du carousel en mobile */
  .button-container {
    width: 100%;
    min-height: 40px;
    position: relative;
    margin-top: 5px;
  }
  
  /* Style pour tous les boutons en mobile */
  .carousel-item .view-details {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 5px;
    margin-top: 0;
    background-color: #3e7d4c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  
  /* Reset des transformations pour être sûr */
  .carousel-item .view-details,
  .carousel-item.center .view-details {
    transform: none;
    transition: none;
  }
}

/* Image showcase dans l'introduction */
.image-showcase {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background-color: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-caption {
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

/* Version mobile */
@media screen and (max-width: 768px) {
  .image-showcase {
    max-width: 90%;
    margin: 20px auto;
  }
  
  .image-caption {
    padding: 10px;
    font-size: 0.8rem;
  }
}

/* Styles pour les sections de profil multiples */
.profile-section {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  text-align: center;
}

.profile-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Centre l'image de profil et améliore sa qualité */
.profile-section .profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 70px;
  margin: 0 auto 15px;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Améliorations pour la qualité des images */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) brightness(1.05);
  border: 2px solid #d4af37;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.profile-section .profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  border-color: #e5c158;
}

/* Style pour la barre dorée (hr) */
.profile-section hr {
  margin: 15px auto;
  width: 70%;
}

.profile-section .sidebar-name {
  font-size: 1.3rem;
  margin: 10px 0 5px;
  text-align: center;
}

.profile-section .sidebar-role {
  font-size: 0.9rem;
  margin: 0 0 8px;
  text-align: center;
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
  .profile-section {
    padding: 10px 0;
  }
  
  .profile-section .profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 45px;
  }
  
  .profile-section .sidebar-name {
    font-size: 1.1rem;
  }
}

/* Styles pour les boutons de contact */
.sidebar-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 15px;
  background-color: #d4af37; /* Couleur dorée */
  color: #1c1c1c; /* Texte noir sur fond doré */
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-btn:hover {
  background-color: #e5c158; /* Doré plus clair au survol */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-visible-email {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 5px 0 15px;
}

.sidebar-visible-email .sidebar-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.sidebar-visible-email strong {
  font-weight: 600;
  color: #ffffff;
}

/* Style global pour les titres de section avec effet doré */
.section h2 {
  text-align: center;
  color: #1c1c1c;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

/* Style spécial pour le h1 du titre principal */
.hero-title {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Style spécial pour le sous-titre du hero */
.hero-subtitle {
  color: #d4af37;
  font-weight: 500;
}

/* Style pour faire correspondre les titres avec le thème doré */
.about-us h2, 
.carousel-title,
.production-gallery h2,
.wood-details h3 {
  color: #d4af37;
  position: relative;
  padding-bottom: 10px;
}

.about-us h2::after, 
.carousel-title::after,
.production-gallery h2::after,
.wood-details h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #d4af37;
}

/* Style pour la barre dorée (hr) - Une seule définition pour éviter les duplications */
hr {
  margin: 25px auto;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  width: 90%;
}

/* Styles pour les différents types de hr */
.profile-section hr {
  margin: 15px auto;
  width: 70%;
}

.main-content hr {
  margin: 30px auto;
  width: 85%;
}

.section hr {
  margin: 25px auto;
  width: 80%;
}

.hero-banner-overlay hr {
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 15px auto;
  width: 70%;
}

