/* ==========================================================================
   Paul Pizza — styles
   Palette tirée des carreaux marine/crème, du bois des banquettes et de la sauce.
   ========================================================================== */

/* Polices hébergées avec le site (licence SIL OFL) : plus rapide, pas de saut de texte,
   et aucune requête vers Google (Loi 25). Fichiers variables, jeu latin (français complet). */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/big-shoulders-display.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs */
  --navy: #1F3150;
  --navy-deep: #172640;
  --board: #141F35;
  --ink: #16223A;
  --cream: #F1ECE1;
  --cream-2: #E7E0D1;
  --tomato: #B8322A;
  --tomato-dark: #9A2720;
  --muted: #4B5670;
  --muted-light: #C3C8D4;
  --line: rgba(31, 49, 80, 0.16);
  --open: #2F7A4F;

  /* Typo */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(3.1rem, 11vw, 7.75rem);
  --fs-h2: clamp(2.4rem, 6vw, 4.25rem);
  --fs-h3: clamp(1.45rem, 2.6vw, 1.85rem);

  /* Espacements */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --maxw: 1240px;
  --header-h: 72px;

  /* Formes */
  --radius: 4px;
  --radius-lg: 8px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 260ms;
  --t-slow: 700ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }


:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Sur fond foncé, contour crème */
.hero :focus-visible,
.menu :focus-visible,
.site-footer :focus-visible,
.callbar :focus-visible,
.site-header:not(.is-scrolled) :focus-visible,
.site-header.is-open :focus-visible { outline-color: var(--cream); }

section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: translateY(76px); }

/* Repère visible des infos à confirmer (démo) */
.tbc {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- Boutons : lettres du tableau, ombre décalée façon enseigne ---------- */
.btn {
  --btn-shadow: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 3px 26px 0;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-shadow); transition-duration: 80ms; }
.btn--tomato { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn--tomato:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); }
.btn--ghost { --btn-shadow: rgba(241, 236, 225, 0.28); background: transparent; border-color: var(--cream); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
/* Sur fond marine, l'ombre du bouton tomate devient crème, comme le logo */
.hero .btn--tomato, .menu .btn--tomato, .nav .btn--tomato { --btn-shadow: var(--cream); }

/* ---------- Titres de section ---------- */
.section { padding-block: var(--section-y); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 0.96;
  letter-spacing: 0.005em;
  color: var(--navy);
  text-wrap: balance;
}
.section-title--light { color: var(--cream); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--cream);
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height var(--t-med) var(--ease);
}
/* Sans JS, l'en-tête reste sur le hero au lieu de flotter sur le contenu */
html:not(.js) .site-header { position: absolute; }
.site-header.is-scrolled {
  background: rgba(241, 236, 225, 0.97);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 60px; }

.brand {
  position: relative;
  display: block;
  width: 100px;
  height: 45px;
  flex-shrink: 0;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--t-med) var(--ease);
}
.brand__logo--marine { opacity: 0; }
.site-header.is-scrolled .brand__logo--marine { opacity: 1; }
.site-header.is-scrolled .brand__logo--creme { opacity: 0; }
/* Sur ordinateur, au-dessus du hero, le grand logo suffit ; sur mobile le logo reste en haut à gauche */
@media (min-width: 900px) {
  .js .site-header:not(.is-scrolled):not(.is-open) .brand { opacity: 0; visibility: hidden; }
}

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 8px;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.site-header:not(.is-scrolled) .nav__link::after { background: var(--cream); }
.nav__mobile-extra { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  padding-top: 2px;
  border: 2px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.header-phone:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.site-header.is-scrolled .header-phone:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .header-phone { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    margin-right: -8px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: inherit;
    font: 600 1rem/1 var(--font-body);
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--t-med) var(--ease), opacity var(--t-fast) linear;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { transform: translateY(-7px); }
  .nav-toggle__bars::after { transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

  /* Sans JS : pas de menu mobile, la page se lit en défilant */
  html:not(.js) .nav, html:not(.js) .nav-toggle { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--navy);
    color: var(--cream);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
  }
  .site-header.is-open { color: var(--cream); background: transparent; box-shadow: none; }
  .site-header.is-open .brand { position: relative; z-index: 2; }
  .site-header.is-open .brand__logo--creme { opacity: 1; }
  .site-header.is-open .brand__logo--marine { opacity: 0; }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: 6px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    line-height: 1.05;
  }
  .nav__link::after { left: 0; right: auto; width: 48px; bottom: 6px; background: var(--tomato) !important; }
  .nav__mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nav__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 2px solid var(--cream);
    border-radius: 2px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-decoration: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero__media picture { display: block; height: 100%; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 38, 64, 0.6) 0%, rgba(23, 38, 64, 0) 24%),
    linear-gradient(0deg, rgba(20, 31, 53, 0.95) 0%, rgba(20, 31, 53, 0.82) 40%, rgba(20, 31, 53, 0.45) 72%, rgba(20, 31, 53, 0.25) 100%);
}

