/* ============================================
   RESET ET STYLES DE BASE
   ============================================ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f3ef;
  color: #2e2a26;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Contrainte globale pour éviter le débordement horizontal */
* {
  max-width: 100%;
}

/* Solution anti-débordement renforcée */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Exceptions pour les éléments qui ont besoin de dépasser */
html, body, section, .hero-video, .hero-video video {
  max-width: none;
}

/* Optimisation des images */
img {
  max-width: 100%;
  height: auto;
}

/* SUPPRESSION de la déclaration @font-face qui causait les erreurs 404 */

/* ============================================
   LAYOUT GÉNÉRAL
   ============================================ */

.container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  background-color: #d6c4aa;
  color: #2e2a26;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background-color: #c2b094;
}

/* ============================================
   HEADER ET NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo img {
  height: 60px;
  display: block;
}

nav {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 0.6rem 1rem;
  width: fit-content;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #2e2a26;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #d6c4aa;
}

nav a.active {
  border-bottom: 2px solid #2e2a26;
  padding-bottom: 2px;
}

/* Navigation responsive */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: #333;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Animation du bouton hamburger */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -5px);
}

/* Media queries pour mobile */
@media screen and (max-width: 768px) {
  header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.6rem;
    margin: 10px 10px 0 auto;
    background-color: rgba(248, 249, 250, 0.9);
    max-width: calc(100vw - 20px);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100vw;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
  }
  
  .nav-menu li a {
    font-size: 1.3rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .nav-menu li a:hover {
    color: #8B4513;
  }
}

/* Styles pour desktop - Navigation centrée */
@media screen and (min-width: 769px) {
  header nav {
    margin: 20px auto 0 auto;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li {
    margin: 0 0.5rem;
  }
  
  .nav-menu li a {
    text-decoration: none;
    color: #333;
    padding: 0.3rem 0.6rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
  }
  
  .nav-menu li a:hover {
    color: #8B4513;
  }
}

/* ============================================
   SECTION HERO VIDÉO
   ============================================ */

.hero-video {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: auto;
  z-index: 1;
  transform: translateX(-50%);
  object-fit: cover;
  filter: brightness(0.6);
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #f5f3ef;
  text-align: center;
  padding: 0 2rem;
}

.logo-overlay {
  max-width: 180px;
  margin: 0 auto 1.5rem auto;
  display: block;
  transform: translateX(10px);
}

.overlay h1 {
  font-family: 'Antic Didone', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.overlay p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ============================================
   SECTION PRÉSENTATION
   ============================================ */

.presentation {
  background-color: #f8f9fa;
  padding: 4rem 2rem; /* Padding normal */
  position: relative;
  min-height: auto; /* Laisse la section s'adapter au contenu */
  overflow: hidden; /* Supprime la barre de scroll */
}

.presentation .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Layout desktop - image moderne à droite */
@media screen and (min-width: 769px) {
  .presentation .container {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 4rem;
    align-items: start;
    position: relative;
  }
  
  .presentation-content {
    padding-right: 2rem;
  }
  
  .image-container {
    position: relative;
    width: 550px;
    height: 400px; /* Diminue la hauteur pour réduire l'espace blanc */
    overflow: visible; /* Permet à l'image de dépasser */
    z-index: 5;
  }
}

/* Layout responsive - image entre les paragraphes */
@media screen and (max-width: 768px) {
  .presentation .container {
    position: relative;
  }
  
  .presentation-content {
    text-align: justify;
  }
  
  .image-container {
    float: right;
    width: 50%;
    max-width: 300px;
    height: 350px;
    margin: 1rem 0 1rem 2rem;
    position: relative;
    z-index: 5;
  }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
  .image-container {
    width: 70% !important;
    max-width: 250px !important;
    height: 300px !important;
    margin: 2rem auto !important;
    float: none !important;
    display: block !important;
  }
}

/* Image moderne avec ombre et positionnement optimisé */
.image-presentation {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) opacity(0.8); /* Ombre plus marquée */
  transition: none;
  position: absolute;
  z-index: 1; /* Arrière-plan (au lieu de 2) */
  scale: 1.8; /* Agrandit l'image */
  rotate: 0deg; /* Redresse l'image */
  right: -120px; /* plus à droite */
  top: 200px; /* Descend l'image  */
}

/* Suppression des animations au survol */
.image-container:hover .image-presentation {
  transform: none;
  box-shadow: none;
}

/* Styles du contenu présentation */
.presentation h2 {
  font-family: 'Antic Didone', serif;
  font-size: 2.5rem;
  color: #2e2a26;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.presentation p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 2rem;
}

.presentation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.presentation ul li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4a4a;
}

