/* =========================================================
   CHEZ PAPA — Design « affiche de friterie »
   Motif : le pignon à gradins de la façade
   ========================================================= */
:root {
  /* Marque */
  --ink: #14282C;
  --teal: #2C4D54;        /* fond du logo */
  --marine: #386873;      /* Marine Blue */
  --cream: #FDF4E3;       /* RAL 9001 */
  --paper: #F6E7C8;
  --white: #FFFBF2;
  --yellow: #F9D71C;      /* jaune du logo */
  --red: #B8391C;         /* rouge du logo, assombri (contraste AA sur crème) */
  --line: rgba(20, 40, 44, .14);
  --muted: #53666A;
  --on-dark-muted: #B9CBCD;
  --focus: #1F6FEB;

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --r: 22px;
  --gutter: 16px;

  /* Pignon à gradins */
  --gable: polygon(0 100%, 0 13%, 11% 13%, 11% 9.75%, 22% 9.75%, 22% 6.5%, 33% 6.5%, 33% 3.25%, 42% 3.25%, 42% 0, 58% 0, 58% 3.25%, 67% 3.25%, 67% 6.5%, 78% 6.5%, 78% 9.75%, 89% 9.75%, 89% 13%, 100% 13%, 100% 100%);

  --z-header: 50;
  --z-overlay: 60;
  --z-preview: 40;
  --z-toast: 200;
  --z-intro: 1000;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* grain papier */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: normal; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }
.small { font-size: .875rem; color: var(--muted); }

/* ---------- Typo ---------- */
h2 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .92; letter-spacing: -.025em;
  text-wrap: balance;
}
h2 em, .serif, .manifesto em, .drawer h2 em, .footer-brand em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -.01em;
}
h2 em { color: var(--marine); }
.kicker {
  font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--marine);
  margin-bottom: 18px; letter-spacing: .01em;
}
.kicker-light { color: var(--yellow); }

