/* ============================
   ZYGDESIGN - HERO SECTION
============================ */
/* === Structure générale === */
.hero-section {
  display: flex;
  flex-direction: column;
  min-height: auto;
  overflow: hidden;
}

/* ============================
   HEADER
============================ */

.hero-header {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(18, 63, 87, 0.12);
  padding: 1.8rem 2rem 0;
  overflow: hidden;
}

.hero-header::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: url("../assets/groupe-header.png");
  background-repeat: no-repeat;
  background-position: center 8%;
  background-size: 100% auto;

  opacity: 0.7;

  pointer-events: none;
  z-index: 0;
}

.hero-header > * {
  position: relative;
  z-index: 1;
}

.hero-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.65rem 1rem 0;
  box-sizing: border-box;
}

/* Ligne haute : logo / contenu / décor */
.hero-branding {
  display: grid;
  grid-template-columns: 420px 620px;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-logo {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 0.1rem;
}


/* Accroche */
.accroche {
  margin: 0;

  max-width: 620px;

  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;

  color: var(--color-blue);
  text-align: left;
}

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

.accroche .line1,
.accroche .line2 {
  display: block;
}

.accroche .line2 {
  white-space: nowrap;
}

@media screen and (max-width: 520px) {
  .accroche .line2 {
    white-space: normal;
  }
}

.hero-seo-text {
  margin: 0.22rem 0 0 0;
  max-width: 500px;
  font-size: 0.9rem;
  line-height: 1.22;
  color: var(--color-muted);
  text-align: left;
}

/* Décor droit */
.hero-decor {
  position: relative;
  min-height: 135px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Navigation */
.hero-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.4rem;

  margin-top: 1.3rem;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  padding: 0.65rem max(1rem, calc((100vw - var(--container-width)) / 2 + 1rem)) 0.65rem 1rem;

  background: rgba(255,255,255,0.94);
  border-top: 1px solid rgba(18, 63, 87, 0.08);
  border-bottom: 1px solid rgba(18, 63, 87, 0.12);

  box-sizing: border-box;
}

.hero-nav > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;

  color: var(--color-blue);
  text-decoration: none;

  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;

  padding: 0.25rem 0;
  border: 0;
  background: transparent;

  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-nav > a:hover,
.nav-dropdown-toggle:hover,
.hero-nav > a:focus,
.nav-dropdown-toggle:focus {
  color: var(--color-coral);
}
/* ============================
   VIDEO HERO
============================ */

.hero-video-bg {
  height: 62vh;
  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;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.hero-play-label {
	display:none;
  position: absolute;
  left: 50%;
  top: calc(50% + 62px);
  transform: translateX(-50%);

    font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-align : center;
  line-height : 1.2rem;
  color: #ffffff;

  opacity: 0.9;
  pointer-events: none;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.hero-play-btn:hover + .hero-play-label {
  opacity: 1;
}

/* ============================
   BOUTONS
============================ */

.hero-buttons-bar {
  min-height: auto;
  padding: 1.2rem 1rem;
  background-color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-sizing: border-box;
}

.btn {
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-pink {
  background-color: var(--color-secondary);
  color: white;
}

.btn-pink:hover {
  background-color: var(--color-green);
  color: #ffffff;
}

.btn-blue {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.btn-blue:hover {
  background-color: white;
  color: var(--color-green);
}

/* ============================
   MODE LECTURE VIDEO
============================ */

.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 TABLETTE
============================ */

@media screen and (max-width: 1024px) {
  .hero-header-inner {
    padding: 1rem 1rem 0;
  }

  .hero-branding {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
  }

  .hero-decor {
    display: none;
  }

  .hero-logo {
    max-width: 170px;
  }


  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.8rem;
  }

  .hero-nav > a,
  .nav-dropdown-toggle {
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
  }

  .hero-video-bg {
    height: 56vh;
  }
}

/* ============================
   RESPONSIVE INTERMÉDIAIRE
============================ */

@media screen and (max-width: 880px) and (min-width: 769px) {
    .hero-header {
    background: #ffffff;
    padding-top: 1.4rem;
  }

    .hero-header::before {
    background: url('../assets/img/cloud-left.png') no-repeat left 12%;
    background-size: 230px auto;
    opacity: 0.55;
  }

  .hero-header::after {
    background: url('../assets/img/cloud-right.png') no-repeat calc(100% - 10px) 50%;
    background-size: 430px auto;
    opacity: 0.55;
  }

  .hero-branding {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
  }

  .hero-logo {
    max-width: 155px;
  }

  .casquettes {
    margin-bottom: 0.75rem;
    font-size: 0.68rem;
  }

  .accroche {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
  }

  .hero-seo-text {
    font-size: 0.78rem;
    max-width: 430px;
  }

  .hero-nav > a,
  .nav-dropdown-toggle {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* ============================
   RESPONSIVE MOBILE
============================ */
.mobile-menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }

    .hero-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    min-height: auto;
    padding: 2.2rem 1rem 2rem;
    display: flex;
    align-items: center;
  }
  
    .hero-header::before {
    background: url('../assets/img/cloud-left.png') no-repeat left 12%;
    background-size: 350px auto;
    opacity: 0.5;
  }

  .hero-header::after {
    background: url('../assets/img/cloud-right.png') no-repeat calc(100% - 10px) 50%;
    background-size: 400px auto;
	margin-top: 240px;
    opacity: 0.5;
  }

  .hero-header-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 44px;
  height: 44px;

  margin: 1rem auto 0;

  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  margin: 0 auto;

  background: var(--color-blue);
  border-radius: 3px;

  transition: 0.3s ease;
}

.hero-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;

  margin-top: 1rem;
  padding: 1rem 0;
}

.hero-nav.is-open {
  display: flex;
}

.hero-nav > a {
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
  
  .hero-branding,
  .hero-logo-wrap,
  .hero-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.hero-nav > a {
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

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

  .hero-logo-wrap {
    justify-content: center;
    width: 100%;
  }

.hero-logo {
    width: 100%;
    max-width: 260px;
}

  .hero-content {
    align-items: center;
    width: 100%;
    padding-top: 0;
  }

.accroche {
  width: 100%;
  max-width: 94%;
  margin: 0.35rem auto 0;
  padding: 0;
  text-align: center;
  font-size: clamp(1.15rem, 5.2vw, 1.7rem);
  line-height: 1.08;
  box-sizing: border-box;
}

.accroche .line1,
.accroche .line2 {
  white-space: nowrap;
}

.hero-seo-text {
    display: none;
  }

.hero-decor {
  display: none;
}

.hero-video-bg {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  max-height: none !important;
  position: relative;
  overflow: hidden;
  }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  }

  .hero-play-btn {
    width: 62px;
    height: 62px;
  }

  .play-icon {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .hero-play-label {
    top: calc(50% + 50px);
    font-size: 0.82rem;
  }

  .hero-buttons-bar {
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
  }

  .hero-buttons-bar .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    box-sizing: border-box;
  }

@media screen and (max-width: 420px) {
    .hero-header::before {
    background: url('../assets/img/cloud-left.png') no-repeat left 12%;
    background-size: 230px auto;
    opacity: 0;
  }

  .hero-header::after {
    background: url('../assets/img/cloud-right.png') no-repeat calc(100% - 10px) 20%;
    background-size: 430px auto;
    opacity: 0;
  }
}

  @media (max-width: 360px) {
  .casquettes {
    max-width: 200px;
  }
}
}

/* ==========================================================
   MATLO — CORRECTIONS CHARTE HERO
   ========================================================== */

.hero-buttons-bar {
  background-color: var(--color-blue);
}

.btn-pink,
.btn-rose {
  background-color: var(--color-coral);
}

.btn-pink:hover,
.btn-rose:hover {
  background-color: var(--color-coral-dark);
}

.accroche {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-blue);
}

.hero-play-label {
  font-family: var(--font-primary);
  font-weight: 700;
}

  .accroche {
  max-width: 680px;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.05;
}

.accroche .line2 {
  color: var(--color-coral);
}

.hero-baseline {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-blue);
}

.hero-seo-text {
  margin-top: 1rem;
  max-width: 560px;
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--color-text-soft);
}

.hero-play-btn {
  background: var(--color-coral);
}

.hero-play-btn:hover {
  background: var(--color-teal);
}

.play-icon {
  border-left-color: #ffffff;
}