/* ---------------- HEADER / NAVBAR ---------------- */
header {
  background-color: var(--blanc);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.brand img {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-family: var(--futura-font-family);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--vert);
}

/* ---------------- HERO ---------------- */
.hero {
  background: var(--bleu);
  background-size: 100px 100px;
  background-blend-mode: overlay;
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 500px;
  padding: 40px 50px;
  position: relative;
  overflow: hidden;
}

/* Overlay SVG en bas */
.hero::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: 1000px; /* hauteur de la vague */
  background: url("../asset/images/Mask\ group.svg") no-repeat bottom center;
  background-size: cover;
  z-index: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 100px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-item.active {
  opacity: 1;
  z-index: 1;
}

/* Image desktop */
.hero img {
  max-width: 380px; /* réduit un peu */
  height: auto;
  border-radius: 12px;
  margin-right: 50px;
  margin-top: 100px;
}

.hero-text {
  text-align: left;
  font-family: var(--avenir-font-family);
  font-size: 40px;
  font-weight: 700;
  line-height: 0.8;
}

.hero-text h1 {
  font-family: var(--avenir-font-family);
  font-size: 120px;
  font-weight: 700;
  line-height: 0.8;
  margin: 0;
  letter-spacing: -3.5px;
}

.hero-text h2 {
  font-family: var(--avenir-font-family);
  font-size: 70px;
  font-weight: 700;
  line-height: 0.9;
  margin: 0;
  white-space: pre-line;
  letter-spacing: -2.5px;
}

/* ---------------- BARRE JAUNE ---------------- */
.barre-jaune {
  background: var(--jaune);
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-family: var(--avenir-font-family);
  color: #5c6c7c;
}

.ellipse,
.ellipse-2 {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-radius: 50%;
  margin: 0 8px;
}

/* ---------------- INDICATEURS ---------------- */
.indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.indicators span {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.indicators span.active {
  opacity: 1;
  transform: scale(1.2);
}

/* ---------------- MENU TOGGLE ---------------- */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  /* NAVIGATION */
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--blanc);
    width: 220px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    padding: 15px;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav ul li a {
    font-size: 16px;
    color: #000;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 500px; /* réduit la hauteur du hero */
    padding: 0;
  }

  .hero-item {
    flex-direction: column;
    padding: 0;
  }

  .hero img {
    width: 100%;
    height: 250px; /* image plus basse */

    object-fit: cover;
    object-position: top center; /* garde la tête visible */
    border-radius: 0;
    height: auto;
    margin-top: 300px;
  }

  .hero-text {
    display: block; /* on le rend visible */
    position: absolute; /* on place le texte par-dessus */
    top: 40px; /* distance du haut */
    left: 50%;
    transform: translateX(-50%); /* centrage horizontal */
    text-align: left;
    font-size: 8px; /* texte réduit */
    line-height: 1.2;
    color: #fff; /* texte blanc pour contraste */
    z-index: 5; /* au-dessus de l'image */
    padding: 0 10px; /* petit padding pour éviter que ça colle */
  }

  .hero-text h1 {
    font-size: 52px; /* réduit le H1 */
    margin-bottom: 8px;
  }

  .hero-text h2 {
    font-size: 40px; /* réduit le H2 */
    font-weight: 800;
    margin: auto 0;
    letter-spacing: -1.5px;
  }
  .news-text p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
  }

  .indicators {
    bottom: 10px;
    display: none;
  }

  .barre-jaune {
    flex-direction: column; /* texte en haut, cercles en dessous */
    font-size: 14px; /* texte un peu plus petit */
    padding: 8px; /* réduit l’espace interne */
    gap: 6px;
  }

  .ellipse,
  .ellipse-2 {
    width: 10px;
    height: 10px; /* cercles plus petits */
  }
}