.hero__content {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(104px + env(safe-area-inset-bottom));
}
.hero__logo {
  width: clamp(132px, 20vw, 220px);
  margin-bottom: clamp(18px, 3vw, 28px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
/* Marge haute pour ne pas couper les accents des capitales (À) */
.hero__title .line { display: block; overflow: hidden; padding: 0.1em 0 0.04em; margin-top: -0.1em; }
.hero__title .line > span { display: inline-block; }
.hero__lede {
  max-width: 50ch;
  margin-top: clamp(16px, 2.4vw, 24px);
  color: rgba(241, 236, 225, 0.92);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.hero__hours {
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(241, 236, 225, 0.88);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
}
.hero__call {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: rgba(241, 236, 225, 0.88);
}
.hero__call a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 600;
  color: var(--cream);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hero__call a:hover { text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }

@media (max-width: 899px) {
  .hero__logo { display: none; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 auto; padding: 3px 14px 0; font-size: 1.0625rem; }
}
@media (max-width: 899px) and (max-height: 620px) and (orientation: portrait) {
  .hero__title { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .hero__lede { margin-top: 12px; font-size: 1rem; }
}
@media (min-width: 900px) {
  .hero__content { padding-bottom: clamp(56px, 8vh, 96px); }
  /* Ordinateur : le logo respire, bien détaché du titre */
  .hero__logo { margin-bottom: clamp(40px, 7vh, 80px); }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(23, 38, 64, 0.55) 0%, rgba(23, 38, 64, 0) 22%),
      linear-gradient(90deg, rgba(20, 31, 53, 0.92) 0%, rgba(20, 31, 53, 0.74) 40%, rgba(20, 31, 53, 0.2) 75%, rgba(20, 31, 53, 0.1) 100%),
      linear-gradient(0deg, rgba(20, 31, 53, 0.7) 0%, rgba(20, 31, 53, 0) 45%);
  }
  .hero__img { object-position: 50% 45%; }
}
@media (max-width: 899px) and (orientation: landscape) {
  .hero__content { padding-bottom: 88px; }
  .hero__logo { width: 110px; margin-bottom: 12px; }
  .hero__title { font-size: clamp(2.2rem, 6.5vw, 3.5rem); }
  .hero__media::after { background: linear-gradient(90deg, rgba(20, 31, 53, 0.92) 0%, rgba(20, 31, 53, 0.55) 55%, rgba(20, 31, 53, 0.2) 100%); }
}

/* ---------- Ouverture : damier + logo, puis ouverture du centre vers les bords ---------- */
/* Fixe sur l'écran, au-dessus de tout (en-tête, barre d'appel, contenu), où que l'on recharge la page */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}
.checker {
  position: absolute;
  inset: 0;
  display: grid;
}
.checker i { display: block; background: var(--navy); backface-visibility: hidden; }
.checker i.c { background: var(--cream); }
.intro__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: clamp(18px, 3vw, 28px) clamp(26px, 4vw, 44px);
  background: var(--navy);
  border: 2px solid var(--cream);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--tomato);
  transform: translate(-50%, -50%);
}
.intro__badge img { width: clamp(150px, 22vw, 240px); }
html:not(.motion) .intro { display: none; }

