/* Chez Ali – Traiteur : nuit marocaine, or safrané, terre cuite et zellige. */

:root {
  --night: #062b19;
  --night-2: #094026;
  --indigo: #0c4a2d;
  --deep: #031a0f;
  --gold: #bf8d30;
  --gold-2: #e3bd6f;
  --gold-3: #8c6420;
  --terra: #bf8034;
  --mint: #3f8f7a;
  --blue: #2c5aa0;
  --cream: #f5ecdd;
  --muted: rgba(245, 236, 221, .72);
  --faint: rgba(245, 236, 221, .14);
  --line: rgba(191, 141, 48, .35);
  --serif: "El Messiri", "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; /* textes, descriptions, boutons */
  --display: "El Messiri", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Aref Ruqaa", "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23bf8d30' stroke-opacity='.32' stroke-width='1'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3Ccircle cx='24' cy='24' r='5'/%3E%3Cpath d='M0 0l6 6M48 0l-6 6M0 48l6-6M48 48l-6-6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.7 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--night); border-radius: 999px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip:focus { top: 16px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- Ciel étoilé et lueur du curseur ---------- */
.sky, .foil, .bloom { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
/* Fonds alternés d'une section à l'autre (js/fonds.js). */
body[data-fond="ciel"] .sky, body[data-fond="paillettes"] .foil, body[data-fond="halo"] .bloom { opacity: 1; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(9, 64, 38, .9) 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 60%, rgba(191, 128, 52, .14), transparent 60%),
    radial-gradient(900px 600px at 0% 90%, rgba(63, 143, 122, .12), transparent 60%),
    linear-gradient(#04210f, #020f08);
}
.glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 70, .13), transparent 65%);
  transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0);
  transition: opacity .4s;
}
@media (hover: none) { .glow { display: none; } }

