/* =====================================================================
   Hero landing — Al Fôrno (v2 · septembre 2026, remplace hero.css)
   ---------------------------------------------------------------------
   Hero plein écran : illustration four à bois + wordmark visible +
   accroche gourmande + CTA « Commander » + statut d'ouverture discret.

   Tout est scopé sous .site-hero pour ne pas entrer en conflit avec le
   skin (brand_skin.css). Le fichier est chargé via {% block head %}
   (donc APRÈS le skin) -> il gagne la cascade.

   Contient aussi : header transparent tant que l'on est en haut de la
   page d'accueil (html.is-landing.hero-top, posé avant peinture par un
   script inline dans <head>, retiré/ajouté au scroll par site.js).
   ===================================================================== */

.site-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;            /* mobile : contenu en bas, le four reste visible au-dessus */
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height, 72px) + 16px) 20px 34px;
  overflow: hidden;
  color: var(--cream, #fdf6ec);
  background: #241409;
}

/* --- Image plein cadre + zoom lent (Ken Burns) --- */
.site-hero .fh-media { display: contents; }
.site-hero .fh-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;      /* mobile : four + mains dans le cadre */
}
@media (prefers-reduced-motion: no-preference) {
  .site-hero .fh-bg { animation: fhZoom 18s cubic-bezier(.2, .6, .2, 1) both; }
  @keyframes fhZoom { from { scale: 1.1; } to { scale: 1; } }
}

/* --- Voile : lisibilité du texte (bas) + icônes du header (haut).
       Mobile : le haut reste clair pour laisser le four respirer. --- */
.site-hero .fh-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(15, 11, 2, .55) 0%,
      rgba(15, 11, 2, .08) 18%,
      rgba(15, 11, 2, .12) 38%,
      rgba(15, 11, 2, .70) 58%,
      rgba(15, 11, 2, .90) 76%,
      rgba(22, 13, 5, .97) 100%);
}

/* --- Contenu --- */
.site-hero .fh-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.site-hero .fh-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .site-hero .fh-copy > * { animation: fhIn .9s cubic-bezier(.2, .8, .2, 1) both; }
  .site-hero .fh-copy > :nth-child(2) { animation-delay: .06s; }
  .site-hero .fh-copy > :nth-child(3) { animation-delay: .12s; }
  .site-hero .fh-copy > :nth-child(4) { animation-delay: .18s; }
  .site-hero .fh-copy > :nth-child(5) { animation-delay: .24s; }
  .site-hero .fh-copy > :nth-child(6) { animation-delay: .30s; }
  .site-hero .fh-copy > :nth-child(7) { animation-delay: .36s; }
  @keyframes fhIn { from { opacity: 0; transform: translateY(16px); } }
}

/* Sur-titre : marqueur brossé ambre (ville + halal) */
.site-hero .fh-eyebrow {
  margin: 0;
  font-family: var(--font-family-marker), cursive;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .04em;
  color: var(--amber);
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

/* Titre = wordmark (h1 pour le SEO, image pour le rendu) */
.site-hero .fh-title { margin: 0; line-height: 0; font-size: 0; }
.site-hero .fh-wordmark {
  display: block;
  width: min(78vw, 300px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .6));
}

/* Accroche : gras crème + ligne script sur coup de pinceau terracotta (même langage que les titres de section) */
.site-hero .fh-headline {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: 900;
  font-size: clamp(25px, 3.3vw, 44px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream);
  opacity: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
  text-wrap: balance;
}
.site-hero .fh-headline__accent {
  position: relative;
  z-index: 0;
  display: block;                   /* toujours sur sa propre ligne */
  width: max-content;
  max-width: 100%;
  margin: .12em auto 0;
  padding: .06em .45em .2em;
  font-family: var(--font-family-accent), 'Brush Script MT', cursive;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--cream);
  transform: rotate(-1.5deg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.site-hero .fh-headline__accent::before {
  content: '';
  position: absolute;
  inset: 6% -3% 4% -3%;
  z-index: -1;
  background: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 80' preserveAspectRatio='none'%3E%3Cpath d='M9 41C6 22 39 15 92 17c60 2 121-9 181 1 27 4 31 40 6 45-62 12-123 6-183 6-47 0-80-4-87-13-4-5-4-11 0-16z' fill='%23c0491e'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}

.site-hero .fh-sub {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-family);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(253, 246, 236, .92);
  opacity: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .65);
}