/* ---------- Séquence d'entrée (seulement si mouvement permis) ---------- */
/* Perspective propre à chaque carreau : il pivote sur place, sans se déformer vers les bords */
@keyframes tile-open-y {
  0% { transform: perspective(500px) rotateY(0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: perspective(500px) rotateY(90deg) scale(0.9); opacity: 0; }
}
@keyframes tile-open-x {
  0% { transform: perspective(500px) rotateX(0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: perspective(500px) rotateX(90deg) scale(0.9); opacity: 0; }
}
@keyframes badge-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); box-shadow: 0 0 0 var(--tomato); }
  to { opacity: 1; transform: translate(-50%, -50%); box-shadow: 8px 8px 0 var(--tomato); }
}
@keyframes badge-out {
  to { opacity: 0; transform: translate(-50%, -56%) scale(1.04); }
}
@keyframes hero-zoom {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.motion .checker i { animation: tile-open-y 760ms var(--ease-in-out) var(--d, 900ms) both; }
.motion .checker i.c { animation-name: tile-open-x; }
.motion .intro__badge { animation: badge-in 700ms var(--ease) 120ms both, badge-out 520ms var(--ease-in-out) 1000ms forwards; }
.motion .hero__img { animation: hero-zoom 3400ms var(--ease) 600ms both; }
.motion .hero__logo { animation: rise 800ms var(--ease) 1500ms both; }
.motion .hero__title .line > span { animation: line-up 950ms var(--ease) both; }
.motion .hero__title .line:nth-child(1) > span { animation-delay: 1600ms; }
.motion .hero__title .line:nth-child(2) > span { animation-delay: 1720ms; }
.motion .hero__title .line:nth-child(3) > span { animation-delay: 1840ms; }
.motion .hero__lede { animation: rise 800ms var(--ease) 2150ms both; }
.motion .hero__hours { animation: rise 800ms var(--ease) 2250ms both; }
.motion .hero__actions { animation: rise 800ms var(--ease) 2350ms both; }
.motion .hero__call { animation: fade 700ms var(--ease) 2500ms both; }
.motion .site-header { animation: fade 700ms var(--ease) 2300ms both; }
.motion .callbar { animation: rise 700ms var(--ease) 2500ms both; }

/* ==========================================================================
   La pizza
   ========================================================================== */
.pizza__grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.pizza__text .section-title { max-width: 15ch; }
.pizza__lede {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}
.facts {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
  padding-bottom: 2px;
}
/* Les filets sont des pseudo-éléments pour pouvoir les « tracer » à l'apparition */
.facts::after,
.facts__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: left center;
}
.facts::after { bottom: 0; }
.facts__item::before { top: 0; }
.facts__item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 0 16px;
}

/* Apparition un à un : le filet se trace, puis le titre et le texte glissent */
.reveal-ready .facts[data-stagger] > * { opacity: 1; transform: none; transition: none; }
.reveal-ready .facts__item::before,
.reveal-ready .facts::after {
  transform: scaleX(0);
  transition: transform 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 260ms);
}
.reveal-ready .facts::after { transition-delay: 1040ms; }
.reveal-ready .facts__item dt,
.reveal-ready .facts__item dd {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: calc(var(--i, 0) * 260ms + 180ms);
}
.reveal-ready .facts__item dd { transition-delay: calc(var(--i, 0) * 260ms + 280ms); }
.reveal-ready .facts.is-in .facts__item::before,
.reveal-ready .facts.is-in::after { transform: none; }
.reveal-ready .facts.is-in .facts__item dt,
.reveal-ready .facts.is-in .facts__item dd { opacity: 1; transform: none; }
.facts__item dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: var(--navy);
}
.facts__item dd { color: var(--muted); }

.pizza__photos {
  position: relative;
  padding: 0 12px 18% 0;
}
/* Cadre d'enseigne : même langage que les boutons (cadre marine, ombre décalée) */
.pizza__photo {
  border: 3px solid var(--navy);
  border-radius: 2px;
}
.pizza__photo--main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 12px 12px 0 var(--tomato);
}
.pizza__photo--dip {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 60%;
  box-shadow: 8px 8px 0 var(--navy);
}
.pizza__label {
  position: absolute;
  top: 22px;
  right: 0;
  padding: 9px 12px 7px;
  background: var(--navy);
  border: 2px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--tomato);
}
@media (min-width: 900px) {
  .pizza__photo--dip { left: -6%; }
}

@media (min-width: 900px) {
  .pizza__grid { grid-template-columns: 5fr 6fr; }
  .facts__item { grid-template-columns: minmax(0, 18ch) 1fr; gap: 24px; align-items: baseline; }
}

/* ==========================================================================
   Menu — tableau à lettres
   ========================================================================== */