/* ---------- Écran d'entrée ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: var(--deep);
  transition: clip-path 1.1s var(--ease), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader__logo {
  width: clamp(130px, 22vw, 180px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(227, 189, 111, .25), 0 0 70px rgba(227, 189, 111, .28);
  animation: lantern-on 1.2s var(--ease) both, logo-in 1.2s var(--ease) both;
}
@keyframes logo-in { from { transform: scale(.88); } to { transform: none; } }
.loader__ar { margin: 10px 0 0; font: 400 26px/1.4 var(--arabic); color: var(--gold); animation: rise 1s .5s var(--ease) both; }
.is-ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes lantern-on { from { opacity: 0; filter: brightness(.2) saturate(0); } to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  transition: transform .5s var(--ease), background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(4, 33, 19, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; border-color: rgba(191, 141, 48, .18); }
.top.is-hidden { transform: translateY(-110%); }
.top__gauche { justify-self: start; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.top__liens { display: flex; gap: clamp(14px, 1.8vw, 28px); font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.top__liens a { color: var(--cream); text-decoration: none; opacity: .85; transition: color .3s, opacity .3s; }
.top__liens a:hover, .top__liens a:focus-visible { color: var(--gold-2); opacity: 1; }
@media (max-width: 1120px) {
  .top__gauche { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 10px; }
  .top__liens { gap: clamp(14px, 4.5vw, 28px); font-size: 10px; letter-spacing: .2em; }
}
.top__menu {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px 0;
  font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.burger { display: grid; gap: 5px; width: 24px; }
.burger i { display: block; height: 1.5px; background: var(--gold); transition: transform .4s var(--ease), opacity .3s, width .4s; }
.burger i:nth-child(2) { width: 70%; }
.top__menu:hover .burger i:nth-child(2) { width: 100%; }
.menu-open .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.brand { display: grid; justify-items: center; text-decoration: none; line-height: 1; }
.brand__logo { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); transition: width .4s var(--ease), height .4s var(--ease); }
.top.is-scrolled .brand__logo { width: 50px; height: 50px; }
@media (max-width: 640px) { .brand__logo { width: 50px; height: 50px; } .top.is-scrolled .brand__logo { width: 44px; height: 44px; } }
.brand__star { width: 22px; height: 22px; color: var(--gold); animation: spin 18s linear infinite; }
.brand__name { font: 500 26px/1.05 var(--serif); letter-spacing: .03em; margin-top: 4px; }
.brand__sub { font: 600 9px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.top__cta { justify-self: end; display: flex; gap: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Boutons ---------- */
.btn {
  --pad: 15px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: var(--pad); border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s, color .3s, border-color .3s;
}
.btn--sm { --pad: 11px 18px; font-size: 11px; }
.btn--gold { color: var(--night); background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); box-shadow: 0 10px 30px -12px rgba(191, 141, 48, .8); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--cream); border: 1px solid var(--line); background: rgba(6, 43, 25, .35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn:hover { transform: translateY(-2px); }

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; display: grid; place-content: center; justify-items: center; gap: 40px;
  background: rgba(3, 26, 15, .97) var(--zellige); background-size: 64px;
  clip-path: circle(0 at 40px 40px); transition: clip-path .8s var(--ease);
}
.menu[hidden] { display: grid; visibility: hidden; }
.menu-open .menu { clip-path: circle(150% at 40px 40px); visibility: visible; }
.menu__rosette { position: absolute; width: min(90vmin, 700px); height: min(90vmin, 700px); color: rgba(191, 141, 48, .14); animation: spin 90s linear infinite; pointer-events: none; }
.menu__list { list-style: none; margin: 0; padding: 0; text-align: center; position: relative; }
.menu__list a {
  display: inline-flex; align-items: baseline; gap: 14px; padding: 4px 0;
  font: 400 clamp(34px, 7vw, 64px)/1.15 var(--serif); text-decoration: none;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__list span { font: 600 12px/1 var(--sans); color: var(--gold); letter-spacing: .2em; }
.menu__list a:hover { color: var(--gold-2); font-style: italic; }
.menu-open .menu__list a { opacity: 1; transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .06s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .12s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .18s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .24s; }
.menu__foot { position: relative; display: flex; gap: 14px; color: var(--gold); margin: 0; font-weight: 600; letter-spacing: .08em; }
.menu__foot a { color: var(--cream); text-decoration: none; }

/* ---------- Typo commune ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 18px;
  font: 700 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow--left { justify-content: flex-start; }
.eyebrow__line { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow__line:last-child { transform: scaleX(-1); }
.title { margin: 0 0 22px; font: 400 clamp(36px, 5.2vw, 64px)/1.06 var(--serif); letter-spacing: -.005em; }
.title em, .hero__title em { font-style: italic; background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #e9b866); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title--xl { font-size: clamp(42px, 7vw, 92px); }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); }
.tag { margin: 0 0 6px; font: 700 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.section { position: relative; padding-block: clamp(80px, 12vw, 150px); }
p { color: var(--muted); }

/* ---------- Apparitions au défilement ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- ACCUEIL ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 130px var(--gutter) 200px; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--deep)); pointer-events: none; }
.hero__lanterns { position: absolute; inset: 0; pointer-events: none; }
.lantern {
  position: absolute; top: 0; left: var(--x); width: calc(70px * var(--s)); transform-origin: 50% 0;
  animation: sway 4.5s ease-in-out var(--d) infinite alternate;
}
.lantern::before { content: ""; display: block; width: 1px; height: var(--len); margin-inline: auto; background: linear-gradient(transparent, var(--gold)); }
.lantern svg { width: 100%; height: auto; aspect-ratio: 80 / 170; filter: drop-shadow(0 0 22px rgba(212, 162, 70, .55)); }
.lantern__halo { animation: flicker 2.6s ease-in-out infinite; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes flicker { 0%, 100% { opacity: .35; } 40% { opacity: .5; } 55% { opacity: .28; } 70% { opacity: .45; } }

.hero__arch {
  position: absolute; left: 50%; top: 52%; width: min(640px, 86vw); height: min(780px, 92svh);
  transform: translate(-50%, -50%); color: var(--gold); opacity: .55; pointer-events: none;
}
.hero__arch path { stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.is-ready .hero__arch path { animation: draw 2.6s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__title {
  margin: 0; font: 400 clamp(76px, 15vw, 190px)/.9 var(--serif); letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff8e8 20%, var(--gold-2) 70%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 40px rgba(191, 141, 48, .25));
}
.hero__title .char { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(8px); background: inherit; -webkit-background-clip: text; background-clip: text; }
.is-ready .hero__title .char { animation: char-in 1.2s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .06s); }
@keyframes char-in { to { opacity: 1; transform: none; filter: none; } }
.hero__ar { margin: 2px 0 18px; font: 400 clamp(28px, 4vw, 40px)/1.3 var(--arabic); color: var(--gold); }
.hero__lead { margin: 0 auto 34px; max-width: 520px; font-size: clamp(16px, 1.6vw, 18px); color: var(--cream); opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .reveal { transition-delay: calc(.9s + var(--delay, 0s)); }
.hero__medina { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(110px, 16vw, 220px); z-index: 1; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
  font: 600 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Zellige et arcs ---------- */
.zellige { background: radial-gradient(circle at 50% 35%, rgba(212, 162, 70, .22), transparent 60%), var(--zellige), var(--indigo); background-size: auto, 48px, auto; }
.zellige--blue { background-color: #0c4a2d; }
.zellige--terra { background-color: #5a2414; }
.zellige--mint { background-color: #173f3a; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.steam path { stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; animation: steam 3.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.8s; }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; } 30% { opacity: .55; } 100% { stroke-dashoffset: -60; opacity: 0; } }
svg { overflow: visible; }

/* ---------- LA MAISON ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.arch-frame { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.arch-frame__inner {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  border-radius: 50% 50% 6px 6px / 42.5% 42.5% 6px 6px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .55), 0 40px 80px -40px rgba(0, 0, 0, .8);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease);
}
.arch-frame.is-in .arch-frame__inner { clip-path: inset(0 0 0 0); }
.arch-frame__dish { width: 78%; height: auto; aspect-ratio: 260 / 220; margin-top: 18%; }
/* Liseré : même arc que la photo, décalé d'environ 11 px tout autour (le tracé du symbole est en retrait de 4 %). */
.arch-frame__line { position: absolute; top: -30px; left: -30px; width: calc(100% + 60px); max-width: none; height: calc(100% + 30px); color: var(--gold); opacity: .6; pointer-events: none; }
.arch-frame figcaption { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); white-space: nowrap; font: italic 400 17px/1 var(--serif); color: var(--gold-2); }
.story__text > p { font-size: 17.5px; }
.promise { margin: 34px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); }
.promise p { margin: 0 0 10px; font: italic 400 clamp(22px, 2.4vw, 27px)/1.35 var(--serif); color: var(--cream); }
.promise cite { font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* ---------- LES INCONTOURNABLES ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-bottom: 56px; perspective: 1000px; }
.dish {
  position: relative; padding: 18px 18px 30px; text-align: center; border-radius: 200px 200px 22px 22px;
  background: linear-gradient(180deg, rgba(24, 35, 79, .7), rgba(6, 43, 25, .7));
  border: 1px solid rgba(191, 141, 48, .22);
  transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.dish:hover { border-color: rgba(191, 141, 48, .6); box-shadow: 0 30px 70px -30px rgba(191, 141, 48, .35); }
.dish--lift { margin-top: -40px; }
.dish__arch { display: grid; place-items: center; aspect-ratio: 1 / 1.05; margin-bottom: 26px; border-radius: 200px 200px 14px 14px; overflow: hidden; box-shadow: inset 0 0 60px rgba(0, 0, 0, .5); }
.dish__arch svg { width: 80%; height: auto; aspect-ratio: 260 / 220; margin-top: 20%; transform: translateZ(40px); }
.dish h3 { margin: 0 0 10px; font: 400 clamp(30px, 3vw, 38px)/1 var(--serif); }
.dish p:last-child { margin: 0 auto; max-width: 30ch; font-size: 15.5px; }

/* ---------- RUBANS ---------- */
.ribbons { position: relative; padding-block: 40px; overflow: hidden; }
.ribbon { display: flex; overflow: hidden; white-space: nowrap; padding: 18px 0; }
.ribbon--gold { background: linear-gradient(90deg, var(--gold-3), var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, var(--gold-3)); color: var(--night); transform: rotate(-2deg) scale(1.04); position: relative; z-index: 1; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.ribbon--night { background: var(--deep) var(--zellige); background-size: 40px; color: var(--gold-2); border-block: 1px solid var(--line); transform: rotate(1.5deg) scale(1.04); margin-top: -8px; }
.ribbon__track { display: flex; align-items: center; gap: 28px; padding-right: 28px; will-change: transform; }
.ribbon__track span { font: italic 400 clamp(26px, 3.2vw, 40px)/1 var(--serif); }
.ribbon__track svg { width: 18px; height: 18px; flex: none; }

/* ---------- LA CUISINE ---------- */
.cuisine__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.cuisine__intro { position: sticky; top: 120px; }
.note { font-size: 14.5px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; }
.note a { color: var(--gold-2); }
.cuisine__teapot { width: min(320px, 70%); height: auto; aspect-ratio: 260 / 220; margin-top: 30px; }
.courses { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.course {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px;
  padding: 30px 6px; border-bottom: 1px solid var(--faint); transition: padding .5s var(--ease);
}
.course:first-child { border-top: 1px solid var(--faint); }
.course::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .7s var(--ease); }
.course:hover { padding-left: 18px; }
.course:hover::before { width: 100%; }
.course__num { font: italic 400 34px/1 var(--serif); color: var(--gold); }
.course h3 { margin: 0 0 4px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); }
.course p { margin: 0; font-size: 15.5px; }
.course__star { width: 18px; height: 18px; color: var(--gold); opacity: .3; transition: transform .6s var(--ease), opacity .4s; }
.course:hover .course__star { opacity: 1; transform: rotate(180deg) scale(1.3); }

/* ---------- AU MARCHÉ ---------- */
.market {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(150px, 18vw, 220px) 0 clamp(90px, 12vw, 150px);
  background: radial-gradient(800px 500px at 50% 60%, rgba(191, 128, 52, .35), transparent 70%), linear-gradient(#07331f, #0a3a24 60%, #062b19);
}
.market__awning {
  position: absolute; inset: 0 0 auto; height: 90px;
  background: repeating-linear-gradient(90deg, var(--terra) 0 60px, var(--cream) 60px 120px);
  -webkit-mask: radial-gradient(32px 26px at 30px 100%, transparent 98%, #000) 0 0 / 60px 100%;
  mask: radial-gradient(32px 26px at 30px 100%, transparent 98%, #000) 0 0 / 60px 100%;
  opacity: .9; transform-origin: top; animation: awning 5s ease-in-out infinite alternate;
}
@keyframes awning { from { transform: skewX(-1deg) scaleY(1); } to { transform: skewX(1deg) scaleY(1.06); } }
/* Grillage tissé en fond (js/grillage.js, three.js) : remplace la rosace qui tournait. */
.market__grillage { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .32; } /* discret */
.market__awning { z-index: 1; } /* le store du marché passe devant le grillage */
.market__grillage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.market__inner { position: relative; max-width: 900px; }
.market__lead { max-width: 620px; margin: 0 auto 44px; font-size: clamp(17px, 1.8vw, 20px); color: var(--cream); opacity: .85; }
.market__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); max-width: 720px; margin: 0 auto 44px; }
/* Arche en plein cintre : le haut est un demi-cercle exact, le texte est centré dans la partie basse. */
.fact {
  --arch: 50% 50% 14px 14px / 47.6% 47.6% 14px 14px;
  position: relative; aspect-ratio: 1 / 1.05; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 36% 14px 10%; text-align: center;
  border: 1px solid var(--line); border-radius: var(--arch);
  background: radial-gradient(120% 80% at 50% 100%, rgba(191, 128, 52, .16), transparent 70%), rgba(3, 26, 15, .5);
  backdrop-filter: blur(6px);
}
.fact::before { content: ""; position: absolute; inset: 7px; z-index: -1; border: 1px solid rgba(191, 141, 48, .22); border-radius: var(--arch); pointer-events: none; }
.fact::after { content: "✦"; position: absolute; top: 15%; left: 50%; translate: -50% 0; font-size: 11px; line-height: 1; color: var(--gold); opacity: .7; }
.fact strong { display: block; font: 500 clamp(28px, 3.2vw, 40px)/1.05 var(--serif); color: var(--gold-2); white-space: nowrap; }
.fact strong::after { content: ""; display: block; width: 28px; height: 1px; margin: 12px auto 10px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.fact span { display: block; max-width: 15ch; font-size: 13px; line-height: 1.45; letter-spacing: .05em; color: var(--muted); text-wrap: balance; }

/* ---------- VALEURS ---------- */
.values__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.value { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; }
.value + .value { border-left: 1px solid var(--faint); }
.value svg { width: 26px; height: 26px; color: var(--gold); animation: spin 14s linear infinite; }
.value strong { font: 400 clamp(28px, 2.8vw, 38px)/1 var(--serif); }
.value span { font-size: 14.5px; color: var(--muted); max-width: 24ch; }

/* ---------- TRAITEUR ---------- */
.events__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.ticks { list-style: none; margin: 26px 0 34px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--cream); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.events__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.events__visual { position: relative; aspect-ratio: 1; }
.events__table {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(212, 162, 70, .25), transparent 60%), var(--zellige), #4a1f12;
  background-size: auto, 44px, auto;
  box-shadow: inset 0 0 0 10px rgba(191, 141, 48, .35), inset 0 0 90px rgba(0, 0, 0, .6), 0 50px 90px -40px #000;
}
.events__dish { position: absolute; height: auto; aspect-ratio: 260 / 220; }
.events__dish--a { width: 56%; left: 22%; top: 32%; }
.events__dish--b { width: 40%; left: 4%; top: 6%; animation-delay: -2s; }
.events__dish--c { width: 40%; right: 2%; top: 10%; animation-delay: -4s; }
.events__rosette { position: absolute; inset: -6%; width: 112%; height: 112%; color: rgba(191, 141, 48, .3); animation: spin 80s linear infinite reverse; pointer-events: none; }

/* ---------- COMMANDER ---------- */
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); perspective: 1000px; }
.ticket {
  position: relative; display: grid; justify-items: start; gap: 6px; padding: clamp(30px, 4vw, 50px);
  border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, rgba(24, 35, 79, .85), rgba(6, 43, 25, .9));
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
}
.ticket::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: var(--zellige); background-size: 40px; border-radius: 50%; opacity: .6; -webkit-mask: radial-gradient(#000, transparent 70%); mask: radial-gradient(#000, transparent 70%); }
.ticket--gold { border-color: rgba(191, 141, 48, .6); background: linear-gradient(160deg, rgba(20, 70, 42, .85), rgba(6, 43, 25, .9)); }
.ticket h3 { margin: 0 0 6px; font: 400 clamp(30px, 3.2vw, 42px)/1.05 var(--serif); }
.ticket p:not(.tag) { margin: 0 0 22px; }
.ticket .btn { margin-top: auto; }
.link { margin-top: 12px; font-size: 14px; color: var(--gold-2); text-underline-offset: 4px; }
.ticket:hover { box-shadow: 0 40px 80px -40px rgba(191, 141, 48, .4); }
.order__zone { max-width: 640px; margin: 50px auto 0; text-align: center; font: italic 400 21px/1.5 var(--serif); color: var(--cream); opacity: .85; }

/* ---------- PIED DE PAGE ---------- */
.foot { position: relative; padding: 90px 0 30px; background: var(--deep); border-top: 1px solid var(--line); }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--zellige); background-size: 28px; opacity: .8; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__name { margin: 0; font: 400 52px/1 var(--serif); color: var(--cream); }
.foot__ar { text-align: left; margin: 4px 0 8px; font: 400 30px/1.3 var(--arabic); color: var(--gold); }
.foot__tag { max-width: 32ch; }
.foot__h { margin: 0 0 14px; font: 700 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.foot address { font-style: normal; color: var(--muted); margin-bottom: 14px; }
.foot p { margin: 0 0 6px; }
.foot a { text-decoration: none; color: var(--cream); }
.foot a:hover { color: var(--gold-2); }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--faint); font-size: 13px; }
.foot__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .story__grid, .cuisine__grid, .events__grid { grid-template-columns: 1fr; }
  .arch-frame { max-width: 420px; width: 100%; margin-inline: auto; }
  .cuisine__intro { position: static; }
  .cuisine__teapot { display: none; }
  .trio { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .dish--lift { margin-top: 0; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--faint); }
  .events__visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { grid-template-columns: auto 1fr auto; }
  .top__menu > span:last-child, .hide-sm { display: none; }
  .brand__name { font-size: 22px; }
  .lantern:nth-child(2), .lantern:nth-child(3) { display: none; }
  .hero { padding-bottom: 170px; }
  .hero__actions .btn { width: 100%; }
  .market__facts { grid-template-columns: 1fr; max-width: 300px; }
  .fact { --arch: 150px 150px 14px 14px; aspect-ratio: auto; padding: 46px 20px 26px; }
  .fact::after { top: 22px; }
  .fact span { max-width: none; }
  .order__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--faint); }
  .course { grid-template-columns: 48px 1fr; }
  .course__star { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .char { opacity: 1 !important; transform: none !important; filter: none !important; }
  .arch-frame__inner { clip-path: none; }
  .hero__arch path { stroke-dashoffset: 0; }
  .steam path { opacity: .4; stroke-dashoffset: 0; }
}

