body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: white;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-video video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -2;
}

.background-video .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

header {
  background-color: #000;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #e50914;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

nav ul li a:hover {
  color: white;
}

.services {
  padding: 50px 20px;
  text-align: center;
}

h1, h2 {
  color: #e50914;
}

.carousel-centered {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 40px;
  padding: 30px 10vw;
  perspective: 1000px;
  scrollbar-width: none;
}

.carousel-centered::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 250px;
  scroll-snap-align: center;
  background-color: #1e1e1e;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
  text-align: center;
  transition: transform 0.4s ease;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 15px 30px rgba(229, 9, 20, 0.5);
}

.image-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.image-card h3 {
  margin: 0;
  padding: 15px;
  font-size: 18px;
  background: #121212;
  color: #e50914;
}

.liste-services {
  list-style-type: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.liste-services li {
  background-color: #1e1e1e;
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  border-left: 4px solid #e50914;
  text-align: left;
  box-shadow: 0 4px 10px rgba(229, 9, 20, 0.2);
}

button {
  background: none;
  color: #e50914;
  border: 2px solid #e50914;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

button:hover {
  background: #e50914;
  color: white;
}

.formulaire-rdv {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.formulaire-rdv input,
.formulaire-rdv textarea,
.formulaire-rdv select {
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #1e1e1e;
  color: white;
  border-left: 4px solid #e50914;
}

.formulaire-rdv textarea {
  resize: vertical;
  min-height: 100px;
}

.formulaire-rdv button[type="submit"] {
  background-color: #e50914;
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.formulaire-rdv button[type="submit"]:hover {
  background-color: #ff1a1a;
}

footer {
  background-color: #000;
  padding: 30px 0;
  border-top: 2px solid #e50914;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  max-width: 1000px;
  margin: auto;
}

.footer-col {
  margin: 10px;
  line-height: 1.8;
}

.footer-col strong {
  color: #e50914;
}

.section-hidden {
  display: none;
}

.accordion-button {
  background: #1e1e1e;
  border: none;
  padding: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  color: white;
  border-left: 4px solid #e50914;
}

.accordion-content {
  display: none;
  padding: 10px;
  background: #121212;
}

.accordion-content ul {
  margin: 5px 0;
  padding-left: 20px;
}

.appointment-button {
  margin-top: 20px;
  background-color: crimson;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.appointment-button:hover {
  background-color: #ff1a1a;
}

.rdv-box {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  color: white;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rdv-box h3 {
  margin-top: 0;
}

.rdv-box ul {
  padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .background-video {
    background: url('images/garage-mobile.png') center/cover no-repeat !important;
    background-color: #121212;
  }

  .background-video video {
    display: none !important;
  }

  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: #e50914;
    margin: 5px;
    transition: 0.3s;
  }

  nav ul {
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    padding: 20px 0;
  }

  nav ul.show {
    display: flex;
  }

  .carousel-centered {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    align-items: center;
    gap: 20px;
    padding: 20px;
    perspective: none;
  }

  .card {
    width: 90%;
    max-width: 350px;
    transform: none !important;
    box-shadow: 0 8px 15px rgba(229, 9, 20, 0.4);
  }

  h1, h2 {
    font-size: 24px;
  }

  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .formulaire-rdv {
    width: 90%;
    padding: 10px;
  }

  .rdv-box {
    padding: 20px;
    width: 90%;
  }
}
.confirmation-popup {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: green;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.confirmation-popup.show-confirm {
  display: block;
  opacity: 1;
}
