/* ============================
   ZYGDESIGN - HERO SECTION
============================ */

:root {
  --color-bg: #ffffff;
  --color-text: #2d435b;
  --color-accent: #ffcc00;
  --color-secondary: #f3396e;
  --color-green: #03738b;
  --container-width: 1200px;
}

/* === Structure principale === */
.hero-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

/* === Header / bande du haut === */
.hero-header {
  background: url("../assets/ciel-desktop.png") no-repeat right top;
  background-color: white;
  background-size: cover;
  padding: 2rem 1rem;
  z-index: 10;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  flex-wrap: wrap;
}

/* Casquettes */
.casquettes {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  flex-wrap: nowrap;
  font-family: 'Arvo', serif;
  font-weight: bold;
  align-self: flex-start;
}

.casquette {
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  white-space: nowrap;
}

.casquette.concepteur { background: var(--color-secondary); color: white; }
.casquette.realisateur { background: var(--color-text); color: white; }
.casquette.artiste { background: var(--color-accent); color: black; }

/* Logo */
.hero-logo {
  max-width: 260px;
  height: auto;
}

/* Accroche */
.accroche {
  font-family: 'Borel', cursive;
  font-size: 2.2rem;
  color: var(--color-text);
  line-height: 1.3;
  text-align: left;
  max-width: 500px;
  margin-left: 2rem;
}

.accroche .accent {
  color: var(--color-secondary);
  font-weight: bold;
}

/* === Vidéo === */
.hero-video-bg {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-video-bg iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* === Boutons === */
.hero-buttons-bar {
  width: 100%;
  background-color: var(--color-green);
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: static;
  z-index: 2;
}

.btn {
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: bold;
  font-family: 'Arvo', serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.btn-pink {
  background-color: var(--color-secondary);
  color: white;
}
.btn-pink:hover {
  background-color: #c12a58;
}
.btn-blue {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}
.btn-blue:hover {
  background-color: white;
  color: var(--color-green);
}

/* Mode lecture vidéo */
.hero-section.expanded .hero-header,
.hero-section.expanded .hero-buttons-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-section.expanded .hero-video-bg {
  z-index: 2;
}

/* === Responsive Mobile === */
@media screen and (max-width: 768px) {
  .hero-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-position: right top;
    text-align: center;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }

  .casquettes {
    justify-content: center;
    font-size: 0.9rem;
  }

  .accroche {
    margin: 1.5rem 0 0;
    font-size: 1.6rem;
    text-align: center;
    max-width: 90%;
  }

  .hero-buttons-bar {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .hero-buttons-bar .btn {
    flex: 1;
    max-width: 140px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero-logo {
    max-width: 220px;
	margin-bottom: 1.5em;
}
/* ==== CORRECTION RESPONSIVE HERO ==== */

@media (max-width: 768px) {
  .hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: url('../assets/hero_MOBIL.png'); /* adapte ce chemin si besoin */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    padding: 2rem 1rem;
  }

  .hero-top-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .casquettes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    flex-shrink: 1;
    max-width: 100%;
    overflow: hidden;
  }

  .casquette {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
  }

  .hero-logo {
    width: 90%;
    max-width: 280px;
    height: auto;
  }

  .accroche {
    margin-top: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
    font-family: 'Borel', cursive;
  }
}
