.hero {
  display: flex;
  height: 650px;
  background-color: var(--third-color);
}

.hero__content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5rem;
}

.hero__title {
  display: block;
  font-size: 3.5rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hero__location {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.hero__lang-info {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 10px;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero__description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #444;
}

.hero__image {
  width: 50%;
  height: 100%;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;

  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.highlights {
  background-color: var(--secondary-color);
  padding: 1.4rem 0;
}

/* 2. La grille à 3 colonnes alignée au centre grâce au .container */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

/* 3. Chaque bloc individuel */
.highlight__item {
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

/* 4. Le séparateur vertical entre les blocs */
.highlight__item:not(:last-child):after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background-color: var(--primary-color-2);
}

.highlight__icon-img {
  width: 36px;
  height: auto;
  margin-bottom: 1rem;
}

/* Styles du contenu */
.highlight__icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.highlight__title {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.highlight__subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--primary-color-2);
  margin: 0;
}

/* --- SECTION TESTIMONIALS --- */
.testimonials {
  background-color: var(--third-color);
  padding: 3rem 0;
  overflow: hidden;
}

.testimonials__container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials__title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0;
}

.testimonials__separator {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 15px auto 25px auto;
}

/* Le conteneur carrousel */
.testimonials__slider {
  width: 100%;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    transparent
  );
}

.testimonials__slider::-webkit-scrollbar {
  display: none;
}

/* --- DESKTOP : Défilement automatique --- */
.testimonials__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0 1rem;
  animation: scrollTestimonials 70s linear infinite;
}

/* Pause l'animation au survol de la souris sur PC */
.testimonials__slider:hover .testimonials__track {
  animation-play-state: paused;
}

/* Style des cartes */
.testimonials__card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.testimonials__quote {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonials__author {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================== */
/* MEDIA QUERY : HERO MOBILE (Max 768px)      */
/* ========================================== */

@media (max-width: 768px) {
  .testimonials__track {
    animation: none !important; /* Désactive complètement le défilement automatique sur mobile */
  }

  /* 1. On empile : image en haut, texte en bas */
  .hero {
    flex-direction: column;
    height: auto;
    background-color: var(--third-color); /* Le fond beige de la section */
  }
  .hero__title {
    font-size: 2.5rem;
  }

  /* 2. L'image prend toute la largeur en haut */
  .hero__image {
    width: 100%;
    height: 380px; /* Hauteur fixe pour l'image sur mobile */
  }

  .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;

    /* Le dégradé va du bas vers le haut : l'image s'estompe en remontant */
    -webkit-mask-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  /* 3. Le texte se retrouve en dessous, sur le fond beige de la section */
  .hero__content {
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .hero__separator {
    margin: 15px auto 25px auto;
  }

  .hero__buttons {
    justify-content: center;
  }
  /* On passe la grille en une seule colonne */
  /* On passe la grille en une seule colonne */
  .highlights__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On désactive l'ancien trait vertical des côtés */
  .highlight__item:not(:last-child):after {
    display: none;
  }

  /* On ajoute une bordure en bas de chaque bloc (sauf le dernier) pour faire office de séparateur propre */
  .highlight__item:not(:last-child) {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--primary-color-2);
  }
}

/* ========================================== */
/* MEDIA QUERY : IPAD MINI & TABLETTES (768px - 1024px) */
/* ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .hero__image img {
    /* Augmente le deuxième pourcentage (ex: 35%) pour faire descendre l'image et voir la tête */
    object-position: 50% 0%;
  }
}
