/* Animation de la barre sous les menus - De gauche à droite */
.nav-link {
  position: relative;
  padding: 8px 16px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #E30613;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animation pour le bouton Services */
.services-btn {
  position: relative;
  padding: 8px 16px;
}

.services-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #E30613;
  transition: width 0.3s ease;
}

.services-btn:hover::after {
  width: 100%;
}

/* Animation de défilement */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

.slider {
  background: white;
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider::before,
.slider::after {
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14);
}

.slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-height: 60px;
  max-width: 160px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Styles pour le méga-menu */
.mega-container {
  position: relative;
}

.mega {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  width: min(96vw, 1100px);
  top: 100%;
  z-index: 1000;
}

.mega-container:hover .mega,
.mega:hover {
  display: block;
}

/* Ajouter un petit espace entre le bouton et le méga-menu pour faciliter la transition */
.mega-container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Styles pour le formulaire de contact */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  margin-right: 8px;
}

.progress-step.active {
  background-color: #E30613;
  color: white;
}

.progress-step.completed {
  background-color: #10b981;
  color: white;
}

.option-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: #E30613;
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: #E30613;
  background-color: rgba(227, 6, 19, 0.05);
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.checkbox-option:hover {
  border-color: #E30613;
}

.checkbox-option.selected {
  border-color: #E30613;
  background-color: rgba(227, 6, 19, 0.05);
}

/* Navigation ancres */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}
