/* ==========================================================================
   Mise en page propre au site de demonstration "pizzeria".
   Charge apres demo-base.css par toutes les pages de ce site : c'est ici
   que vit son architecture (et non dans un <style> recopie page par page).
   ========================================================================== */

/* ---- Signature Bella Vita : trattoria familiale, formes tracees a la main ---- */
.btn { border-radius: 999px; }
.btn-primary { border: 2px solid var(--text); box-shadow: none; transition: transform 0.25s ease, background 0.2s ease; }
.btn-primary:hover { transform: rotate(-1.5deg) scale(1.04); background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-outline { border-width: 2px; }
.btn-outline:hover { transform: rotate(1.5deg); }
.card { border-radius: 26px 10px 26px 10px; border-style: dashed; border-width: 2px; transition: transform 0.25s ease, border-color 0.2s ease; }
.card::before { display: none; }
.card:hover { transform: rotate(-0.6deg) translateY(-2px); border-color: var(--accent); border-style: solid; }
.icon-tile { border-radius: 50%; border: 2px dashed var(--accent); background: transparent; font-size: 22px; }
.menu-card { border-radius: 26px 10px 26px 10px; transition: transform 0.25s ease; }
.menu-card:hover { transform: rotate(0.6deg) translateY(-2px); }
.hero-visual.square { border-radius: 45% 12% 45% 12%; }
/* =======================================================================
   Architecture propre à Bella Vita : une carte de restaurant imprimée.
   Pas de grille de cartes, pas d'intitulés de section répétés — la page
   est bâtie comme un menu papier que l'on parcourt.
   ======================================================================= */

/* -- Couverture : la photo occupe l'écran, le nom est posé dessus -- */
.devanture { position: relative; min-height: min(78vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.devanture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.devanture-voile { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,15,8,0.92) 0%, rgba(30,15,8,0.55) 45%, rgba(30,15,8,0.25) 100%); }
.devanture-texte { position: relative; padding-bottom: 54px; padding-top: 90px; max-width: 780px; }
.enseigne-sur {
  font-family: var(--font-display); font-style: italic; font-size: 17px;
  color: #f3d9a8; letter-spacing: 0.02em; margin-bottom: 14px;
}
.devanture h1 { color: #fffaf3; font-size: clamp(32px, 5.2vw, 56px); text-wrap: balance; }
.devanture-lead { color: rgba(255,250,243,0.88); font-size: 17.5px; margin-top: 18px; max-width: 560px; }

/* -- Plaque d'informations pratiques -- */
.bandeau-pratique { background: var(--text); color: #fdf1de; font-size: 14.5px; }
.bandeau-pratique .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; text-align: center; }
.bandeau-pratique .sep { opacity: 0.45; }
.bandeau-pratique a { text-decoration: underline; text-underline-offset: 3px; }

/* -- La carte, sur son feuillet -- */
.carte { padding: 72px 0; background: var(--bg-alt); }
.carte-papier {
  background: #fffdf8; border: 1px solid var(--border);
  border-radius: 2px; padding: 52px clamp(24px, 5vw, 64px) 40px;
  max-width: 900px; box-shadow: 0 24px 60px -40px rgba(60,30,10,0.4);
  position: relative;
}
/* double filet, comme l'encadrement d'un menu imprimé */
.carte-papier::before {
  content: ''; position: absolute; inset: 12px; border: 1px solid var(--border);
  border-radius: 2px; pointer-events: none;
}
.carte-entete { text-align: center; margin-bottom: 40px; position: relative; }
.carte-entete h2 { font-size: clamp(30px, 4.4vw, 42px); font-style: italic; }
.carte-entete p { color: var(--text-muted); font-size: 15px; margin-top: 12px; line-height: 1.65; }
.carte-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 52px; position: relative; }
.carte-groupe-titre {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; font-style: normal;
  color: var(--accent-texte, var(--accent)); text-align: center; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.carte-groupe-titre--suite { margin-top: 34px; }
.carte-liste { display: flex; flex-direction: column; gap: 20px; }
/* la ligne de menu : nom … filet … prix, puis la description dessous */
.carte-ligne { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.carte-nom { font-family: var(--font-display); font-size: 18px; font-style: italic; }
.carte-filet { border-bottom: 1px dotted color-mix(in srgb, var(--text) 40%, transparent); transform: translateY(-4px); }
.carte-prix { font-family: var(--font-display); font-size: 17px; color: var(--accent-texte, var(--accent)); }
.carte-detail { grid-column: 1 / -1; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.carte-pied { text-align: center; margin-top: 38px; font-size: 13px; color: var(--text-muted); font-style: italic; }

/* -- Vitrine défilante -- */
.bande-photos { background: var(--bg); padding: 26px 0; }
/* La bande défile horizontalement : elle prend le focus pour qu'on puisse la
   parcourir aux flèches du clavier, et le montre quand c'est le cas. */
.bande-photos ul { display: flex; gap: 14px; overflow-x: auto; padding: 0 24px; scroll-snap-type: x mandatory; }
.bande-photos ul:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bande-photos li { flex: 0 0 auto; scroll-snap-align: center; }
.bande-photos img { width: clamp(190px, 26vw, 270px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 45% 12% 45% 12%; }

/* -- Le mot de la maison : un seul bloc, centré, en grand -- */
.mot-maison { padding: 84px 0; background: var(--bg); text-align: center; }
.mot-signe { font-family: var(--font-display); font-style: italic; color: var(--eyebrow-color); font-size: 16.5px; margin-bottom: 18px; }
.mot-texte {
  font-family: var(--font-display); font-size: clamp(20px, 2.7vw, 27px);
  line-height: 1.55; max-width: 760px; margin: 0 auto; font-style: italic;
}
.mot-auteur { margin-top: 24px; font-size: 14.5px; color: var(--text-muted); }

/* -- Comptoir de réservation -- */
.comptoir { padding: 76px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.comptoir-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.comptoir-infos h2 { font-size: clamp(26px, 3.4vw, 34px); font-style: italic; }
.comptoir-infos > p { color: var(--text-muted); margin-top: 12px; }
.tel-geant {
  display: inline-block; margin: 22px 0 26px;
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px);
  color: var(--accent-texte, var(--accent)); border-bottom: 2px solid var(--accent);
}
.horaires-ligne { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.horaires-ligne > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.horaires-ligne dt { color: var(--text-muted); }
.comptoir-adresse { margin-top: 18px; font-size: 14.5px; color: var(--text-muted); }
.comptoir-form-intro { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; }

@media (max-width: 820px) {
  .carte-colonnes { grid-template-columns: 1fr; gap: 34px; }
  .comptoir-inner { grid-template-columns: 1fr; gap: 42px; }
  .carte-papier { padding: 38px 22px 30px; }
  .carte-papier::before { inset: 8px; }
  .devanture { min-height: 0; }
  .devanture-texte { padding-top: 64px; padding-bottom: 38px; }
}

/* ---- Scroll : entree chaleureuse, legerement de travers ---- */
.reveal { transform: translateY(22px) rotate(-1.2deg); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1); }
.reveal.in-view { transform: none; }
.reveal-stagger > * { transform: translateY(18px) rotate(-1deg); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.34,1.56,.64,1); }
.reveal-stagger.in-view > * { transform: none; }
