/* ────────────────────────────────────────────────────────────────────────────
   pages/home.css — Ova Vanilla
   Styles spécifiques à la homepage (index.html)
   ──────────────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep); /* Fallback si photo absente */
}

/* Fond photographique */
.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0.65;
  filter: contrast(1.08) brightness(0.88);
}

/* Fond vidéo — même comportement que hero__img */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
  filter: contrast(1.08) brightness(0.85);
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__video-fallback { display: block; }
}

.hero__video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0.65;
  filter: contrast(1.08) brightness(0.88);
}

/* Overlay dégradé 45% gauche vers droite */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(15, 26, 19, 0.88) 0%,
    rgba(15, 26, 19, 0.60) 45%,
    rgba(15, 26, 19, 0.10) 100%
  );
}

/* Contenu centré verticalement */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  padding-top: var(--nav-height);
}

/* Surtitre Inter Light uppercase letterspaced */
.hero__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFade 0.9s ease-out 0.2s forwards;
}

/* Titre H1 Cormorant ~80px desktop */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 13ch;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFade 0.9s ease-out 0.35s forwards;
}

.hero__title em {
  font-style: italic;
  opacity: 0.92;
}

/* Tagline Inter Light crème */
.hero__tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0;
  max-width: 52ch;
  margin-bottom: 40px;
  animation: heroFade 0.9s ease-out 0.5s forwards;
}

/* Boutons CTA */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: heroFade 0.8s ease-out 0.65s forwards;
}

/* Lien "Voir les grades" — texte or */
.hero__link {
  color: var(--gold);
  opacity: 0.85;
  transition: opacity var(--transition-fast), gap var(--transition-fast);
}

.hero__link:hover { opacity: 1; }

/* Indicateur de défilement */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(240,230,210,0.75), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.35;
}

/* Animations d'entrée hero */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* La tagline a une opacité finale de 0.85 — on surcharge l'animation */
.hero__tagline { animation-name: heroFadeTagline; }
@keyframes heroFadeTagline {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.15; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 0.7;  transform: scaleY(1); }
}


/* ══════════════════════════════════════════════════════════════════════════
   NOS VANILLES — grille homepage
   ══════════════════════════════════════════════════════════════════════════ */

.vanilles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.vanilles__footer {
  text-align: center;
  margin-top: 48px;
}


/* ══════════════════════════════════════════════════════════════════════════
   ORIGINES — section homepage
   ══════════════════════════════════════════════════════════════════════════ */

.origines-section__inner {
  align-items: center;
}

.origines-section__text {
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 32px;
}

.origines-section__img-wrap {
  position: relative;
}

.origines-section__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.92);
  background-color: var(--deep);
}

.origines-section__img-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.45;
}


/* ══════════════════════════════════════════════════════════════════════════
   LA MAISON — section homepage
   ══════════════════════════════════════════════════════════════════════════ */

.maison-section__inner {
  align-items: center;
}

.maison-section__text {
  color: var(--deep);
  opacity: 0.8;
  margin-bottom: 40px;
}

.maison-section__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: var(--deep);
}


/* ══════════════════════════════════════════════════════════════════════════
   ESPACE PROFESSIONNELS — section homepage
   ══════════════════════════════════════════════════════════════════════════ */

.pros-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.pros-section__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Métriques chiffrées */
.pros-section__metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gold-20);
  grid-column: 3;
  align-self: center;
}

.pros-metric {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid var(--gold-20);
}

.pros-metric__val {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.pros-metric__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  opacity: 0.55;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — homepage (début)
   ══════════════════════════════════════════════════════════════════════════ */
/* placeholder — bloc Instagram supprimé */



/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — homepage
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .vanilles__grid {
    grid-template-columns: 1fr;
  }

  .pros-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pros-section__metrics {
    grid-column: 1;
    flex-direction: row;
    border-top: 1px solid var(--gold-20);
    border-bottom: 1px solid var(--gold-20);
  }

  .pros-metric {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--gold-20);
    padding: var(--space-sm) var(--space-sm);
  }

  .pros-metric:last-child { border-right: none; }
}

@media (max-width: 768px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    max-width: 100%;
  }

  .hero__tagline {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }

  .hero__content {
    padding-top: 32px;
  }

  .vanilles__grid { grid-template-columns: 1fr; }

  .pros-section__metrics {
    flex-direction: column;
  }

  .pros-metric {
    border-right: none;
    border-bottom: 1px solid var(--gold-20);
  }
}

/* ── Mobile 600px ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero__label {
    font-size: 0.5625rem;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
  }

  .hero__tagline {
    max-width: 100%;
  }

  .origines-section__img {
    aspect-ratio: 4 / 3;
  }

  .maison-section__img {
    aspect-ratio: 4 / 3;
  }
}

/* ── Mobile 480px ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    min-height: 600px;
  }

  .hero__cta {
    width: 100%;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  .pros-metric:last-child {
    border-bottom: none;
  }

  .pros-section__ctas {
    flex-direction: column;
    gap: 10px;
  }

  .pros-section__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