/* --- CTA : « Commander » (primaire) + Offres Duo (fantôme) --- */
.site-hero .fh-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.site-hero .fh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.site-hero .fh-btn-primary {
  background: var(--amber);
  color: #2b1810;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 16px 40px -10px rgba(242, 168, 29, .7), 0 0 0 5px rgba(242, 168, 29, .14);
}
.site-hero .fh-btn-primary:hover {
  transform: translateY(-2px);
  background: #f7bb3f;
  color: #2b1810;
  box-shadow: 0 22px 50px -12px rgba(242, 168, 29, .85), 0 0 0 7px rgba(242, 168, 29, .18);
}
.site-hero .fh-btn-primary:active { transform: translateY(0) scale(.98); }
.site-hero .fh-btn__ico { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; }
.site-hero .fh-btn-primary:hover .fh-btn__ico { transform: translateX(3px); }

.site-hero .fh-btn-ghost {
  padding: 15px 22px;
  background: rgba(15, 11, 2, .42);
  color: var(--cream);
  border-color: rgba(253, 246, 236, .32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  text-transform: none;
}
.site-hero .fh-btn-ghost strong { color: var(--amber); font-weight: 800; }
.site-hero .fh-btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--cream);
  border-color: var(--amber);
  background: rgba(15, 11, 2, .6);
}

/* --- Statut d'ouverture : discret, sous les CTA --- */
.site-hero .fh-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 9px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 11, 2, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(253, 246, 236, .92);
}
.site-hero .fh-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9aa0a6;
}
.site-hero .fh-status__next { font-weight: 500; opacity: .82; }
.site-hero .fh-status__next::before { content: '·'; margin-right: 8px; opacity: .6; }

.site-hero .fh-status--open .fh-status__dot {
  background: #34d058;
  box-shadow: 0 0 0 3px rgba(52, 208, 88, .22);
}
@media (prefers-reduced-motion: no-preference) {
  .site-hero .fh-status--open .fh-status__dot { animation: fhPulse 2s ease-in-out infinite; }
  @keyframes fhPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 208, 88, .22); }
    50% { box-shadow: 0 0 0 6px rgba(52, 208, 88, .08); }
  }
}
.site-hero .fh-status--closed .fh-status__dot {
  background: #ff5b5b;
  box-shadow: 0 0 0 3px rgba(255, 91, 91, .18);
}
/* Fermeture exceptionnelle (congés…) : plus visible, mais toujours sous le CTA */
.site-hero .fh-status--exceptional {
  border-radius: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(192, 57, 43, .94), rgba(150, 38, 28, .94));
  border-color: rgba(255, 200, 120, .5);
  color: #fff;
}
.site-hero .fh-status--exceptional .fh-status__dot {
  background: #ffd479;
  box-shadow: 0 0 0 3px rgba(255, 212, 121, .22);
}

/* --- Preuves / réassurance --- */
.site-hero .fh-proof {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(253, 246, 236, .82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.site-hero .fh-proof li { display: inline-flex; align-items: center; gap: 7px; }
.site-hero .fh-proof li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(242, 168, 29, .7);
  flex-shrink: 0;
}

/* --- Plat vedette (desktop uniquement) : carte « block-shadow » de la DA --- */
.site-hero .fh-dish { display: none; }

/* ===================== Desktop ===================== */
@media (min-width: 900px) {
  .site-hero {
    align-items: center;
    padding: calc(var(--header-height, 72px) + 24px) 48px 64px;
  }
  /* Illustration miroir (sans texte) : le four et ses flammes passent à droite,
     le texte se pose sur la partie sombre (tablier) à gauche. */
  .site-hero .fh-bg { transform: scaleX(-1); object-position: center 42%; }
  .site-hero .fh-scrim {
    background:
      linear-gradient(90deg,
        rgba(15, 11, 2, .86) 0%,
        rgba(15, 11, 2, .66) 34%,
        rgba(15, 11, 2, .22) 60%,
        rgba(15, 11, 2, .04) 100%),
      linear-gradient(180deg,
        rgba(15, 11, 2, .42) 0%,
        rgba(15, 11, 2, 0) 22%,
        rgba(15, 11, 2, 0) 62%,
        rgba(22, 13, 5, .96) 100%);
  }
  .site-hero .fh-inner {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    align-items: center;
    column-gap: 40px;
  }
  .site-hero .fh-copy { align-items: flex-start; text-align: left; gap: 18px; }
  .site-hero .fh-headline__accent { margin-left: 0; }
  .site-hero .fh-wordmark { width: min(100%, 440px); }
  .site-hero .fh-cta, .site-hero .fh-proof { justify-content: flex-start; }
  .site-hero .fh-status { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .site-hero .fh-dish {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-self: end;
    align-self: end;
    width: 250px;
    margin-right: 4%;
    background: var(--bg-card, #43291a);
    border: 2px solid rgba(242, 168, 29, .6);
    border-radius: 16px;
    box-shadow: 6px 6px 0 rgba(192, 73, 30, .6), 0 34px 70px -24px rgba(0, 0, 0, .85);
    overflow: hidden;
    color: var(--cream);
    text-decoration: none;
    transform: rotate(-3deg);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  @media (prefers-reduced-motion: no-preference) {
    .site-hero .fh-dish { animation: fhDish 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
    @keyframes fhDish { from { opacity: 0; transform: rotate(-6deg) translateY(24px); } }
  }
  .site-hero .fh-dish:hover {
    transform: rotate(-1deg) translateY(-5px);
    box-shadow: 10px 10px 0 rgba(242, 168, 29, .85), 0 40px 80px -24px rgba(0, 0, 0, .9);
    color: var(--cream);
  }
  .site-hero .fh-dish__img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 0;
  }
  .site-hero .fh-dish__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--amber);
    color: #2b1810;
    font-family: var(--font-family-marker), cursive;
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
  }
  .site-hero .fh-dish__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 13px;
  }
  .site-hero .fh-dish__name {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.2;
  }
  .site-hero .fh-dish__price {
    flex-shrink: 0;
    font-family: var(--font-family-accent), cursive;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--amber);
  }
}

