/* =========================================================
   GINA PIZZA LOVERS — Accueil
   Conçu autour de la photographie : le plat d'abord, le texte ensuite.
   ========================================================= */

/* ---------------- Bandeau d'ouverture ---------------- */
.opener {
  position: relative;
  min-height: min(94svh, 940px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.opener__photo {
  position: absolute; inset: 0; z-index: -2;
  background: var(--c-noir) center/cover no-repeat;
}
.opener__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: slowzoom 18s var(--e-inout) infinite alternate;
}
@keyframes slowzoom { to { transform: scale(1.14) translateY(-1%); } }

/* Dégradé du bas vers le haut : le texte reste lisible sur n'importe quelle photo. */
.opener__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8,8,8,.94) 0%, rgba(8,8,8,.72) 32%,
                    rgba(8,8,8,.28) 62%, rgba(8,8,8,.42) 100%),
    radial-gradient(85% 60% at 18% 100%, rgba(210, 37,171,.38), transparent 70%),
    radial-gradient(70% 50% at 88%  8%, rgba(111, 19,130,.42), transparent 72%);
}

.opener__inner { padding-block: var(--s-9) var(--s-9); width: 100%; }
.opener__tag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  font-family: var(--font-display); font-size: var(--t-xs);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.opener__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-croute);
  box-shadow: 0 0 0 0 rgba(227,164,75,.75); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(227,164,75,0); } }

.opener h1 {
  font-size: clamp(2.3rem, 1.1rem + 4.2vw, 4.9rem);
  line-height: .96; letter-spacing: -.04em; text-transform: uppercase;
  margin-block: var(--s-5) var(--s-4);
  text-shadow: 0 3px 40px rgba(0,0,0,.5);
}
.opener h1 em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, #F6D9A0, var(--c-croute) 45%, var(--c-tomate-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.opener__lede {
  font-size: var(--t-lg); max-width: 44ch;
  color: rgba(255,255,255,.82);
}
.opener__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.btn--glass {
  background: rgba(255,255,255,.13); color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.btn--glass:hover { background: rgba(255,255,255,.22); }

.opener__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.18);
}
.opener__facts b {
  display: block; font-family: var(--font-display);
  font-size: var(--t-xl); letter-spacing: -.02em;
}
.opener__facts span {
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.opener__scroll {
  position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
  display: grid; place-items: center; gap: .4rem;
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.opener__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(rgba(255,255,255,.6), transparent);
  animation: drop 1.8s var(--e-inout) infinite;
}
@keyframes drop { 50% { transform: translateY(7px); opacity: .3; } }
@media (max-width: 720px) { .opener__scroll { display: none; } }

/* ---------------- Grille de plats en vedette ---------------- */
.stars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 1080px) { .stars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .stars { grid-template-columns: 1fr; } }

/* La première vedette occupe deux colonnes et deux rangées. */
.stars > :first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 520px) { .stars > :first-child { grid-column: span 1; grid-row: span 1; } }

.star {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: 260px;
  display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
  background: var(--c-noir);
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out);
}
.stars > :first-child.star { min-height: 540px; }
@media (max-width: 520px) { .stars > :first-child.star { min-height: 300px; } }
.star:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }

.star img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 900ms var(--e-out);
}
.star:hover img { transform: scale(1.07); }
.star__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,6,6,.95) 4%, rgba(6,6,6,.62) 42%, rgba(6,6,6,.05) 82%);
}
.star__body { position: relative; z-index: 2; padding: var(--s-5); width: 100%; }
.star__body h3 { font-size: var(--t-lg); color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.stars > :first-child .star__body h3 { font-size: var(--t-2xl); }
.star__body p { font-size: var(--t-sm); color: rgba(255,255,255,.82); margin-top: .35rem; }
.star__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-top: var(--s-4);
}
.star__price { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; }
.star__badge {
  position: absolute; z-index: 2; top: var(--s-4); left: var(--s-4);
  padding: .3rem .7rem; border-radius: var(--r-full);
  background: var(--grad-gold); color: var(--c-ink);
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------------- Bloc « notre maison » ---------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: var(--s-6); } }
.story__media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--grad-gold);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__stamp {
  position: absolute; right: var(--s-5); bottom: var(--s-5);
  width: clamp(96px, 13vw, 132px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--grad-gold); color: var(--c-ink);
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  line-height: 1.1; box-shadow: var(--sh-3);
}
.story__points { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.story__point { display: flex; gap: var(--s-4); align-items: flex-start; }
.story__point svg { width: 22px; height: 22px; flex: none; color: var(--c-red); margin-top: 3px; }
.story__point b { display: block; font-family: var(--font-display); font-size: var(--t-base); }
.story__point span { font-size: var(--t-sm); color: var(--text-mute); }

/* ---------------- Bandeau de réservation ---------------- */
.invite {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 1rem + 6vw, 6rem) var(--gutter);
  text-align: center; color: #fff;
}
.invite img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.invite::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(142,33,23,.90), rgba(10,10,10,.86));
}
.invite h2 { font-size: var(--t-3xl); text-transform: uppercase; letter-spacing: -.03em; }
.invite p { color: rgba(255,255,255,.78); max-width: 52ch; margin: var(--s-4) auto 0; }
.invite__cta { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }

/* ---------------- Bandeau des catégories ---------------- */
.rail { display: flex; gap: var(--s-3); overflow-x: auto; padding-bottom: var(--s-3); scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; }
.rail__item {
  scroll-snap-align: start; flex: 0 0 auto;
  position: relative; width: 200px; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--grad-ink); color: #fff;
  transition: transform var(--d-mid) var(--e-out);
}
.rail__item:hover { transform: translateY(-5px); }
.rail__item img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.rail__item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,6,6,.97) 14%, rgba(6,6,6,.6) 46%, rgba(6,6,6,.12) 100%);
}
.rail__label {
  /* z-index obligatoire : le dégradé ::after est généré après ce bloc
     dans l'ordre de rendu et le masquerait sans cela. */
  position: relative; z-index: 2;
  padding: var(--s-4); width: 100%;
  font-family: var(--font-display); font-size: var(--t-sm);
  font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .06em;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.rail__label span {
  display: block; margin-top: .25rem;
  font-size: var(--t-xs); color: var(--c-gold);
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0; text-transform: none; text-shadow: none;
}
@media (max-width: 520px) { .rail__item { width: 150px; } }

/* ---------------- Bande défilante ---------------- */
.strip { background: var(--c-ink); color: #F5F1E8; }
.strip .marquee__group { font-size: var(--t-xs); letter-spacing: .22em; }