.presentation ul li strong {
  color: #2e2a26;
  font-weight: 600;
}

/* Responsive pour présentation */
@media screen and (max-width: 768px) {
  .presentation h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .presentation p {
    font-size: 1rem;
    text-align: center;
  }
  
  .presentation ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .presentation ul li {
    font-size: 1rem;
  }
  
  .image-presentation {
    display: none; /* Cache l'image sur tablette */
  }
}

@media screen and (max-width: 480px) {
  .presentation h2 {
    font-size: 1.7rem;
  }
  
  .presentation p,
  .presentation ul li {
    font-size: 0.9rem;
  }
  
  .image-presentation {
    display: none; /* Cache l'image sur mobile */
  }
}

/* ============================================
   LIENS INTERNES DANS LA PRÉSENTATION
   ============================================ */

/* Styles de base pour les paragraphes avec liens */
.presentation-content p.link-paragraph {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.6), rgba(232, 227, 216, 0.4));
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #d6c4aa;
  margin: 1.8rem 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.presentation-content p.link-paragraph::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 196, 170, 0.15), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.presentation-content p.link-paragraph:hover::before {
  left: 100%;
}

.presentation-content p.link-paragraph:hover {
  border-left-color: #c2b094;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(232, 227, 216, 0.7));
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(214, 196, 170, 0.2);
}

.presentation-content a {
  color: #d6c4aa;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1.3;
}

.presentation-content a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d6c4aa, #c2b094);
  transition: width 0.4s ease;
}

.presentation-content a:hover {
  color: #2e2a26;
  background: rgba(214, 196, 170, 0.15);
  transform: translateY(-1px);
}

.presentation-content a:hover::after {
  width: 100%;
}

/* Animation d'apparition */
.presentation-content p.link-paragraph {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInFade 0.8s ease forwards;
}

.presentation-content p.link-paragraph:nth-of-type(1) {
  animation-delay: 0.2s;
}

.presentation-content p.link-paragraph:nth-of-type(2) {
  animation-delay: 0.4s;
}

@keyframes slideInFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour liens */
@media screen and (max-width: 768px) {
  .presentation-content p.link-paragraph {
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 1rem;
  }
  
  .presentation-content p.link-paragraph:hover {
    transform: translateX(3px);
  }
}

@media screen and (max-width: 480px) {
  .presentation-content p.link-paragraph {
    padding: 0.8rem;
    margin: 1rem 0;
    border-left-width: 2px;
  }
  
  .presentation-content a {
    font-size: 0.95rem;
  }
}

/* ============================================
   HEADERS DE PAGES
   ============================================ */

.page-header {
  text-align: center;
  padding: 3rem 2rem 1rem;
}

.page-header h1 {
  font-family: 'Antic Didone', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   SECTION SERVICES - CARROUSEL 
   ============================================ */

#services {
  background-color: #f5f3ef;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header h1 {
  font-family: 'Antic Didone', serif;
  font-size: 3rem;
  color: #2e2a26;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Conteneur du carrousel services */
.services-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  height: 650px; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px; /* Réduit le padding pour laisser place aux boutons */
  width: 100%;
  overflow: hidden;
  box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
}

.services-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Remplace la section service-slide et ses variantes : */

.service-slide {
  position: absolute;
  transition: all 0.6s ease;
  opacity: 0.3;
  transform: scale(0.7) translateX(0);
  text-align: center;
  cursor: pointer;
  z-index: 1;
  /* CONTAINER FIXE - toujours la même taille */
  width: 350px;
  height: 500px;
  /* EFFET CARTE - Fond avec ombre */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 196, 170, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Service central (actif) - SEUL LE SCALE CHANGE */
.service-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0) !important;
  z-index: 10;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(214, 196, 170, 0.4);
}

