/* Landing publique (_default/index, futur module accueil) : hero vidéo, vitrine signatures, carte, FAQ.
   Chargé en complément de style.css — aucune règle dupliquée. */

/* Sentinelle en bas du hero — déclenche .is-scrolled sur la nav */
.hero-sentinel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

/* ─── Hero carousel vidéo ─── */
.hc-slides {
  position: absolute;
  inset: 0;
}
.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  will-change: opacity;
}
.hc-slide--active {
  opacity: 1;
}
.hc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Poster statique slide 0 — LCP rapide ; masqué quand la vidéo joue. */
.hc-poster {
  z-index: 0;
  transition: opacity 0.6s ease;
}
.hc-poster--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Vignette dégradé bas uniquement — règle §8.2/8.3 SKILL Hugo */
.hc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 6, 2, 0.72) 0%,
    rgba(10, 6, 2, 0.18) 28%,
    rgba(10, 6, 2, 0) 50%
  );
}

/* Contenu hero (texte / CTA) — aligné bas-gauche, discret (référence pack-v2 validée). */
.hc-contents {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hc-content {
  position: absolute;
  bottom: 5.5rem;
  left: 5%;
  right: 5%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.8s ease;
  text-align: left;
  pointer-events: none;
}
.hc-content--active {
  opacity: 1;
  pointer-events: auto;
}
.hc-content[aria-hidden="true"] {
  pointer-events: none;
}

.hc-content h1,
.hc-content h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hc-content p {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.6;
}

.hc-dots {
  position: absolute;
  bottom: 2.2rem;
  left: 5%;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .hc-content {
    bottom: 6.5rem;
  }
}
.hc-dot {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.hc-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 80, 0.6);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.hc-dot--active::before,
.hc-dot:hover::before {
  background: var(--color-copper, #d4a050);
  border-color: var(--color-copper, #d4a050);
}

@media (prefers-reduced-motion: reduce) {
  .hc-slide,
  .hc-content {
    transition: none;
  }
}

.hero-section {
  height: 100vh;
  min-height: 620px;
}

/* Carte de localisation (section accès) — plan Google chargé au clic. */
.map-iframe {
  height: 360px;
  border: 0;
  width: 100%;
  display: block;
}
.map-preview {
  min-height: 360px;
  cursor: pointer;
  background-color: var(--color-bg-elevated, #231b10);
  transition: background-color 0.2s ease;
}
.map-pin {
  width: 3rem;
  height: 3rem;
}
.map-preview:hover {
  background-color: rgba(212, 160, 80, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .map-preview {
    transition: none;
  }
}

/* ─── Pizzas signatures — vitrine éditoriale (direction A) ─── */
.sig-section__head {
  margin-bottom: 2.5rem;
  text-align: center;
}
.sig-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-copper, #d4a050);
}
.sig-eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-copper, #d4a050);
}

.sig-card {
  position: relative;
  border: 1px solid rgba(243, 231, 212, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-bg-elevated, #231b10);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sig-card:hover {
  border-color: rgba(212, 160, 80, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.sig-card--featured {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}
.sig-card--featured .sig-card__media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.sig-card--featured .sig-card__body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .sig-card--featured {
    grid-template-columns: 1.15fr 1fr;
    min-height: 360px;
  }
  .sig-card--featured .sig-card__media img {
    height: 100%;
    min-height: 360px;
  }
  .sig-card--featured .sig-card__body {
    padding: 2rem 2.25rem;
    justify-content: center;
  }
}

.sig-grid-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .sig-grid-secondary { grid-template-columns: repeat(2, 1fr); }
}

.sig-card--compact {
  display: grid;
  grid-template-columns: 1fr;
}
.sig-card--compact .sig-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.sig-card--compact .sig-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .sig-card--compact {
    grid-template-columns: 44% 1fr;
  }
  .sig-card--compact .sig-card__media img {
    height: 100%;
    min-height: 240px;
  }
  .sig-card--compact.sig-card--reverse {
    grid-template-columns: 1fr 44%;
  }
  .sig-card--reverse .sig-card__media { order: 2; }
  .sig-card--reverse .sig-card__body { order: 1; }
}

.sig-card__num {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(212, 160, 80, 0.58);
  letter-spacing: -0.02em;
}
.sig-card__num--compact {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.sig-card__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  /* Habillage par defaut : un type inconnu reste lisible, jamais de badge transparent. */
  color: var(--color-text, #f3e7d4);
  background: rgba(243, 231, 212, 0.08);
  border: 1px solid rgba(243, 231, 212, 0.18);
}
.sig-badge__icon { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.sig-badge--pop {
  color: var(--color-copper, #d4a050);
  background: rgba(212, 160, 80, 0.12);
  border: 1px solid rgba(212, 160, 80, 0.35);
}
.sig-badge--veg {
  color: #8fbd72;
  background: rgba(79, 122, 58, 0.15);
  border: 1px solid rgba(143, 189, 114, 0.45);
}
.sig-badge--sg {
  color: #e9c46a;
  background: rgba(230, 164, 23, 0.14);
  border: 1px solid rgba(233, 196, 106, 0.45);
}
/* États de disponibilité — jamais portés par la couleur seule (picto + texte). */
.sig-badge--warn {
  color: #e9c46a;
  background: rgba(230, 164, 23, 0.12);
  border: 1px solid rgba(233, 196, 106, 0.4);
}
.sig-badge--danger {
  color: #f0a094;
  background: rgba(192, 57, 43, 0.18);
  border: 1px solid rgba(240, 160, 148, 0.45);
}

.sig-card__name {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text, #f3e7d4);
  line-height: 1.2;
  margin: 0;
}
.sig-card__name--featured {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.sig-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sig-ingredient {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 80, 0.3);
  color: var(--color-copper, #d4a050);
  background: rgba(212, 160, 80, 0.07);
}

.sig-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(243, 231, 212, 0.1);
}
.sig-card__foot--compact {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .sig-card__foot--compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sig-card__price {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-copper, #d4a050);
}
.sig-card__stars {
  color: var(--color-copper, #d4a050);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.sig-card__votes {
  color: rgba(243, 231, 212, 0.55);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.sig-link {
  color: var(--color-copper, #d4a050);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.sig-link:hover {
  gap: 0.5rem;
  color: var(--color-text, #f3e7d4);
}

@media (prefers-reduced-motion: reduce) {
  .sig-card,
  .sig-link { transition: none; }
}

/* ─── Bandeau de page interne (pizzeria, carte, pizzas, galerie) ───
   La barre de navigation est fixe : le bandeau démarre en haut de page et
   le texte est ancré en bas, hors de la zone couverte par la barre. */
.page-hero {
  position: relative;
  height: 46vh;
  min-height: 340px;
  max-height: 520px;
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dégradé localisé sous le texte uniquement — jamais de voile plein écran. */
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 6, 2, 0.84) 0%,
    rgba(10, 6, 2, 0.38) 32%,
    rgba(10, 6, 2, 0) 62%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.25rem;
}

/* Filet cuivré de raccord entre le bandeau et le contenu. */
.page-hero__rule {
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(212, 160, 80, 0) 0%,
    var(--color-copper, #d4a050) 22%,
    var(--color-copper, #d4a050) 78%,
    rgba(212, 160, 80, 0) 100%
  );
}

/* ─── Pastille de filtre (carte, pizzas, galerie) ───
   L'état actif est porté par le fond, le gras ET un pictogramme dans le lien :
   jamais par la couleur seule. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-button, 0.5rem);
  border: 1px solid var(--color-border, #3a2d1c);
  background: transparent;
  color: var(--color-text-muted, #c9b89c);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover {
  color: var(--color-copper, #d4a050);
  border-color: var(--color-copper, #d4a050);
}
.chip--actif,
.chip--actif:hover {
  background: var(--color-copper, #d4a050);
  border-color: var(--color-copper, #d4a050);
  color: var(--color-bg, #1a1208);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .chip {
    transition: none;
  }
}

/* ─── Ligne de carte : nom à gauche, prix à droite, filet de conduite ─── */
.menu-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(243, 231, 212, 0.08);
}
.menu-row__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.menu-row__lead {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted rgba(212, 160, 80, 0.4);
  transform: translateY(-0.25rem);
}
.menu-row__price {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-copper, #d4a050);
  white-space: nowrap;
}

/* ─── Galerie : rythme éditorial, première vignette large ─── */
.gal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-item__frame {
  height: 240px;
}
@media (min-width: 640px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-item--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gal-item--wide .gal-item__frame {
    height: 496px;
  }
}

/* FAQ : accordéon natif <details>/<summary> (accessible, sans JS). */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .faq-chevron { transition: none; }
}

/* ─── Formulaires publics (Lot 38 — aligné pack-v2) ─── */
.form-public {
  max-width: 40rem;
}
.form-public__panel {
  border: 1px solid rgba(212, 160, 80, 0.18);
  border-radius: 0.75rem;
  background: #231b10;
  padding: 1.5rem;
}
.form-public__alert {
  border: 1px solid rgba(192, 57, 43, 0.45);
  border-radius: 0.5rem;
  background: rgba(192, 57, 43, 0.14);
  color: #f3e7d4;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-public__section {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: #d4a050;
  margin: 0 0 0.85rem;
}
.form-public label {
  display: block;
  font-weight: 600;
  color: #f3e7d4;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form-public label.form-public__label--inline {
  display: inline;
  font-weight: 400;
  color: #b8a592;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.form-public .form-public__req {
  color: #e05c2a;
}
.form-public input[type="text"],
.form-public input[type="email"],
.form-public input[type="tel"],
.form-public input[type="date"],
.form-public input[type="number"],
.form-public select,
.form-public textarea {
  width: 100%;
  border: 1px solid rgba(212, 160, 80, 0.28);
  border-radius: 0.5rem;
  background: #1a1208;
  color: #f3e7d4;
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.form-public input:focus,
.form-public select:focus,
.form-public textarea:focus {
  outline: 2px solid #d4a050;
  outline-offset: 2px;
}
.form-public .form-public__hint {
  display: block;
  font-size: 0.83rem;
  color: #b8a592;
  margin-top: 0.3rem;
}
.form-public input[type="submit"] {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 0.5rem;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  transition: background 0.2s ease;
}
.form-public input[type="submit"]:hover:not(:disabled) {
  background: #9b2c20;
}
.form-public input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form-public input[type="submit"].form-public__submit--copper {
  background: #d4a050;
  color: #1a1208;
}
.form-public input[type="submit"].form-public__submit--copper:hover:not(:disabled) {
  background: #b8893f;
}
.form-public input[type="submit"].form-public__submit--compact {
  width: auto;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
}
.form-public input[type="submit"].form-public__submit--link {
  width: auto;
  background: transparent;
  color: #d4a050;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-decoration: underline;
}
.form-public input[type="submit"].form-public__submit--link:hover:not(:disabled) {
  background: transparent;
  color: #f3e7d4;
  text-decoration: none;
}
.form-public input[type="submit"].form-public__submit--muted {
  width: auto;
  background: transparent;
  color: #b8a592;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-decoration: underline;
}
.form-public input[type="submit"].form-public__submit--muted:hover:not(:disabled) {
  background: transparent;
  color: #d4a050;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .form-public input[type="submit"] { transition: none; }
}

.plan-site-section {
  border-top: 1px solid rgba(212, 160, 80, 0.18);
  padding-top: 1.5rem;
}
.plan-site-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-nav a,
.legal-nav [aria-current="page"] {
  display: block;
  padding: 0.35rem 0;
}
