/* ==========================================================================
   Hero vidéo (motion design Pulse IA)
   Ordre : titre (2 lignes max) → vidéo (taille fixe, avec son) → texte → boutons.
   ========================================================================== */

/* Le panneau sombre arrondi reste, sans la vidéo de stock : couleur du fond
   de la vidéo pour que ses bords se fondent dans le panneau. */
.is-video-hero .background-video-wrap {
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, #1a1f26 0%, #0f1216 60%, #07090b 100%);
}

/* La grille Webflow (100vh, contenu centré) devient un flux vertical :
   le panneau grandit avec son contenu au lieu de le couper. */
.is-video-hero .header-component-grid {
  display: block;
  height: auto;
  /* Espace généreux sous le menu (le menu fait ~6,5 rem de haut) */
  padding: 11.5rem 1.25rem 2rem;
}
@media screen and (max-width: 991px) {
  .is-video-hero .header-component-grid { padding-top: 10.5rem; }
}
@media screen and (max-width: 767px) {
  .is-video-hero .header-component-grid { padding-top: 10.5rem; }
}
.is-video-hero .header-content-wrap {
  width: 100%;
}

/* Titre : deux lignes, jamais plus (chaque ligne tient sur une ligne) */
.is-video-hero .header-title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.5rem, 7.6vw, 4.25rem);
}
@media screen and (min-width: 992px) {
  .is-video-hero .header-title { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
}

/* Première ligne du titre en orange de marque (même orange que la vidéo) */
.is-video-hero .header-title-accent {
  color: #ff4b36;
  text-shadow: 0 0 24px rgba(255, 75, 54, 0.25);
}
/* Seconde ligne en blanc (au lieu du gris secondaire du template) */
.is-video-hero .header-title .text-color-secondary {
  color: #ffffff;
}

/* Texte et boutons sous la vidéo */
.is-video-hero .header-description { margin-top: 0.5rem; }
.is-video-hero .button-group-wrap {
  justify-content: center;
  margin-top: 1.75rem; /* s'ajoute à l'espacement de base : vidéo et CTA bien séparés */
}
@media screen and (max-width: 767px) {
  .is-video-hero .button-group-wrap { margin-top: 1rem; }
}

/* CTA principal « Parler de mon projet » : contour orange + halo pour le faire ressortir */
.is-video-hero .button-group-wrap .main-button {
  box-shadow:
    0 0 0 3px #ff4b36,
    0 0 28px rgba(255, 75, 54, 0.45);
  transition: box-shadow 0.25s ease;
}
.is-video-hero .button-group-wrap .main-button:hover,
.is-video-hero .button-group-wrap .main-button:focus-visible {
  box-shadow:
    0 0 0 3px #ff4b36,
    0 0 40px rgba(255, 75, 54, 0.65);
}

/* Bandeau des services : sous le contenu, dans le flux */
.is-video-hero .header-bottom-wrap {
  bottom: auto;
  margin-top: 2rem;
}

/* ---------- La vidéo ---------- */
/* Taille fixe : la plus grande possible en laissant le titre visible au-dessus */
.hero-grow__media {
  position: relative;
  z-index: 5;
  width: min(100%, 1100px, calc((100vh - 390px) * 16 / 9));
  width: min(100%, 1100px, calc((100svh - 390px) * 16 / 9));
  min-width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f1216;
  box-shadow:
    0 0 0 1px rgba(255, 75, 54, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(255, 75, 54, 0.12);
}
/* Mobile : version verticale, assez haute sans repousser tout le reste trop loin */
.hero-grow__media.is-vertical {
  aspect-ratio: 9 / 16;
  min-width: 0;
  width: min(100%, 420px, calc((100vh - 290px) * 9 / 16));
  width: min(100%, 420px, calc((100svh - 290px) * 9 / 16));
}
.hero-grow__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bouton son : pastille en bas à droite (ne masque pas le centre de l'animation) */
.hero-grow__sound {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 1rem 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 18, 22, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: 500 0.875rem/1 inherit;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.hero-grow__sound:hover { border-color: #ff4b36; background: rgba(15, 18, 22, 0.88); }
.hero-grow__sound:focus-visible { outline: 2px solid #ff4b36; outline-offset: 3px; }
.hero-grow__sound svg { width: 20px; height: 20px; stroke-width: 1.6; }
.hero-grow__sound[hidden],
.hero-grow__sound .icon-hidden { display: none; }

@media screen and (max-width: 479px) {
  .hero-grow__media { border-radius: 1rem; }
  .hero-grow__sound { right: 0.75rem; bottom: 0.75rem; }
}
