body {
  opacity: 1;
  /* Visible par défaut pour éviter les conflits */
  font-family: "Poppins", sans-serif;
}

.hidden {
  display: none;
}

/* Assurez-vous que le message est au-dessus de tout */
#autoplay-prompt {
  z-index: 2147483647 !important; /* Plus haut z-index possible */
}

@keyframes fadeInPage {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

@keyframes fadeDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fade-down {
  animation: fadeDown 1s ease-in-out;
}


#intro-image {
  position: relative;
  overflow: hidden;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Titre en haut à gauche */
#intro-image h1 {
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: titleFadeIn 1.5s ease forwards;
  animation-delay: 1s;
  z-index: 2;
}

/* Effet de superposition animée */
#intro-image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  opacity: 0.8;
  z-index: 1;
  animation: overlayFadeIn 2s ease forwards;
}

/* Animation pour faire apparaître le titre */
@keyframes titleFadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Animation d'apparition pour l'overlay */
@keyframes overlayFadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 0.8;
  }
}


/* Animation d'apparition pour l'overlay */
@keyframes overlayFadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 0.8;
  }
}

#intro-image h1 {
  position: relative;
  z-index: 2;
  /* Assure que le texte reste au-dessus */
  color: white;
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: titleFadeIn 1.5s ease forwards;
  animation-delay: 1s;
}

/* Animation pour faire apparaître le titre */
@keyframes titleFadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Animation d’apparition du bouton */
.button-animation {
  opacity: 0;
  animation: buttonFadeIn 2s ease forwards;
  animation-delay: 1.5s;
}

@keyframes buttonFadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Scrolling images (Portfolio) */
#portfolio {
  width: 100%;
  overflow: hidden;
}

/* Replace the existing scrolling-row related styles with these */
/* Hide the entire portfolio section by default (on desktop) */
#portfolio {
  display: none;
}

/* Show the section only on mobile devices */
@media (max-width: 768px) {
  #portfolio {
      display: block;
  }
  
  .scrolling-wrapper {
      margin-bottom: 20px;
      overflow: hidden;
      width: 100%;
      position: relative;
  }
  
  .scrolling-row {
      display: flex;
      white-space: nowrap;
      width: 100%;
      position: relative;
  }
  
  .scroll-content {
      display: flex;
      gap: 0.5rem;
      will-change: transform;
  }
  
  .scrolling-row .scroll-content {
      animation: infiniteScroll 40s linear infinite;
  }
  
  .scrolling-row.reverse .scroll-content {
      animation: infiniteScrollReverse 40s linear infinite;
  }
  
  .scroll-image {
      min-width: 220px;
      width: 220px;
      height: 165px;
      object-fit: cover;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      transform: translateZ(0);
      flex-shrink: 0;
  }
  
  .scroll-image:hover {
      transform: scale(1.03);
  }
  
  .scroll-content a {
      display: block;
      width: 220px;
      margin: 0;
      padding: 0;
      flex-shrink: 0;
  }
  
  /* Add pause on hover */
  .scrolling-row:hover .scroll-content {
      animation-play-state: paused;
  }
  
  @keyframes infiniteScroll {
      0% {
          transform: translateX(0);
      }
      100% {
          transform: translateX(calc(-100% / 2));
      }
  }
  
  @keyframes infiniteScrollReverse {
      0% {
          transform: translateX(calc(-100% / 2));
      }
      100% {
          transform: translateX(0);
      }
  }
}

/* Lightbox */
.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}

.hidden {
  display: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* Section Services */
#services .gap-12 {
  gap:0.7rem;
}
#services {
  background: linear-gradient(to right, #f3f4f6, #e2e8f0);
  padding: 60px 0;
}

#services h2 {
  color: #1f2937;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.service-card {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
}



.service-text {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-icon {
  font-size: 2rem;
  color: #f59e0b;
  margin-top: 0.5rem;
}

/* Titre animé avec icône */
.title-animation {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 10px;
  animation: bounceIn 1s ease-out;
}

.title-icon {
  font-size: 1.2em;
  color: #f59e0b;
  margin-right: 1rem;
  animation: fadeIn 2s ease forwards;
}

.title-smiley {
  position: absolute;
  top: -10px;
  left: -60px;
  /* Déplace un peu plus à gauche */
  height: 60px;
  transform: rotate(15deg);
  opacity: 0;
  animation: slideInBehind 1.5s ease forwards;
  z-index: 1;
}

.title-animation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  animation: slideInHighlight 1.5s ease-out;
  border-radius: 2px;
}

/* Animations */

/* Animation de rebond pour le texte */
@keyframes bounceIn {
  0% {
      transform: translateY(-100px);
      opacity: 0;
  }

  60% {
      transform: translateY(20px);
      opacity: 1;
  }

  80% {
      transform: translateY(-10px);
  }

  100% {
      transform: translateY(0);
  }
}