/* Écrans larges mais peu hauts (laptop 1366×768, 1280×720) : on resserre pour tenir dans le viewport */
@media (min-width: 900px) and (max-height: 800px) {
  .site-hero { padding-top: calc(var(--header-height, 72px) + 12px); padding-bottom: 40px; }
  .site-hero .fh-copy { gap: 12px; }
  .site-hero .fh-wordmark { width: min(100%, 340px); }
  .site-hero .fh-headline { font-size: clamp(24px, 2.8vw, 36px); }
  .site-hero .fh-sub { font-size: 15px; }
  .site-hero .fh-btn { padding: 14px 26px; font-size: .95rem; }
  .site-hero .fh-btn-ghost { padding: 12px 18px; font-size: .86rem; }
  .site-hero .fh-dish { width: 210px; }
}

/* ===================== Header sur la page d'accueil =====================
   Transparent tant que l'on est en haut du hero (le wordmark du hero fait
   office de logo), redevient opaque + logo visible dès le premier scroll. */
.header {
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease,
              transform .4s cubic-bezier(.4, 0, .2, 1);
}
.header-logo { transition: opacity .3s ease; }
html.is-landing .header-spacer { display: none; }
/* Ancres cibles des CTA du hero (#offre-duo, #la-carte) : ne pas passer sous le header fixe */
html.is-landing [id] { scroll-margin-top: calc(var(--header-height, 72px) + 16px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.is-landing.nav-hidden .header { transform: translateY(-100%); }
html.is-landing.hero-top .header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.is-landing.hero-top .header-logo { opacity: 0; pointer-events: none; }
html.is-landing.hero-top .nav-btn {
  background: rgba(15, 11, 2, .45);
  border-color: rgba(253, 246, 236, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Petits téléphones peu hauts (iPhone SE 375×667…) : on resserre pour garder le CTA visible sans scroll */
@media (max-width: 899px) and (max-height: 700px) {
  .site-hero { padding-top: calc(var(--header-height, 72px) + 8px); padding-bottom: 22px; }
  .site-hero .fh-copy { gap: 10px; }
  .site-hero .fh-wordmark { width: min(64vw, 240px); }
  .site-hero .fh-headline { font-size: 23px; }
  .site-hero .fh-sub { font-size: 14px; line-height: 1.45; }
  .site-hero .fh-btn { padding: 13px 24px; font-size: .92rem; }
  .site-hero .fh-btn-ghost { padding: 11px 16px; font-size: .82rem; }
}

/* ===================== Petits écrans ===================== */
@media (max-width: 480px) {
  .site-hero { padding-left: 16px; padding-right: 16px; padding-bottom: 28px; }
  .site-hero .fh-copy { gap: 12px; }
  .site-hero .fh-btn { padding: 15px 26px; font-size: .96rem; }
  .site-hero .fh-btn-ghost { padding: 13px 18px; font-size: .86rem; }
  .site-hero .fh-proof { gap: 5px 12px; font-size: .76rem; }
}
