.about__hero {
  display: flex;
  height: 1110px; /*  100vh */
  background-color: var(--third-color);
}

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

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

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

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

.about--title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem; /* On réduit pour contrôler précisément */
}

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

/* Style du bloc de certifications dans la hero */
.about__certifs {
  margin-top: 1rem;
}

/* Grille des deux blocs */
.certifs__grid {
  display: flex;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

/* Chaque sous-bloc (50% chacun) */
.certif__item {
  width: 50%;
  display: flex; /* Met l'icône et le texte côte à côte */
  align-items: flex-start; /* Aligne l'icône en haut par rapport au texte */
  gap: 1.5rem; /* Espace entre l'icône et le texte */
}

.certifs__grid .certif__item:nth-child(2) {
  border-left: none;
  padding-left: 2rem;
  position: relative; /* Nécessaire pour positionner le trait proprement */
}

/* 2. On dessine un trait plus court avec ::before */
.certifs__grid .certif__item:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0; /* Le colle au bord gauche du 2ème bloc */
  top: 50%; /* Le place au milieu verticalement */
  transform: translateY(-50%); /* Le centre parfaitement */
  width: 2px; /* Épaisseur du trait */
  height: 60%; /* 👈 LA HAUTEUR : Tu peux mettre 50%, 60%, 40px... selon tes envies ! */
  background-color: #d4b8b3; /* Ta couleur */
}
/* Style de l'icône */
.certif__icon {
  width: 45px; /* Ajuste la taille de l'icône selon tes envies */
  height: 45px;
  flex-shrink: 0;
}

/* Style du texte à côté de l'icône */
.certif__text h4 {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.certif__text p {
  font-size: 0.85rem;
  font-family: "montserrat", sans-serif;
  color: #555555;
  line-height: 1.4;
}

.about-buttons {
  display: flex;
  gap: 25px; /* L'espace de 50px va enfin fonctionner */
  flex-wrap: wrap;
  align-items: center;
}

.about__highlights {
  background-color: var(
    --secondary-color
  ); /* Ton rectangle bleu de référence */
  padding: 30px 0;
}

/* Grille à 5 colonnes sur grands écrans */
.about-icons-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* 5 colonnes égales pour tes 5 parties */
  gap: 20px;
  align-items: stretch; /* Force tous les blocs à prendre la même hauteur */
}

/* Style de chaque bloc individuel */
.about-icons-item {
  text-align: left;
  padding: 0 15px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Style de l'icône */
.about-icons-icon {
  width: 38px;
  height: auto;
  margin-bottom: 18px;
}

.about-icons-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  text-align: center;
}

/* Style des icônes SVG intégrées */
.about-icons-svg {
  width: 50px;
  height: 50px;
  margin-bottom: 30px;
  display: block;
  align-self: center;
  transition:
    stroke 0.3s ease,
    transform 0.3s ease;
}

/* ========================================== */
/* 1. RESPONSIVE MOBILE (< 768px)             */
/* ========================================== */

@media screen and (min-width: 769px) {
  html[lang="en"] .about__hero {
    height: 1100px;
  }
}

@media (max-width: 768px) {
  /* La section hero passe en colonne (image en haut, texte en bas) */
  .about__hero {
    flex-direction: column;
    height: auto;
  }

  .about--hero-image {
    width: 100%;
    height: 400px;
  }

  .about--hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    object-position: 50% 15%;
  }

  .about--content {
    width: 100%;
    height: auto;
    padding: 2.5rem 3rem;
    text-align: center;
    align-items: center;
  }

  /* Les certifications se empilent sur mobile */
  .certifs__grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .certif__item {
    width: 100%;
  }

  /* Supprime la bordure verticale sur mobile et la remplace par un espacement */
  .certifs__grid .certif__item:nth-child(2) {
    border-left: none;
    padding-left: 0;
    padding-top: 1.5rem;
    position: relative;
  }

  .certifs__grid .certif__item:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    width: 70%;
    height: 1px;
    background-color: #d4b8b3;
    transform: none;
  }

  .about-buttons {
    justify-content: center;
  }

  /* Grille des icônes de bas de page en 1 seule colonne */
  .about-icons-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-icons-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
    position: relative;
  }

  /* Séparateur horizontal entre les blocs d'icônes sur mobile */
  .about-icons-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background-color: var(--primary-color-2);
    opacity: 0.6;
  }
}

/* ========================================== */
/* 2. RESPONSIVE TABLETTE (iPad Mini)         */
/* ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  /* 1. La section hero passe en colonne sur tablette pour laisser respirer le texte */
  .about__hero {
    flex-direction: column;
    height: auto;
  }

  /* 2. L'image prend toute la largeur avec une belle hauteur */
  .about--hero-image {
    width: 100%;
    height: 380px;
  }

  .about--hero-image img {
    object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  /* 3. Le texte prend une largeur max confortable et se centre sur la page */
  .about--content {
    width: 100%;
    max-width: 700px; /* Limite la largeur pour que les lignes ne soient pas trop longues à lire */
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: left; /* Garde le texte aligné à gauche (plus lisible pour de longs paragraphes) */
  }

  /* Centre les boutons et les certifications si besoin */
  .about-buttons {
    justify-content: center;
  }

  /* Grille des icônes sur tablette (2 par 2) */
  .about-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .about__highlights .container,
  .newsletter__container {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .about-icons-item::after {
    display: none;
  }

  .about__highlights .container,
  .newsletter__container {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