/* Animation d'apparition de l'icône, sans disparition */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.8);
  }

  to {
      opacity: 1;
      transform: scale(1);
  }
}

/* Animation pour faire sortir l'image smiley de derrière le texte */
@keyframes slideInBehind {
  0% {
      transform: translateX(-30px) rotate(15deg);
      opacity: 0;
  }

  60% {
      opacity: 1;
  }

  100% {
      transform: translateX(0) rotate(15deg);
      opacity: 1;
  }
}

/* Animation de surbrillance */
@keyframes slideInHighlight {
  from {
      width: 0;
  }

  to {
      width: 100%;
  }
}

/* Style de l'image smiley spécifique pour "PICS TIME" */
.pics-time-smiley {
  position: absolute;
  top: -13px;
  left: 235px;
  height: 100px;
  opacity: 0;
  animation: picsSlideInBehind 1.5s ease forwards;
  z-index: 1;
}

/* Animation pour faire sortir l'image smiley de derrière le texte pour "PICS TIME" */
@keyframes picsSlideInBehind {
  0% {
      transform: translateX(-30px) rotate(15deg);
      opacity: 0;
  }

  60% {
      opacity: 1;
  }

  100% {
      transform: translateX(0) rotate(15deg);
      opacity: 1;
  }
}

.btn {
  position: absolute; /* Permet de placer le bouton précisément */
  bottom: 70px; /* Distance du bas de l'écran */
  right: 20px; /* Distance de la droite de l'écran */
  display: inline-block;
  border: 2px solid #f59e0b; /* Couleur dorée */
  font-size: 20px;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #333; /* Noir plus subtil */
  color: #f59e0b; /* Texte doré */
  text-align: center;
  line-height: 60px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  z-index: 999;
}

.btn:hover {
  transform: scale(1.1); /* Légère augmentation de taille */
}

.portfolio-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background-color: #f59e0b; /* Couleur dorée */
  border-radius: 50px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

.portfolio-btn:hover {
  background-color: #d97706; /* Couleur dorée plus foncée au survol */
  transform: scale(1.05); /* Légère augmentation de taille */
}

footer {
  font-family: "Poppins", sans-serif;
}

footer i {
  margin-right: 0.5rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #f59e0b; /* Couleur dorée au survol */
}

footer .fab {
  transition: transform 0.3s ease;
}

footer .fab:hover {
  transform: scale(1.2); /* Grossissement des icônes au survol */
}

#sound-toggle {
  z-index: 50; /* Toujours au-dessus des autres éléments */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  position: absolute;
}

#sound-toggle:hover {
  transform: scale(1.1);
  background-color: #d97706; /* Couleur dorée foncée au survol */
}

/* Navigation principale */
nav {
  position: fixed;
  top: 20px;
  left: 8px;
  z-index: 100;
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.2); /* Transparent avec effet de verre */
  backdrop-filter: blur(10px); /* Effet de flou */
  padding: 0.6rem 1.2rem; /* Taille réduite */
  border-radius: 8px; /* Coins légèrement arrondis */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombre subtile */
  transition: all 0.3s ease;
}

nav a {
  font-family: 'Poppins', sans-serif; /* Police harmonisée */
  font-size: 0.9rem; /* Taille réduite */
  font-weight: 400; /* Texte normal */
  color: #fff; /* Texte blanc */
  text-transform: uppercase; /* Texte moderne */
  letter-spacing: 0.03rem; /* Espacement réduit entre lettres */
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px; /* Barre plus fine */
  background: #d1d5db; /* Couleur grise subtile */
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%; /* Barre pleine au survol */
}

nav a.active-scroll {
  color: #f3f4f6; /* Couleur blanche légèrement atténuée pour les éléments actifs */
}

/* Dropdown Styles */
.dropdown-btn {
  font-family: 'Poppins', sans-serif; /* Police harmonisée */
  font-size: 0.9rem; /* Taille réduite */
  color: #fff; /* Texte blanc */
  display: flex;
  align-items: center;
  gap: 0.3rem; /* Espacement entre le texte et l'icône */
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown-btn:hover {
  color: #f3f4f6; /* Couleur blanche légèrement atténuée au survol */
}

.dropdown-menu {
  display: none; /* Caché par défaut */
  position: absolute;
  left: 0;
  top: 100%; /* Sous le bouton */
  min-width: 190px; /* Largeur ajustée */
  background-color: #1f2937; /* Fond gris foncé */
  border-radius: 6px; /* Coins légèrement arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre subtile */
  overflow: hidden; /* Supprime les débordements */
  z-index: 50;
  padding: 0.4rem 0;
}

.dropdown-menu a {
  font-family: 'Poppins', sans-serif; /* Police harmonisée */
  font-size: 0.9rem; /* Texte légèrement plus petit */
  font-weight: 400; /* Texte normal */
  color: #e5e7eb; /* Texte gris clair */
  padding: 0.5rem 1rem; /* Marges internes */
  display: block; /* Largeur totale du lien */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #374151; /* Fond gris plus sombre au survol */
  color: #f3f4f6; /* Texte blanc légèrement atténué */
}

.show .dropdown-menu {
  display: block; /* Affiche le menu dropdown */
}

/* Chevron style */
.dropdown-btn svg {
  width: 14px; /* Chevron plus petit */
  height: 14px;
  transition: transform 0.3s ease;
}

.show .dropdown-btn svg {
  transform: rotate(180deg); /* Rotation de l'icône lorsque le menu est ouvert */
}





/* Effet sur le bouton lors du clic */
.btn.btn-active {
  transform: scale(1.2) rotate(10deg); /* Agrandissement et rotation légère */
  background-color: #f59e0b; /* Couleur de surbrillance */
  color: #ffffff; /* Couleur du texte */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn.btn-active a {
  color: #ffffff; /* Couleur blanche pour le texte */
}

/* Service card sans hover */
.service-card.no-hover .overlay {
  opacity: 1; /* Toujours visible */
  display: flex;
}

.service-card.no-hover .service-image {
  transform: scale(1); /* Pas d'effet zoom */
}

/* S'assurer que le texte est bien centré */
.overlay-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour lisibilité */
}

