:root {
  --red: #dc2626;
  --red-hover: #b91c1c;
  --gray-bg: rgba(55, 65, 81, 0.6);
  --gray-hover: rgba(55, 65, 81, 0.8);
  --white: #fff;
  --meta-bg: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out, opacity 0.8s ease;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  opacity: 1;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
  padding-top: 50px; /* Pour ne pas passer sous la navbar */
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta span {
  background-color: var(--meta-bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-overview {
  font-size: 1.rem;
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 30px;
  color: #ddd;
}

.hero-button {
  background: var(--white);
  color: #000;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-button:hover {
  background: #ddd;
}

#dynamic-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}



/*////////////////////////////
//////////RESPONSIVE//////////
////////////////////////////*/


@media (max-width: 700px) {
  .hero {
    padding: 0 5%;
    padding-top: 70px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-meta {
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
  }

  .hero-meta span {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .hero-button {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
  }

}

@media (max-width: 500px) {
  .hero {
    padding: 0 5%;
    padding-top: 50px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-meta {
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
  }

  .hero-meta span {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .hero-button {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
  }

  .hero-overview {
    display: none;
  }
}