/* ---------- Boutons (balayage de couleur) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  touch-action: manipulation; will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark::before { background: var(--yellow); }
.btn-dark:hover { color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow::before { background: var(--ink); }
.btn-yellow:hover { color: var(--yellow); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--cream); }
.btn-red { background: var(--red); color: #fff; }
.btn-red::before { background: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: rgba(255, 251, 242, .8); color: var(--ink);
  backdrop-filter: blur(8px);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--yellow); border-color: var(--yellow); transform: rotate(-8deg); }
.count-badge {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--cream);
  font-size: .72rem; font-weight: 700; line-height: 17px; text-align: center;
}
.count-badge.bump { animation: bump .45s var(--ease); }
.account-btn.is-signed { background: var(--teal); color: #fff; border-color: var(--teal); overflow: hidden; }
.account-btn img { width: 100%; height: 100%; object-fit: cover; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.link-arrow .ic { transition: transform .4s var(--ease); }
.link-arrow:hover .ic { transform: translateX(6px); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--ink); color: var(--ink);
  display: grid; place-items: center;
  animation: intro-out .9s var(--ease-in-out) 1.6s forwards;
}
.intro-inner { text-align: center; }
.intro-logo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px; animation: intro-logo .9s var(--ease) both; }
.intro-text { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 1.6rem; color: var(--cream); overflow: hidden; margin: 0; }
.intro-text span, .intro-text em { display: inline-block; animation: intro-up .8s var(--ease) .35s both; }
.intro-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--yellow); animation-delay: .45s; }
.intro-edge { position: absolute; left: 0; top: 100%; width: 100%; height: 60px; }
html:not(.motion) .intro, html.no-intro .intro { display: none; }
@keyframes intro-logo { from { transform: scale(.4) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes intro-out { to { transform: translateY(calc(-100% - 70px)); visibility: hidden; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  padding: 14px 0; pointer-events: none;
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); }
.header-inner > * { pointer-events: auto; }
.brand { margin-right: auto; border-radius: 50%; }
.brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 20px rgba(20, 40, 44, .25); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }

.pill-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: rgba(255, 251, 242, .78); backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px;
}
.pill-nav ul { display: flex; gap: 2px; }
.pill-nav a {
  position: relative; display: block; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.pill-nav a:hover { background: rgba(20, 40, 44, .07); }
.pill-nav a[aria-current="true"] { background: var(--ink); color: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--cream); z-index: calc(var(--z-overlay) + 1);
}
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] { background: var(--yellow); color: var(--ink); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .pill-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 400px) { .header-actions { gap: 6px; } .icon-btn, .menu-toggle { width: 44px; height: 44px; } .brand img { width: 48px; height: 48px; } }

/* Menu plein écran */
.overlay-nav {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s linear .8s;
}
.overlay-nav.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition-delay: 0s; }
.overlay-nav ul { display: grid; gap: 4px; }
.overlay-nav a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(2.6rem, 12vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em;
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s;
}
.overlay-nav a small { font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--yellow); }
.overlay-nav a:hover { color: var(--yellow); }
.overlay-nav.is-open a { opacity: 1; transform: none; }
.overlay-nav.is-open li:nth-child(1) a { transition-delay: .25s; }
.overlay-nav.is-open li:nth-child(2) a { transition-delay: .30s; }
.overlay-nav.is-open li:nth-child(3) a { transition-delay: .35s; }
.overlay-nav.is-open li:nth-child(4) a { transition-delay: .40s; }
.overlay-nav.is-open li:nth-child(5) a { transition-delay: .45s; }
.overlay-nav.is-open li:nth-child(6) a { transition-delay: .50s; }
.overlay-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; }
.overlay-foot a { color: var(--yellow); font-weight: 700; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 118px 0 64px; display: flex; align-items: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12vw; top: -18vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 215, 28, .42), rgba(249, 215, 28, 0) 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 40px; } }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 26px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--marine); }
.status-pill.open .status-dot { background: #2F9E55; box-shadow: 0 0 0 0 rgba(47, 158, 85, .5); animation: ping 2s infinite; }
.status-pill.closed .status-dot { background: var(--red); }
.hero-rating { font-size: .92rem; font-weight: 600; }
.hero-rating .stars { color: #D9A900; letter-spacing: 1px; margin-right: 4px; }
.hero-rating em { color: var(--muted); font-weight: 500; }

.hero-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 76%;
  font-size: clamp(3rem, 7.6vw, 7.2rem); line-height: .9; letter-spacing: -.03em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .06em; }
.hero-title .line-in { display: inline-block; }
.hero-title .serif { color: var(--marine); font-size: .82em; }
.hero-title .mega { font-size: 1.72em; line-height: .8; color: var(--teal); letter-spacing: -.035em; }
.pill-img {
  display: inline-block; width: 1.45em; height: .74em; border-radius: 999px; overflow: hidden;
  vertical-align: .02em; margin-right: .16em; background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--cream);
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.gable { clip-path: var(--gable); overflow: hidden; background: var(--paper); }
.gable img { width: 100%; height: 100%; object-fit: cover; }
.hero-gable { aspect-ratio: 4 / 5; }
.hero-gable img { object-position: 42% 50%; transform-origin: 50% 60%; }
.hero-mini {
  position: absolute; left: -9%; bottom: -6%; width: 40%; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 6px solid var(--cream); box-shadow: 0 20px 40px rgba(20, 40, 44, .25);
}
.hero-mini img { width: 100%; height: 100%; object-fit: cover; }
.spin-badge { position: absolute; right: -6%; top: 8%; width: 148px; height: 148px; display: grid; place-items: center; }
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.spin-badge text { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; letter-spacing: 2.6px; fill: var(--ink); }
.spin-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 14px 30px rgba(20, 40, 44, .2); }
.spin-badge img { position: relative; width: 74px; height: 74px; border-radius: 50%; }
@media (max-width: 599px) {
  .spin-badge { width: 112px; height: 112px; right: -2%; top: 4%; }
  .spin-badge img { width: 56px; height: 56px; }
  .hero-mini { left: -2%; }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 44px; height: 64px;
  border: 1.5px solid var(--line); border-radius: 999px; display: grid; place-items: center; color: var(--ink);
}
.scroll-cue .ic { animation: cue 1.8s var(--ease) infinite; }
@media (max-width: 1023px) { .scroll-cue { display: none; } .hero { min-height: auto; } }

/* ---------- Bandeaux ---------- */
.marquees { position: relative; height: clamp(170px, 20vw, 250px); overflow: hidden; margin: 24px 0 0; }
.marquee {
  position: absolute; left: -5%; width: 110%; top: 50%; overflow: hidden; padding: 16px 0;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.01em;
}
.m-yellow { background: var(--yellow); color: var(--ink); transform: translateY(-50%) rotate(-3.5deg); z-index: 2; box-shadow: 0 10px 30px rgba(20, 40, 44, .15); }
.m-teal { background: var(--ink); color: var(--cream); transform: translateY(-50%) rotate(3deg); }
.marquee-track { display: flex; align-items: center; gap: .5em; width: max-content; animation: marquee 34s linear infinite; }
.reverse .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee .ic { width: .6em; height: .6em; fill: currentColor; stroke: none; }
.m-teal .ic { color: var(--yellow); }

