/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: white;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Language Toggle */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 25px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  background: #333;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lang-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.lang-btn:hover .lang-icon {
  transform: rotate(180deg);
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.logo img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid #ddd;
}

/* Carousel */
.carousel {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .list .item .content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 20px;
  color: #fff;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.carousel .list .item .title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Luxurious Script', cursive;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.carousel .list .item .des h1 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

/* Thumbnail */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 100;
}

.thumbnail .item {
  width: 100px;
  height: 150px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

/* Arrows */
.arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrows button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
}

/* Animations carousel */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .des {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear forwards;
}

@keyframes showContent {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.2s !important;
}

/* Animations pour les transitions */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear forwards;
}

.carousel.prev .list .item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}

.carousel.next .thumbnail {
  animation: effectNext 0.5s linear forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .des {
  animation: contentOut 1.5s linear forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

/* Time bar */
.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #fff;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time {
  animation: runningTime 3s linear forwards;
}

@keyframes runningTime {
  from { width: 100%; }
  to { width: 0; }
}

/* Description title */
.description_Title {
  text-align: center;
  margin: 80px 0 60px;
  padding: 0 20px;
}

.description_Title h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #333;
  font-weight: 600;
}

/* Images menu slider */
.images_menu {
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  position: relative;
  background-color: #f8f9fa;
  margin-bottom: 60px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.images_menu::before,
.images_menu::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.images_menu::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.images_menu::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.IM-slide {
  display: inline-block;
  animation: slide 30s infinite linear;
  white-space: nowrap;
}

.IM-slide img {
  height: 200px;
  width: 600px;
  margin: 0 20px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
  vertical-align: top;
}

.IM-slide img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.images_menu:hover .IM-slide {
  animation-play-state: paused;
}

/* Video section */
.introbox {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.intro-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Sections communes */
section {
  margin-bottom: 80px;
  padding: 0 20px;
}

.About_title,
.SurMFemmes_title,
.Retouche_title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #333;
  margin-bottom: 30px;
  font-weight: 700;
}

.About_head_description,
.Retouche_description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #666;
  line-height: 1.6;
}

/* Images principales */
.About_image_main,
.SurMFemmes_image,
.Retouche_image {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.About_image_main img,
.SurMFemmes_image img,
.Retouche_image img {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Galeries d'images */
.About_images1,
.About_images2,
.About_images3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.About_images1.visible,
.About_images2.visible,
.About_images3.visible {
  opacity: 1;
  transform: translateY(0);
}

.About_images1 img,
.About_images2 img,
.About_images3 img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.About_images1 img:hover,
.About_images2 img:hover,
.About_images3 img:hover {
  transform: scale(1.05);
}

/* Section horaires */
.hours-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
  margin-bottom: 0;
}

.heures h1 {
  text-align: center;
  color: #333;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
}

.table-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.table {
  background-color: #333;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 600px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 15px 10px;
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.table th {
  background-color: #666;
  font-weight: 600;
}

.table td {
  background-color: #e9ecef;
  color: #333;
}

/* Section carte */
.map-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
}

.google-map {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.google-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.info_box {
  background-color: #e9ecef;
  color: #333;
  padding: 40px 20px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.social-section {
  text-align: center;
}

.suivez-nous {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.info_button {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.instagram,
.facebook {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.instagram:hover,
.facebook:hover {
  transform: scale(1.1);
}

.contact-section {
  text-align: left;
}

.coordones {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.info_coordones {
  margin-bottom: 20px;
}

.info_coordones div {
  margin-bottom: 10px;
}

.info_coordones a {
  color: #007bff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info_coordones a:hover {
  color: #0056b3;
}

.Copyright p {
  font-size: 0.9rem;
  color: #666;
}

/* Media Queries */

/* Tablettes */
@media (max-width: 768px) {
  .logo img {
    width: 80px;
    height: 80px;
  }

  .carousel {
    height: 80vh;
  }

  .carousel .list .item .content {
    width: 95%;
    padding: 15px;
    top: 15%;
  }

  .thumbnail {
    bottom: 20px;
    gap: 10px;
  }

  .thumbnail .item {
    width: 60px;
    height: 90px;
  }

  .arrows {
    padding: 0 10px;
  }

  .arrows button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .IM-slide img {
    height: 180px;
    width: 500px;
    margin: 0 10px;
  }

  .About_images1,
  .About_images2,
  .About_images3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .About_images1 img,
  .About_images2 img,
  .About_images3 img {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .contact-section {
    text-align: center;
  }

  .table {
    min-width: 500px;
  }

  .table th,
  .table td {
    padding: 12px 8px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .logo {
    padding: 15px 0;
    margin-bottom: 15px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  .carousel {
    height: 70vh;
  }

  .carousel .list .item .content {
    top: 10%;
    width: 95%;
    padding: 10px;
  }

  .carousel .list .item .title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .carousel .list .item .des h1 {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
  }

  .thumbnail {
    bottom: 15px;
    gap: 8px;
  }

  .thumbnail .item {
    width: 50px;
    height: 75px;
  }

  .arrows button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .description_Title {
    margin: 40px 0 30px;
  }

  .IM-slide img {
    height: 150px;
    width: 400px;
    margin: 0 8px;
  }

  section {
    margin-bottom: 50px;
    padding: 0 15px;
  }

  .About_images1,
  .About_images2,
  .About_images3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .About_images1 img,
  .About_images2 img,
  .About_images3 img {
    height: 200px;
  }

  .hours-section,
  .map-section {
    padding: 40px 15px;
  }

  .table {
    min-width: 400px;
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 8px 5px;
  }

  .info_box {
    padding: 30px 15px;
  }

  .footer-content {
    gap: 20px;
  }

  .info_button {
    gap: 10px;
  }

  .instagram,
  .facebook {
    width: 40px;
    height: 40px;
  }

  .instagram img,
  .facebook img {
    width: 25px;
    height: 25px;
  }
}

/* Language toggle responsive */
@media (max-width: 768px) {
  .language-toggle {
    top: 15px;
    right: 15px;
  }
  
  .lang-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .lang-icon {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .language-toggle {
    top: 10px;
    right: 10px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .carousel {
    height: 60vh;
  }

  .thumbnail {
    display: none;
  }

  .table {
    min-width: 320px;
    font-size: 10px;
  }

  .table th,
  .table td {
    padding: 6px 3px;
  }

  .carousel .list .item .content {
    top: 5%;
  }
}

/* Grands écrans */
@media (min-width: 1200px) {
  .carousel .list .item .content {
    max-width: 1000px;
  }

  .thumbnail .item {
    width: 120px;
    height: 180px;
  }

  .About_images1,
  .About_images2,
  .About_images3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto 40px;
  }

  .About_images2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
}