/* =====================================================================
   Hero « pâte & farine » — Al Fôrno
   ---------------------------------------------------------------------
   Hero plein écran (image de fond + nom de l'enseigne + un seul CTA).
   Tout est scopé sous .site-hero pour ne pas entrer en conflit avec le
   skin (brand_skin.css) ni avec les règles .hero historiques. Le fichier
   est chargé via {% block head %} (donc APRÈS le skin) -> il gagne la
   cascade. Les sélecteurs à deux classes (.site-hero .fh-*) passent aussi
   devant les règles du skin du type `html[data-style="minimal"] h1/p`.

   Contient aussi la révélation de la navbar au premier scroll
   (uniquement sur la page d'accueil, marquée par html.is-landing).
   ===================================================================== */

.site-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 84px 24px 92px;
  overflow: hidden;
  color: #fff;
}

/* --- Image plein cadre + léger effet Ken Burns --- */
.site-hero .fh-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: no-preference) {
  .site-hero .fh-bg { animation: fhKenburns 22s ease-in-out infinite alternate; }
  @keyframes fhKenburns {
    from { transform: scale(1.06) translate(0, 0); }
    to   { transform: scale(1.16) translate(-1.5%, -2%); }
  }
}

/* --- Voile dégradé : lisibilité du texte + bas qui plonge vers le
       sombre pour une transition douce vers la suite de la page. --- */
.site-hero .fh-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 62% at 50% 44%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .42) 68%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(180deg, rgba(15, 11, 2, .55) 0%, rgba(15, 11, 2, .08) 30%, rgba(15, 11, 2, .22) 64%, rgba(15, 11, 2, .82) 100%);
}

.site-hero .fh-inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
@media (prefers-reduced-motion: no-preference) {
  .site-hero .fh-inner { animation: fhIn 1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes fhIn { from { opacity: 0; transform: translateY(18px); } }
}

/* --- Nom de l'enseigne (wordmark sur deux lignes) --- */
.site-hero .fh-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: none;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .55);
}
.site-hero .fh-line {
  display: block;
  font-size: clamp(56px, 12vw, 128px);
}
.site-hero .fh-line-accent {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(78px, 17vw, 190px);
  line-height: .82;
  transform: rotate(-3deg);
  margin-top: -.04em;
}

.site-hero .fh-sub {
  margin: 0;
  max-width: 560px;
  font-family: var(--font-family);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  opacity: 1;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

/* --- CTA unique : mène directement à la commande --- */
.site-hero .fh-cta {
  display: flex;
  justify-content: center;
}
.site-hero .fh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.site-hero .fh-btn-primary {
  background: var(--accent);
  color: #2b2418;
  box-shadow: 0 16px 40px -8px rgba(var(--accent-rgb), .55);
}
.site-hero .fh-btn-primary:hover {
  transform: translateY(-3px);
  color: #2b2418;
  box-shadow: 0 22px 52px -10px rgba(var(--accent-rgb), .7);
}

/* =====================================================================
   Navbar révélée au premier scroll (page d'accueil uniquement).
   L'état initial (caché) est posé par un script inline dans <head>
   (html.is-landing.nav-hidden) afin d'éviter tout flash.
   ===================================================================== */
.header { transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
html.is-landing .header-spacer { display: none; }
html.is-landing.nav-hidden .header { transform: translateY(-100%); }

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .site-hero { padding: 64px 18px 84px; }
  .site-hero .fh-inner { gap: 24px; }
  .site-hero .fh-btn { padding: 15px 26px; }
}
