/* ==========================================================================
   Atlas Food · feuille de style
   Couleurs reprises du logo : brun-datte, sable, cuivre, terre, rouge étoile
   ========================================================================== */

/* Polices hébergées sur le site (licence SIL Open Font) */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/reem-kufi-arabe.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --datte: #220E16;        /* lettres « ATLAS » du logo */
  --datte-2: #2F1620;
  --sable: #E7DBC9;        /* fond du logo */
  --sable-2: #DFD1BF;
  --sable-clair: #F3EADC;
  --cuivre: #683830;       /* tajine du logo */
  --terre: #9C573A;        /* globe du logo */
  --terre-fonce: #8A4A30;
  --etoile: #98382C;       /* étoiles rouges du logo */
  --etoile-fonce: #7E2B21;
  --rose: #B5917E;
  --encre-douce: #4A2A2F;
  --vert: #3F6B35;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Reem Kufi", "Geeza Pro", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --focus: var(--etoile);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.motion-off { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--datte);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--etoile); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--etoile-fonce); text-decoration-thickness: 2.5px; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .site-header, .traiteur, .savoir, .site-footer { --focus: var(--sable-clair); }
.traiteur .form { --focus: var(--etoile); }

.container { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.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: fixed; left: 1rem; top: -100px; z-index: 100;
  background: var(--sable); color: var(--datte); font-weight: 700;
  padding: .8rem 1.1rem; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
section[id] { scroll-margin-top: var(--header-h); }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--etoile); color: #F8F1E7; }
.btn--primary:hover { background: var(--etoile-fonce); color: #F8F1E7; }
.btn--ghost { border-color: rgba(231, 219, 201, .55); color: var(--sable); }
.btn--ghost:hover { background: rgba(231, 219, 201, .12); border-color: var(--sable); color: var(--sable); }
.btn--ghost-dark { border-color: var(--datte); color: var(--datte); background: transparent; }
.btn--ghost-dark:hover { background: var(--datte); color: var(--sable); }
.btn--small { min-height: 42px; padding: .45rem 1rem; font-size: .95rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--sable);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: rgba(34, 14, 22, .95);
  box-shadow: 0 1px 0 rgba(231, 219, 201, .14);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(34, 14, 22, .88); backdrop-filter: blur(10px); }
}
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand__badge {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--sable); box-shadow: 0 0 0 2px rgba(231, 219, 201, .25);
}
.brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }

