/* style.css */
body {
  margin: 0;
  background-color: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: #f0c000;
}

nav .menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

nav .menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

nav .menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

nav .menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

nav .menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media screen and (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #000;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav .menu-toggle {
    display: flex;
  }
}

.intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.floating-camera {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-camera img {
  width: 400px;
  max-width: 90vw;
  height: auto;
  animation: float 3s ease-in-out infinite, rotateFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.5s ease;
}

.floating-camera img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(240, 192, 0, 0.7));
}

.floating-camera.hide {
  opacity: 0;
  transform: scale(0.5) translateY(-100px);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotateFloat {
  0%, 100% {
    rotate: 0deg;
  }
  50% {
    rotate: 5deg;
  }
}

.gallery {
  margin-top: 100vh;
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 50px;
}

.photo-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  opacity: 0;
  transform: translateY(50px) scale(0.95) rotateZ(2deg);
  transition: opacity 1s ease, transform 1s ease;
}

.photo-block img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.photo-text {
  max-width: 300px;
}

.left {
  flex-direction: row;
}

.right {
  flex-direction: row-reverse;
}

.photo-block.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateZ(0);
}

.contact {
  background-color: #1a1a1a;
  padding: 50px;
  text-align: center;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.contact label {
  align-self: flex-start;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
}

.contact button {
  background-color: #555;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #777;
}

/* Responsive photo gallery */
@media screen and (max-width: 768px) {
  .photo-block {
    flex-direction: column !important;
    text-align: center;
  }

  .photo-text {
    max-width: 100%;
  }

  .gallery {
    padding: 20px;
    gap: 60px;
  }
}

@media screen and (max-width: 480px) {
  .floating-camera img {
    width: 250px;
  }

  nav {
    padding: 10px 20px;
  }

  nav .logo {
    font-size: 1.2em;
  }

  nav ul {
    top: 50px;
    width: 100%;
  }
}

/* Hide floating camera on scroll */
body.scrolled .floating-camera {
  opacity: 0;
  transform: scale(0.5) translateY(-100px);
  pointer-events: none;
}

.tarif-preview {
  padding: 60px 20px;
  background-color: #111;
  text-align: center;
}

.tarif-preview h2 {
  font-size: 2em;
  color: #f0c000;
  margin-bottom: 30px;
}

.tarif-slider {
  display: flex;
  justify-content: center; /* <-- centre horizontalement */
  flex-wrap: wrap; /* pour que ça passe à la ligne sur petits écrans */
  gap: 20px;
}

.tarif-slider::-webkit-scrollbar {
  display: none;
}

.tarif-slide {
  flex: 0 0 auto;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  scroll-snap-align: start;
  box-shadow: 0 0 10px rgba(240, 192, 0, 0.2);
  transition: transform 0.3s;
}

.tarif-slide:hover {
  transform: scale(1.05);
}

.tarif-slide h3 {
  color: #f0c000;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.tarif-slide p {
  color: #fff;
  font-size: 1em;
}

.button-link {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #f0c000;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.button-link:hover {
  background-color: #ffc500;
}

/* <-- slider main téléphone */
@media (min-width: 768px) {
  .tarif-slider {
    justify-content: center;
    overflow-x: visible;
  }
}