.individual__hero-image {
  width: 50%;
  height: 100%;
}

.individual__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%
  );
}

/* 1. La section globale (hauteur réduite à 700px) */
.individual__hero {
  display: flex;
  height: 400px;
  background-color: var(--third-color);
}

/* 2. Le bloc texte à gauche (prend 50%) */
.individual__hero-content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

.individual__hero-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.individual__hero-description p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #444;
}

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

.individual-benefits-section {
  background-color: var(
    --secondary-color
  ); /* Utilise votre couleur beige (#f5f0e6) */
  padding: 60px 0;
}

.benefits {
  background-color: var(
    --secondary-color
  ); /* Utilise votre couleur beige (#f5f0e6) */
  padding: 40px 0;
}
.benefits__title {
  text-align: center;
  font-size: 2.2rem;
  color: #d4b8b3;
  margin-bottom: 25px;
}

/* Grille à 4 colonnes */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: stretch; /* <-- Force tous les blocs à prendre la même hauteur */
}

/* Style de chaque bloc individuel */
.benefits__item {
  text-align: left;
  padding: 0 20px;
  position: relative;
}

.benefits__subtitle {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4b8b3;
  margin-bottom: 20px;
}

.benefits__text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

/* --- SECTION 3 : IMAGE GAUCHE / TEXTE DROITE SUR FOND BEIGE --- */
.accompaniment {
  background-color: var(--third-color); /* Fond beige (#f5f0e6) */
  padding: 80px 0;
}

.accompaniment__container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes égales : Image / Texte */
  align-items: center;
  gap: 50px;
}

/* Style de l'image paysage à gauche */
.accompaniment__img-wrapper {
  width: 100%;
}

.accompaniment__img {
  width: 100%;
  height: 600px; /* Hauteur fixe pour un beau format paysage */
  object-fit: cover;
  object-position: center 80%;
  border-radius: 6px; /* Jolis coins arrondis modernes */
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Légère ombre élégante */
}

/* Style du texte à droite */
.accompaniment__content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.accompaniment__text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px; /* Espace entre les 3 paragraphes */
}

/* --- SECTION 4 : RECTANGLE BLEU AVEC 4 BLOCS ET SÉPARATEURS --- */
.details {
  background-color: var(--secondary-color); /* Rectangle bleu */
  padding: 3.5rem 0;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.details__item {
  display: flex;
  align-items: center; /* Aligne l'icône et le texte verticalement */
  justify-content: center;
  gap: 20px; /* Espace entre l'icône et le texte */
  padding: 0 1.5rem;
  position: relative;
}

/* Séparateur vertical entre les blocs (sauf le dernier) */
.details__item:not(:last-child):after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 2px;
  background-color: var(--primary-color-2);
  opacity: 0.6;
}

/* Taille de l'icône */
.details__icon {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}

/* Le texte sur deux lignes */
.details__text {
  display: flex;
  flex-direction: column; /* Force les deux mots l'un sous l'autre */
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
}

/* Style du premier mot */
.details__title {
  text-transform: uppercase;

  font-size: 0.9rem;
  font-weight: 600;
  color: #d4b8b3;
}

/* Style du deuxième mot */
.details__subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

/* Conteneur des boutons sous les infos de séance */
.details__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ========================================== */
/* RESPONSIVE HERO MOBILE                     */
/* ========================================== */
@media screen and (min-width: 769px) {
  html[lang="en"] .individual__hero {
    height: 480px;
  }
}

@media (max-width: 768px) {
  /* 1. La section passe en colonne : texte en haut, image en bas */
  .individual__hero {
    flex-direction: column;
    height: auto; /* Laisse la hauteur s'adapter au contenu */
  }

  /* 2. Le texte prend toute la largeur avec un padding adapté aux mobiles */
  .individual__hero-content {
    width: 100%;
    padding: 2.5rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .individual__hero-title {
    font-size: 2rem; /* On réduit un peu le titre pour mobile */
  }

  /* 3. L'image prend toute la largeur avec une hauteur fixe pour mobile */
  .individual__hero-image {
    width: 100%;
    height: 280px; /* Ajuste cette hauteur selon tes préférences (ex: 250px ou 300px) */
  }

  /* 4. Le gradient passe vers le haut (to top) pour fondre l'image avec le texte au-dessus */
  .individual__hero-image img {
    -webkit-mask-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .individual__hero-buttons {
    flex-direction: column;
    justify-content: center;
  }

  /* 3. Force les boutons à prendre toute la largeur sur mobile pour un bel effet empilé */
  .individual__hero-buttons .btn {
    width: auto; /* S'adapte à la longueur du texte */
    min-width: 200px; /* Optionnel : leur donne une taille minimale propre */
    max-width: 280px; /* Empêche qu'ils ne soient trop larges */
    text-align: center;
  }
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefits__title {
    font-size: 1.8rem;
  }

  .benefits__item {
    text-align: center; /* Centre le texte sur mobile pour un rendu plus aéré */
    padding: 0 10px;
  }
  .benefits__subtitle {
    font-size: 1.1rem;
  }
  .benefits__text {
    font-size: 0.95rem;
  }
  /* 1. La grille passe à 1 seule colonne et réduit l'espace */
  .accompaniment__container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 1.5rem;
  }

  /* 2. Centre tout le contenu textuel et le titre */
  .accompaniment__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .accompaniment__content h2 {
    font-size: 1.7rem;
  }

  /* 3. Ajuste la hauteur de l'image pour l'adapter aux petits écrans */
  .accompaniment__img {
    height: 350px;
  }
  /* 1. La grille passe à 1 seule colonne avec un bon espacement */
  .details__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* 2. Centre les éléments de chaque bloc */
  .details__item {
    justify-content: left;
    text-align: left;
  }

  /* 3. Supprime l'ancien séparateur vertical */
  .details__item:not(:last-child):after {
    display: none;
  }

  /* 4. Crée le nouveau séparateur horizontal entre les blocs */
  .details__item:not(:last-child) {
    position: relative;
    padding-bottom: 25px;
  }

  .details__item:not(:last-child)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40%;
    right: 40%;
    height: 1px;
    background-color: var(--primary-color-2);
    opacity: 0.6;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Remet les boutons côte à côte sur l'iPad Mini */
  .individual__hero-buttons {
    flex-direction: row;
    align-items: center;
  }

  /* Redonne une largeur naturelle aux boutons */
  .individual__hero-buttons .btn {
    width: auto;
  }
  /* 1. Cadrage précis de tes images sur tablette */
  .accompaniment__img,
  .individual__hero-image img {
    object-position: center 50%; /* Modifie les pourcentages pour centrer ce qui t'intéresse dans l'image */
  }

  /* 2. Empêche le texte de s'étaler trop en limitant la largeur et en ajoutant des marges */
  .accompaniment__container,
  .individual__hero-content,
  .cards-grid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 5rem;
    padding-right: 5rem;
  }
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .benefits__title {
    font-size: 1.8rem;
  }

  .benefits__item {
    text-align: center; /* Centre le texte sur mobile pour un rendu plus aéré */
    padding: 0 10px;
  }
  .benefits__text {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .details {
    background-color: var(--secondary-color); /* Rectangle bleu */
    padding: 3.5rem 3.5rem;
  }
  .details__item {
    padding-bottom: 2rem;
  }
}
