/* ══════════════════════════════════════════════════════
   hero.css — Hero bleu profond, référence logo
   ══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   CONTENEUR
───────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  background: #0F2236;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Couche photo — Ken Burns discret */
.hero__photo {
  position: absolute;
  inset: 0;
  will-change: transform;
  animation: heroBgZoom 24s var(--ease-out) both;
  contain: strict;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ─────────────────────────────────────────
   FOND — overlay sombre sur la photo + halos colorés
───────────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    /* overlay sombre principal — lisibilité du texte */
    linear-gradient(155deg, rgba(5, 13, 24, 0.92) 0%, rgba(10, 24, 46, 0.80) 55%, rgba(6, 16, 30, 0.92) 100%),
    /* halo bleu clair — haut droit */
    radial-gradient(ellipse 60% 65% at 95% 5%,  rgba(74, 146, 191, 0.24) 0%, transparent 60%),
    /* lumière centrale douce */
    radial-gradient(ellipse 55% 50% at 40% 45%, rgba(36, 111, 159, 0.16) 0%, transparent 55%),
    /* profondeur bleu nuit — bas gauche */
    radial-gradient(ellipse 50% 45% at 5%  95%, rgba(8,  22,  38, 0.50) 0%, transparent 55%),
    /* reflet argenté — coin haut gauche */
    radial-gradient(ellipse 40% 35% at 0%  0%,  rgba(180, 210, 235, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Grain très subtil */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Arc décoratif */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 58vw;
  height: 140%;
  border-left: 1px solid rgba(74, 146, 191, 0.15);
  border-radius: 50%;
  transform: rotate(-6deg);
  pointer-events: none;
}

/* ─────────────────────────────────────────
   LAYOUT — pleine largeur, pas de max-width container
───────────────────────────────────────── */
#hero .container {
  max-width: 100%;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(5rem, 9vw, 7rem);
  display: flex;
  align-items: center;
}

.hero__content {
  width: 100%;
  max-width: 860px;
  position: relative;
}

/* ─────────────────────────────────────────
   DÉCOR — grand nombre filigrane
───────────────────────────────────────── */
.hero__deco {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-size: clamp(10rem, 20vw, 18rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .hero__deco { right: -8vw; }
}

/* ─────────────────────────────────────────
   OVERLINE
───────────────────────────────────────── */
.hero__overline {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(130, 190, 230, 0.85);
  margin-bottom: 1.5rem;
  animation: heroFadeUp 0.6s var(--ease-out) 0.1s both;
}

/* ─────────────────────────────────────────
   TITRE — animation mot par mot
───────────────────────────────────────── */
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  animation: wordReveal 0.65s var(--ease-out) calc(0.25s + var(--i) * 0.09s) both;
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #7BC0E8;
}

/* ─────────────────────────────────────────
   SOUS-TITRE
───────────────────────────────────────── */
.hero__subtitle {
  margin-top: 1.75rem;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 48ch;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.7s var(--ease-out) 0.95s both;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.7s var(--ease-out) 1.1s both;
}

/* Bouton principal — fill animé */
.hero__cta-primary {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.hero__cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent-h);
  border-radius: inherit;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.hero__cta-primary:hover {
  box-shadow: 0 8px 28px rgba(36, 111, 159, 0.45);
  transform: translateY(-2px);
}

.hero__cta-primary:hover::after { transform: scaleX(1); }

/* Lien secondaire */
.hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.hero__text-link:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__text-link svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.hero__text-link:hover svg { transform: translateX(4px); }

/* ─────────────────────────────────────────
   SCROLL INDICATOR
───────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: flex-end;
  z-index: 2;
  text-decoration: none;
  opacity: 0;
  animation: heroFadeUp 0.5s var(--ease-out) 1.6s forwards;
}

.hero__scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__scroll-chevrons svg {
  display: block;
  width: 22px;
  height: 13px;
  color: rgba(130, 190, 230, 0.7);
  opacity: 0;
}

.hero__scroll-chevrons svg:nth-child(1) {
  animation: scrollChevron 2s ease-in-out 2s infinite;
}

.hero__scroll-chevrons svg:nth-child(2) {
  animation: scrollChevron 2s ease-in-out 2.22s infinite;
}

@keyframes scrollChevron {
  0%   { opacity: 0;    transform: translateY(-6px); }
  30%  { opacity: 0.85; transform: translateY(0); }
  60%  { opacity: 0.4;  transform: translateY(5px); }
  100% { opacity: 0;    transform: translateY(5px); }
}

/* ─────────────────────────────────────────
   ACCESSIBILITÉ
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__photo         { animation: none; }
  .hero__word,
  .hero__overline,
  .hero__subtitle,
  .hero__actions,
  .hero__scroll                    { animation: none; opacity: 1; transform: translateX(-50%); }
  .hero__scroll-chevrons svg       { animation: none; opacity: 0.6; transform: none; }
  .hero__cta-primary::after { display: none; }
}

@media (max-width: 599px) {
  .hero__deco { display: none; }
  .hero__subtitle { max-width: 100%; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }
  .hero__cta-primary {
    justify-content: center;
  }
  .hero__cta-realisations {
    justify-content: center;
  }
  .hero__scroll { display: none; }
}