.status-pill {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  padding: .35rem .8rem; border: 1px solid rgba(231, 219, 201, .3); border-radius: 999px;
  font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.status-dot {
  width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: var(--rose);
}
.is-open .status-dot { background: #8FC27A; box-shadow: 0 0 0 4px rgba(143, 194, 122, .22); }
.is-soon .status-dot { background: #E2B04F; box-shadow: 0 0 0 4px rgba(226, 176, 79, .2); }
.is-closed .status-dot { background: var(--rose); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-block; padding: .4rem 0;
  color: var(--sable); text-decoration: none; font-weight: 500; font-stretch: 92%;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--etoile); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__link:hover { color: var(--sable); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { font-weight: 700; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .55rem;
  min-height: 44px; padding: .4rem .9rem; border-radius: 999px;
  background: transparent; color: var(--sable); border: 1.5px solid rgba(231, 219, 201, .45);
  cursor: pointer; font-weight: 600; font-size: .95rem;
}
.nav-toggle__icon { display: grid; gap: 5px; width: 18px; }
.nav-toggle__icon span { display: block; height: 2px; background: currentColor; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Accueil : le couvercle du tajine ---------- */
.hero {
  position: relative;
  height: 190vh; height: 190svh;
  background:
    radial-gradient(ellipse 60% 55% at 72% 55%, rgba(156, 87, 58, .28), transparent 70%),
    var(--datte);
  color: var(--sable);
}
.motion-off .hero, .no-js .hero { height: auto; }
.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.motion-off .hero__stage, .no-js .hero__stage {
  position: relative; height: auto; min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) 3rem;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 2rem 3rem;
  padding-top: var(--header-h);
}
.hero__title { margin: 0; font-weight: 400; }
.hero__atlas {
  display: flex; overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14.5vw, 13.5rem);
  line-height: .9; letter-spacing: -.025em;
  padding-bottom: .04em;
  color: var(--sable);
}
.hero__atlas > span { display: inline-block; }
.hero__food {
  display: flex; align-items: center; gap: .9rem;
  margin-top: .5rem;
  font-family: var(--font-text); font-weight: 700; font-stretch: 125%;
  font-size: clamp(.95rem, 1.5vw, 1.3rem);
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--rose);
}
.hero__food::before, .hero__food::after {
  content: ""; width: clamp(2rem, 6vw, 5rem); height: 2px; background: var(--terre);
}
.hero__food::after { margin-left: -.42em; }
.hero__food .star { width: .8em; height: .8em; fill: var(--etoile); }
.hero__lead {
  max-width: 30ch; margin: 1.8rem 0 1rem;
  font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); line-height: 1.45;
  color: var(--sable-clair);
}
.hero__status {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font-size: 1rem; color: var(--rose);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero__dish {
  --size: min(40vw, 62vh);
  --lx: 0%; --ly: 0%; --lr: 0deg; --ls: 1; --lo: 1;
  --sx: 0%; --sy: 4%; --ss: 1; --so: .8;
  --dish-b: .6; --steam: 0; --cap: 0;
  position: relative; display: grid; justify-items: center;
}
@supports (height: 1svh) { .hero__dish { --size: min(40vw, 62svh); } }
.dish { position: relative; width: var(--size); height: var(--size); }
.dish__base {
  position: absolute; inset: 0; border-radius: 50%; padding: 4.5%;
  background: radial-gradient(circle at 38% 32%, #B66A44, var(--cuivre) 62%, #3E1C14);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), inset 0 0 0 2px rgba(231, 219, 201, .12);
}
.dish__img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  filter: brightness(var(--dish-b)) saturate(1.05);
}
.steam {
  position: absolute; left: 6%; right: 6%; bottom: 42%; height: 115%;
  overflow: visible; pointer-events: none;
  opacity: var(--steam);
  filter: blur(7px);
}
.steam path {
  fill: none; stroke: rgba(255, 247, 236, .7); stroke-width: 18; stroke-linecap: round;
  stroke-dasharray: 170 300; stroke-dashoffset: 470;
  animation: steam 4.6s linear infinite;
}
.steam path:nth-child(2) { animation-duration: 5.4s; animation-delay: -1.6s; }
.steam path:nth-child(3) { animation-duration: 4.2s; animation-delay: -3s; stroke-width: 20; }
.steam path:nth-child(4) { animation-duration: 5.8s; animation-delay: -.8s; }
.steam path:nth-child(5) { animation-duration: 4.9s; animation-delay: -2.4s; stroke-width: 12; }
@keyframes steam {
  0% { stroke-dashoffset: 470; opacity: 0; }
  20% { opacity: 1; }
  70% { opacity: .8; }
  100% { stroke-dashoffset: -170; opacity: 0; }
}
.lid-shadow {
  position: absolute; inset: -2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 2, 6, .7), rgba(10, 2, 6, 0));
  transform: translate(var(--sx), var(--sy)) scale(var(--ss));
  opacity: var(--so); filter: blur(12px); pointer-events: none;
}
.lid {
  position: absolute; inset: -5%;
  transform: translate3d(var(--lx), var(--ly), 0) rotate(var(--lr)) scale(var(--ls));
  opacity: var(--lo);
  will-change: transform, opacity;
  pointer-events: none;
}
.lid svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.is-loaded .lid svg { animation: rattle 1.3s .9s ease-in-out 1 both; }
@keyframes rattle {
  0%, 100% { transform: rotate(0) translateY(0); }
  15% { transform: rotate(2.4deg) translateY(-1.2%); }
  30% { transform: rotate(-2deg) translateY(0); }
  45% { transform: rotate(1.6deg) translateY(-.8%); }
  60% { transform: rotate(-1deg) translateY(0); }
  75% { transform: rotate(.5deg); }
}

