/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    scroll-behavior: smooth;
  }   
  h2{
    font-size: 40px;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header / Hero */
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/assets/moto-bg.jpg") no-repeat center center/cover;
    z-index: -2; /* Place le fond derrière le contenu */
    opacity: 0.5;
    animation: fadeIn 2s ease-out forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; } /* Ajustez l’opacité finale selon vos préférences */
  }

  
  #hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }
  #hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
  }
  .hero-content {
    position: relative;
    z-index: 1;
  }
  .hero-content .logo {
    width: 120px;
    margin-bottom: 1rem;
  }
  #hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  .slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  .btn {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
  }
  .btn:hover {
    background-color: #cc0000;
  }
  
  /* Sections */
  section {
    padding: 4rem 0;
  }
  section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ff0000;
  }
  
  /* Cards Motos */
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .card {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(255,0,0,0.3);
  }
  .card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  .card ul {
    list-style: none;
  }
  .card li {
    margin-bottom: 0.5rem;
  }
  
  /* Services */
  .services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: stretch; /* Assure une hauteur égale */
  }
  .service {
    background-color: #f5f5f5;
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  .service:hover {
    transform: translateY(-5px);
  }
  
  /* Contact */
  .contact-container {
    display: flex;
    flex-direction: column;  /* Empile le formulaire ET la zone d'infos */
    align-items: center;     /* Centre horizontalement chaque bloc */
    gap: 2rem;               /* Espace vertical entre le formulaire et la zone d'infos */
    max-width: 900px;        /* Largeur max du bloc */
    margin: 0 auto;          /* Centre le bloc dans la page */
    padding: 1rem 0;
  }
  
  /* Formulaire */
  .contact-container form {
    width: 100%;             /* Occupe toute la largeur du conteneur */
    max-width: 400px;        /* Largeur max du formulaire */
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .contact-container form input,
  .contact-container form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .contact-container form button {
    align-self: flex-start;
    background-color: #ff0000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .contact-container form button:hover {
    background-color: #cc0000;
  }
/* Zone d'informations de contact */
.contact-info {
  width: 100%;
  max-width: 400px;        /* Même largeur max que le formulaire, si souhaité */
  display: flex;
  flex-direction: column;
  align-items: center;  /* Aligne le texte à gauche ou center si désiré */
  font-size: 1.1rem;
}

/* Alignement horizontal de l'icône et du texte */
.footer-contact p {
    display: flex;          /* Convertit le paragraphe en conteneur flex */
    align-items: center;     /* Aligne verticalement au centre */
    gap: 0.5rem;            /* Espace entre l’icône et le texte */
  }
  
  .contact-icon {
    width: 24px;            /* Ajustez la taille selon vos besoins */
    height: auto;
  }
  
  
  /* Footer retravaillé */
  footer {
    background-color: #1a1a1a; /* Fond sombre */
    color: #ccc;              /* Couleur de texte */
    padding: 2rem 0;
    text-align: center;       /* Tout centré */
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;   /* Chaque bloc s’empile verticalement */
    align-items: center;
    gap: 1rem;                /* Espace entre chaque bloc */
  }
  
  /* Logo */
  .footer-logo {
    width: 120px;
    margin-bottom: -20px;
    /* Ajuste la hauteur si besoin */
  }
  
  /* Liens de navigation en ligne */
  .footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  .footer-links li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
  }
  .footer-links li a:hover {
    color: #fff; /* Survol */
  }

  @media (max-width: 768px) {
    .footer-links {
      flex-direction: column;
      align-items: center;
    }
  }
  
  /* Icônes réseaux sociaux */
  .footer-social {
    display: flex;
    gap: 1.5rem;
  }
  .footer-social img {
    width: 24px;
    transition: filter 0.3s ease;
  }
  .footer-social img:hover {
    filter: invert(100%);
  }
  .footer-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  } /* Coordonnées */
  .footer-contact p {
    margin: 0.3rem 0;
    color: #ccc;
  }
  .footer-contact img {
    width: 20px;
    height: 0 auto;
  } 
   
   @media (max-width: 768px) {
    .footer-contact {
      flex-direction: column;
      align-items: center;
    }
  }

  /* Bas de page */
  .footer-copy {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
  }
  
  
  /* Modal Pop-up */
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    /* Transition appliquée via la classe .open sur .modal-content */
  }
  .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.9);
    opacity: 0;
  }
  .modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
  }
  .modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
  }
  
  /* Modal Slider */
  .modal-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .modal-slider img {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
  }
  .slider-btn {
    position: absolute;
    background: grey; /* Suppression du fond rouge */
    border-radius: 10px;
    color: #000;           /* Flèches en noir */
    border: none;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
  }
  .slider-btn.left {
    left: 10px;
  }
  .slider-btn.right {
    right: 10px;
  }
  .modal-description {
    margin-top: 1rem;
    font-size: 1rem;
  }
  
  /* Modal Zoom */
  .zoom-modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
  }
  .zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
  }
  
  /* Animation au défilement */
  .scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .scrolled {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .contact-container, .services-container {
      flex-direction: column;
      align-items: center;
    }
    /* Uniformiser la largeur des cartes de services */
    .services-container .service {
      width: 100%;
      max-width: 300px; /* Vous pouvez ajuster cette valeur selon vos besoins */
    }
  }
  

  .modal-slider img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background-color: #FFFF;
    cursor: pointer;
  }
  
  .language-selector {
    position: relative;
    display: inline-block;
  }
  
  .lang-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5em 1em;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background 0.3s;
  }
  
  .lang-btn:hover {
    background: #f9f9f9;
  }
  
  .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 100;
  }
  
  .lang-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .lang-menu li a:hover {
    background: #f5f5f5;
  }
  
  /* Affichage du menu quand il est actif */
  .lang-menu.active {
    display: block;
  }
  
    /* Section Avis */
#avis {
    padding: 4rem 1rem;
    text-align: center;
  }
  
  /* Conteneur du carrousel */
  .carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
  }
  
  /* Piste du carrousel */
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  /* Chaque avis (card) */
  .review {
    flex: 0 0 33.3333%; /* 3 cartes par ligne */
    box-sizing: border-box;
    padding: 1rem;
    margin: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: left;
  }
  .review h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  .review p {
    margin: 0;
  }
  
  /* Pagination (puces) */
  .carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  .carousel-indicators button.active {
    background: #ff0000;
  }
  
  /* Formulaire d'avis */
  .review-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
  }
  .review-form h3 {
    margin-bottom: 1rem;
  }
  .review-form label {
    display: block;
    margin: 0.5rem 0 0.25rem;
    font-weight: 600;
  }
  .review-form input,
  .review-form select,
  .review-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
  }
  .review-form button.btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  .review-form button.btn:hover {
    background-color: #cc0000;
  }
  
  /* Responsive (pour s'assurer que tout reste lisible sur mobile) */
  @media (max-width: 768px) {
    .review {
      flex: 0 0 100%; /* Une seule carte par ligne en mobile */
    }
  }
  .card.sold {
    position: relative;
  }
  
  .sold-label {
    position: absolute;
    top: 10%;
     /* Ajustez cette valeur selon vos besoins */
    transform: translateY(-50%) rotate(-30deg);
    background-color: red;
    color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    z-index: 10;
  }