/* ==========================================================================
   BIG MOH'S — couche v6 (retours du 16/11, principes du site KFC, identité Big Moh's conservée) :
   héros en carrousel (photos qui défilent, poulet en premier), boutons de l'application (préparés, affichés seulement
   si les liens existent), message d'ouverture « Télécharge l'appli », réseaux sociaux du pied de page.
   ========================================================================== */
.b4-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Carrousel du héros : diapositives empilées dans la même cellule de grille (hauteur = la plus haute) ---------- */
.b4-hero--slides { padding: 0; }
.b4-hero--slides::before { display: none; }           /* le fondu est porté par chaque diapositive */
.b4-slides { display: grid; }
.b4-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity 0.7s var(--b4-ease), visibility 0s linear 0.7s;
}
.b4-slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.7s var(--b4-ease), visibility 0s; z-index: 1; }
.b4-slide::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 150vw; pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 245, 236, 0) 44%, rgba(251, 245, 236, 0.7) 60%, rgba(251, 245, 236, 0.94) 76%, var(--b4-cream) 100%);
}
.b4-slide .b4-hero__bg { position: absolute; inset: 0 0 auto; z-index: -2; display: block; overflow: hidden; }  /* le zoom ne déborde pas du fondu */
.b4-slide .b4-hero__bg img { display: block; width: 100%; height: auto; }
.b4-slide.is-on .b4-hero__bg img { animation: b4-slide-zoom 7s ease-out both; }
@keyframes b4-slide-zoom { from { transform: scale(1.045); } to { transform: scale(1); } }
.b4-slide__kicker { margin-bottom: 0.25rem; }
.b4-hero--slides .b4-hero__inner { padding-bottom: 18px; }

.b4-slides__nav {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(1180px, 100%); margin: 0 auto; padding: 0 16px 22px;
}
.b4-slides__dots { display: flex; gap: 8px; }
.b4-slides__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(30, 23, 20, 0.22); cursor: pointer;
  transition: width 0.3s var(--b4-ease), background 0.3s;
}
.b4-slides__dot.is-on { width: 26px; background: var(--b4-blue); }
.b4-slides__arrow {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--b4-ink); box-shadow: 0 0 0 1px var(--b4-line), var(--b4-s1);
}
.b4-slides__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b4-slides__dot:focus-visible, .b4-slides__arrow:focus-visible { outline: 2px solid var(--b4-blue); outline-offset: 2px; }

@media (min-width: 900px) {
  .b4-slide::before {
    inset: 0; height: auto;
    background:
      linear-gradient(90deg, rgba(251, 245, 236, 0.94) 0%, rgba(251, 245, 236, 0.78) 30%, rgba(251, 245, 236, 0) 54%),
      linear-gradient(180deg, rgba(251, 245, 236, 0) 80%, var(--b4-cream) 100%);
  }
  .b4-slide .b4-hero__bg { inset: 0; }
  .b4-slide .b4-hero__bg img { height: 100%; object-fit: cover; object-position: 68% 50%; }
  .b4-hero--slides .b4-hero__inner { padding-bottom: 72px; }
  .b4-slides__nav { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); justify-content: flex-start; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .b4-slide, .b4-slide.is-on { transition: none; }
  .b4-slide.is-on .b4-hero__bg img { animation: none; }
}

/* ---------- Boutons de l'application ---------- */
.b4-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0.8rem 0 0; }
.b4-apps__btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.35rem 0.95rem 0.35rem 0.7rem;
  border-radius: 12px; background: var(--b4-ink); color: #fff !important; text-decoration: none; line-height: 1.1;
  box-shadow: 0 8px 18px -12px rgba(30, 23, 20, 0.7);
}
.b4-apps__btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.b4-apps__btn span { display: flex; flex-direction: column; font-size: 0.95rem; font-weight: 600; }
.b4-apps__btn small { font-size: 0.64rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.b4-apps__btn:hover { background: #000; }
@media (min-width: 900px) { .b4-hero--slides .b4-apps { justify-content: flex-start; } }
.b4-footer .b4-apps { justify-content: flex-start; margin-top: 0.3rem; }

/* ---------- Réseaux sociaux du pied de page ---------- */
.b4-socials { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.b4-socials__a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.b4-socials__a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Message d'ouverture « Télécharge l'appli » ---------- */
.b4-appprompt { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; }
.b4-appprompt[hidden] { display: none; }
.b4-appprompt__backdrop { position: absolute; inset: 0; background: rgba(30, 23, 20, 0.45); backdrop-filter: blur(3px); }
.b4-appprompt__panel {
  position: relative; width: min(440px, 100%); margin: 0; padding: 26px 22px 20px; border-radius: 26px 26px 0 0;
  background: var(--b4-cream); text-align: center; box-shadow: var(--b4-s2); animation: b4-up 0.45s var(--b4-ease) both;
}
.b4-appprompt__mascot { display: block; width: 92px; height: auto; margin: -64px auto 6px; filter: drop-shadow(0 10px 14px rgba(30, 23, 20, 0.25)); }
.b4-appprompt__txt { margin: 0.4rem auto 0.2rem; max-width: 32ch; color: var(--b4-ink-2); font-size: 0.95rem; }
.b4-appprompt .b4-linkbtn { margin-top: 0.9rem; }
@keyframes b4-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .b4-appprompt { align-items: center; }
  .b4-appprompt__panel { border-radius: 26px; }
}