.lid-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2.2rem; min-height: 44px; padding: .45rem 1.05rem;
  border-radius: 999px; border: 1.5px solid rgba(231, 219, 201, .5);
  background: rgba(34, 14, 22, .4); color: var(--sable);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lid-toggle:hover { background: rgba(231, 219, 201, .12); border-color: var(--sable); }
.dish__caption {
  position: absolute; left: 50%; top: calc(var(--size) - 1.4rem); z-index: 2;
  display: flex; align-items: baseline; gap: .7rem; white-space: nowrap;
  margin: 0; padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--sable); color: var(--datte);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  opacity: var(--cap);
  transform: translate(-50%, calc((1 - var(--cap)) * 12px));
  pointer-events: none;
}
.dish__bssaha { font-family: var(--font-display); font-size: 1.15rem; }
.dish__bssaha [lang="ar"] { font-family: var(--font-ar); color: var(--etoile); margin-left: .25rem; }
.dish__desc { font-size: .9rem; color: var(--encre-douce); }

.hero__hint {
  position: absolute; left: 50%; bottom: 1.1rem; margin: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-size: .85rem; color: var(--rose); opacity: var(--hint, 1);
  white-space: nowrap;
}
.hero__hint::after {
  content: ""; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(5px) rotate(45deg); } }

/* Entrée de page : les lettres d'« Atlas » montent une fois */
.js:not(.motion-off) .hero__atlas > span { transform: translateY(105%); }
.is-loaded:not(.motion-off) .hero__atlas > span {
  transform: none;
  transition: transform .95s var(--ease-out);
}
.is-loaded .hero__atlas > span:nth-child(2) { transition-delay: .07s; }
.is-loaded .hero__atlas > span:nth-child(3) { transition-delay: .14s; }
.is-loaded .hero__atlas > span:nth-child(4) { transition-delay: .21s; }
.is-loaded .hero__atlas > span:nth-child(5) { transition-delay: .28s; }

/* Sans JavaScript ou animations désactivées : plat découvert, sans couvercle */
.no-js .lid, .no-js .lid-shadow, .no-js .lid-toggle, .no-js .hero__hint, .no-js .steam,
.motion-off .lid, .motion-off .lid-shadow, .motion-off .lid-toggle, .motion-off .hero__hint, .motion-off .steam { display: none; }
.no-js .hero__dish, .motion-off .hero__dish { --dish-b: 1; --cap: 1; }

