/* =========================================================
   La Locanda — Pizzeria · Marseille
   Feuille de style commune (accueil + pages légales)
   ========================================================= */

:root {
  /* Fonds */
  --ink: #171513;
  --ink-deep: #0f0e0d;
  --ink-soft: #1c1916;
  --card: #211e1b;

  /* Filets */
  --line: #2e2925;
  --line-2: #3a342e;
  --line-3: #4a423a;

  /* Textes */
  --cream: #ece4d6;
  --cream-2: #cfc3b0;
  --cream-3: #d8ccba;
  --sand: #bcae9a;
  --muted: #a69884;
  --muted-2: #8f8371;
  --muted-3: #6f6458;

  /* Tricolore */
  --red: #b8322a;
  --red-dark: #8f241e;
  --red-light: #e2594b;
  --green: #2f6b45;
  --green-dark: #245437;
  --green-deep: #1d3526;
  --green-line: #2e4a37;
  --green-light: #86c19a;

  /* Bois & dorures */
  --wood: #8a5a2f;
  --brass: #a8743f;
  --gold: #c8955c;
  --cream-gold: #f3d9a4;
  --star: #d9a21b;

  /* Typographies */
  --f-display: 'DM Serif Display', serif;
  --f-cond: 'Oswald', sans-serif;
  --f-body: 'Lora', Georgia, serif;
  --f-script: 'Dancing Script', cursive;

  /* Mouvement : une seule courbe pour tout le site */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.modal-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red-light);
  text-decoration: none;
}

a:hover {
  color: var(--green-light);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cream-gold);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--ink);
}

.script {
  font-family: var(--f-script);
  font-weight: 600;
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
}

.section-title {
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divider::before,
.divider::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--line-3);
}

.divider span {
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

.tricolor {
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 33.333%, var(--cream) 33.333% 66.666%, var(--red) 66.666%);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: normal;
  padding: 17px 32px;
  text-align: center;
  --magnet-dur: 0.5s;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out),
    translate var(--magnet-dur) var(--ease-out), background-size 0.4s var(--ease-out);
}

.btn-red,
.btn-red:hover,
.btn-green,
.btn-green:hover {
  color: #fff;
}

.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }

.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }

/* Au survol, la crème remplit le bouton depuis le bas */
.btn-outline {
  background-color: transparent;
  background-image: linear-gradient(var(--cream), var(--cream));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  padding: 15.5px 32px;
}

.btn-outline:hover {
  background-size: 100% 100%;
  color: var(--ink);
}

.btn-sm {
  font-size: 16px;
  padding: 11px 22px;
}

.btn-wide {
  padding-left: 36px;
  padding-right: 36px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 21, 19, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--cream);
}

.brand:hover {
  color: var(--cream);
}

.brand-name {
  font-family: var(--f-display);
  font-size: 30px;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-top: 4px;
}

.site-nav {
  margin-left: auto;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.nav-links a {
  color: var(--cream);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--red-light);
}

.header-cta {
  display: flex;
  gap: 10px;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: 4px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Barre d'actions fixe (téléphones) */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 14, 13, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn {
  font-size: 16px;
  padding: 14px 12px;
}

@media (max-width: 1079.98px) {
  .nav-toggle {
    display: block;
  }

  .header-cta {
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  }

  .nav-open .site-nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 24px 14px;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 19px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 599.98px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .mobile-cta {
    display: grid;
  }

  .has-mobile-cta {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ---------- Accueil ---------- */

.hero {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 860px);
}

.hero-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(24px, 4vw, 56px);
}

.hero-text-inner {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-hello {
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 400;
  font-size: inherit;
}

.hero-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(60px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero-kind {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-cond);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
}

.tricolor-line {
  flex: 1;
  max-width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--cream) 33% 66%, var(--red) 66%);
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--brass);
}

.hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--sand);
  text-wrap: pretty;
}