/* Services adjacents */
.service-slide.adjacent {
  opacity: 0.6;
  transform: scale(0.8) !important;
  z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Positionnement dynamique avec JavaScript */
.service-slide.prev {
  transform: scale(0.8) translateX(-80%) !important;
}

.service-slide.next {
  transform: scale(0.8) translateX(80%) !important;
}

.service-image {
  width: 100%;
  height: 250px; /* Hauteur fixe */
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.6s ease; /* Seule l'ombre change */
  flex-shrink: 0; /* Empêche la compression */
}

/* L'image garde la même taille, seule l'ombre change */
.service-slide.active .service-image {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-slide:hover .service-image img {
  transform: scale(1.05);
}

/* CONTENU - TAILLE FIXE */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.service-content h2 {
  font-family: 'Antic Didone', serif;
  font-size: 1.5rem; /* Taille fixe */
  color: #2e2a26;
  margin-bottom: 0.5rem; /* Réduit de 1rem à 0.5rem */
  line-height: 1.3;
  /* Hauteur minimale pour éviter les décalages */
  min-height: 3.9rem; /* 1.5rem * 1.3 * 2 lignes max */
}

.service-slide.active .service-content h2 {
  color: #d6c4aa; /* Seule la couleur change */
  font-size: 1.5rem; /* Même taille ! */
}

.service-content p {
  font-size: 0.85rem; /* Réduit de 0.95rem à 0.85rem */
  line-height: 1.4; /* Réduit de 1.5 à 1.4 */
  color: #666;
  transition: color 0.6s ease;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Remonté à 6 lignes */
  line-clamp: 6;
  -webkit-box-orient: vertical;
  max-height: 7.14rem; /* Hauteur ajustée : 6 * 1.19 = 7.14rem */
}

.service-slide.active .service-content p {
  color: #4a4a4a; /* Seule la couleur change */
  font-size: 0.85rem; /* Réduit pour correspondre */
}

/* Responsive avec containers proportionnels */
@media screen and (max-width: 1200px) {
  .service-slide {
    width: 320px;
    height: 450px;
  }
  
  .service-image {
    height: 220px;
  }
  
  .services-carousel-container {
    height: 600px;
    padding: 0 1rem;
    max-width: 100vw;
  }
  
  .service-content h2 {
    font-size: 1.4rem;
    min-height: 3.6rem;
    margin-bottom: 0.5rem; /* Réduit l'espacement */
  }
  
  .service-content p {
    font-size: 0.8rem; /* Réduit de 0.9rem à 0.8rem */
    -webkit-line-clamp: 5;
    line-clamp: 5;
    max-height: 5.2rem; /* Hauteur ajustée : 5 * 1.04 = 5.2rem */
    line-height: 1.3;
  }
}

@media screen and (max-width: 1024px) {
  .service-slide {
    width: 300px;
    height: 420px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .services-carousel-container {
    height: 550px;
    padding: 0 0.5rem;
    max-width: 100vw;
  }
  
  .service-content h2 {
    font-size: 1.3rem;
    min-height: 3.4rem;
    margin-bottom: 0.5rem; /* Réduit l'espacement */
  }
  
  .service-content p {
    font-size: 0.75rem; /* Réduit de 0.85rem à 0.75rem */
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 3.6rem; /* Hauteur ajustée : 4 * 0.9 = 3.6rem */
    line-height: 1.2;
  }
}

@media screen and (max-width: 768px) {
  .service-slide {
    width: 280px;
    height: 400px;
  }
  
  .service-image {
    height: 180px;
  }
  
  .services-carousel-container {
    height: 500px;
    padding: 0 1rem;
    max-width: 100vw;
  }
  
  .service-content h2 {
    font-size: 1.2rem;
    min-height: 3.1rem;
    margin-bottom: 0.5rem; /* Réduit l'espacement */
  }
  
  .service-content p {
    font-size: 0.7rem; /* Réduit de 0.8rem à 0.7rem */
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 3.36rem; /* Hauteur ajustée : 4 * 0.84 = 3.36rem */
    line-height: 1.2;
  }
  
  /* Ajout de contraintes pour la section services */
  #services {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media screen and (max-width: 480px) {
  .service-slide {
    width: calc(100vw - 2rem);
    max-width: 300px;
    height: 420px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .services-carousel-container {
    height: 480px;
    padding: 0 0.5rem;
    max-width: 100vw;
  }
  
  /* Cache les slides non actifs sur très petit écran */
  .service-slide:not(.active) {
    opacity: 0;
    pointer-events: none;
  }
  
  .service-content h2 {
    font-size: 1.3rem;
    min-height: 2.6rem;
    margin-bottom: 0.5rem; /* Réduit l'espacement */
  }
  
  .service-content p {
    font-size: 0.75rem; /* Réduit de 0.85rem à 0.75rem */
    -webkit-line-clamp: 5;
    line-clamp: 5;
    max-height: 4.5rem; /* Hauteur ajustée : 5 * 0.9 = 4.5rem */
    line-height: 1.2;
  }
  
  /* Contraintes strictes pour mobile */
  #services {
    padding: 2rem 0.5rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  section {
    padding: 1rem 0.5rem;
  }
}

/* Boutons de navigation */
.services-nav {
  position: absolute; 
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 42, 38, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 200;
  backdrop-filter: blur(10px);
  opacity: 0.7;
}

.services-nav:hover {
  background: rgba(214, 196, 170, 0.9);
  color: #2e2a26;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Positionnement externe des boutons */
.services-prev {
  left: 10px; /* Position avec marge plutôt que collé au bord */
}

.services-next {
  right: 10px; /* Position avec marge plutôt que collé au bord */
}

/* Responsive pour les boutons - CACHE SUR MOBILE */
@media screen and (max-width: 1024px) {
  .services-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  /* CACHE LES BOUTONS SUR TABLETTE ET MOBILE */
  .services-nav {
    display: none !important;
  }
  
  /* Réduit le padding pour optimiser l'espace */
  .services-carousel-container {
    padding: 0 1rem !important;
  }
}

@media screen and (max-width: 480px) {
  /* CACHE LES BOUTONS SUR MOBILE */
  .services-nav {
    display: none !important;
  }
  
  .services-carousel-container {
    padding: 0 0.5rem !important;
  }
}

/* Indicateurs de pagination */
.services-indicators {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 15px;
}

.services-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(214, 196, 170, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.services-indicator.active {
  background: #d6c4aa;
  transform: scale(1.4);
}

.services-indicator.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border: 2px solid #d6c4aa;
  border-radius: 50%;
  opacity: 0.5;
}


  


/* ============================================
   SECTION RÉALISATIONS - GALERIE CARRÉE MODERNE
   ============================================ */

#realisations {
  background-color: #f5f3ef;
  padding: 4rem 2rem;
  position: relative;
}

#realisations .page-header {
  text-align: center;
  margin-bottom: 4rem;
}

#realisations .page-header h1 {
  font-family: 'Antic Didone', serif;
  font-size: 3rem;
  color: #2e2a26;
  margin-bottom: 1rem;
}

#realisations .page-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; /* Réduit de 2rem à 1rem pour serrer */
  padding: 2rem; /* Réduit de 3rem à 2rem */
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1; /* Force le carré parfait */
  border-radius: 0; /* Supprime les bords arrondis */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

/* Zoom progressif simple au survol */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay simple au survol */
.gallery-item::after {
  content: '🔍 Cliquer pour agrandir';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 42, 38, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(2px); /* Effet de flou léger */
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Responsive pour la galerie - gaps plus serrés */
@media screen and (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem; /* Réduit de 2.5rem à 1.2rem */
    padding: 3rem; /* Réduit de 4rem à 3rem */
  }
}

@media screen and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem; /* Réduit de 1.5rem à 0.8rem */
    padding: 2rem; /* Réduit de 2.5rem à 2rem */
  }
  
  .gallery-container::before {
    width: calc(100% + 2rem); /* Ajuste l'arrière-plan */
    height: calc(100% + 2rem);
    top: -1rem;
  }
}

