.hero-section {
  height: 100%;
  scrollbar-width: none;
  background:
    linear-gradient(to right, #000000af, #0000003f), url("../img/fond_1.webp");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Ton dégradé corrigé */
  background: linear-gradient(
    to right,
    rgba(10, 22, 40, 0.95) 0%,
    /* Bleu très foncé opaque (gauche) */ rgba(10, 22, 40, 0.7) 50%,
    /* Transition */ rgba(10, 22, 40, 0.2) 100%
      /* Transparent (droite, laisse voir le studio) */
  );
  z-index: 1;
}

.hero-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  padding-left: 5%;
}

.hero-details .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 1rem;
  width: 100%;
}

.hero-section .hero-details .title {
  /* font-size: 2.5vw; */
  font-family: sans-serif;
  letter-spacing: 0.3rem;
  font-weight: bolder;
  transform: translate(50%, 0);
  animation: titleanim 1s ease-in-out forwards;
  color: var(--primary-color);
  opacity: 1;
  z-index: 2;
}

@keyframes titleanim {
  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.hero-section .hero-details .subtitle {
  margin-top: 1vh;
  color: var(--secondary-color);
  letter-spacing: 1px;
  font-family: "Times New Roman", Times, serif;
  transform: translate(50%, 0);
  opacity: 0;
  animation: titleanim 1s ease-in forwards 0.25s;
  z-index: 2;
}

.hero-section .hero-details .description {
  color: var(--primary-color);
  animation: titleanim 1s ease-in forwards 0.25s;
  z-index: 1;
  line-height: 1.25rem;
  font-size: 9pt;
  /* letter-spacing: 0.2rem; */
}

.hero-section .hero-details .buttons {
  /* Le conteneur anle bouton */
  display: flex;
  gap: 2rem;
  margin-bottom: auto;
  opacity: 0;
  animation: titleanim 1.2s ease-in forwards 0.3s;
  z-index: 2;
  margin-top: 20px;
}

.hero-section .hero-details .button {
  /* Le bouton tsirairay mihitsy */
  padding: 1.5vh 3vw;
  border: 1px solid transparent;
  border-radius: 25px;
  transition: 0.3s ease;
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
}

.hero-section .hero-details .button:hover {
  border-color: var(--secondary-color);
  background-color: transparent;
  color: var(--secondary-color);
}
.hero-section .hero-details .button:last-child {
  border-color: var(--secondary-color);
  background-color: transparent;
  color: var(--secondary-color);
}
.hero-section .hero-details .button:last-child:hover {
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
}

.hero-section .hero-image-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: end;
  width: 50%;
  height: 100%;
  margin-right: 0.5vw;
}

/* .hero-section .hero-image {
  margin-bottom: 20px;
  margin-right: 20px;
} */

@media screen and (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding-top: 0;
  }
  .hero-section::before {
    /* background de l'accueil */
    background: linear-gradient(
      to right,
      rgba(10, 22, 40, 0.95) 0%,
      /* Bleu trÃ¨s foncÃ© opaque (gauche) */ rgba(10, 22, 40, 0.7) 100% 100%,
      /* Transition */ rgba(10, 22, 40, 0.2) 0%
    );
  }
  .hero-section .hero-details {
    /* conteneur titre, sous-titre, btton */
    margin: auto 0;
    align-items: center;
    text-align: center;
    width: 90%;
  }

  .hero-details .hero-text {
    align-items: center;
  }

  .hero-details .subtitle {
    width: 85%;
  }

  .hero-details .buttons {
    flex-direction: column;
  }

  .hero-image-wrapper {
    display: none !important; /*Pour cacher les icônes de réseau sociaux qui a un problème avec le bouton offres dans la version mobile*/
    justify-content: flex-start;
    align-items: center;
    height: 2vh !important;
    z-index: 1;
  }
  .social-link {
    flex-direction: row;
  }

  .social-link a {
    font-size: 5vw;
  }

  .bg1 {
    width: 100% !important;
  }

  #couverture {
    margin-top: 0 !important;
    font-size: smaller;
  }

  #couverture ul {
    list-style-type: none !important;
  }
}

#couverture {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  margin: 0 5% 10% 0;
  padding: 5%;
  background-color: var(--tertiary-color);
  /* backdrop-filter: opacity(0); */
  border-radius: 25px;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.519);
  z-index: 1;
}

/* #couverture svg {
  width: 10.5%;
} */

#couverture ul {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 1% 2%;
  list-style-type: none;
}

#couverture ul li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2% 0;
  width: 275px;
  height: 30px;
  border-radius: 25px;
  background-color: var(--primary-color);
  color: var(--tertiary-color);
}

#couverture ul li span.freq {
  /* position: absolute;
  right: 0;
  top: 0;
  bottom: 0; */
  display: grid;
  place-items: center;
  border-radius: 0 25px 25px 0;
  padding: 2%;
  background-color: var(--secondary-color);
  height: 100%;
}

#couverture ul li span:first-child {
  /* position: absolute;
  top: 0;
  bottom: 0;
  left: -20%; */
  display: grid;
  place-items: center;
  padding: 3%;
  /* width: 50px; */
  height: 100%;
  border-radius: 25px 0 0 25px;
  font-size: 15px;
  background-color: var(--tertiary-color);
  color: var(--secondary-color);
}

#couverture ul li span:nth-child(2) {
  margin-right: auto;
}

.description b {
  color: var(--secondary-color);
}

section.footer {
  /* display: none; */
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #fefefe4a;
  color: var(--tertiary-color);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  z-index: 1;
}

section.footer header {
  background-color: var(--secondary-color);
}
section.footer .footer-text {
  margin: 0;
  font-size: 0.9rem;
  z-index: 1;
}
