* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #d7ccc8;
}

main {
  padding: 0;
}

.prestation-section {
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
}

.content-wrapper {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.text-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.text-content h2 {
  font-family: 'BritannicBold';
  font-size: 3.5em;
  color: #3e2723;
  margin-bottom: 30px;
  line-height: 1.1;
}

.text-content p {
  font-family: 'Caladea', serif;
  font-size: 1.3em;
  color: #5d4037;
  line-height: 1.8;
  margin-bottom: 40px;
}

.tarif-btn {
  font-family: 'BritannicBold';
  font-size: 1.1em;
  padding: 18px 35px;
  background-color: #5d4037;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.tarif-btn:hover::before {
  left: 100%;
}

.tarif-btn:hover {
  background-color: #3e2723;
  transform: translateY(-2px);
}

.layout-asymmetric .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.layout-asymmetric .text-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.layout-asymmetric .images-gallery {
  width: 100%;
  position: relative;
  height: 400px;
  margin: 0 auto;
}

.gallery-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.gallery-stack .image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-stack .img-1 {
  width: 280px;
  height: 380px;
  z-index: 3;
  transform: rotate(-5deg);
}

.gallery-stack .img-2 {
  width: 300px;
  height: 400px;
  z-index: 4;
  transform: translateY(-20px);
}

.gallery-stack .img-3 {
  width: 260px;
  height: 350px;
  z-index: 2;
  transform: rotate(5deg);
}


.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.layout-central .content-wrapper {
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.text-center {
  text-align: center;
  flex: 0 1 1000px;
  padding: 0 20px;
}

.images-left, .images-right {
  flex: 0 0 auto;
  position: relative;
}

.images-left .image-container {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.images-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.images-right .image-container {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.images-right .img-floating {
  transform: rotate(-5deg);
}

.images-left .image-container:hover,
.images-right .image-container:hover {
  transform: scale(1.08) rotate(0deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.image-frame {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid #5d4037;
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-frame {
  opacity: 1;
}

.layout-inverse .content-wrapper {
  flex-direction: row-reverse;
  gap: 100px;
}

.gallery-mosaic {
  flex: 1;
  position: relative;
  height: 550px;
  min-width: 500px;
}

.gallery-mosaic .img-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  z-index: 2;
  transition: all 0.4s ease;
}

.images-small {
  position: absolute;
  top: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.images-small .image-container {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.images-small .image-container:first-child {
  transform: rotate(5deg);
}

.images-small .image-container:last-child {
  transform: rotate(-5deg);
}

.gallery-mosaic .image-container:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  z-index: 10;
}

.section-colored {
  background: linear-gradient(135deg, #f5f2ed 0%, #ebe4dc 100%);
  position: relative;
}

.section-colored::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(215, 204, 200, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(215, 204, 200, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-navbar {
    padding: 0 40px;
  }
  
  .nav-links {
    gap: 30px;
  }
  
  .nav-links a {
    font-size: 1.8em;
    margin: 0 20px;
  }
  
  .prestation-section {
    padding: 80px 40px;
  }
  
  .content-wrapper {
    gap: 50px;
  }
  
  .text-content h2 {
    font-size: 2.8em;
  }
  
  .gallery-stack .img-1,
  .gallery-stack .img-3 {
    width: 220px;
    height: 300px;
  }
  
  .gallery-stack .img-2 {
    width: 240px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-navbar {
    padding: 0 20px;
    height: 100px;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-left, .nav-right {
    display: none;
  }
  
  .nav-logo img {
    height: 80px;
  }
  
  .prestation-section {
    padding: 60px 30px;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .layout-inverse .content-wrapper {
    flex-direction: column;
  }
  
  .text-content h2 {
    font-size: 2.2em;
  }
  
  .text-content p {
    font-size: 1.1em;
  }
  
  .layout-asymmetric .images-gallery {
    height: 300px;
  }
  
  .gallery-stack {
    gap: 15px;
  }
  
  .gallery-stack .img-1 {
    width: 150px;
    height: 220px;
  }
  
  .gallery-stack .img-2 {
    width: 170px;
    height: 250px;
  }
  
  .gallery-stack .img-3 {
    width: 140px;
    height: 200px;
  }
  
  .images-left .image-container,
  .images-right .image-container {
    width: 180px;
    height: 180px;
  }
  
  .text-center {
    flex: 1;
  }
  
  .images-left,
  .images-right {
    align-self: center;
  }
  
  .gallery-mosaic {
    height: 400px;
    min-width: 100%;
  }
  
  .gallery-mosaic .img-large {
    width: 250px;
    height: 320px;
  }
  
  .images-small .image-container {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column; /* centrer le contenu */
  }

  .gallery-mosaic {
    position: relative;
    height: auto;  
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
  }

  .gallery-mosaic .img-large,
  .images-small {
    position: static;
    transform: none; 
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .images-small {
    flex-direction: row; 
    justify-content: center;
    gap: 15px;
  }

  .images-small .image-container {
    width: 45%;
    height: auto;
  }

  .text-content {
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .layout-inverse .content-wrapper {
    flex-direction: column;
  }

  .layout-inverse .text-content {
    order: 1;
  }

  .layout-inverse .gallery-mosaic {
    order: 2;
  }
}
