/* ============================
   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;
  height: 100vh;
  overflow: hidden;
}

/* === Header / bande du haut === */
.hero-header {
  height: 24vh;
  position: relative;
  background: url('../assets/ciel-desktop.png') no-repeat center top;
  background-size: cover;
  width: 100vw; /* FORCE le fond en plein écran */
  background-color: white;
  background-size: cover;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* ✅ Ombre portée douce */
    z-index: 10;
}

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


/* Barre de navigation sous le header */
.hero-header { position: relative; }

/* La barre prend toute la largeur, sous la zone logo/titre */
.main-nav {
  width: 100%;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  margin-top: .5rem; /* espace sous le header */
}

.main-nav ul {
  max-width: var(--container-width, 1100px);
  margin: 0 auto;
  padding: .5rem 1rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;             /* passe sur 2 lignes en mobile si besoin */
  justify-content: center;     /* centré */
  align-items: center;
}

.main-nav li { margin: 0; padding: 0; }

.main-nav a {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 10px;
  color: #0a0a0a;
  text-decoration: none;
  transition: background .2s ease;
}

.main-nav a:hover { background: rgba(3,115,139,.08); }
.main-nav a.is-active { background: rgba(3,115,139,.14); }

/* Option sticky (si tu veux que la barre reste collée en haut au scroll) */
.sticky-nav .main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
}


/* 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 {
  height: 64vh;
  width: 100%;
    z-index: 1;
  overflow: hidden;
  position: relative;
}


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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  visibility: visible !important;
}

.video-overlay-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

/* === Boutons === */
.hero-buttons-bar {
  height: 12vh;
  background-color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}


.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;
}



}
.fancybox__backdrop {
  background: rgba(0, 0, 0, 0.6) !important; /* au lieu de 1.0 opaque */
}


/* === Responsive Mobile Optimisé === */
@media screen and (max-width: 768px) {
  .hero-header {
    height: auto;
    padding: 1rem 1rem 0;
    background-image: url('../assets/hero_MOBIL.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right top;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .hero-logo {
    width: 90%;
    max-width: 200px;
    margin-bottom: 1rem;
    height: auto;
  }

  .casquettes {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-family: 'Arvo', serif;
    font-weight: bold;
  }

  .casquette {
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }

  .accroche {
    font-family: 'Borel', cursive;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    max-width: 90%;
    text-align: center;
    color: var(--color-text);
  }

  .hero-video-bg {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
  }

  .hero-buttons-bar {
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
    background-color: var(--color-green);
  }

  .hero-buttons-bar .btn {
    width: 100%;
    max-width: 240px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}



/* === Responsive Mobile Affinée selon maquette === */
@media screen and (max-width: 768px) {
  .hero-header {
    height: auto;
    padding: 1rem 1rem 0.5rem;
    background-image: url('../assets/hero_MOBIL.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .hero-logo {
    width: 80%;
    max-width: 180px;
    margin-bottom: 0.5rem;
    height: auto;
  }

  .casquettes {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-family: 'Arvo', serif;
    font-weight: bold;
  }

  .casquette {
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }

  .accroche {
    font-family: 'Borel', cursive;
    font-size: 1.2rem;
    margin-top: 0.3rem;
    line-height: 1.3;
    max-width: 90%;
    text-align: center;
    color: var(--color-text);
  }

  .hero-video-bg {
    width: 100%;
    height: 44vh;
    overflow: hidden;
    position: relative;
  }

  .hero-buttons-bar {
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 1.5rem;
    gap: 0.5rem;
    background-color: var(--color-green);
  }

  .hero-buttons-bar .btn {
    flex: 1;
    width: auto;
    max-width: 140px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
  }
}