/* ---------- Manifeste ---------- */
.manifesto-sec { padding: clamp(80px, 12vw, 160px) 0; }
.manifesto {
  font-family: var(--f-display); font-weight: 600; font-stretch: 90%;
  font-size: clamp(1.9rem, 4.3vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em;
  max-width: 24ch; margin-bottom: 0;
}
.manifesto em { color: var(--red); }
.manifesto .word { display: inline-block; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(48px, 7vw, 96px) 0 0; border-top: 1.5px solid var(--ink); }
.counters div { padding-top: 18px; }
.counters dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.counters dd { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .counters { width: 70%; margin-left: auto; } }

/* ---------- Signature ---------- */
.signature { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.signature::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 90% 20%, 90% 40%, 80% 40%, 80% 60%, 70% 60%, 70% 80%, 60% 80%, 60% 100%, 40% 100%, 40% 80%, 30% 80%, 30% 60%, 20% 60%, 20% 40%, 10% 40%, 10% 20%, 0 20%);
}
.sig-pin { padding: clamp(96px, 11vw, 140px) 0 clamp(64px, 8vw, 110px); }
.sig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sig-head h2 { max-width: 13ch; }
.sig-head h2 em { color: var(--yellow); }
.sig-progress { width: 180px; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; display: none; }
.sig-progress span { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

.sig-track { display: grid; gap: 28px; padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sig-track.is-h { display: flex; flex-wrap: nowrap; width: max-content; max-width: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); gap: 36px; }
.signature.is-pinned .sig-progress { display: block; }
.sig-card { position: relative; display: flex; flex-direction: column; }
.sig-track.is-h .sig-card { width: clamp(300px, 27vw, 400px); }
.sig-track.is-h .sig-card:nth-child(even) { margin-top: 70px; }
.sig-num {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 4.4rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(253, 244, 227, .5); margin-bottom: -18px; position: relative; z-index: 2; padding-left: 8px;
}
.sig-media { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--teal); }
.sig-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sig-card:hover .sig-media img { transform: scale(1.07); }
.sig-badge {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.sig-body { padding: 20px 4px 0; }
.sig-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sig-top h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.sig-price { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--yellow); white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.sig-desc { color: var(--on-dark-muted); font-size: .98rem; margin: 10px 0 0; }
.sig-card .fav-toggle { position: absolute; top: 76px; right: 14px; z-index: 3; }

.fav-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--white); color: var(--red); box-shadow: 0 6px 16px rgba(20, 40, 44, .18);
  transition: transform .35s var(--ease), background-color .3s;
}
.fav-toggle:hover { transform: scale(1.1); }
.fav-toggle[aria-pressed="true"] .ic { fill: var(--red); }
.fav-toggle.pop .ic { animation: pop .5s var(--ease); }

/* Mobile / tablette : carrousel à glisser */
@media (max-width: 1023px), (max-height: 639px) {
  .sig-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 18px; padding-bottom: 8px; scrollbar-width: none; }
  .sig-track::-webkit-scrollbar { display: none; }
  .sig-card { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .sig-media { aspect-ratio: 1 / 1.05; }
  .sig-num { font-size: 3.4rem; margin-bottom: -14px; }
  .sig-card .fav-toggle { top: 56px; }
  .sig-head { margin-bottom: 32px; }
}
.sig-hint { display: none; align-items: center; gap: 8px; margin-top: 20px; color: var(--on-dark-muted); font-size: .9rem; }
@media (max-width: 1023px), (max-height: 639px) { .sig-hint { display: flex; } }

/* Mode épinglé (desktop) : tout tient dans l'écran */
.signature.is-pinned .sig-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 36px; }
.signature.is-pinned .sig-head { margin-bottom: 28px; width: 100%; }
.signature.is-pinned .sig-head h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); max-width: 18ch; }
.sig-track.is-h .sig-card { width: clamp(250px, min(24vw, 36vh), 360px); }
.sig-track.is-h .sig-card:nth-child(even) { margin-top: 44px; }
.sig-track.is-h .sig-media { aspect-ratio: 1 / 1.08; }
.sig-track.is-h .sig-media img { transition: none; }
.sig-track.is-h .sig-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sig-track.is-h .sig-card .fav-toggle { top: 62px; }