@media screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem; /* Réduit de 1.2rem à 0.6rem */
    padding: 1.5rem; /* Réduit de 2rem à 1.5rem */
  }
  
  .gallery-container::before {
    width: calc(100% + 1.5rem);
    height: calc(100% + 1.5rem);
    top: -0.75rem;
    border-radius: 15px;
  }
  
  .gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem; /* Réduit de 1.5rem à 1rem */
    padding: 1rem; /* Réduit de 1.5rem à 1rem */
  }
  
  .gallery-item::after {
    font-size: 0.9rem;
  }
  
  #realisations .page-header h1 {
    font-size: 2.2rem;
  }
}

/* Galerie sans animation - affichage instantané */
.gallery-item {
  opacity: 1;
}

/* Style alternatif avec bordures dorées */
.gallery-item.premium {
  border: 3px solid #d6c4aa;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(214, 196, 170, 0.2);
}

.gallery-item.premium:hover {
  border-color: #c2b094;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 0 6px rgba(214, 196, 170, 0.3);
}

/* Ajoute cette section après la galerie existante (ligne 820) : */

/* ============================================
   CARROUSEL MOBILE POUR LA GALERIE
   ============================================ */

/* Conteneur du carrousel - visible seulement sur mobile */
.carousel-container {
  display: none;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay pour le carrousel */
.carousel-item::after {
  content: '🔍 Cliquer pour agrandir';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 42, 38, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.carousel-item.active::after {
  opacity: 0;
}

/* Boutons de navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2e2a26;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(214, 196, 170, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

/* Indicateurs de pagination */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(214, 196, 170, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #d6c4aa;
  transform: scale(1.2);
}

/* Compteur d'images */
.carousel-counter {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

/* Media queries pour activer le carrousel */
@media screen and (max-width: 768px) {
  /* Cache la grille et montre le carrousel */
  .gallery-grid {
    display: none;
  }
  
  .carousel-container {
    display: block;
    margin: 0 1rem;
  }
  
  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
}

@media screen and (max-width: 480px) {
  .carousel-container {
    margin: 0 0.5rem;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-prev {
    left: 8px;
  }
  
  .carousel-next {
    right: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .carousel-indicators {
    gap: 6px;
    margin-top: 15px;
  }
}

/* Animation de swipe pour mobile */
@media (hover: none) and (pointer: coarse) {
  .carousel-item::after {
    opacity: 0 !important;
  }
  
  .carousel-wrapper {
    scroll-snap-type: x mandatory;
  }
  
  .carousel-item {
    scroll-snap-align: start;
  }
}
/* ============================================
   SECTION OBJETS EN BOIS (CATALOGUE)
   ============================================ */

.catalogue-section {
  background-color: #f8f9fa;
  padding: 4rem 2rem;
}

.catalogue-section .page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalogue-section .page-header h1 {
  font-family: 'Antic Didone', serif;
  font-size: 3rem;
  color: #2e2a26;
  margin-bottom: 1rem;
}

.catalogue-section .intro {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalogue-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogue-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.catalogue-item .image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.catalogue-item .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catalogue-item:hover .image-wrapper img {
  transform: scale(1.05);
}

.item-content {
  padding: 1.5rem;
}

.item-content h3 {
  font-family: 'Antic Didone', serif;
  font-size: 1.5rem;
  color: #2e2a26;
  margin-bottom: 0.5rem;
}

.item-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.commander {
  background-color: #d6c4aa;
  color: #2e2a26;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.commander:hover {
  background-color: #c2b094;
}

/* ============================================
   SECTION CONTACT
   ============================================ */

#contact {
  background-color: #2e2a26;
  color: #f5f3ef;
  padding: 4rem 2rem;
}

#contact .page-header {
  text-align: center;
  margin-bottom: 3rem;
}

#contact .page-header h1 {
  font-family: 'Antic Didone', serif;
  font-size: 3rem;
  color: #f5f3ef;
  margin-bottom: 1rem;
}

#contact .page-header p {
  font-size: 1.2rem;
  color: #d6c4aa;
  max-width: 600px;
  margin: 0 auto;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Antic Didone', serif;
  font-size: 2rem;
  color: #d6c4aa;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #f5f3ef;
}

.contact-info a {
  color: #d6c4aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #f5f3ef;
  text-decoration: underline;
}

.map-preview {
  margin-top: 2rem;
}

.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #d6c4aa;
  color: #2e2a26 !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.map-link:hover {
  background-color: #c2b094;
  color: #2e2a26 !important;
}

.contact-form h2 {
  font-family: 'Antic Didone', serif;
  font-size: 2rem;
  color: #d6c4aa;
  margin-bottom: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  color: #f5f3ef;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background-color: #f5f3ef;
  color: #2e2a26;
  transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d6c4aa;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #d6c4aa;
  color: #2e2a26;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #c2b094;
}

/* Responsive pour contact */
@media screen and (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  #contact .page-header h1 {
    font-size: 2.5rem;
  }
  
  .contact-info h2,
  .contact-form h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, #1a1714 0%, #2e2a26 100%);
  color: #f5f3ef;
  margin-top: 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem 2rem 2rem;
}