.menu {
  position: relative;
  background: var(--navy);
  color: var(--cream);
}
/* Tableau perforé : les trous du tableau à lettres, en fondu depuis deux coins */
.menu::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(241, 236, 225, 0.11) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(125deg, #000 0%, transparent 45%), linear-gradient(305deg, #000 0%, transparent 40%);
  mask-image: linear-gradient(125deg, #000 0%, transparent 45%), linear-gradient(305deg, #000 0%, transparent 40%);
  pointer-events: none;
}
.site-footer::before { top: 28px; }
.menu > .container, .site-footer > * { position: relative; z-index: 1; }
.menu__grid {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: start;
}
.menu__intro p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--muted-light);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}
.menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.board {
  position: relative;
  padding: 26px 18px 22px;
  background-color: var(--board);
  background-image: radial-gradient(circle, rgba(241, 236, 225, 0.075) 1.1px, transparent 1.6px);
  background-size: 11px 11px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(241, 236, 225, 0.06);
}
.board::before,
.board::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2A3A58;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.board::before { left: 10px; }
.board::after { right: 10px; }

.board__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px dotted rgba(241, 236, 225, 0.28);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.board__head--sub { margin-top: 26px; font-size: 1rem; }

.board__extras { display: grid; }
.board__item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 14px 0;
}
.board__item + .board__item { border-top: 1px dotted rgba(241, 236, 225, 0.16); }
.board__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.board__name--sm { font-size: 1.3rem; }
/* Mobile : descriptions en texte courant, plus lisibles */
.board__desc {
  grid-column: 1;
  margin-top: 5px;
  font-size: 0.975rem;
  line-height: 1.45;
  color: var(--muted-light);
}
.board__price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  text-align: right;
  color: var(--cream);
  white-space: nowrap;
}
.board__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dotted rgba(241, 236, 225, 0.28);
  font-size: var(--fs-small);
  color: var(--muted-light);
}

@media (min-width: 640px) {
  .board { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(22px, 3.5vw, 40px); }
  .board::before, .board::after { top: 12px; }
  .board::before { left: 12px; }
  .board::after { right: 12px; }
  .board__head { font-size: 1.25rem; }
  .board__head--sub { font-size: 1.05rem; }
  .board__name { font-size: clamp(1.6rem, 3.2vw, 2rem); }
  .board__name--sm { font-size: clamp(1.3rem, 2.4vw, 1.5rem); }
  .board__price { font-size: clamp(1.6rem, 3.2vw, 2rem); }
  .board__desc {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .board__desc .tbc { letter-spacing: 0; }
  .board__extras:not(.board__extras--single) { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .board__extras:not(.board__extras--single) .board__item + .board__item { border-top: 0; }
}
@media (min-width: 960px) {
  .menu__grid {
    grid-template-columns: 5fr 7fr;
    column-gap: clamp(48px, 6vw, 96px);
  }
  .menu__intro { position: sticky; top: 110px; }
}
@media (hover: hover) and (pointer: fine) {
  .board__item { transition: transform var(--t-med) var(--ease); }
  .board__item:hover { transform: translateX(6px); }
  .board__item:hover .board__price { color: #F4B3A6; }
  .board__price { transition: color var(--t-med) var(--ease); }
}

/* ==========================================================================
   Sur place
   ========================================================================== */
.place { background: var(--cream-2); }

/* Bordure de comptoir : une bande de carreaux en haut des sections crème */
.pizza, .place, .visit { position: relative; }
.pizza::before, .place::before, .visit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: repeating-conic-gradient(var(--navy) 0 25%, var(--cream) 0 50%) 0 0 / 28px 28px;
}
.place__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.place__head p { max-width: 50ch; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery__item--a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery__item--b { aspect-ratio: 3 / 4; }
.gallery__item--d { aspect-ratio: 3 / 4; }
.gallery__item--c { grid-column: 1 / -1; aspect-ratio: 4 / 3; order: 4; }
.gallery__item--e { grid-column: 1 / -1; aspect-ratio: 16 / 10; order: 5; }
.gallery__item--d { order: 3; }

@media (min-width: 900px) {
  .place__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; }
  .gallery {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(5, clamp(80px, 9vw, 128px));
    gap: 14px;
  }
  .gallery__item { aspect-ratio: auto !important; order: 0 !important; }
  .gallery__item--a { grid-column: 1 / 9; grid-row: 1 / 4; }
  .gallery__item--b { grid-column: 9 / 13; grid-row: 1 / 4; }
  .gallery__item--c { grid-column: 1 / 6; grid-row: 4 / 6; }
  .gallery__item--d { grid-column: 6 / 9; grid-row: 4 / 6; }
  .gallery__item--e { grid-column: 9 / 13; grid-row: 4 / 6; }
}

/* ==========================================================================
   Nous visiter
   ========================================================================== */
.visit__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.visit__status {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--navy);
}
.visit__status::before {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tomato);
}
.visit__status.is-open::before { background: var(--open); box-shadow: 0 0 0 4px rgba(47, 122, 79, 0.18); }