/* ---------- Bande zellige ---------- */
.zellige {
  height: 40px;
  background-color: var(--sable-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 7L23.8 10.8L29.2 10.8L29.2 16.2L33 20L29.2 23.8L29.2 29.2L23.8 29.2L20 33L16.2 29.2L10.8 29.2L10.8 23.8L7 20L10.8 16.2L10.8 10.8L16.2 10.8Z' fill='%239C573A'/%3E%3Cpath d='M20 13L22 18L27 20L22 22L20 27L18 22L13 20L18 18Z' fill='%23E7DBC9'/%3E%3Cpath d='M0 4L4 0M36 0L40 4M0 36L4 40M40 36L36 40' stroke='%23683830' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-position: center;
}
.zellige--dark {
  background-color: var(--datte-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 7L23.8 10.8L29.2 10.8L29.2 16.2L33 20L29.2 23.8L29.2 29.2L23.8 29.2L20 33L16.2 29.2L10.8 29.2L10.8 23.8L7 20L10.8 16.2L10.8 10.8L16.2 10.8Z' fill='%23683830'/%3E%3Cpath d='M20 13L22 18L27 20L22 22L20 27L18 22L13 20L18 18Z' fill='%23B5917E'/%3E%3Cpath d='M0 4L4 0M36 0L40 4M0 36L4 40M40 36L36 40' stroke='%239C573A' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section__head { max-width: 46rem; }
.section__title {
  margin: 0 0 .55em;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 1.35rem + 3vw, 3.55rem);
  line-height: 1.05; letter-spacing: -.012em;
  text-wrap: balance;
}
.section__intro { font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); max-width: 54ch; margin: 0; }

/* ---------- Où nous trouver ---------- */
.tournee .container { position: relative; }
.route {
  --route-p: 0;
  position: relative; list-style: none; padding: 0;
  margin: 6.5rem 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem;
}
.route::before {
  content: ""; position: absolute; top: 10px; left: 12px; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--cuivre) 0 16px, transparent 16px 26px);
  transform: scaleX(var(--route-p)); transform-origin: left center;
  transition: transform 1.4s var(--ease-out);
}
.route.is-drawn { --route-p: 1; }
.motion-off .route, .no-js .route { --route-p: 1; }
.motion-off .route::before { transition: none; }
.route__day { position: relative; padding-top: 2.6rem; }
.route__marker {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sable); border: 4px solid var(--cuivre);
}
.route__day--stop .route__marker { background: var(--cuivre); }
.route__day--rest .route__marker { width: 16px; height: 16px; top: 4px; left: 4px; border-width: 3px; border-style: dashed; }
.route__day.is-today .route__marker {
  background: var(--etoile); border-color: var(--etoile);
  box-shadow: 0 0 0 7px rgba(152, 56, 44, .22);
}
.route__name { margin: 0; font-weight: 700; font-stretch: 112%; font-size: 1rem; color: var(--cuivre); }
.route__place { margin: .15rem 0 .3rem; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); line-height: 1.12; }
.route__day--rest .route__place { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; color: var(--encre-douce); }
.route__detail { margin: 0 0 .8rem; font-size: .95rem; color: #5E3A2E; }
.route__day--rest .route__detail { color: #5E3A2E; }
.route__today {
  display: block; width: fit-content; margin: 0 0 .8rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--datte); color: var(--sable); font-size: .85rem; font-weight: 600;
}
.route__link { font-weight: 600; font-size: 1rem; }

.truck {
  position: absolute; top: 0; left: 0; width: 96px;
  transform: translate3d(var(--truck-x, 0px), var(--truck-y, 0px), 0);
  transition: transform 1.6s var(--ease-out), opacity .4s;
  opacity: 0; pointer-events: none;
}
.truck.is-placed { opacity: 1; }
.truck.no-transition { transition: none; }
.motion-off .truck { transition: opacity .2s; }

.tournee__note {
  display: flex; gap: .75rem; align-items: flex-start;
  max-width: 62ch; margin: 3.5rem 0 0; padding: 1rem 1.25rem;
  background: var(--sable-2); border-left: 4px solid var(--etoile);
  font-size: 1rem;
}
.tournee__note .icon { margin-top: .2em; color: var(--etoile); }

/* ---------- La carte ---------- */
.carte { background: var(--sable-2); }
.carte__grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.carte__visual { position: sticky; top: calc(var(--header-h) + 2rem); }
.plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #B66A44, var(--cuivre) 62%, #3E1C14);
  box-shadow: 0 40px 70px -30px rgba(34, 14, 22, .65);
}
.plate__img {
  position: absolute; inset: 4.5%; width: 91%; height: 91%;
  border-radius: 50%; object-fit: cover;
  opacity: 0; transform: rotate(-28deg) scale(.95);
  transition: opacity .45s ease, transform .9s var(--ease-out);
}
.plate__img.is-active { opacity: 1; transform: none; }
.plate__lid {
  position: absolute; inset: -4%;
  opacity: 0; transform: translateY(-10%) scale(1.06);
  transition: opacity .35s ease, transform .6s var(--ease-out);
}
.plate__lid svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .4)); }
.plate__lid.is-active { opacity: 1; transform: none; }
.motion-off .plate__img, .motion-off .plate__lid { transition: none; transform: none; }