/* Carrousel */
.hero-media {
  position: relative;
  min-height: 520px;
  background: var(--wood);
  padding-left: 6px;
}

.carousel {
  position: absolute;
  inset: 0 0 0 6px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  background: var(--ink-deep);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 14, 13, 0.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.18s ease;
}

.carousel-arrow:hover {
  background: rgba(184, 50, 42, 0.9);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(236, 228, 214, 0.45);
  transition: width 300ms, background-color 300ms;
}

.carousel-dot[aria-current="true"] {
  width: 28px;
  background: var(--cream);
}

@media (max-width: 799.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }
}

/* Bandeau services */
.ribbon {
  background: var(--ink-deep);
  color: var(--cream);
}

.ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--f-cond);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ribbon a {
  color: var(--cream);
  transition: color 0.18s ease;
}

.ribbon a:hover {
  color: var(--red-light);
}

.diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.diamond--red { background: var(--red); }
.diamond--cream { background: var(--cream); }
.diamond--green { background: var(--green); }

/* ---------- La carte ---------- */

.menu-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 104px 24px 96px;
}

.menu-section .section-head {
  margin-bottom: 28px;
}

.menu-title {
  font-size: clamp(44px, 6vw, 68px);
}

.divider--head {
  margin-top: 4px;
}

.mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 56px;
}

.photo-card {
  position: relative;
  flex: 1;
  min-height: 240px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-deep);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card--main {
  flex: 1.25 1 400px;
  min-height: clamp(380px, 60vw, 540px);
  transition: box-shadow 0.4s ease;
}

.photo-card--main:hover {
  box-shadow: 0 30px 60px -20px rgba(226, 89, 75, 0.35);
}

.photo-card--main:hover img {
  transform: scale(1.05);
}

.mosaic-side {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 20px 16px;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0) 0%, rgba(15, 14, 13, 0.88) 100%);
  pointer-events: none;
}

