/* RESET ET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding-top: 80px; /* espace pour le header fixe */
}
/* Supprimer toute marge ou padding global au sommet */
body, html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* HEADER */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h1 {
  font-size: 1.8rem;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: none;
}
.nav-links.active,
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1rem;
  }
}
.nav-links li a {
  text-decoration: none;
  color: #333;
}
.burger {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 2rem 0;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* FOOTER */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 2rem;
}

/* FORM */
form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  background-color: #005f73;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
form button:hover {
  background-color: #0a9396;
}

.nav-links {
  list-style: none;
  padding-left: 0;
  flex-direction: column;
  background-color: #fff;
}
.nav-links li {
  padding: 10px 0;
}
.nav-links.active {
  display: flex;
}

/* Affichage de base */
.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  background-color: #fff;
}
.nav-links li {
  padding: 10px 0;
}
.nav-links.active {
  display: flex;
}

/* Affichage normal sur grand écran */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    background-color: transparent;
  }
  .nav-links li {
    padding: 0 10px;
  }
  .burger {
    display: none;
  }
}


/* SECTION PLEIN ÉCRAN */
.hero-fullscreen {
  height: 100vh;
  background: #e0f7fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.logo-img {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}
.hero-fullscreen h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hero-fullscreen p {
  max-width: 600px;
  color: #444;
}

/* GALERIE GRILLE */
.gallery-preview {
  background-color: #f8f8f8;
  padding: 40px 0;
}
.gallery-preview h2 {
  text-align: center;
  margin-bottom: 20px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* SLIDER */
.slider {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto;
  overflow: hidden;
}
.slides {
  position: relative;
  width: 100%;
}
.slide {
  display: none;
  width: 100%;
}
.slide.active {
  display: block;
}
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.slider-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 15px;
  cursor: pointer;
}

/* FORMULAIRE DE CONTACT */
.contact-section {
  background-color: #f0f0f0;
  padding: 40px 20px;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.contact-section form {
  max-width: 600px;
  margin: auto;
}
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.contact-section button {
  background-color: #00796b;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-section button:hover {
  background-color: #004d40;
}

/* NAVIGATION FLOTTANTE */
.floating-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}
.floating-menu .burger {
  font-size: 2rem;
  background: #004d40;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.floating-menu .nav-links {
  display: none;
  flex-direction: column;
  background: white;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.floating-menu .nav-links li {
  margin: 5px 0;
}
.floating-menu .nav-links a {
  text-decoration: none;
  color: #004d40;
}
.floating-menu .nav-links.active {
  display: flex;
}

@media (min-width: 768px) {
  .floating-menu .burger {
    display: none;
  }
  .floating-menu .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: transparent;
    border: none;
  }
  .floating-menu .nav-links li {
    margin: 0;
  }
}

/* HEADER TYPE ELITE BATI CARRELAGE */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 999;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.logo-img-small {
  height: 50px;
  width: auto;
}
.burger {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}
.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  background-color: white;
  position: absolute;
  top: 60px;
  right: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
}
.nav-links li {
  margin: 5px 0;
}
.nav-links a {
  text-decoration: none;
  color: #333;
}
.nav-links.active {
  display: flex;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2rem;
    border: none;
    padding: 0;
  }
  .nav-links li {
    margin: 0;
  }
}

/* MENU INSÉRÉ DANS HERO + COMPORTEMENT SCROLL */
.menu-scroll {
  width: 100%;
  padding: 10px 0;
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 999;
}
.menu-scroll.scrolled {
  position: fixed;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.menu-scroll .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.menu-scroll .logo-img-small {
  height: 50px;
}
.menu-scroll .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.menu-scroll .nav-links li a {
  text-decoration: none;
  color: #004d40;
}
.menu-scroll .burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE & SCROLL MODE */
@media (max-width: 767px) {
  .menu-scroll .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    right: 20px;
    top: 60px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  .menu-scroll .nav-links.active {
    display: flex;
  }
  .menu-scroll .burger {
    display: block;
  }
}

.elite-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.elite-left, .elite-right {
  display: flex;
  align-items: center;
}
.menu-button {
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  font-weight: bold;
  letter-spacing: 1px;
}

/* MENU OVERLAY */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25,25,25,0.7);
  z-index: 998;
}
.menu-overlay.active {
  display: block;
}
.menu-panel {
  width: 300px;
  max-width: 90%;
  height: 100%;
  background: #f1f1f1 url('../images/marbre.jpeg') center/cover repeat;
  padding: 40px 20px;
}
.menu-panel ul {
  list-style: none;
  padding: 0;
}
.menu-panel li {
  margin: 15px 0;
}
.menu-panel a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
  font-weight: 600;
}
.menu-panel .active a {
  background: white;
  padding: 8px 12px;
  display: inline-block;
}

