/* ============================================================
   PADEL COLLECTION — Header / Hero
   Pleine largeur, vidéo en fond, grille 12 cols.
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: min(100vh, 800px);
  height: min(100svh, 800px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-noir);
  color: var(--color-sand);
}

/* ---- Vidéo de fond ---- */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.02) saturate(0.95);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(31, 22, 22, 0.15) 0%,
    rgba(31, 22, 22, 0.10) 35%,
    rgba(31, 22, 22, 0.40) 100%
  );
  pointer-events: none;
}

/* ---- Inner : grille 12 colonnes ---- */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--grid-max-width);
  margin-inline: auto;
  padding: var(--space-l) var(--grid-margin);
  height: 100%;

  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  grid-template-rows: auto 1fr auto;
  row-gap: var(--space-l);
}

/* ---- Logo (rangée 1, colonnes 1-4) ---- */
.hero__logo-link {
  grid-column: 1 / span 4;
  grid-row: 1;
  display: inline-block;
  color: var(--color-rouille);
  transition: opacity var(--duration-fast) var(--ease);
}
.hero__logo-link:hover { opacity: 0.85; }

.hero__logo {
  display: block;
  width: clamp(160px, 18vw, 260px);
  height: auto;
}

/* ---- Titre (rangée 2, colonnes 1-12) ---- */
.hero__title {
  grid-column: 1 / span 12;
  grid-row: 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--color-sand);
  padding-block: var(--space-m);
}

.hero__title-line { display: block; }

/* ---- Baseline (rangée 3, colonnes 1-7) ---- */
.hero__lede {
  grid-column: 1 / span 7;
  grid-row: 3;
  display: flex;
  align-items: flex-start;
  gap: var(--space-m);
}

.hero__lede-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-rouille);
  animation: hero-arrow-pulse 2.6s var(--ease) infinite;
}

@keyframes hero-arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}

.hero__lede-text {
  font-family: var(--font-body);
  font-size: var(--fs-text-1);
  line-height: 1.5;
  color: var(--color-sand);
  max-width: 38ch;
}
.hero__lede-text strong { font-weight: 700; font-style: italic; }

/* ---- CTA (rangée 3, colonnes 10-12) ---- */
.hero__cta {
  grid-column: 10 / span 3;
  grid-row: 3;
  align-self: end;
  justify-self: end;
}
.hero__cta .btn {
  padding: 14px 28px;
  font-size: 14px;
}

/* ============================================================
   CONTACT ANCHOR — panneau fixe droite (Figma : node 386:370)
   Structure : pip haut (inversé) + panneau sable + pip bas.
   Hover : fond terracotta + icône sable + tooltip speech-bubble.
   ============================================================ */
.social-anchor {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ---- Pip décoratif (haut & bas) ---- */
.social-anchor__pip {
  width: 20px;
  height: 12px;
  flex-shrink: 0;
}
.social-anchor__pip svg {
  display: block;
  width: 20px;
  height: 12px;
}

/* Pip du haut : inversé verticalement (scaleY(-1)) */
.social-anchor__pip--top svg {
  transform: scaleY(-1);
}

/* ---- Panneau principal ---- */
.social-anchor__panel {
  background: var(--color-vanille);
  border-radius: 12px 0 0 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- Chaque lien / bouton ---- */
.social-anchor__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  position: relative;
  /* Couleur des SVGs inline via CSS variable */
  --fill-0: var(--color-noir);
  background: transparent;
  transition:
    background var(--duration-fast) var(--ease),
    --fill-0 0ms;
  text-decoration: none;
}

.social-anchor__item:hover {
  background: var(--color-terracotta);
  --fill-0: var(--color-sand);
}

.social-anchor__item svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   ENTRÉE — animations en cascade
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo-link,
  .hero__title-line,
  .hero__lede,
  .hero__cta {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-in 900ms var(--ease) forwards;
  }
  .hero__logo-link              { animation-delay: 100ms; }
  .hero__title-line:nth-child(1) { animation-delay: 250ms; }
  .hero__title-line:nth-child(2) { animation-delay: 380ms; }
  .hero__lede                   { animation-delay: 600ms; }
  .hero__cta                    { animation-delay: 720ms; }
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    padding: var(--space-m) var(--grid-margin);
    row-gap: var(--space-m);
  }
  .hero__logo-link { grid-column: 1 / span 6; }
  .hero__lede      { grid-column: 1 / span 8; }
  .hero__cta       { grid-column: 9 / span 4; }
}

@media (max-width: 640px) {
  .hero__inner {
    padding: var(--space-m) var(--grid-margin);
    row-gap: var(--space-m);
    grid-template-rows: auto 1fr auto auto;
  }
  .hero__logo-link { grid-column: 1 / span 12; grid-row: 1; }
  .hero__title {
    grid-column: 1 / span 12;
    grid-row: 2;
    align-self: end;
    font-size: clamp(56px, 16vw, 96px);
    padding-block: 0;
  }
  .hero__lede {
    grid-column: 1 / span 12;
    grid-row: 3;
    gap: var(--space-s);
  }
  .hero__lede-arrow { width: 36px; height: 36px; }
  .hero__cta {
    grid-column: 1 / span 12;
    grid-row: 4;
    justify-self: stretch;
    align-self: auto;
  }
  .hero__cta .btn { width: 100%; padding: 14px 20px; }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(31, 22, 22, 0.25) 0%,
      rgba(31, 22, 22, 0.15) 30%,
      rgba(31, 22, 22, 0.55) 100%
    );
  }
}

@media (min-width: 1600px) {
  .hero__title { font-size: clamp(160px, 11vw, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__lede-arrow { animation: none; }
}