/* ---------- La carte ---------- */
.carte { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.carte-head { display: grid; gap: 20px; align-items: end; margin-bottom: 44px; }
@media (min-width: 900px) { .carte-head { grid-template-columns: 1fr 340px; } }
.carte-head h2 { max-width: 12ch; }
.carte-note { color: var(--muted); margin: 0; font-size: .98rem; }

.tabs-wrap { position: sticky; top: 78px; z-index: 5; margin: 0 calc(var(--gutter) * -1) 28px; padding: 10px var(--gutter) 18px; background: linear-gradient(var(--cream) 72%, rgba(253, 244, 227, 0)); overflow-x: auto; scrollbar-width: none; }
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); box-shadow: 0 10px 30px rgba(20, 40, 44, .08); }
.tab-ind { transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease) !important;
}
.tab-ind { position: absolute; top: 0; left: 0; height: 44px; border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); z-index: 0; }
.tab {
  position: relative; z-index: 1; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  transition: color .4s var(--ease);
}
.tab[aria-pressed="true"] { color: var(--cream); }
.tab .n { font-size: .75rem; font-weight: 700; opacity: .6; }
.tab .ic { width: 16px; height: 16px; }

.carte-group + .carte-group { margin-top: 56px; }
.group-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.group-h h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--teal); }
.group-h span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.rows { display: grid; column-gap: 56px; }
@media (min-width: 900px) { .rows { grid-template-columns: 1fr 1fr; } }
.row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 14px;
  padding: 16px 8px; border-bottom: 1px solid var(--line);
  animation: row-in .6s var(--ease) both;
}
.row::before { content: ""; position: absolute; inset: 4px -4px; border-radius: 14px; background: var(--paper); opacity: 0; transform: scaleY(.6); transition: opacity .35s, transform .45s var(--ease); z-index: -1; }
.row:hover::before { opacity: 1; transform: none; }
.row-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.row-name h4 { font-family: var(--f-display); font-weight: 700; font-stretch: 88%; font-size: 1.35rem; line-height: 1.15; transition: transform .45s var(--ease); }
.row:hover .row-name h4 { transform: translateX(6px); }
.row-name .leader { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(20, 40, 44, .25); transform: translateY(-5px); }
.row-price { font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .fav-toggle { width: 44px; height: 44px; background: transparent; box-shadow: none; }
.row .fav-toggle:hover { background: var(--white); }
.row-sub { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; }
.row-desc { margin: 0; color: var(--muted); font-size: .95rem; max-width: 52ch; }
.row-menu { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .82rem; font-weight: 600; }
.row-menu .ic { width: 15px; height: 15px; color: var(--yellow); }
.row-menu strong { color: var(--yellow); font-weight: 700; margin-left: 2px; }
.row-price.na, .sig-price.na { font-family: var(--f-body); font-style: normal; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.row-price.na { color: var(--muted); }
.sig-price.na { color: var(--yellow); opacity: .85; padding-top: 6px; }
.sig-menu { margin: 8px 0 0; font-size: .9rem; color: var(--on-dark-muted); }
.sig-menu strong { color: var(--yellow); }
.group-intro { margin: 10px 0 4px; color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .98rem;
  transition: background-color .3s, border-color .3s, color .3s, transform .35s var(--ease);
  animation: row-in .5s var(--ease) both;
}
.chip .ic { width: 16px; height: 16px; color: var(--red); transition: transform .35s var(--ease); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px) rotate(-1.5deg); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip[aria-pressed="true"] .ic { fill: var(--yellow); color: var(--yellow); }
.chip.pop .ic { animation: pop .5s var(--ease); }
.carte-side { display: grid; gap: 12px; }
.carte-big { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.carte-big span { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .8; letter-spacing: -.04em; color: var(--red); }
.carte-big small { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; line-height: 1.15; color: var(--teal); padding-bottom: 6px; }
.carte-search {
  position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 8px 6px 22px;
  box-shadow: 6px 6px 0 var(--ink); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.carte-search:focus-within { box-shadow: 3px 3px 0 var(--ink); transform: translate(3px, 3px); }
.carte-search .ic { color: var(--teal); }
.carte-search input { border: 0; background: transparent; min-height: 52px; padding: 0; font-size: 1.1rem; box-shadow: none !important; flex: 1; min-width: 0; }
.carte-search input:focus { outline: none; }
.carte-search:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.carte-count { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--yellow); font-size: .85rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 599px) { .carte-count { display: none; } .carte-search { padding-left: 16px; } }
.row-tag { display: inline-block; font-family: var(--f-body); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.row .thumb { display: none; }
@media (hover: none), (max-width: 899px) {
  .row.has-img { grid-template-columns: 64px 1fr auto auto; }
  .row .thumb { display: block; width: 64px; height: 64px; border-radius: 999px 999px 12px 12px; object-fit: cover; grid-row: span 2; }
  .row.has-img .row-sub { grid-column: 2 / -1; }
}
@media (max-width: 599px) {
  .row { padding: 14px 4px; gap: 4px 10px; }
  .row-name { flex-wrap: wrap; gap: 4px 8px; }
  .row-name h4 { font-size: 1.2rem; }
  .row-name .leader { display: none; }
  .row-price { font-size: 1.3rem; }
}
.carte-empty { text-align: center; padding: 64px 16px; }
.carte-empty .ic { width: 48px; height: 48px; color: var(--red); margin: 0 auto 14px; }
.carte-empty h3 { font-family: var(--f-display); font-stretch: 85%; font-size: 1.8rem; margin-bottom: 8px; }
.carte-empty p { color: var(--muted); }
.carte-cta { display: flex; justify-content: center; margin-top: 56px; }

.hover-preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-preview); width: 250px; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 20px 20px; overflow: hidden; pointer-events: none;
  opacity: 0; scale: .6; transition: opacity .35s var(--ease), scale .5s var(--ease);
  box-shadow: 0 30px 60px rgba(20, 40, 44, .3);
}
.hover-preview.show { opacity: 1; scale: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .hover-preview { display: none; } }

/* ---------- Histoire ---------- */
.histoire { background: var(--paper); padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.hist-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hist-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.hist-photo { aspect-ratio: 4 / 5; position: relative; }
.hist-photo img { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; object-position: 50% 60%; }
.hist-copy h2 { margin-bottom: 28px; }
.hist-copy p { color: var(--muted); max-width: 36em; font-size: 1.08rem; }
.hist-copy .link-arrow { margin-top: 12px; }

/* ---------- Galerie ---------- */
.galerie { background: var(--ink); color: var(--cream); padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; }
.gal-head { margin-bottom: 56px; }
.gal-head h2 em { color: var(--yellow); }
.gal-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .gal-cols { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.gal-col { display: grid; gap: 14px; }
@media (min-width: 900px) { .gal-col { gap: 22px; } .gal-col:nth-child(2) { margin-top: 90px; } }
.gal-item { border-radius: var(--r); overflow: hidden; position: relative; }
.gal-item.arch { border-radius: 999px 999px var(--r) var(--r); }
.gal-item img { width: 100%; height: auto; }
.gal-item .cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(20, 40, 44, .75); backdrop-filter: blur(6px); color: var(--cream); font-size: .85rem;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease);
}
.gal-item button:hover .cap, .gal-item button:focus-visible .cap { opacity: 1; transform: none; }

/* ---------- Réservation ---------- */
.reservation { background: var(--yellow); padding: clamp(90px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.reservation::after {
  content: "Réservez"; position: absolute; right: -2vw; bottom: -4vw; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 22vw; line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(20, 40, 44, .14);
}
.reservation .kicker { color: var(--ink); }
.reservation h2 em { color: var(--teal); }
.resa-grid { position: relative; z-index: 1; display: grid; gap: 48px; }
@media (min-width: 1024px) { .resa-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } }
.resa-copy h2 { margin-bottom: 24px; }
.resa-copy > p { max-width: 28em; font-size: 1.1rem; }
.resa-phone {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 14px; text-decoration: none;
  padding: 12px 26px 12px 12px; border-radius: 999px; background: var(--ink); color: var(--cream);
  transition: transform .4s var(--ease);
}
.resa-phone:hover { transform: translateY(-3px) rotate(-1deg); }
.rp-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.resa-phone small { display: block; color: var(--on-dark-muted); font-size: .85rem; }
.resa-phone strong { font-family: var(--f-display); font-stretch: 80%; font-size: 1.7rem; line-height: 1.1; }

.resa-form {
  background: var(--white); border: 2px solid var(--ink); border-radius: 28px; padding: 30px;
  box-shadow: 10px 10px 0 var(--ink); display: grid; gap: 16px;
}
@media (max-width: 479px) { .resa-form { padding: 20px; box-shadow: 6px 6px 0 var(--ink); } }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: 1.3fr 1fr 1fr; } }
label, legend { font-weight: 700; font-size: .95rem; }
legend { margin-bottom: 6px; padding: 0; }
.req { color: var(--red); }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font-size: 1rem;
  border: 1.5px solid rgba(20, 40, 44, .3); border-radius: 14px; background: var(--cream);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
textarea { resize: vertical; min-height: 90px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(249, 215, 28, .7); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field-err { margin: 0; color: var(--red); font-size: .875rem; font-weight: 600; }
.field-err:empty { display: none; }
.form-error-summary { background: #FBE9E4; border: 1.5px solid var(--red); color: #7A2412; border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
.form-error-summary ul { list-style: disc; padding-left: 20px; margin-top: 4px; }
.form-error-summary a { color: inherit; font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(20, 40, 44, .3); background: var(--cream); font-weight: 600; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); text-align: center; }
.resa-success { text-align: center; padding: 20px 4px; }
.resa-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .6s var(--ease); }
.resa-success .check .ic { width: 34px; height: 34px; }
.resa-success h3 { font-family: var(--f-display); font-stretch: 85%; font-size: 2rem; margin-bottom: 6px; }
.resa-success > p { color: var(--muted); }
.resa-summary { text-align: left; background: var(--cream); border-radius: 16px; padding: 16px 20px; margin: 16px 0; display: grid; gap: 4px; }
.resa-summary div { display: flex; justify-content: space-between; gap: 12px; }
.resa-summary dt { color: var(--muted); }
.resa-summary dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Infos ---------- */
.infos { padding: clamp(90px, 11vw, 150px) 0; }
.infos-head { margin-bottom: 48px; }
.infos-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .infos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .infos-grid { grid-template-columns: 1fr 1fr 1.25fr; } }
.info-block { background: var(--white); border: 1.5px solid var(--line); border-radius: 28px; padding: 28px; }
.info-block h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 85%; font-size: 1.6rem; margin-bottom: 16px; }
.open-status { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 10px; }
.open-status.open { background: #DFF3E5; color: #1D6B3A; }
.open-status.closed { background: #FBE9E4; color: #8A2A14; }
.open-status .status-dot { background: currentColor; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; font-size: .98rem; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours td.closed { color: var(--red); font-weight: 600; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 800; }
.hours tr.today th::before { content: "→ "; color: var(--red); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.contact-list { display: grid; gap: 14px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--marine); margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 40% no-repeat; transition: background-size .4s var(--ease); }
.contact-list a:hover { background-size: 100% 40%; }
.map-block { border-radius: 28px; overflow: hidden; min-height: 340px; border: 1.5px solid var(--line); }
@media (min-width: 768px) and (max-width: 1099px) { .map-block { grid-column: 1 / -1; } }
.map-block iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.35) sepia(.15); }

.faq { margin-top: 80px; max-width: 880px; }
.faq h3 { font-family: var(--f-display); font-stretch: 80%; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; letter-spacing: -.02em; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: clamp(1.15rem, 2vw, 1.45rem); min-height: 64px;
  transition: color .3s;
}
.faq summary:hover { color: var(--marine); }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; transition: transform .5s var(--ease), background-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); translate: -50% -50%; }
.plus::after { rotate: 90deg; transition: rotate .5s var(--ease); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--ink); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: var(--yellow); }
.faq details[open] .plus::after { rotate: 0deg; }
.faq-a p { padding: 0 4px 22px; margin: 0; color: var(--muted); max-width: 60ch; }
.faq-a a { color: var(--ink); font-weight: 700; }
.faq details[open] .faq-a { animation: faq-in .5s var(--ease); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 0 0 28px; overflow: hidden; }
.foot-marquee { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.foot-track {
  display: flex; align-items: center; gap: .3em; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4.5rem, 15vw, 14rem); line-height: .85; letter-spacing: -.04em;
  color: var(--cream);
}
.foot-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.foot-track .ic { width: .35em; height: .35em; fill: var(--yellow); stroke: none; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { color: var(--cream); font-size: 1.1rem; }
.footer-brand em { color: var(--yellow); font-size: 1.2em; }
.site-footer h4 { color: var(--yellow); font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--cream); transition: color .3s; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 40, 44, .6); backdrop-filter: blur(4px); }
.modal {
  width: min(440px, calc(100% - 32px)); border-radius: 28px; padding: 36px 28px 28px; background: var(--cream);
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); text-align: center; overflow: visible;
}
.modal[open] { animation: modal-in .5s var(--ease); }
.modal-close { position: absolute; right: 14px; top: 14px; }
.modal h2 { font-size: 2.2rem; margin-bottom: 8px; }
.modal .logo-mini { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; }
.modal p { color: var(--muted); }
.g-btn-wrap { display: flex; justify-content: center; min-height: 44px; margin: 20px 0 8px; }
.benefits { text-align: left; display: grid; gap: 10px; margin: 18px 0 6px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; }
.benefits .ic { color: var(--marine); margin-top: 2px; }
.notice { background: var(--white); border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: .9rem; color: var(--ink); text-align: left; }
.account-user { display: grid; justify-items: center; gap: 4px; }
.account-user > img, .account-user .avatar { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 10px; }
.avatar { display: grid; place-items: center; background: var(--yellow); color: var(--ink); border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-actions { display: grid; gap: 10px; margin-top: 20px; }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%);
  background: var(--cream); border-left: 2px solid var(--ink);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .6s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1.5px solid var(--line); }