.plats { list-style: none; padding: 0; margin: 2.4rem 0 0; border-top: 2px solid var(--datte); }
.plat {
  position: relative; padding: 1.35rem 0 1.45rem 2.2rem;
  border-bottom: 1px solid rgba(34, 14, 22, .22);
  cursor: default;
}
.js .plat { cursor: pointer; }
.plat::before {
  content: ""; position: absolute; left: 0; top: 1.85rem; width: 18px; height: 18px;
  background: var(--etoile);
  clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
  transform: scale(0) rotate(-45deg);
  transition: transform .35s var(--ease-out);
}
.plat.is-active::before { transform: scale(1) rotate(0); }
.motion-off .plat::before { transition: none; }
.plat__thumb { display: none; }
.plat__name {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.95rem); line-height: 1.15;
  transition: color .2s;
}
.plat:hover .plat__name, .plat.is-active .plat__name { color: var(--etoile); }
.plat__desc { margin: .4rem 0 0; max-width: 50ch; color: var(--encre-douce); font-size: 1.05rem; }
.plat__tags { margin: .6rem 0 0; }
.tag {
  display: inline-block; padding: .12rem .6rem; border-radius: 999px;
  border: 1.5px solid currentColor; font-size: .82rem; font-weight: 600; color: var(--cuivre);
}
.tag--veg { color: var(--vert); }
.carte__meta { display: grid; gap: .35rem; margin: 1.8rem 0 0; font-size: 1rem; color: var(--encre-douce); }