.photo-caption--split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.photo-card--main .photo-caption {
  padding: 80px 28px 26px;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0) 0%, rgba(15, 14, 13, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-kicker {
  font-size: 28px;
  color: var(--cream-gold);
  line-height: 1;
}

.photo-headline {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.photo-name {
  font-family: var(--f-display);
  font-size: 24px;
  color: #fff;
}

.photo-name--sm {
  font-size: 22px;
}

.photo-price {
  font-weight: 600;
  font-size: 18px;
  color: var(--cream-gold);
}

.menu-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-size: 15px;
  color: var(--sand);
  background: var(--ink-soft);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.chip:hover {
  border-color: var(--red-light);
  color: var(--red-light);
}

.menu-cats {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.menu-cat {
  scroll-margin-top: 110px;
}

.menu-cat-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  font-family: var(--f-cond);
  font-weight: 500;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.menu-cat-title::before,
.menu-cat-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-3);
}

.menu-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  column-gap: 64px;
  row-gap: 22px;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 2 1 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dish {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dish-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dish-name {
  font-family: var(--f-display);
  font-size: 22px;
}

.dish-leader {
  flex: 1;
  min-width: 20px;
  border-bottom: 2px dotted var(--line-3);
  transform: translateY(-6px);
}

.dish-price {
  font-weight: 600;
  font-size: 18px;
  color: var(--red-light);
  white-space: nowrap;
}

.dish-desc {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
}

.menu-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.menu-feature-fig {
  flex: 1 1 300px;
  position: sticky;
  top: 110px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* L'assiette porte l'ombre : la photo peut tourner dedans sans que l'ombre bouge */
.pizza-plate {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

.pizza-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.menu-feature-fig figcaption {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--sand);
}

/* Sur une seule colonne, l'image ne doit plus rester collée au-dessus de la liste */
@media (max-width: 843.98px) {
  .menu-feature-fig {
    position: static;
  }
}

.menu-actions {
  margin-top: 72px;
  justify-content: center;
}

/* ---------- Formules ---------- */

.formulas {
  background: var(--green-deep);
  color: #fff;
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
}

.formulas-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.formulas-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formulas-kicker {
  font-size: 30px;
  color: var(--cream-gold);
}

.formulas-title {
  font-size: clamp(40px, 5vw, 56px);
  line-height: normal;
}

.formula-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.formula {
  background: var(--card);
  color: var(--cream);
  border: 1px solid var(--line-2);
  padding: 32px 28px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.formula-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
}

.formula-desc {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.formula-price {
  margin-top: 6px;
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 20px;
}

/* ---------- Notre histoire ---------- */

.story {
  scroll-margin-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 72px;
  align-items: start;
}

.story-media {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.story-frame {
  background: var(--wood);
  padding: 6px;
  border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
}

.story-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 2px;
}

.story-caption {
  font-size: 26px;
  color: var(--green-light);
  text-align: center;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 12px;
}

.kicker-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker-line::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--green);
}

.story-title {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-title em {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: none;
  color: var(--red-light);
}

.story-text p {
  font-size: 20px;
  line-height: 1.75;
  color: var(--cream);
  text-wrap: pretty;
}

.story-text p.story-soft {
  color: var(--cream-2);
}

.story-quote {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.3;
  color: var(--cream-gold);
  text-wrap: balance;
}

.story-actions {
  margin-top: 16px;
}

/* Sur une seule colonne, la photo ne doit plus recouvrir le texte */
@media (max-width: 919.98px) {
  .story-media {
    position: static;
  }
}

/* ---------- Visite du restaurant ---------- */

.tour-section {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tour-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 104px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tour-head-kicker {
  font-size: 30px;
  color: var(--cream-gold);
}

.tour-title-main {
  font-size: clamp(40px, 5.6vw, 72px);
  text-wrap: balance;
  letter-spacing: 0;
}

.tour-hint {
  font-size: 19px;
  color: var(--sand);
}

.tour {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  justify-content: center;
}

.tour-frame {
  position: relative;
  isolation: isolate;
  flex: 0 1 auto;
  width: min(100%, 560px, calc(78vh * 0.8));
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--line-2);
}

.tour-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
  transform: scale(1.08);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.5, 0, 0.75, 0);
}

.tour-layer.is-leaving {
  opacity: 0;
  z-index: 0;
  transform: scale(1.6);
}

.tour-layer.is-current {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  transition: opacity 650ms ease 150ms, transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tour-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(15, 14, 13, 0) 55%, rgba(15, 14, 13, 0.45) 100%);
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -11px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 92%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.hotspot[hidden] {
  display: none;
}

.hotspot-dot {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.hotspot-dot::before,
.hotspot-dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hotspot-dot::before {
  inset: 0;
  background: var(--red-light);
  animation: hsPulse 1.8s ease-out infinite;
}

.hotspot-dot::after {
  inset: 4px;
  background: #fff;
  box-shadow: 0 0 0 3px var(--red);
}

.hotspot-label {
  white-space: nowrap;
  background: rgba(15, 14, 13, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--f-cond);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.18s ease;
}

.hotspot:hover .hotspot-label {
  background: rgba(184, 50, 42, 0.92);
}

@keyframes hsPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}

.tour-side {
  flex: 1 1 320px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tour-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 450ms ease, transform 450ms ease;
}

.tour-text.is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.tour-pos {
  font-family: var(--f-cond);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
}

.tour-kicker {
  font-size: 28px;
  color: var(--cream-gold);
  line-height: 1;
}

.tour-title {
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  color: #fff;
}

.tour-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-3);
  text-wrap: pretty;
}

.tour-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tour-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-cond);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  transition: color 300ms;
}

.tour-step::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-3);
  background: transparent;
  transition: background-color 300ms, border-color 300ms;
}

.tour-step:hover {
  color: var(--cream);
}

.tour-step.is-done {
  color: var(--sand);
}

.tour-step.is-done::before {
  background: var(--sand);
  border-color: var(--sand);
}

