:root {
  --primary-dark: #252c34;
  --accent: #c29a6a; /* bois doré conservé */
  --light-bg: #f5f2ee;
  --text-dark: #3e2f1c;
}

html {
  scroll-behavior: smooth;
}

/* ===== RESET SIMPLE ===== */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;  
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== CONTAINER GLOBAL ===== */
section {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
  
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;   /* IMPORTANT */
  right: 0;  /* IMPORTANT */
  width: 100%;
  height: 80px;
  background: var(--primary-dark);
  color: white;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(37,44,52,0.95);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

#top::before {
  content: "";
  display: block;
  height: 80px; /* même hauteur que le header */
  margin-top: -80px; /* décalage négatif */
}

/* Bloc logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none; /* pas de souligné */
  color: inherit; /* garde la couleur blanche */
}

.logo a {
  display: flex;
  align-items: center; /* centre verticalement le logo et le texte */
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

/* Image logo */
.logo img {
  height: 60px; /* légèrement inférieur à 80px pour respirer */
  width: auto;
  object-fit: contain;
  vertical-align: middle; /* optionnel */
}

/* Texte à côté du logo */
.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  font-size: 16px;
}

header nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

header nav a:hover {
color: var(--accent);
}

nav {
  display: flex;
}

/* Scrollspy actif */
nav a.active {
color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Décalage pour header fixe */
body {
  padding-top: 70px;
}

h1 {
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-name {
  font-family: "Prosto One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
     /* Nouvel espace au-dessus et en dessous */
  margin-top: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.subtitle {
  font-size: 22px;
  font-weight: 500;
  color: var(--light-bg);
  margin-bottom: 30px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  color: #252c34;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

/* Soulignement pleine largeur */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #252c34,
    #c29a6a
  );
  border-radius: 2px;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  padding: 0;
  max-width: 100%;
}

#hero .hero-banner {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

#hero .hero-logo {
  max-width: 180px;   /* limite la largeur */
  width: 100%;        /*responsive */
  height: auto;
  margin-bottom: 5px;
}

.hero-text {
  position: absolute;
  top: 0px;
  left: 0px;
  width : 100%;
  height: 100%;
  /*transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.25);*/
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.25)
  );
  padding: 30px;
  border-radius: 0px;
  color: white;
  text-align: center;
  align-items: center;
}

/* ===== SERVICES ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service {
  background: #e8dfd3;
  padding: 25px;
  border-radius: 8px;
}

/* ===== GALERIE ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90vh;
}

#lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 18px;
  text-align: center;
}

#lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}
.btn-social i {
  margin-right: 8px;
}
/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* .btn-primary {
  background: #252c34;
  color: white;
} */
.btn-primary,
.btn-secondary {
  background: #252c34;
  color: white;
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

/* Desktop : boutons côte à côte */
.btn-group {
  display: flex;
  gap: 20px; /* espace entre les boutons */
  flex-wrap: wrap;
}
.btn-primary:hover {
  background: #1a1f25;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  border: 2px solid #252c34;
  color: #252c34;
}

.btn-outline:hover {
  background: #252c34;
  color: white;
}
.social-buttons {
  margin-top: 15px;
  display: flex;
  gap: 15px; /* espace entre les boutons */
  justify-content: center; /* centré horizontalement */
}

.follow-us {
  display: flex;
  align-items: center; /* centre verticalement le texte et le bouton */
  gap: 10px;           /* espace entre le texte et le bouton */
  margin-top: 15px;
}
.btn-facebook {
  display: flex;  
  justify-content: center;
  background-color: #3b5998; /* bleu Facebook */
  color: white;
  align-items: center;
  padding: 8px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-social.facebook:hover {
  background-color: #145dbf;
}

/* Section et autre */
section {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}
.service {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service:hover {
  transform: translateY(-5px);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 1s cubic-bezier(.16,1,.3,1);
}

.reveal-left {
  transform: translateX(-180px);
}

.reveal-right {
  transform: translateX(180px);
}

.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

/* AVIS */
#avis {
  padding: 50px 20px;
  background-color: #f5f2ee;
  text-align: center;
}

#avis .review {
  background-color: #e8dfd3;
  padding: 20px;
  margin: 15px auto;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#avis .review p {
  margin: 5px 0;
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* Animation burger */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === Gallerie === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .gallery-item {
    position: relative;
    width: 200px;      /* largeur fixe desktop */
    height: 300px;     /* hauteur fixe desktop */
    overflow: hidden;  /* cache le reste de l'image */
    cursor: pointer;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* recadre l'image pour remplir le conteneur */
     display: block;
    transition: transform 0.4s ease;
  }
}
/* Sur mobile, on garde le flux normal */
@media (max-width: 767px) {
  .gallery-item {
    width: 100%;
    height: auto;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Infobulle */
.tooltip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(37, 44, 52, 0.85); /* gris anthracite */
  color: white;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/*Mobile*/

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    max-width: 200px;
    height: 100vh;
    background: #252c34;
    display: flex;
    flex-direction: column;
    padding: 100px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.16,1,.3,1);
  }

  nav.active {
    transform: translateX(0);
  }

  nav a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    margin: 0;
  }

  .burger {
    display: flex;
  }
  .btn-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 15px;
  }
  #hero .hero-logo {
    max-width: 100px;   /* réduit la taille sur mobile */
  }
}