/* ---------- Carte sur mesure (fond OpenStreetMap, thème Paul) ---------- */
.visit__map { margin-top: 24px; }
.map {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 0 0 0 2px var(--navy), 0 30px 60px -35px rgba(22, 34, 58, 0.55);
  text-decoration: none;
  color: inherit;
}
.map__base,
.map__names {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.35);
  transform-origin: 50% 50%;
  transition: transform 900ms var(--ease);
}
.map__base { object-fit: cover; }
/* Noms de rues : taille relative à la carte (unités du viewBox) */
.map__names g { font-size: 30px; stroke-width: 7px; }
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(31, 49, 80, 0.14));
  pointer-events: none;
}
.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 52px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 6px 6px rgba(22, 34, 58, 0.35));
}
.map__pin svg { display: block; width: 100%; height: 100%; }
.map__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 24px;
  height: 10px;
  margin: -5px 0 0 -12px;
  border-radius: 50%;
  background: rgba(184, 50, 42, 0.45);
}
.map__label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  padding: 9px 12px 7px;
  background: var(--navy);
  color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--tomato);
  white-space: nowrap;
  transform: translate(-50%, -128px);
}
.map__label img { display: block; width: 84px; height: auto; margin-inline: auto; }
.map__label span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.map__cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 18px 0;
  background: var(--tomato);
  border: 2px solid var(--tomato);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-med) var(--ease);
}
.map:hover .map__base, .map:hover .map__names { transform: scale(1.4); }
.map:hover .map__cta { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); background: var(--tomato-dark); }
.map:active .map__cta { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }

/* L'épingle tombe, puis une onde marque l'emplacement (quelques fois seulement) */
@keyframes pin-drop {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 40px)); }
  60% { opacity: 1; }
  to { transform: translate(-50%, -100%); }
}
@keyframes pin-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
.reveal-ready .visit__map.is-in .map__pin { animation: pin-drop 900ms var(--ease) 350ms backwards; }
.reveal-ready .visit__map.is-in .map__label { animation: rise 700ms var(--ease) 900ms backwards; }
.reveal-ready .visit__map.is-in .map__pulse { animation: pin-pulse 2200ms ease-out 1200ms 4 both; }

.visit__address { display: grid; gap: 2px; margin-top: 12px; }
.visit__address span { font-weight: 600; color: var(--navy); }
/* Petits téléphones : carte carrée pour que l'étiquette au-dessus de l'épingle ait la place */
@media (max-width: 480px) {
  .map { aspect-ratio: 1 / 1; }
}

/* Crédit obligatoire (licence ODbL), discret dans le coin de la carte */
.map__credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(241, 236, 225, 0.85);
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.hours {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}
.hours th, .hours td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-closed { color: var(--muted); }
.hours tr.is-today { background: var(--navy); color: var(--cream); }
.hours tr.is-today th::after {
  content: "Aujourd’hui";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.75rem;
  vertical-align: 2px;
}

.visit__contact {
  display: grid;
  gap: 2px;
  margin-top: 24px;
}
.visit__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 4px;
  transition: color var(--t-fast) var(--ease);
}
.visit__contact a:hover { color: var(--tomato-dark); }

/* Instagram : pastille aux couleurs du site (cadre marine, ombre tomate) + identifiant */
.visit__contact .insta-link {
  gap: 14px;
  margin-top: 6px;
  text-decoration: none;
}
.insta-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--tomato);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-med) var(--ease);
}
.insta-link__handle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .insta-link:hover .insta-link__icon { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tomato); background: var(--tomato); }
  .insta-link:hover .insta-link__handle { color: var(--tomato-dark); }
}
.insta-link:active .insta-link__icon { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tomato); }