.drawer-head h2 { font-size: 2.4rem; }
.drawer-head h2 em { color: var(--red); }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.user-card { background: var(--ink); color: var(--cream); border-radius: 22px; padding: 20px; display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.user-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(249, 215, 28, .18); }
.user-card .avatar { width: 56px; height: 56px; flex-shrink: 0; position: relative; z-index: 1; }
.user-card div { position: relative; z-index: 1; min-width: 0; }
.user-card strong { display: block; font-family: var(--f-display); font-stretch: 85%; font-size: 1.3rem; }
.user-card span { color: var(--on-dark-muted); font-size: .9rem; overflow-wrap: anywhere; }
.user-card .btn { position: relative; z-index: 1; margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.fav-item { display: flex; align-items: center; gap: 14px; background: var(--white); padding: 10px; border-radius: 20px; border: 1.5px solid var(--line); animation: row-in .5s var(--ease) both; }
.fav-item > img, .fav-item .ph { width: 64px; height: 64px; border-radius: 999px 999px 12px 12px; object-fit: cover; flex-shrink: 0; }
.fav-item .ph { background: var(--paper); display: grid; place-items: center; color: var(--marine); }
.fav-item .info { flex: 1; min-width: 0; }
.fav-item h4 { font-family: var(--f-display); font-stretch: 88%; font-size: 1.15rem; margin: 0 0 2px; }
.fav-item .price { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--red); }
.fav-item .fav-toggle { box-shadow: none; background: var(--cream); }
.drawer .carte-empty { padding: 40px 8px; }

