/* Réinitialisation et styles généraux */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #333;
}

/* Conteneur centralisé */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.apple-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  padding: 10px 0;
}

.apple-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-nav .logo img {
  height: 34px;
}

.apple-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.apple-nav .nav-links li a {
  color: #333;
  font-size: 14px;
  padding: 8px 12px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.apple-nav .nav-links li a:hover {
  color: #0071e3;
}

.apple-nav .nav-icons a {
  color: #333;
  font-size: 18px;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.apple-nav .nav-icons a:hover {
  color: #0071e3;
}

/* Bouton hamburger pour mobile */
.mobile-menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Barre d'information sous la nav */
.info-bar {
  background: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
  margin-top: 60px;
}
.info-bar a {
  color: #0071e3;
  text-decoration: none;
}

/* Section vidéo */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal initiale */
.hero-modal {
  position: absolute;
  left: 50%;
  bottom: 0; /* Le bas de la modal est collé au bas de la vidéo */
  transform: translateX(-50%);
  width: 60%; /* Valeur initiale sur PC (sera récupérée dynamiquement) */
  height: 40%;
  background: rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.1s linear;
  box-shadow: 0px 0px 14px 5px rgba(0, 0, 255, 0.2);
  /* Animation d'entrée */
  animation: modalEntrance 0.8s ease-out forwards;
}

@keyframes modalEntrance {
  0% {
    opacity: 0;
    transform: translate(-50%, 100%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.modal-image {
  width: 40%; /* Valeur initiale */
  max-width: 900px;
  height: auto;
  margin-bottom: 20px;
  transition: width 0.1s linear;
}

.hero-modal h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-modal p {
  font-size: 16px;
  margin-bottom: 20px;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  margin: 5px;
  border-radius: 4px;
}

.btn-blue {
  background: #0071e3;
  color: #fff;
}

button.repair-btn, .btn-outline, .btn-blue:hover {
  border: 2px solid #0071e3;
  color: #0071e3;
  background: transparent;
}

button.repair-btn:hover, .btn-outline:hover {
  color: white;
  background: #0071e3;
}

/* Contenu principal */
.content {
  padding: 40px 20px;
}

/* Pied de page */
.apple-footer {
  background: #f8f8f8;
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  margin-top: 40px;
}
.apple-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}
.apple-footer .footer-links li a {
  color: #666;
  transition: color 0.3s ease;
}
.apple-footer .footer-links li a:hover {
  color: #0071e3;
}

/* Responsive : Navigation et ajustement de la modal sur mobile */
@media (max-width: 768px) {
  .apple-nav .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
  }
  .apple-nav .nav-links.active {
    display: flex;
  }
  .apple-nav .nav-links li {
    margin: 10px 0;
  }
  .apple-nav .nav-icons {
    display: none;
  }
  .mobile-menu-icon {
    display: block;
  }
  .hero-modal {
    min-width: 90%;
  }
  .modal-image {
    width: 70%; /* En mobile, l'image atteindra 70% de la modal à l'état final */
  }
}

/* --- Titre de la présentation des étapes --- */
.steps-header {
  text-align: center;
  margin: 60px auto 20px;
  max-width: 1200px;
  padding: 0 20px;
}

.steps-header h2 {
  font-size: 32px;
  font-weight: 500;
  color: #333;
}

/* --- Section Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.grid-item {
  background: #fff;
  padding: 30px 20px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 14px 5px rgba(102, 102, 177, 0.2);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* On regroupe le SVG et le titre dans une même ligne */
.grid-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.grid-title svg {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.grid-title strong {
  font-size: 18px;
}

/* Le texte descriptif est placé en dessous */
.grid-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  margin: 0;
}

/* Responsive Steps Grid */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.repair-form-container {
  background: #fff;
  padding: 30px;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0px 0px 14px 5px rgba(102, 102, 177, 0.2);
  display: flex;
  gap: 20px;
}

.left-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-column img {
  max-width: 100%;
  border-radius: 10px;
}

.right-column {
  flex: 1;
}

.right-column form div {
  margin-bottom: 20px;
}

.right-column form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.right-column form select,
.right-column form input,
.right-column form button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

button.repair-btn {
  border-radius: 7px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .repair-form-container {
    flex-direction: column-reverse; /* Le formulaire (colonne droite) s'affiche avant l'image */
  }
}

.payment-methods {
  text-align: center;
  margin-top: 20px;
}

.payment-methods p {
  font-size: 16px;
  margin-bottom: 10px;
}

.payment-methods .icons img {
  width: 40px;
  margin: 0 10px;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .repair-form-container {
    flex-direction: column-reverse;
  }
}
/* Styles pour la modal de paiement */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 500px;
}
@media (max-width: 768px) {
  .repair-form-container {
    flex-direction: column-reverse;
  }
}
/* Styles pour la modal de paiement */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
/* Contenu de la modale */
.modal-content {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Titre de la modale */
.modal-content h3 {
  margin-top: 0;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

/* Chaque ligne du formulaire */
.form-row {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

/* Style pour les champs input classiques */
.form-row input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Style pour les conteneurs des éléments Stripe */
#card-number,
#card-expiry,
#card-cvc {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Boutons de paiement et d'annulation */
#payButton,
#closeModal {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

#payButton {
  background-color: #007aff;
  color: #fff;
}

#payButton:hover {
  background-color: #005bb5;
}

#closeModal {
  background-color: #e0e0e0;
  color: #333;
}

#closeModal:hover {
  background-color: #ccc;
}

/* Message d'erreur */
#card-errors {
  font-size: 14px;
  margin-top: 10px;
  color: #fa755a;
}

  /* Timeline container */
  .timeline-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto;
    height: 60px;
  }
  /* Ligne horizontale (trait) */
  .timeline-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
  }
  /* Timeline steps */
  .timeline {
    position: relative;
    height: 60px;
    z-index: 2;
  }
  .timeline .step {
    position: absolute;
    top: 0;
    width: 120px;
    text-align: center;
    font-size: 14px;
    color: #333;
  }
  .step-title {
    font-weight: bold;
  }
  .step-time {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
  }
  /* Barre de progression */
  .progress-container {
    position: relative;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 500px;
  }
  .progress {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 1s;
  }
  /* Notification */
  .notification {
    background: #e7f4e4;
    border: 1px solid #76c7c0;
    padding: 10px;
    margin: 10px auto;
    max-width: 500px;
    text-align: center;
    border-radius: 5px;
    color: #3c763d;
  }
  /* Modal de détails */
  .modal-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
  }
  .modal-container h2 {
    margin-top: 0;
  }
  .phone-image-container {
  text-align: center;
  margin: 20px 0;
}