.visit__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 960px) {
  .visit__grid { grid-template-columns: 5fr 6fr; }
  .visit__photo { position: sticky; top: 96px; }
  .visit__photo img { aspect-ratio: 4 / 4.4; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.checker-band {
  height: 28px;
  background: repeating-conic-gradient(var(--navy) 0 25%, var(--cream) 0 50%) 0 0 / 28px 28px;
}
.site-footer__grid {
  display: grid;
  gap: 28px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 32px;
}
.site-footer__logo { width: 150px; }
.site-footer__col, .site-footer__col p { line-height: 1.7; color: var(--muted-light); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--t-fast) var(--ease);
}
.site-footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 2px solid rgba(241, 236, 225, 0.4);
  border-radius: var(--radius);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease) !important;
}
.icon-link:hover { background: var(--cream); color: var(--navy) !important; border-color: var(--cream); }
.site-footer__legal {
  padding-top: 20px;
  border-top: 1px solid rgba(241, 236, 225, 0.14);
  font-size: 0.875rem;
  color: var(--muted-light);
}

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: auto 1fr 1fr 1fr auto; column-gap: 40px; align-items: start; }
}
@media (min-width: 900px) {
  .site-footer { padding-bottom: 32px; }
}

/* ==========================================================================
   Barre d'appel mobile
   ========================================================================== */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(23, 38, 64, 0.97);
  box-shadow: 0 -1px 0 rgba(241, 236, 225, 0.12);
}
.callbar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding-top: 2px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}
.callbar__btn:active { transform: scale(0.98); }
.callbar__btn--call { flex: 0.8; background: var(--cream); color: var(--navy); }
.callbar__btn--order { flex: 1.2; background: var(--tomato); color: #fff; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ==========================================================================
   Apparition au défilement (activée par JS seulement)
   ========================================================================== */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Cascade : les éléments d'une liste arrivent un après l'autre */
.reveal-ready [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}
.reveal-ready [data-stagger].is-in > * { opacity: 1; transform: none; }
.reveal-ready [data-stagger].is-done > * { transition-delay: 0ms; }

/* Mobile : chaque élément d'une liste apparaît quand il arrive à l'écran, un peu plus lentement */
.reveal-ready [data-stagger] > .is-in { opacity: 1; transform: none; }
.reveal-ready .facts__item.is-in::before { transform: none; }
.reveal-ready .facts__item.is-in dt,
.reveal-ready .facts__item.is-in dd { opacity: 1; transform: none; }
.reveal-ready .facts.is-in-last::after { transform: none; transition-delay: 500ms; }
@media (max-width: 899px) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-stagger] > * { transition-duration: 900ms; }
  .reveal-ready .facts[data-stagger] > * { transition: none; }
  .reveal-ready .facts__item::before { transition-duration: 1000ms; }
  .reveal-ready .facts__item dt,
  .reveal-ready .facts__item dd { transition-duration: 850ms; }
}

/* Photos : léger dézoom qui pose l'image à son arrivée */
@keyframes settle {
  from { transform: scale(1.1); }
  to { transform: none; }
}
@keyframes drop-in {
  from { opacity: 0; transform: translate(-20px, 28px); }
  to { opacity: 1; transform: none; }
}
.reveal-ready [data-settle].is-in img { animation: settle 1500ms var(--ease) backwards; }
.reveal-ready .pizza__photos.is-in .pizza__photo--dip { animation: drop-in 1000ms var(--ease) 450ms backwards; }
.reveal-ready .pizza__photos.is-in .pizza__label { animation: rise 700ms var(--ease) 800ms backwards; }

/* Images : léger zoom au survol (pointeur fin seulement) */
@media (hover: hover) and (pointer: fine) {
  .gallery__item, .visit__photo { overflow: hidden; border-radius: var(--radius-lg); }
  .gallery__item { border-radius: var(--radius); }
  .gallery__item img, .visit__photo img { transition: transform 600ms var(--ease); }
  .gallery__item:hover img, .visit__photo:hover img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

/* Les photos qui se posent restent dans leur cadre */
[data-settle] { overflow: hidden; }

@media (max-width: 480px) {
  .menu__actions .btn { flex: 1 1 auto; padding: 3px 14px 0; font-size: 1.0625rem; }
}
@media (max-width: 359px) {
  .callbar__btn { font-size: 0.975rem; letter-spacing: 0.04em; gap: 6px; }
}

/* Écrans tactiles : pas d'état « survol » qui reste collé après un toucher */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--btn-shadow); }
  .btn--tomato:hover { background: var(--tomato); border-color: var(--tomato); }
  .btn--ghost:hover { background: transparent; color: var(--cream); }
  .map:hover .map__base, .map:hover .map__names { transform: scale(1.35); }
  .map:hover .map__cta { transform: none; box-shadow: 4px 4px 0 var(--navy); background: var(--tomato); }
}