.menu-top-overlay {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}
.menu-button {
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* Animation glissante */
.menu-panel {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #f0f0f0;
  width: 300px;
  z-index: 1000;
  padding: 60px 20px;
}
.menu-overlay.active .menu-panel {
  transform: translateX(0);
}
.menu-panel .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* Mobile */
@media (max-width: 767px) {
  .menu-button, .contact-btn {
    font-size: 1.2rem;
  }
  .contact-btn {
    border: 1px solid white;
    padding: 4px 8px;
  }
}

.hero-fullscreen.no-padding {
  height: 100vh;
  background: url('../images/background.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-fullscreen.no-padding h2,
.hero-fullscreen.no-padding p {
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}


/* Supprimer le padding résiduel de .hero-fullscreen si hérité */
.hero-fullscreen {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Supprimer tout effet blanc d’un élément overlay restant */
.menu-top-overlay {
  background: transparent !important;
}

.hero-fullscreen {
  position: relative;
  overflow: hidden;
}
.hero-fullscreen::before {
  content: "";
  background: url('../images/background.png') center/cover no-repeat;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  animation: zoomIn 20s ease-in-out infinite alternate;
}
@keyframes zoomIn {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.hero-fullscreen > .container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-in-out both;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Parallaxe léger sur la première section */
.hero-fullscreen::before {
  background-attachment: fixed;
}

/* Style du bouton MENU combiné avec icône burger */
.menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: transparent;
  border: 2px solid transparent;
  padding: 6px 12px;
  color: white;
  cursor: pointer;
  position: relative;
}
.menu-button::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: black;
  box-shadow: 0 6px black, 0 -6px black;
}

/* Au survol : encadré noir */
.menu-button:hover {
  border-color: black;
  background: white;
  color: black;
}

/* Version flottante après scroll */
.menu-button.floating {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  bottom: auto;
  z-index: 9999;
  background: white;
  color: black;
  border-color: black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.3s ease;
}
.back-to-top svg {
  stroke: #000;
}
.back-to-top.visible {
  display: flex;
}

.back-to-top::before {
  content: none;
}

.menu-top-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 30px;
  left: 0;
  padding: 0 20px;
  z-index: 999;
}
.menu-top-overlay .contact-btn {
  position: relative;
  margin-left: auto;
}

/* Bouton CONTACTER visible et stylé */
.contact-btn {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 2px solid #bbbdbc;
  color: black;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.contact-btn:hover {
  background-color: white;
  color: black;
  text-decoration: none;
}

/* Bouton DÉCOUVRIR modernisé */
.discover-btn {
  margin-top: 30px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid #bbbdbc;
  color: black;
  background-color: transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.discover-btn:hover {
  background-color: white;
  color: black;
}

.caption {
  color: white;
  margin-top: 15px;
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  max-width: 90%;
  box-sizing: border-box;
  animation: fadeUp 0.4s ease-in-out;
}
@media (max-width: 767px) {
  .caption {
    font-size: 0.85rem;
    padding: 6px 12px;
    bottom: 15px;
  }
}

/* Animation d’apparition douce */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Curseur de type loupe sur images */
.gallery-grid img,
.gallery-preview img {
  cursor: zoom-in;
}

.prestation {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}
.prestation h2 {
  text-align: center;
  margin-bottom: 20px;
}
.prestation ul {
  list-style: none;
  padding: 0;
}
.prestation ul li {
  margin: 12px 0;
  font-size: 1.1rem;
  padding: 10px 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: inline-block;
  text-align: left;
  color: #333;
}

.contact-form-section {
  background: #f9f9f9;
  padding: 60px 20px;
}
.contact-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 40px;
  animation: fadeSlideUp 1s ease-out;
}
.contact-form-left,
.contact-form-right {
  flex: 1 1 450px;
}
.contact-form-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.contact-form-left form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-form-left input,
.contact-form-left textarea {
  flex: 1 1 48%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form-left textarea {
  flex-basis: 100%;
  min-height: 100px;
}
.contact-form-left .full-width {
  flex-basis: 100%;
}
.contact-form-left button {
  background-color: transparent;
  border: 2px solid #333;
  padding: 12px 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form-left button:hover {
  background: #333;
  color: white;
}
.contact-form-right p {
  margin: 12px 0;
  font-size: 1rem;
}
.contact-form-right p strong {
  display: block;
  margin-bottom: 4px;
}
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}
.lightbox .prev {
  left: 20px;
}
.lightbox .next {
  right: 20px;
}
.lightbox.show .lightbox-content {
  transform: scale(1);
  opacity: 1;
}
.lightbox.hide .lightbox-content {
  transform: scale(0.9);
  opacity: 0;
}

@media (max-width: 767px) {
  .lightbox .prev {
    display: block;
    z-index: 9999;
  }
}