/* home-hero.css */

/* Optionnel - si tu as un micro débordement dû au full-bleed */
html,
body {
  overflow-x: clip;
}

/* La région highlighted ne doit pas ajouter d'espace autour du hero */
.site-highlighted .container {
  padding-block: 0;
}

/* --------------------------------------------------------------------------
   Hero homepage block - full bleed stable dans un wrapper Drupal
   -------------------------------------------------------------------------- */
#block-lewb-theme-herohomepagehtml {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#block-lewb-theme-herohomepagehtml.block {
  margin: 0;
}

#block-lewb-theme-herohomepagehtml .field--name-body {
  margin: 0;
}

/* Hauteur du header principal utilisée pour respirer sous le header overlay */
:root {
  --site-header-h: var(--header-total-h, 75px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.c-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.c-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.c-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.c-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    1200px 600px at 50% 35%,
    rgba(130, 87, 255, 0.35),
    rgba(20, 10, 45, 0.70)
  );
}

.c-hero__inner {
  position: relative;
  z-index: 2;
  padding: calc(64px + var(--site-header-h)) 0 32px;
}

/* --------------------------------------------------------------------------
   Hero content
   -------------------------------------------------------------------------- */
.c-hero__inner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.c-hero__badge {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.c-hero__title {
  margin: 0 auto 14px;
  line-height: 1.05;
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 800;
  text-align: center;
}

.c-hero__title span {
  display: block;
}

.c-hero__title .l2 {
  opacity: 0.92;
}

.c-hero__title .l3 {
  opacity: 0.98;
}

.c-hero__lead {
  margin: 0 auto 22px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  text-align: center;
}

.c-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(100, 90, 255, 0.95);
  color: #ffffff;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.c-hero__cta:hover,
.c-hero__cta:focus-visible {
  background: rgba(100, 90, 255, 1);
  color: #ffffff;
}

.c-hero__quicklinks {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.c-hero__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.c-hero__tile:hover,
.c-hero__tile:focus-visible {
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .c-hero__quicklinks {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .c-hero__quicklinks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-height: 780px) {
  .c-hero__inner {
    padding: calc(48px + var(--site-header-h)) 0 20px;
  }

  .c-hero__lead {
    margin-bottom: 16px;
  }

  .c-hero__cta {
    margin-bottom: 16px;
  }

  .c-hero__quicklinks {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Header over hero - homepage only
   Ce fichier ne gère plus .site-nav
   -------------------------------------------------------------------------- */

/* Header overlay - liens clairs tant qu'on est au sommet de la homepage */
.path-frontpage .site-header--overlay:not(.is-scrolled) a {
  color: #ffffff;
}

/* Variante hover légère sur hero */
.path-frontpage .site-header--overlay:not(.is-scrolled) a:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* Si ton logo contient du SVG inline, ça aide à garder une version claire */
.path-frontpage .site-header--overlay:not(.is-scrolled) .site-header__brand svg,
.path-frontpage .site-header--overlay:not(.is-scrolled) .site-header__brand svg * {
  fill: currentColor;
}

/* Etat scroll - on revient sur la palette normale */
.path-frontpage .site-header--overlay.is-scrolled a {
  color: inherit;
}

.path-frontpage .site-hero {
  margin-top: calc(-1 * var(--site-header-h));
}





.site-hero {
  position: relative;
  z-index: 1;
}

#block-lewb-theme-herohomepagehtml {
  position: relative;
  z-index: 1;
}

.c-hero__bg {
  z-index: 0;
}

.c-hero__overlay {
  z-index: 1;
}

.c-hero__inner {
  position: relative;
  z-index: 2;
}