/* Hero accueil — centré, fond header + hero */

.hero-shell {
  position: relative;
  overflow: hidden;
}

/* Accueil : header + hero = exactement un écran, rien en dessous au chargement */
.page-home .hero-shell {
  --hero-viewport: 100vh;
  --hero-viewport: 100dvh;
  min-height: var(--hero-viewport);
  height: var(--hero-viewport);
  max-height: var(--hero-viewport);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
}

.page-home .hero-shell > .header {
  flex-shrink: 0;
}

.hero-section {
  position: relative;
  z-index: 1;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: 0;
  background: transparent;
}

.hero-section--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.page-home .hero-section--centered {
  padding-top: clamp(0.35rem, 1.5vw, 1rem);
}

/* ——— Contenu centré ——— */
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8eaed;
  background: rgba(26, 115, 232, 0.1);
  border: 1px solid rgba(26, 115, 232, 0.28);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 0 12px rgba(26, 115, 232, 0.9);
}

.hero-title {
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  display: block;
  margin-top: 0.2em;
  background: linear-gradient(
    105deg,
    #6eb6ff 0%,
    #1a73e8 40%,
    #8b9cff 70%,
    #6eb6ff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  animation:
    hero-accent-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
    hero-accent-gradient 7s ease-in-out 1.1s infinite;
}

@keyframes hero-accent-enter {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-accent-gradient {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-text {
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: #b0b4bc;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.hero-actions .site-btn-primary {
  padding: 0.85rem 1.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  box-shadow:
    0 4px 28px rgba(26, 115, 232, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero-btn--primary:hover {
  box-shadow:
    0 10px 40px rgba(26, 115, 232, 0.65),
    0 0 48px rgba(26, 115, 232, 0.2);
  color: #fff;
}

.hero-btn--ghost {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.page-home .hero-scroll {
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.hero-scroll {
  position: relative;
  z-index: 5;
  display: block;
  width: fit-content;
  margin: 0.5rem auto clamp(0.75rem, 2vh, 1.25rem);
  padding: 0;
  flex-shrink: 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-scroll:hover .hero-scroll-mouse {
  border-color: rgba(255, 255, 255, 0.75);
  border-bottom-color: #1a73e8;
}

.hero-scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.2s ease;
}

.hero-scroll-wheel {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  animation: hero-scroll-nudge 2.2s ease-in-out infinite;
}

@keyframes hero-scroll-nudge {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.4;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-wheel {
    animation: none;
  }

  .hero-title-accent {
    animation: none;
    background-size: auto;
  }
}

/* Écrans peu hauts : resserrer le hero pour garder tout dans 100dvh */
@media (max-height: 720px) {
  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    margin-bottom: 0.75rem;
  }

  .hero-text {
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .hero-btn {
    padding: 0.7rem 1.25rem;
  }
}