/* Les cartes inclinables gardent le fondu d'apparition en plus de leur propre transition. */
.dish.reveal, .ticket.reveal { transition: opacity 1s var(--ease) var(--delay, 0s), transform .6s var(--ease), border-color .4s, box-shadow .5s; }
.events { overflow-x: clip; }
@media (max-width: 640px) { .eyebrow { letter-spacing: .22em; gap: 10px; } .eyebrow__line { width: 22px; } }

/* ---------- Photos du client : remplacent l'illustration dès qu'un fichier existe dans media/ ---------- */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.has-photo .photo { opacity: 1; transform: none; }
.has-photo > svg { display: none; }
/* Plats détourés (fond transparent) : posés dans l'arche comme l'illustration, sans être recadrés. */
.dish__arch .photo { left: 6%; top: 17%; width: 88%; height: 80%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
.dish__arch, .events__table { position: relative; }
.events__table.has-photo { overflow: hidden; }
.has-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(3, 26, 15, .55); border-radius: inherit; }
.dish:hover .photo { transform: scale(1.05); }
@media (max-width: 960px) { .arch-frame { margin-bottom: 40px; } }

/* Titres de section : grotesque grasse, mot clé en fine italique dorée (direction « triptyque »). */
.title { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; font-size: clamp(32px, 4.6vw, 60px); }
.title em { font-weight: 200; letter-spacing: -.02em; }

/* Italique simulée (El Messiri n'a pas d'italique) + texte en dégradé : la dernière lettre penchée dépassait de la
   boîte du dégradé et paraissait coupée (« notre »). On élargit la boîte sur chaque ligne sans décaler le texte. */
.title em, .hero__title em { padding-right: .14em; margin-right: -.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