/* ---------- Savoir-faire ---------- */
.savoir { background: var(--terre-fonce); color: var(--sable-clair); }
.savoir__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
}
.savoir__figure { position: relative; margin: 0; padding: 14px; }
.savoir__figure::before {
  content: ""; position: absolute; inset: 0;
  border: 2px solid rgba(243, 234, 220, .45);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.savoir__figure img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.savoir .section__title { color: var(--sable-clair); max-width: 16ch; }
.steps { list-style: none; counter-reset: geste; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 2rem; }
.step {
  counter-increment: geste;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.1rem;
}
.step::before {
  content: counter(geste);
  grid-row: span 2;
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--sable);
  border-right: 2px solid rgba(243, 234, 220, .35);
}
.step__title { margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.step p { margin: 0; max-width: 46ch; color: #F6EDE1; }

/* ---------- Avis ---------- */
.avis__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.avis__head .section__title { margin: 0; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 .4rem; font-size: 1.05rem; }
.rating__stars { display: flex; gap: 3px; }
.rating__stars svg { width: 22px; height: 22px; fill: var(--etoile); }
.quotes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem; margin-top: 3.2rem;
}
.quote { margin: 0; padding-top: 1.2rem; border-top: 2px solid var(--datte); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.quote p::before { content: "«\00a0"; }
.quote p::after { content: "\00a0»"; }
.quote figcaption { margin-top: .9rem; font-size: .95rem; font-weight: 600; color: #5E3A2E; }
.quote--big { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.quote--big p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3.3rem); line-height: 1.12;
  max-width: 26ch; text-wrap: balance;
}
.quote--big p::before { content: "«\00a0"; color: var(--etoile); }
.quote--big p::after { content: "\00a0»"; color: var(--etoile); }
.avis__links { margin: 2.8rem 0 0; }

/* ---------- Traiteur ---------- */
.traiteur { background: var(--datte); color: var(--sable); }
.traiteur__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.traiteur .section__title { max-width: 14ch; }
.traiteur__lead { font-size: clamp(1.15rem, 1rem + .4vw, 1.3rem); max-width: 38ch; color: var(--sable-clair); }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .8rem; align-items: baseline; }
.checks li::before {
  content: ""; flex: none; width: 13px; height: 13px; background: var(--terre);
  clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
  transform: translateY(1px);
}
.traiteur__direct { color: var(--rose); }
.traiteur__direct a { color: var(--sable); font-weight: 700; white-space: nowrap; }

.form {
  background: var(--sable); color: var(--datte);
  padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.form__title { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; }
.form__help { margin: 0 0 1.5rem; font-size: .95rem; color: var(--encre-douce); }
.req { color: var(--etoile); font-weight: 700; }
.form__summary, .field input, .field textarea { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.form__summary {
  margin: 0 0 1.4rem; padding: 1rem 1.2rem;
  border: 2px solid var(--etoile); border-radius: 6px; background: #F7E6E0;
}
.form__summary p { margin: 0 0 .4rem; font-weight: 700; }
.form__summary ul { margin: 0; padding-left: 1.2rem; }
.form__summary a { color: var(--etoile-fonce); font-weight: 600; }
.field { display: grid; gap: .35rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--datte);
  background: #F7F0E6; border: 2px solid #8E7466; border-radius: 6px;
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #7D6457; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--cuivre); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--etoile); outline-offset: 1px; border-color: var(--datte); background: #FFFBF5; }
.field [aria-invalid="true"] { border-color: var(--etoile); background: #F7E6E0; }
.field__hint { margin: 0; font-size: .9rem; color: #5E3A2E; }
.field__error { display: flex; gap: .45rem; align-items: baseline; margin: 0; font-size: .95rem; font-weight: 600; color: var(--etoile-fonce); }
.field__error::before {
  content: "!"; flex: none; display: inline-grid; place-items: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--etoile); color: #fff; font-size: .75rem; font-weight: 800;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact { background: var(--sable-2); }
.contact__list {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem;
  border-top: 2px solid var(--datte);
}
.contact__item { padding-top: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; }
.contact__label { margin: 0 0 .35rem; font-weight: 700; font-size: 1rem; color: var(--cuivre); }
.contact__value {
  display: inline-block;
  font-family: var(--font-display); font-size: clamp(1.45rem, 1rem + 1.5vw, 2.15rem); line-height: 1.2;
  color: var(--datte); text-decoration: none; border-bottom: 2px solid var(--etoile);
  overflow-wrap: anywhere;
}
.contact__value:hover { color: var(--etoile); text-decoration: none; }
.contact__value--mail { font-size: clamp(1.15rem, .9rem + 1.1vw, 1.65rem); }
.contact__hint { margin: .7rem 0 0; font-size: .95rem; color: #5E3A2E; }
.copy {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem; min-height: 40px; padding: .35rem .95rem;
  border: 1.5px solid var(--cuivre); border-radius: 999px;
  background: transparent; color: var(--datte); font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.copy:hover { background: var(--datte); color: var(--sable); border-color: var(--datte); }
.copy.is-done { background: var(--vert); border-color: var(--vert); color: #fff; }
.facts { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: .6rem; }
.facts .icon { color: var(--etoile); width: 1.35em; height: 1.35em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--datte); color: var(--sable); }
.site-footer__grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem 4rem; align-items: start;
  padding-block: 3rem 2.6rem;
}
.site-footer__brand img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.site-footer__title { margin: 0 0 .6rem; font-size: 1rem; font-weight: 700; }
.site-footer__legal p { margin: 0 0 .45rem; max-width: 62ch; font-size: .95rem; color: #CDB5A6; }
.site-footer__tools { display: grid; gap: 1rem; justify-items: start; }
.site-footer__top { color: var(--sable); font-weight: 600; }
.site-footer__top:hover { color: var(--sable-clair); }
.site-footer__copy { margin: 0; font-size: .9rem; color: #CDB5A6; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--sable); font-size: .95rem; font-weight: 600; cursor: pointer;
}
.motion-toggle__track {
  position: relative; width: 42px; height: 24px; border-radius: 999px;
  background: rgba(231, 219, 201, .2); border: 1.5px solid rgba(231, 219, 201, .6);
  transition: background-color .2s;
}
.motion-toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--sable); transition: transform .2s;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__track { background: var(--etoile); border-color: var(--etoile); }
.motion-toggle[aria-pressed="true"] .motion-toggle__thumb { transform: translateX(18px); }

/* ---------- Message de confirmation ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.25rem; border-radius: 999px;
  background: var(--sable); color: var(--datte); font-weight: 600; font-size: .98rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast:empty { display: none; }

/* ==========================================================================
   Adaptation aux écrans
   ========================================================================== */
@media (max-width: 1180px) {
  .dish__desc { display: none; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .status-pill { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--datte); border-top: 1px solid rgba(231, 219, 201, .14);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__link { font-family: var(--font-display); font-size: 1.9rem; padding: .35rem 0; font-stretch: 100%; }
  .nav__link[aria-current="true"] { font-weight: 400; color: var(--rose); }
  .nav__link::after { bottom: .2rem; right: auto; width: 2.5rem; }
  .nav__call { align-self: flex-start; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand__name { font-size: 1.15rem; }
  .brand__badge { width: 40px; height: 40px; }

  .hero { height: 175vh; height: 175svh; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    justify-items: start; padding-top: calc(var(--header-h) + .5rem);
  }
  .hero__text { display: contents; }
  .hero__title { order: 1; }
  .hero__dish { order: 2; justify-self: center; margin-top: 1rem; }
  .hero__lead { order: 3; margin: 1rem 0 0; }
  .hero__status { order: 4; display: none; }
  .hero__actions { order: 5; margin-top: 1.1rem; }
  .hero__atlas { font-size: min(23vw, 12.5svh); }
  .hero__food { font-size: .85rem; margin-top: .25rem; }
  .hero__dish { --size: min(72vw, 36svh); }
  .lid-toggle { margin-top: 1.7rem; font-size: .9rem; min-height: 40px; padding: .35rem .9rem; }
  .dish__desc { display: none; }
  .hero__lead { font-size: 1.08rem; max-width: 34ch; }
  .hero__actions .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
  .hero__hint { display: none; }

  .carte__grid { grid-template-columns: minmax(0, 1fr); }
  .carte__visual { display: none; }
  .plat { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-left: 0; }
  .plat::before { display: none; }
  .plat__thumb { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--cuivre); margin-top: .2rem; }
  .plat__thumb--lid { box-shadow: none; }
  .plat__thumb--lid svg { width: 100%; height: 100%; }

  .savoir__grid { grid-template-columns: minmax(0, 1fr); }
  .savoir__figure { max-width: 420px; }
  .traiteur__grid { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contact__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 2.5rem; }
  .route::before {
    top: 0; bottom: 0; left: 10px; right: auto; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--cuivre) 0 16px, transparent 16px 26px);
    transform: scaleY(var(--route-p)); transform-origin: top center;
  }
  .route__day { padding: 0 0 1.8rem 3rem; }
  .route__day--rest { padding-bottom: 1.4rem; }
  .route__marker { top: .1rem; }
  .route__day--rest .route__marker { top: .3rem; }
  .truck { display: none; }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__actions .btn { width: 100%; }
  .status-pill { padding: .3rem .65rem; font-size: .8rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: .4rem .75rem; }
  .brand__name { display: none; }
}

@media (max-width: 860px) and (min-height: 780px) {
  .hero__dish { --size: min(80vw, 41svh); }
  .hero__atlas { font-size: min(25vw, 13svh); }
}

@media (max-width: 860px) and (max-height: 640px) {
  .hero__lead { display: none; }
  .hero__dish { --size: min(66vw, 38svh); }
}

@media (prefers-reduced-motion: reduce) {
  .is-loaded .lid svg { animation: none; }
}

@media print {
  .site-header, .hero__dish, .zellige, .form, .toast, .motion-toggle, .truck { display: none !important; }
  .hero { height: auto; background: none; color: #000; }
  .hero__stage { position: static; height: auto; }
  body { background: #fff; }
}