.lightbox { background: transparent; max-width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: visible; }
.lightbox[open] { animation: modal-in .5s var(--ease); }
.lightbox img { max-height: calc(100dvh - 48px); width: auto; border-radius: var(--r); }
.lightbox::backdrop { background: rgba(10, 20, 22, .9); }
.lightbox .modal-close { right: 10px; top: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 20px 40px rgba(20, 40, 44, .3); max-width: calc(100% - 32px);
  transition: opacity .3s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- États initiaux animés (seulement si GSAP est prêt) ---------- */
.gsap-ready [data-reveal] { opacity: 0; transform: translateY(40px); }
.gsap-ready [data-hero-fade] { opacity: 0; transform: translateY(24px); }
.gsap-ready .hero-title .line-in { transform: translateY(110%); }
.gsap-ready .hero-mini[data-hero-img] { clip-path: inset(100% 0 0 0); }
.gsap-ready .hero-gable[data-hero-img] { clip-path: polygon(0 100%, 0 100%, 11% 100%, 11% 100%, 22% 100%, 22% 100%, 33% 100%, 33% 100%, 42% 100%, 42% 100%, 58% 100%, 58% 100%, 67% 100%, 67% 100%, 78% 100%, 78% 100%, 89% 100%, 89% 100%, 100% 100%, 100% 100%); }
.gsap-ready .spin-badge { opacity: 0; transform: scale(.3) rotate(-90deg); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 85, .5); } 100% { box-shadow: 0 0 0 10px rgba(47, 158, 85, 0); } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes row-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track, .spin-badge svg { animation: none !important; }
}