.tour-step.is-current {
  color: #fff;
}

.tour-step.is-current::before {
  background: var(--red-light);
  border-color: var(--red-light);
}

/* ---------- Avis ---------- */

.reviews-section {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 24px;
}

.reviews-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.reviews-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews-title {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  text-wrap: balance;
}

.reviews-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--red-light);
  text-wrap: pretty;
}

.reviews-author {
  font-size: 15px;
  color: var(--muted);
}

.score {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 56px;
  border: 1.5px solid var(--line-3);
  border-radius: 6px;
  background: var(--ink);
  text-align: center;
}

.score-value {
  font-family: var(--f-display);
  font-size: 96px;
  line-height: 0.9;
}

.stars {
  color: var(--star);
}

.score .stars {
  font-size: 28px;
  letter-spacing: 4px;
}

.score-count {
  font-size: 16px;
  color: var(--sand);
}

.review-list {
  columns: 3 300px;
  column-gap: 20px;
}

.review {
  break-inside: avoid;
  margin: 0 0 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review .stars {
  font-size: 17px;
  letter-spacing: 2px;
}

.review blockquote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  text-wrap: pretty;
}

.review figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--ink-soft);
  padding-top: 12px;
}

.review-name {
  font-weight: 600;
  color: var(--cream);
}

.reviews-more {
  margin-top: 36px;
  text-align: center;
}

.reviews-more .btn {
  font-size: 16px;
  padding: 15px 30px;
}

/* ---------- Nous trouver ---------- */

.info-section {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.info-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-title {
  font-size: clamp(40px, 5vw, 60px);
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--red-light);
}

.info-address {
  font-size: 19px;
  line-height: 1.5;
  font-style: normal;
}

.info-link {
  font-weight: 600;
  font-size: 16px;
}

.hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 17px;
}

.hours dt {
  white-space: nowrap;
}

.hours dd {
  color: var(--sand);
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.info-phone {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--cream);
  transition: color 0.18s ease;
}

.info-phone:hover {
  color: var(--red-light);
}

