/* Import de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Réinitialisation de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* ----------------------------- */
/* Section "Vintage Motors Garage" */
/* ----------------------------- */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    gap: 2rem;
    flex-wrap: nowrap; /* Empêche le texte de passer sous l’image trop tôt */
}

/* Ajustement de l'image */
.about-image img {
    max-width: 75%; /* Ajuste l'image pour occuper 45% de l'espace */
    height: auto;
    border-radius: 15px;
    min-width: 360px; /* Empêche que l’image devienne trop petite */
}

/* Texte aligné à gauche */
.about-text {
    flex: 1;
    max-width: 70%;
    text-align: left;
    min-width: 380px; /* Assure une lisibilité minimale */
    text-align: justify;
}

.about-text h2 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    border-radius: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f3c306;
}

.about-text blockquote {
    font-style: italic;
    margin: 1rem 0;
    font-weight: bold;
}

.cta-button {
    background-color: #f3c306;
    color: #ffff;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.cta-button:hover {
    opacity: 0.9;
    background-color: #000;
}

/* Responsive Design pour garder le texte à droite le plus longtemps possible */
@media (max-width: 950px) {
    .about{
        margin-top: 1rem;
    }

    .about-content {
        flex-wrap: wrap; /* Permet au texte de passer sous l’image si nécessaire */
        text-align: center;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
    }
}

/* ------------------------------ */
/* Section Prestations */
/* ------------------------------ */
.prestations {
    display: flex;
    background-color: #ccc;
    color: #000;
    padding: 5.8rem;
    align-items: flex-start;
}

.prestations-left {
    flex: 1;
    margin-right: 2rem;
}

.prestations-left h2 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.prestations-left h2::after {
    content: "";
    position: absolute;
    border-radius: 15px;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f3c306;
}

.icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.prestations-left .subtitle {
    color: #444;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Grille des prestations */
.prestations-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.prestation h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.prestation p {
    margin: 0;
}

/* ------------------------------ */
/* Section Témoignages */
/* ------------------------------ */
/* IMPORTANT : fond plein écran gris */
.testimonials {
    background: #ccc;
    padding: 5.5rem;
}

/* Le titre centré dans le container comme tes autres sections */
.testimonials h2 {
    text-align: left;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille centrée */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial {
    background: #fff;
    padding: 1rem;
    border-radius: 15px;
}

.testimonial h3 {
    color: #ffaa00;
    margin-bottom: 0.5rem;
}

.author {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    text-align: right;
}

/* Style pour les images de profil des avis */
.profile-pic {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: block;
    object-fit: cover;
}

/* ------------------------------ */
/* Responsive Design */
/* ------------------------------ */
@media (max-width: 768px) {
    /* Ajustement de la section "Vintage Motors Garage" */
    .about {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }

    .about-text {
        text-align: center;
        text-align: justify;
    }

    /* Prestations en colonne sur mobile */
    .prestations {
        flex-direction: column;
        padding: 2.5rem;
    }

    .prestations-left {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .prestations-right {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 2.6rem;
        margin-bottom: 0.5rem;
        position: relative;
        text-align: left;
        display: inline-block;
    }

    .prestations-left h2 {
        font-size: 2.6rem;
        margin-bottom: 0.5rem;
        position: relative;
        display: inline-block;
    }

    .testimonials h2 {
        font-size: 2.6rem;
    }

    .testimonials {
        padding: 2.5rem;
    }
}

/* ------------------------------ */
/* Grand écran (1600px et plus) */
/* ------------------------------ */
@media (min-width: 1600px) {
    .about-content {
        max-width: 1200px;
    }

    .about-text{
        margin-left: 10%;
    }

    .about-image img {
        max-width: 650px;
    }
}

/* ------------------------------ */
/* tout petit écrans (-450px) */
/* ------------------------------ */
@media (max-width: 450px) {
    .about-image img {
        min-width: auto;
    }
    .about-text {
        min-width: auto;
    }

    .testimonials {
        min-width: auto;
    }
}

/* Boutons accueil alignés */
.home-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-button-dark {
  background-color: #2b2b2b;
  color: #fff;
}

.cta-button-dark:hover {
  background-color: #000;
}

/* ------------------------------ */
/* Section Dernier véhicule ajouté */
/* ------------------------------ */
.latest-vehicle {
  background: #fff;
  padding: 5.5rem 2.5rem;
}

.latest-vehicle-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.latest-vehicle-head h2 {
  text-align: left;
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
  display: inline-block;
  position: relative;
}

.latest-vehicle-head h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 30px;
  background-color: #f3c306;
  margin-top: 8px;
}

.latest-vehicle-head p {
  margin-top: 8px;
  color: #444;
  font-weight: 600;
}

.latest-vehicle-card {
  margin-top: 1.8rem;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
}

.latest-vehicle-link {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  text-decoration: none;
  color: inherit;
}

.latest-vehicle-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.latest-vehicle-info {
  padding: 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.latest-vehicle-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.latest-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.latest-vehicle-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #111;
}

.latest-vehicle-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-pill {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #333;
  font-size: 14px;
}

.latest-vehicle-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111;
}

.latest-vehicle-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.latest-vehicle-btn {
  background: #f3c306;
  color: #fff;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 999px;
}

.latest-vehicle-note {
  color: #444;
  font-weight: 700;
  font-size: 14px;
}

.latest-vehicle-card:hover .latest-vehicle-btn {
  background: #2b2b2b;
}

/* Compatibilité si tu gardes testimonials-alt dans ton HTML */
.testimonials-alt {
  background: #ccc;
  padding: 5.5rem;
}

.testimonials-alt .testimonials-grid {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-alt .testimonial {
  background: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .latest-vehicle-link {
    grid-template-columns: 1fr;
  }

  .latest-vehicle-photo img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .latest-vehicle {
    padding: 2.5rem;
  }

  .latest-vehicle-head h2 {
    font-size: 2.6rem;
  }

  .testimonials-alt {
    padding: 2.5rem;
  }
}