@media (min-width: 900px) {
  .tabs-wrap { overflow: visible; }
  .tabs { display: flex; flex-wrap: wrap; border-radius: 30px; }
}

/* =========================================================
   Cartes qui se retournent (FlipCard) + inclinaison
   ========================================================= */
.flip-card {
  --fc-radius: 22px;
  --fc-glare: .22;
  position: relative; display: block; width: 100%;
  border-radius: var(--fc-radius);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .flip-card { cursor: grab; } .flip-card.is-dragging { cursor: grabbing; } }
.flip-card__shadow {
  position: absolute; inset: 12% 9% -5%; border-radius: var(--fc-radius); pointer-events: none;
  background: rgba(0, 0, 0, .45); filter: blur(22px);
}
.flip-card__rotor { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.flip-card__face {
  position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--fc-radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-card__face img { -webkit-user-drag: none; }
.flip-card__face--back { transform: rotateY(180deg); }
.flip-card[data-axis="x"] .flip-card__face--back { transform: rotateX(180deg); }
.flip-card__glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(circle farthest-side at var(--fc-gx, 50%) var(--fc-gy, 50%),
    rgba(255, 255, 255, var(--fc-glare)) 0%, rgba(255, 255, 255, calc(var(--fc-glare) * .5)) 26%,
    rgba(255, 255, 255, calc(var(--fc-glare) * .12)) 60%, rgba(255, 255, 255, 0) 100%);
  opacity: var(--fc-sheen, 0);
}
/* hauteur automatique : la face avant est dans le flux */
.flip-card--auto .flip-card__rotor { position: relative; }
.flip-card--auto .flip-card__face--front { position: relative; }
.flip-card--auto .flip-card__face--front img { width: 100%; height: auto; display: block; }
.flip-card__toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 40, 44, .25); transition: transform .5s var(--ease), background-color .3s;
}
.flip-card__toggle .ic { width: 20px; height: 20px; }
.flip-card__toggle:hover { transform: rotate(-60deg) scale(1.08); }
.flip-card.is-flipped .flip-card__toggle { background: var(--cream); transform: rotate(180deg); }
/* mouvement réduit : fondu au lieu d'une rotation */
.flip-card[data-fade] .flip-card__face { transform: none; opacity: 0; backface-visibility: visible; transition: opacity .2s ease; }
.flip-card[data-fade="front"] .flip-card__face--front, .flip-card[data-fade="back"] .flip-card__face--back { opacity: 1; }