.map {
  min-height: 460px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -24px rgba(43, 29, 20, 0.4);
  background: var(--ink-deep);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 458px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

/* ---------- Commander / réserver ---------- */

.order-section {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.order-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.order-kicker {
  font-size: 32px;
  color: var(--cream-gold);
}

.order-title {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: 0;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.order-card {
  border-radius: 6px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.order-card--red { background: var(--red); }
.order-card--green { background: var(--green); }

.order-card-kicker {
  font-family: var(--f-cond);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.order-card--red .order-card-kicker { color: #fbe3c4; }
.order-card--green .order-card-kicker { color: #d6ecd9; }

.order-card-title {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1;
}

.order-card p {
  font-size: 17px;
  line-height: 1.55;
  color: #fff;
}

.order-card .btn {
  margin-top: 8px;
  padding: 17px 34px;
  background: var(--cream);
}

.order-card .btn:hover {
  background: #fff;
}

.order-card--red .btn,
.order-card--red .btn:hover { color: var(--red-dark); }

.order-card--green .btn,
.order-card--green .btn:hover { color: var(--green-deep); }

/* ---------- Fenêtres (réserver / commander) ---------- */

.modal {
  width: min(440px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--ink-soft);
  color: var(--cream);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.modal--wide {
  width: min(520px, calc(100vw - 48px));
}

.modal::backdrop {
  background: rgba(10, 9, 8, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal[open]::backdrop {
  animation: fadeIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-title {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 32px;
  text-transform: uppercase;
  line-height: 1;
}

.modal-sub {
  font-size: 16px;
  color: var(--sand);
}

.modal-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -6px -10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sand);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease;
}

.modal-close:hover {
  color: #fff;
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--green);
  color: #fff;
  padding: 22px 26px;
  border-radius: 6px;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.04em;
  transition: background-color 0.18s ease;
}

.call-btn:hover {
  background: var(--green-dark);
  color: #fff;
}

.modal-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  padding: 22px 26px;
  border-radius: 6px;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.18s ease;
}

.platform:hover {
  color: #fff;
}

.platform--deliveroo { background: #00ccbc; }
.platform--deliveroo:hover { background: #00b3a5; }
.platform--ubereats { background: #06c167; }
.platform--ubereats:hover { background: #05a75a; }

.modal-alt {
  text-align: center;
  font-size: 15px;
  color: var(--sand);
}

.modal-alt:hover {
  color: #fff;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--sand);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.footer-brand {
  gap: 14px;
}

.footer-name {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--cream);
  line-height: 1;
}

.footer-tag {
  font-family: var(--f-cond);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-script {
  font-size: 24px;
  color: var(--green-light);
}

.footer-heading {
  font-family: var(--f-cond);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-text {
  line-height: 1.6;
  font-style: normal;
}

.footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--sand);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-2);
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal button {
  font-size: 14px;
}

/* ---------- Pages légales ---------- */

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.legal-brand {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--cream);
}

.legal-brand:hover {
  color: var(--cream);
}

.legal-back {
  font-size: 15px;
  color: var(--sand);
}

.legal-back:hover {
  color: #fff;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-2);
}

.legal a:hover {
  color: var(--cream);
}

.legal-title {
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  color: var(--cream);
  overflow-wrap: break-word;
}

.legal-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-date {
  font-style: italic;
  color: var(--muted);
}

.legal section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal section.is-loose {
  gap: 12px;
}

.legal h2 {
  margin-bottom: 6px;
  font-family: var(--f-cond);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 22px;
  line-height: 1.3;
  color: var(--gold);
}

.legal strong {
  color: var(--cream);
  font-weight: 600;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Informations à compléter avant la mise en ligne */
.todo {
  background: #3a2a14;
  color: var(--cream-gold);
  padding: 1px 6px;
  border-radius: 3px;
}

.cookie-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}

.cookie-table div {
  padding: 18px 20px;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-table dt {
  font-family: var(--f-cond);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}

.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Bandeau cookies (actif seulement si Google Analytics est configuré) ---------- */

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink-soft);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-title {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  flex: 1 1 140px;
  font-size: 15px;
  padding: 11px 18px;
}

@media (max-width: 599.98px) {
  .has-mobile-cta .cookie-banner {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

/* ---------- Ajustements petits écrans ---------- */

@media (max-width: 599.98px) {
  .ribbon-inner {
    gap: 10px 18px;
    padding: 18px 16px;
    font-size: 17px;
  }

  .menu-section { padding: 76px 24px 72px; }
  .formulas-inner { padding: 64px 24px; }
  .story { padding: 76px 24px; gap: 48px; }
  .tour-inner { padding: 72px 24px 80px; gap: 36px; }
  .reviews-inner,
  .info-inner { padding: 76px 24px; }
  .order-inner { padding: 72px 24px; gap: 36px; }

  .menu-chips { margin-bottom: 48px; }
  .menu-cats { gap: 56px; }
  .menu-actions { margin-top: 56px; }

  .order-card { padding: 36px 28px; }
  .modal-body { padding: 28px 24px; }
  .score { padding: 36px 44px; }
  .review { padding: 24px; }
}

/* =========================================================
   Animations
   Une seule courbe (--ease-out) et des distances courtes. Les effets
   liés au curseur ne concernent que la souris, et tout s'arrête si le
   visiteur a demandé moins d'animations à son système.
   ========================================================= */

/* ---------- En-tête ---------- */

/* Une ombre détache l'en-tête du contenu dès que la page défile */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(23, 21, 19, 0.97);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.95);
}

.brand-tag {
  transition: letter-spacing 0.45s var(--ease-out);
}

/* Un trait se dessine sous le lien survolé et sous la section en cours */
@media (min-width: 1080px) {
  .nav-links a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--red-light);
    scale: 0 1;
    transform-origin: right center;
    transition: scale 0.35s var(--ease-out);
  }

  .nav-links a:hover::after,
  .nav-links a[aria-current="true"]::after {
    scale: 1 1;
    transform-origin: left center;
  }
}

@media (max-width: 1079.98px) {
  .nav-links a[aria-current="true"] {
    color: var(--red-light);
  }

  .nav-open .site-nav {
    animation: navDrop 0.3s var(--ease-out);
  }

  .nav-open .nav-links li {
    animation: navItem 0.4s var(--ease-out) backwards;
  }

  .nav-open .nav-links li:nth-child(2) { animation-delay: 0.04s; }
  .nav-open .nav-links li:nth-child(3) { animation-delay: 0.08s; }
  .nav-open .nav-links li:nth-child(4) { animation-delay: 0.12s; }
  .nav-open .nav-links li:nth-child(5) { animation-delay: 0.16s; }
}

/* ---------- Boutons ---------- */

/* Pendant l'attraction magnétique, le bouton suit la souris sans retard */
.btn.is-magnetic {
  --magnet-dur: 0.15s;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

@media (hover: hover) {
  .brand:hover .brand-tag {
    letter-spacing: 0.4em;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn:active {
    transform: translateY(0) scale(0.98);
  }

  .btn-red:hover {
    box-shadow: 0 14px 28px -14px rgba(184, 50, 42, 0.9);
  }

  .btn-green:hover {
    box-shadow: 0 14px 28px -14px rgba(47, 107, 69, 0.9);
  }

  .btn-outline:hover,
  .order-card .btn:hover {
    box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Carrousel ---------- */

.carousel-arrow {
  transition: background-color 0.18s ease, scale 0.3s var(--ease-out);
}

.carousel-arrow span {
  display: block;
  line-height: 1;
  transition: translate 0.3s var(--ease-out);
}

@media (hover: hover) {
  .carousel-arrow:hover {
    scale: 1.06;
  }

  .carousel-prev:hover span {
    translate: -2px 0;
  }

  .carousel-next:hover span {
    translate: 2px 0;
  }

  .carousel-dot:not([aria-current="true"]):hover {
    background: rgba(236, 228, 214, 0.8);
  }
}

/* ---------- La carte ---------- */

/* Le zoom se fait là où pointe la souris (origine posée par js/main.js) */
.photo-card img {
  transition: transform 1.2s var(--ease-out), transform-origin 0.7s var(--ease-out);
}

.chip {
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, translate 0.3s var(--ease-out);
}

/* Le pointillé s'allume pour relier le plat survolé à son prix */
.dish-name {
  transition: color 0.25s ease;
}

.dish-leader {
  transition: border-color 0.25s ease;
}

@media (hover: hover) {
  .chip:hover {
    translate: 0 -2px;
    background: #241f1b;
  }

  .dish:hover .dish-name {
    color: var(--cream-gold);
  }

  .dish:hover .dish-leader {
    border-bottom-color: rgba(226, 89, 75, 0.6);
  }
}

/* ---------- Halo chaud qui suit la souris (formules, commande) ---------- */

[data-spotlight] {
  position: relative;
  isolation: isolate;
}

[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(243, 217, 164, 0.09)), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.order-card {
  --spot: rgba(255, 255, 255, 0.13);
}

.formula,
.review {
  transition: border-color 0.3s ease;
}

@media (hover: hover) {
  [data-spotlight]:hover::before {
    opacity: 1;
  }

  .formula:hover {
    border-color: rgba(243, 217, 164, 0.3);
  }

  .review:hover {
    border-color: var(--line-3);
  }
}

/* ---------- Nous trouver ---------- */

.info-link .arrow {
  display: inline-block;
  transition: translate 0.3s var(--ease-out);
}

.info-phone {
  position: relative;
  align-self: flex-start;
}

.info-phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: currentColor;
  scale: 0 1;
  transform-origin: right center;
  transition: scale 0.4s var(--ease-out);
}

@media (hover: hover) {
  .info-link:hover .arrow {
    translate: 4px 0;
  }

  .info-phone:hover::after {
    scale: 1 1;
    transform-origin: left center;
  }
}

/* ---------- Visite ---------- */

.tour-step::before {
  transition: background-color 300ms, border-color 300ms, scale 0.3s var(--ease-out);
}

/* Le point de passage se laisse attirer par la souris (décalage posé par js/main.js) */
.hotspot {
  transition: translate 0.45s var(--ease-out);
}

.hotspot-dot {
  transition: scale 0.3s var(--ease-out);
}

.hotspot.is-near .hotspot-dot {
  scale: 1.15;
}

@media (hover: hover) {
  .tour-step:hover::before {
    scale: 1.3;
  }

  .hotspot:hover .hotspot-dot {
    scale: 1.2;
  }
}

/* ---------- Fenêtres ---------- */

.modal-close {
  transition: color 0.18s ease, rotate 0.35s var(--ease-out);
}

.platform span:last-child {
  transition: translate 0.3s var(--ease-out);
}

.call-btn svg {
  transform-origin: 50% 50%;
}

@media (hover: hover) {
  .modal-close:hover {
    rotate: 90deg;
  }

  .platform:hover span:last-child {
    translate: 5px 0;
  }

  .call-btn:hover svg {
    animation: ring 0.7s ease-in-out;
  }
}

.modal.is-closing {
  animation: modalOut 0.2s ease-in forwards;
}

.modal.is-closing::backdrop {
  animation: fadeOut 0.2s ease-in forwards;
}

/* ---------- Arrivée sur la page et apparitions au défilement ---------- */

.score .stars span {
  display: inline-block;
}

.score .stars span:nth-child(2) { --star-index: 2; }
.score .stars span:nth-child(3) { --star-index: 3; }
.score .stars span:nth-child(4) { --star-index: 4; }
.score .stars span:nth-child(5) { --star-index: 5; }

@media (prefers-reduced-motion: no-preference) {
  /* Accueil : le texte se pose, les filets se dessinent, la photo se révèle */
  .hero-hello,
  .hero-name,
  .hero-kind,
  .hero-lead,
  .hero-text .actions {
    animation: riseIn 1s var(--ease-out) backwards;
  }

  .hero-hello { animation-delay: 0.1s; }
  .hero-name { animation-delay: 0.18s; }
  .hero-kind { animation-delay: 0.28s; }
  .hero-lead { animation-delay: 0.44s; }
  .hero-text .actions { animation-delay: 0.52s; }

  .hero-rule {
    transform-origin: left center;
    animation: drawX 0.9s var(--ease-out) 0.4s backwards;
  }

  .tricolor-line {
    transform-origin: left center;
    animation: drawX 1s var(--ease-out) 0.55s backwards;
  }

  .carousel-track {
    transform-origin: 6.25% 50%;
    animation: photoIn 1.6s var(--ease-out) backwards;
  }

  .carousel-arrow,
  .carousel-dots {
    animation: fadeIn 0.6s ease 0.7s backwards;
  }

  /* Les blocs apparaissent en entrant à l'écran (classes posées par js/main.js) */
  .reveal-ready [data-reveal]:not(.is-revealed) {
    opacity: 0;
  }

  .reveal-ready [data-reveal].is-revealed:not(.is-instant) {
    animation: revealUp 0.9s var(--ease-out) var(--reveal-delay, 0s) backwards;
  }

  .reveal-ready [data-reveal="fade"].is-revealed:not(.is-instant) {
    animation-name: revealFade;
  }

  .reveal-ready [data-reveal="left"].is-revealed:not(.is-instant) {
    animation-name: revealLeft;
  }

  .reveal-ready [data-reveal="scale"].is-revealed:not(.is-instant) {
    animation-name: revealScale;
  }

  /* Les filets se dessinent à partir du losange ou du titre */
  .reveal-ready .is-revealed:not(.is-instant) .divider::before,
  .reveal-ready .divider.is-revealed:not(.is-instant)::before,
  .reveal-ready .menu-cat-title.is-revealed:not(.is-instant)::before,
  .reveal-ready .kicker-line.is-revealed:not(.is-instant)::before {
    transform-origin: right center;
    animation: drawX 0.9s var(--ease-out) calc(var(--reveal-delay, 0s) + 0.2s) backwards;
  }

  .reveal-ready .is-revealed:not(.is-instant) .divider::after,
  .reveal-ready .divider.is-revealed:not(.is-instant)::after,
  .reveal-ready .menu-cat-title.is-revealed:not(.is-instant)::after {
    transform-origin: left center;
    animation: drawX 0.9s var(--ease-out) calc(var(--reveal-delay, 0s) + 0.2s) backwards;
  }

  .reveal-ready .is-revealed:not(.is-instant) .divider span,
  .reveal-ready .divider.is-revealed:not(.is-instant) span {
    animation: popIn 0.5s var(--ease-out) calc(var(--reveal-delay, 0s) + 0.1s) backwards;
  }

  /* La note : les étoiles s'allument une à une */
  .reveal-ready .score.is-revealed:not(.is-instant) .stars span {
    animation: starPop 0.55s var(--ease-out) calc(0.27s + var(--star-index, 1) * 0.08s) backwards;
  }
}

/* ---------- Parallaxe (navigateurs compatibles ; ailleurs rien ne bouge) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline-name: --hero; }
    .menu-feature { view-timeline-name: --pizza; }
    .story { view-timeline-name: --story; }

    /* La Marseillaise tourne doucement pendant qu'on parcourt les tomates */
    .pizza-plate img {
      animation: pizzaTurn linear both;
      animation-timeline: --pizza;
      animation-range: cover 0% cover 100%;
    }
  }

  @media (prefers-reduced-motion: no-preference) and (min-width: 800px) {
    /* La photo d'accueil défile un peu moins vite que la page */
    .carousel-slide img {
      animation: heroDrift linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }

  @media (prefers-reduced-motion: no-preference) and (min-width: 920px) {
    /* Le cadre reste en place, la photo glisse lentement dedans pendant la lecture */
    .story-frame img {
      animation: storyPan linear both;
      animation-timeline: --story;
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes riseIn { from { opacity: 0; translate: 0 18px; } }
@keyframes drawX { from { scale: 0 1; } }
@keyframes photoIn { from { opacity: 0; scale: 1.06; } }
@keyframes popIn { from { scale: 0; } }
@keyframes revealUp { from { opacity: 0; translate: 0 28px; } }
@keyframes revealFade { from { opacity: 0; } }
@keyframes revealLeft { from { opacity: 0; translate: -28px 0; } }
@keyframes revealScale { from { opacity: 0; scale: 0.96; } }
@keyframes navDrop { from { opacity: 0; translate: 0 -10px; } }
@keyframes navItem { from { opacity: 0; translate: 0 -6px; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes fadeOut { to { opacity: 0; } }

@keyframes starPop {
  0% { opacity: 0; scale: 0.4; }
  60% { opacity: 1; scale: 1.18; }
  100% { opacity: 1; scale: 1; }
}

@keyframes ring {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -14deg; }
  40% { rotate: 12deg; }
  60% { rotate: -8deg; }
  80% { rotate: 4deg; }
}

@keyframes pizzaTurn {
  from { rotate: -20deg; }
  to { rotate: 20deg; }
}

@keyframes heroDrift {
  to { translate: 0 8%; scale: 1.16; }
}

@keyframes storyPan {
  from { object-position: 50% 20%; }
  to { object-position: 50% 75%; }
}

@media print {
  [data-reveal] {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ---------- Animations réduites ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