.phone-image {
  max-width: 100%;   /* Permet à l'image de s'adapter à la largeur du conteneur */
  width: 300px;      /* Vous pouvez ajuster cette valeur selon vos besoins */
  height: auto;      /* Conserve les proportions de l'image */
  border-radius: 8px; /* Optionnel, pour un léger arrondi des coins */
}
/* Ajustements pour les écrans moyens */
@media (max-width: 768px) {
  /* Modal de détails */
  .modal-container {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
  }
  /* Timeline : adapter la largeur et le texte */
  .timeline-container {
    max-width: 100%;
  }
  .timeline .step {
    width: auto; /* Pour laisser les éléments se répartir selon l’espace disponible */
    font-size: 12px;
    padding: 0 5px;
  }
  .progress-container {
    max-width: 100%;
  }
}

/* Ajustements pour les petits écrans */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  .apple-nav .nav-links li a {
    font-size: 12px;
    padding: 6px 8px;
  }
  .info-bar {
    font-size: 12px;
  }
  .phone-image {
    width: 100%;
    max-width: 200px;
  }
  .timeline .step .step-title {
    transform: rotate(45deg);
    transform-origin: left center; /* Ajustez l'origine si nécessaire */
    white-space: nowrap; /* Pour éviter que le texte se casse */
    text-align: center;
  }
  .modal-container {
    margin-top: 100px;
  }
  .step{
    text-align: left;
  }
}
.reviews-slider {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
}


.reviews-wrapper::-webkit-scrollbar {
  display: none;            /* Chrome */
}




.reviews-wrapper {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem;
  overflow: hidden; 
}

.review-item {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
}

.review-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 1.2rem;
}

.review-prev {
  left: 0.5rem;
}

.review-next {
  right: 0.5rem;
}
.review-rating {
  margin-top: 1rem;
  color: #f5a623; /* Couleur des étoiles */
}
.review-date{
  font-size: 0.85rem;
  margin-top: 0.7rem;
  color: #777;
}
.reviews-slider {
  max-width: 1500px;
  margin: 0;
}
.maps-link {
  display: inline-block;
  margin-top: 1rem;
  color: #777;
  text-decoration: none;
  font-weight: bold;
}
.maps-link .fa{
  color:#f5a623;
}
.legal-container {
  padding: 0 40px;
  margin: 20px;
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
}
.legal-container h3 {
  color: #757575;
  margin-top: 20px;
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.legal-container h1 {
  color: #27303e;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .5rem;
  margin-top: 0;
}
.legal-container p {
  margin-bottom: 10px;
}

.legal-container hr {
  display: block;
  color: #0071e3;
  margin: 1rem 0;
  opacity: .50;
  
}