.footer-section h3 {
  font-family: 'Antic Didone', serif;
  font-size: 1.8rem;
  color: #d6c4aa;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d6c4aa;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section h4 {
  font-family: 'Antic Didone', serif;
  font-size: 1.3rem;
  color: #d6c4aa;
  margin-bottom: 1rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.footer-logo {
  margin-top: 1.5rem;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-section ul li a:hover {
  color: #d6c4aa;
}

.footer-section ul li a::before {
  content: '▸ ';
  color: #d6c4aa;
  font-weight: bold;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-info a {
  color: #d6c4aa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #f5f3ef;
  text-decoration: underline;
}

.practical-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(214, 196, 170, 0.2);
}

.footer-bottom-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.copyright {
  text-align: left;
}

.copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: #b0b0b0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: #d6c4aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f5f3ef;
  text-decoration: underline;
}

.seo-keywords {
  text-align: right;
}

.seo-keywords p {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

/* Responsive footer */
@media screen and (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 2rem 2rem;
  }
  
  .footer-bottom-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .seo-keywords {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1rem;
  }
  
  .footer-section h3 {
    font-size: 1.5rem;
  }
  
  .footer-section h4 {
    font-size: 1.2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-info p,
  .practical-info p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .footer-content {
    padding: 1.5rem 1rem 1rem;
  }
  
  .footer-bottom-content {
    padding: 1.5rem 1rem;
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
  }
  
  .seo-keywords p {
    font-size: 0.7rem;
  }
}

/* Footer sans animation - affichage instantané */
.footer-section {
  opacity: 1;
}

/* ============================================
   LIGHTBOX POUR LA GALERIE
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close:hover {
  color: #d6c4aa;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive lightbox */
@media screen and (max-width: 768px) {
  .close {
    top: -30px;
    font-size: 1.5rem;
  }
}

/* ============================================
   PAGE MENTIONS LÉGALES
   ============================================ */

.legal-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding-top: 120px; /* Espace pour le header fixe */
}

.legal-content {
  padding: 2rem 0 4rem;
}

.legal-sections {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.legal-section {
  padding: 2rem 3rem;
  border-bottom: 1px solid #e8e8e8;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: 'Antic Didone', serif;
  font-size: 1.8rem;
  color: #2e2a26;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d6c4aa;
  display: inline-block;
}

.legal-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.legal-info p strong {
  color: #2e2a26;
  font-weight: 600;
}

.legal-info ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-info ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.update-date {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 2rem;
}

.back-button {
  text-align: center;
  margin: 3rem 0 2rem;
}

.back-button .btn {
  background-color: #2e2a26;
  color: #f5f3ef;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.back-button .btn:hover {
  background-color: #d6c4aa;
  color: #2e2a26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive pour mentions légales */
@media screen and (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
  }
  
  .legal-section {
    padding: 1.5rem 2rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
  
  .legal-info p,
  .legal-info ul li {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .legal-page {
    padding-top: 80px;
  }
  
  .legal-section {
    padding: 1rem 1.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-info p,
  .legal-info ul li {
    font-size: 0.9rem;
  }
  
  .legal-info ul {
    padding-left: 1.5rem;
  }
  
  .back-button .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