.overlay-visible span {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Effet de texte en relief */
}

.overlay-visible i {
  font-size: 2rem;
  color: #f59e0b;
  margin-top: 0.5rem;
}


/* Cible uniquement les appareils avec une largeur max de 768px (mobile) */
@media (max-width: 768px) {
  .service-card .overlay {
      opacity: 1; /* Toujours visible */
      display: flex;
  }

  .service-card .service-image {
      transform: none; /* Pas d'effet de zoom */
  }

  .service-card:hover .overlay,
  .service-card:hover .service-image {
      transform: none; /* Supprime tout effet hover sur mobile */
  }
}

@media (max-width: 768px) {
 #intro-image h1 {
  margin-top: 20px; /* Descend légèrement le titre */
  line-height: 40px; /* Espacement de 30px entre les lignes */
}

.service-card video {
  pointer-events: none; /* Désactive les interactions utilisateur */
}


@media (max-width: 768px) {
  nav {
      padding: 0.4rem 0.8rem; /* Réduit le padding global */
      gap: 0.5rem; /* Réduit l'espacement entre les liens */
  }

  nav a,
  .dropdown-btn {
      font-size: 0.85rem; /* Texte plus petit */
  }
}

@media (max-width: 480px) {
  nav {
      padding: 0.3rem 0.6rem; /* Padding encore réduit pour les très petits écrans */
      gap: 0.3rem; /* Espacement minimal entre les liens */
  }

  nav a,
  .dropdown-btn {
      font-size: 0.8rem; /* Texte encore plus compact */
  }
}

  nav {
      margin-top: 70px; /* Descend le menu en dessous du titre */
      margin-left: -47px;
  }

  nav a {
      font-size: 0.9rem; /* Réduit la taille du texte pour s'adapter au mobile */
  }
}


@media (max-width: 768px) {
  /* Bouton "Activer le son" */
  #sound-toggle {
      bottom: 26px; /* Distance par rapport au bas */
      right: 10px; /* Distance par rapport au côté droit */
  }

  /* Bouton flèche vers le bas */
  .btn {
      bottom: 80px; /* Place le bouton au-dessus de "Activer le son" */
      right: 5px; /* Même alignement horizontal */
      font-size: 22px; /* Taille de la flèche adaptée au mobile */
  }

  .btn a {
      font-size: 22px; /* Ajuste la taille de la flèche */
  }
}

#testimonials {
  font-family: 'Inter', sans-serif;
}

#testimonial-carousel .flex-shrink-0 {
  transition: transform 0.3s ease-in-out;
}

.bg-white {
  background: linear-gradient(to top, #ffffff, #f8f8f8);
}

.stars {
  font-size: 1.2rem;
}

button:hover {
  transform: scale(1.1);
}

button:focus {
  outline: none;
}


@media (max-width: 640px) {
  .absolute.top-8.right-8.flex.items-center.space-x-6.text-sm.font-medium.z-50 {
    top: 2rem;
    right: 1.4rem;
  }
}

/* Ajustement sur mobile si nécessaire */
@media (max-width: 640px) {
  .dropdown-left .dropdown-menu {
      transform: translateX(-59%); /* Moins décalé sur mobile */
  }
}


.w-5.h-5 {
  color: #FFD700; /* Gold color for stars */
}



.portfolio-service-image {
  position: absolute;
  /* top: 40%; */
  /* left: 50%; */
  /* transform: translate(-50%, -30%); */
  height: 120%;
  width: auto;
  object-fit: cover;
}

  @media (max-width: 768px) {
      .portfolio-service-image {
          width: 90%; /* Encore plus grand sur mobile */
          transform: translate(-50%, -35%); /* Légèrement plus bas sur mobile */
          margin-top: 40px; /* Plus bas sur mobile */
      }
  }