/* --- Plats signature --- */
.sig-flip { aspect-ratio: 3 / 4; --fc-radius: 999px 999px 24px 24px; }
.sig-flip .flip-card__shadow { border-radius: 24px; }
.sig-flip .flip-card__face--front { background: var(--teal); }
.sig-flip .flip-card__face--front > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sig-flip .flip-card__face--front::after {
  content: ""; position: absolute; inset: 45% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, rgba(20, 40, 44, .92));
}
.sig-flip .sig-badge { bottom: auto; top: 18%; z-index: 2; }
.sig-flip .flip-card__face--front .fav-toggle { position: absolute; top: 15%; right: 14px; z-index: 3; }
.sig-front-info { position: absolute; left: 18px; right: 70px; bottom: 16px; z-index: 2; display: grid; gap: 4px; color: var(--cream); }
.sig-front-info h3, .flip-card__face--back h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; }
.sig-flip .flip-card__face--back {
  background: var(--yellow); color: var(--ink); padding: 26% 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.sig-back-kicker { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; margin: 0; color: var(--teal); }
.sig-flip .flip-card__face--back .sig-desc { color: var(--ink); font-size: .92rem; line-height: 1.45; margin: 0; overflow: auto; }
.sig-flip .flip-card__face--back .sig-menu { color: var(--ink); margin: 0; font-size: .88rem; }
.sig-flip .flip-card__face--back .sig-menu strong { color: var(--red); }
.sig-back-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.sig-flip .flip-card__face--back .sig-price { color: var(--red); }
.sig-flip .flip-card__face--back .sig-price.na { color: var(--teal); }
.sig-flip .flip-card__face--back .btn { margin-right: 52px; width: auto; min-height: 44px; }
.sig-flip .flip-card__face--back .btn-yellow { background: var(--ink); color: var(--yellow); }
.sig-flip .flip-card__face--back .btn-yellow::before { background: var(--red); }
.sig-track.is-h .sig-flip { aspect-ratio: 3 / 4.05; }
.sig-track.is-h .sig-card:nth-child(even) { margin-top: 44px; }
.sig-card .sig-num { margin-bottom: -16px; }
.sig-track.is-h .sig-card { width: clamp(250px, min(24vw, 40vh), 350px); }

/* --- Galerie --- */
.gal-item.flip-card { overflow: visible; border-radius: var(--r); --fc-radius: var(--r); }
.gal-item.arch { --fc-radius: 999px 999px var(--r) var(--r); }
.gal-item .flip-card__shadow { border-radius: var(--r); opacity: .6; }
.gal-back { background: var(--yellow); color: var(--ink); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: left; }
.gal-item.arch .gal-back { padding-top: 30%; }
.gal-back p:not(.sig-back-kicker) { margin: 0; font-size: .92rem; line-height: 1.4; }
.gal-back .btn { align-self: flex-start; min-height: 44px; padding: 8px 18px; margin-top: 4px; background: var(--ink); color: var(--yellow); }
.gal-back .btn::before { background: var(--red); }
.gal-item .flip-card__toggle { width: 40px; height: 40px; right: 10px; bottom: 10px; }
@media (max-width: 599px) { .gal-back h3 { font-size: 1.2rem; } .gal-back p:not(.sig-back-kicker) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

/* --- Inclinaison + reflet (photos de l'accueil et de l'histoire) --- */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); will-change: transform; }
.tilt__glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: var(--tilt-sheen, 0);
  background: radial-gradient(circle farthest-side at var(--tilt-gx, 50%) var(--tilt-gy, 50%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
}
.sig-card .sig-back-foot .fav-toggle { position: static; box-shadow: none; }
.sig-card .flip-card__face--front .fav-toggle { top: 15%; }
.sig-card .flip-card__face--front .fav-toggle { top: auto; bottom: 12px; right: 64px; width: 44px; height: 44px; }
.sig-front-info { right: 118px; }
.sig-track.is-h .sig-card { width: clamp(240px, min(22vw, 36vh), 330px); }
