/* ═══════════════════════════════════════════════════════════
   STYLES DU SITE — styles.css
   Pour un nouveau client : changer seulement les couleurs et
   polices du bloc :root.
   Mise en page : colonnes sur ordinateur, mêmes blocs empilés
   sur téléphone (rien n'est masqué ni remplacé).
   ═══════════════════════════════════════════════════════════ */
:root {
  --primary: #17120F;        /* fonds sombres, boutons principaux */
  --primary-2: #231C18;      /* surfaces posées sur le fond sombre */
  --accent: #B88952;         /* doré : détails, prix, boutons clairs */
  --accent-light: #D9B98C;   /* doré clair : textes et icônes sur fond sombre */
  --accent-deep: #8A6434;    /* doré foncé : petits textes sur fond clair (contraste AA) */
  --bg: #F7F3ED;             /* fond de page */
  --text: #29221E;           /* texte principal */
  --white: #FFFFFF;
  --muted: #6E625A;          /* texte secondaire */
  --line: rgba(41, 34, 30, .12);
  --line-dark: rgba(217, 185, 140, .22);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Allura', 'Brush Script MT', cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(23, 18, 15, .08);
  --header-h: 92px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 100px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ─── Écran d'ouverture ───
   0 → 0,9 s : le logo monte et apparaît · 0,6 → 1,5 s : filets et « Restaurant · Thiès »
   1,1 → 2,1 s : reflet doré sur le logo · 2,4 → 3,2 s : le rideau se lève vers le haut. */
.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--accent-light);
  animation: intro-lift .8s cubic-bezier(.7, 0, .2, 1) 2.4s forwards;
}
.intro-off .intro { display: none; }
.intro.is-skip { animation: intro-lift .45s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro-in { display: grid; justify-items: center; gap: 22px; padding-inline: 24px; }
.intro-logo {
  width: min(340px, 78vw); aspect-ratio: 949 / 377;
  /* le logo (PNG transparent) sert de masque : il se remplit d'un dégradé doré qui glisse */
  -webkit-mask: url("images/logo.png") center / contain no-repeat; mask: url("images/logo.png") center / contain no-repeat;
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent) 38%, #F4E3C4 50%, var(--accent) 62%, var(--accent) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  opacity: 0; transform: translateY(16px) scale(.96);
  animation: intro-logo .9s var(--ease-out) .1s forwards, intro-shine 1s ease-in-out 1.1s forwards;
}
.intro-rule { display: flex; align-items: center; gap: 14px; }
.intro-rule i { display: block; width: 56px; height: 1px; background: var(--accent); transform: scaleX(0); animation: intro-line .7s var(--ease-out) .6s forwards; }
.intro-rule i:first-child { transform-origin: right; }
.intro-rule i:last-child { transform-origin: left; }
.intro-rule span { font: 500 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; opacity: 0; animation: intro-fade .8s ease .8s forwards; }
@keyframes intro-logo { to { opacity: 1; transform: none; } }
@keyframes intro-shine { to { background-position: 0 0; } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-fade { to { opacity: 1; letter-spacing: .24em; } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .intro { animation: intro-out .4s ease 1.6s forwards; }
  .intro-logo, .intro-rule i, .intro-rule span { animation: none; opacity: 1; transform: none; }
  @keyframes intro-out { to { opacity: 0; visibility: hidden; } }
}

/* ─── Typographie ─── */
.script { display: flex; align-items: center; gap: 10px; font: 400 clamp(30px, 3.2vw, 40px)/1 var(--script); color: var(--accent-deep); margin-bottom: 10px; }
.script-branch { width: 34px; height: 34px; color: var(--accent); }
.title { font: 600 clamp(32px, 4.2vw, 50px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: balance; color: var(--text); }
.title span { display: block; font-style: italic; color: var(--accent-deep); }
.lead { color: var(--muted); font-size: 17.5px; max-width: 460px; }
.divider { display: flex; align-items: center; gap: 10px; width: 190px; margin: 22px 0; color: var(--accent); }
.divider i { flex: 1; height: 1px; background: currentColor; opacity: .6; }
.divider-leaf { width: 18px; height: 18px; }

/* ─── Icônes & boutons ─── */
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg { width: 34px; height: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 6px; padding: 15px 26px; border: 1px solid transparent; min-height: 50px;
  font: 500 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--accent-deep); }
.btn-line { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-line:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--accent); color: var(--primary); }
.btn-light:hover { background: var(--accent-light); }
.hero .btn-light, .chef .btn-light { box-shadow: 0 10px 24px rgba(184,137,82,.3); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ─── En-tête ─── */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(23,18,15,.08); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo img { height: 62px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { position: relative; font-size: 13.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { padding: 13px 20px; min-height: 46px; }
.header-cta { box-shadow: 0 6px 18px rgba(184,137,82,.3); }
.header-cta.is-current { background: var(--accent-light); }

/* ─── Accueil ─── */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 70px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-text { min-width: 0; }
.hero .title { font-size: clamp(38px, 5.6vw, 70px); }
.hero-media { position: relative; }
.arch { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow); }
.seal {
  position: absolute; left: -26px; bottom: 34px; width: 150px; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); border: 1px solid var(--accent); box-shadow: var(--shadow);
  display: grid; place-items: center; align-content: center; text-align: center; color: var(--text);
}
.seal svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.seal text { font: 600 8.6px var(--sans); letter-spacing: .16em; fill: var(--accent-deep); }
.seal b { font: 600 38px/1 var(--serif); }
.seal span { font-size: 11.5px; line-height: 1.2; max-width: 70px; color: var(--muted); }

/* ─── Atouts ─── */
.features-in { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 10px 0; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.feature + .feature { border-left: 1px solid var(--line-dark); }
.feature .ic { color: var(--accent-light); }
.feature b { display: block; font-weight: 500; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.feature span { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); }

/* ─── Notre histoire ─── */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 16% 14% 0; }
.about-main { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); }
.about-small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 12px 12px; border: 6px solid var(--bg); }
.about-text { min-width: 0; }
.about-text p:not(.script):not(.signature-line) { color: var(--muted); }
.signature-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; font: 400 34px/1 var(--script); color: var(--text); }
.signature-line .ic { width: 24px; height: 24px; color: var(--accent); }

/* ─── Plats phares ─── */
.signature { background: var(--white); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.sec-head-center { justify-content: center; text-align: center; }
.sec-head-center .script { justify-content: center; }
.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px;
}
.track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s; }
.card:hover { box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); font-weight: 500; }
.card h3 { font: 600 19px/1.25 var(--serif); margin: 6px 0 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-weight: 600; font-size: 17px; color: var(--text); }
.plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 22px; line-height: 1; transition: background .25s; }
.plus:hover { background: var(--accent-deep); }
.car-btn {
  position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--primary); color: var(--white); box-shadow: var(--shadow); transition: opacity .2s, background .2s;
}
.car-btn:hover { background: var(--accent-deep); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-btn svg { width: 20px; height: 20px; }
.car-prev { left: -22px; }
.car-next { right: -22px; }

/* ─── Bandeau commander ─── */
/* motif géométrique marocain (étoile à huit branches), très léger */
.promo { padding-block: clamp(70px, 9vw, 110px) 0; }
.promo-in {
  position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.55fr) auto; align-items: center; gap: 24px;
  background: var(--primary); color: var(--white); border-radius: var(--radius);
}
.promo-media { position: relative; align-self: stretch; margin: -46px 0 -30px 22px; }
.promo-img {
  width: 100%; height: 100%; min-height: 210px; object-fit: cover;
  border-radius: 999px 999px 16px 16px; border: 5px solid var(--primary);
  box-shadow: 0 26px 40px rgba(23, 18, 15, .45), 0 0 0 1px var(--accent);
}
.promo-title { padding-block: 26px; min-width: 0; }
.promo-title h2 { font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--serif); color: var(--accent-light); text-transform: uppercase; letter-spacing: .02em; }
.promo-title p { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; }
.promo-items { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 24px; }
.promo-items li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 0 10px; }
.promo-items li + li { border-left: 1px solid var(--line-dark); }
.promo-items .ic { color: var(--accent-light); width: 30px; height: 30px; margin-bottom: 4px; }
.promo-items b { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.promo-items span { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.4; }
.promo-cta {
  position: relative; align-self: stretch; display: grid; place-items: center; padding: 26px 26px;
  border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; isolation: isolate;
}
.promo-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D9B98C' stroke-width='1'%3E%3Cpath d='M28 8l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
.promo-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(184,137,82,.22), transparent 65%); }
.promo-cta .btn { white-space: nowrap; box-shadow: 0 10px 26px rgba(184,137,82,.28); }

/* ─── Spécialité + avis ─── */
.special-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.chef { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chef-media { position: relative; min-height: 300px; }
.chef-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chef-badge { display: none; }
.chef-text { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.chef-text .title { font-size: clamp(28px, 3vw, 38px); }
.chef-text p:not(.script) { color: var(--muted); }
.chef-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.chef-foot .price { font: 600 24px/1 var(--serif); }
.review { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.review .script { color: var(--accent-light); }
.review .title { color: var(--white); font-size: clamp(24px, 2.4vw, 30px); }
.review blockquote { font: italic 500 18px/1.65 var(--serif); margin: 18px 0 20px; color: rgba(255,255,255,.9); }
.review figcaption { font-size: 14px; color: rgba(255,255,255,.7); }
.stars { color: var(--accent); letter-spacing: 2px; margin-right: 10px; }

/* ─── Galerie : grille « magazine » asymétrique ───
   12 colonnes, rangées de hauteur fixe ; arches et rectangles alternent,
   la 2e et la 4e photo démarrent plus bas pour casser l'alignement. */
.gallery { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(34px, 5.4vw, 64px); gap: clamp(8px, 1.2vw, 14px); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); transition: transform .5s var(--ease-out); }
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid img:nth-child(1) { grid-column: 1 / 5;  grid-row: 1 / 8; border-radius: 999px 999px 12px 12px; }
.gallery-grid img:nth-child(2) { grid-column: 5 / 8;  grid-row: 2 / 6; border-radius: 999px 999px 12px 12px; }
.gallery-grid img:nth-child(3) { grid-column: 8 / 13; grid-row: 1 / 4; }
.gallery-grid img:nth-child(4) { grid-column: 8 / 11; grid-row: 5 / 9; border-radius: 999px 999px 12px 12px; }
.gallery-grid img:nth-child(5) { grid-column: 11 / 13; grid-row: 4 / 8; }
.gallery-grid img:nth-child(6) { grid-column: 5 / 8;  grid-row: 6 / 9; }

/* ─── Réservation ─── */
.reservation { padding-bottom: clamp(56px, 8vw, 90px); }
.resa {
  display: grid; grid-template-columns: 1fr 2fr; gap: 20px 36px; align-items: center;
  background: var(--primary); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
}
.resa-head .script { color: var(--accent-light); margin-bottom: 4px; }
.resa-head h2 { font: 600 clamp(26px, 3vw, 36px)/1.15 var(--serif); }
.resa-head p:last-child { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 6px; }
.resa-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; min-width: 0; }
.rf { min-width: 0; }
.rf span { display: block; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.rf input, .rf select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--white);
  border: 1px solid transparent; border-radius: 6px; padding: 0 12px; height: 50px; outline: none;
}
.rf input:focus, .rf select:focus { border-color: var(--accent); }
.resa-msg { grid-column: 2; font-size: 14px; color: var(--accent-light); }
.resa-msg a { text-decoration: underline; }

/* ─── Page « Commander » ─── */
.page-hero { position: relative; overflow: hidden; background: var(--primary); color: var(--white); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero-in { position: relative; padding-block: clamp(44px, 7vw, 84px); text-align: center; display: grid; justify-items: center; gap: 8px; }
.page-hero .script { color: var(--accent-light); justify-content: center; margin: 6px 0 0; }
.page-hero h1 { font: 600 clamp(32px, 4.6vw, 54px)/1.1 var(--serif); text-wrap: balance; }
.page-hero p:last-child { color: rgba(255,255,255,.8); max-width: 540px; }
.crumbs { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.crumbs a { color: var(--accent-light); }
.crumbs span { margin: 0 6px; }
[data-page="commande"] .order-head { display: none; }
[data-page="commande"] .order.section { padding-top: 44px; }

/* ─── Pied de page ─── */
.footer { background: var(--primary); color: rgba(255,255,255,.72); font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 1.4fr; gap: 36px; padding-block: 56px 44px; }
.f-logo { height: 76px; width: auto; filter: invert(1); opacity: .95; }
.f-socials { display: flex; gap: 10px; margin-top: 20px; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--white); transition: background .25s, color .25s, border-color .25s; }
.social svg { width: 17px; height: 17px; }
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.footer h4 { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; }
.f-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.footer a:hover { color: var(--white); }
.f-hours { display: grid; gap: 10px; width: 100%; }
.f-hours div { display: flex; justify-content: space-between; gap: 12px; }
.f-hours dd { color: var(--white); }
.f-line { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.f-line .ic { color: var(--accent); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px; }

/* ═══ Téléphone et tablette : mêmes blocs, mêmes couleurs, empilés ═══ */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .promo-in { grid-template-columns: 180px 1fr auto; }
  .promo-media { grid-row: 1 / 3; }
  .promo-items { grid-column: 2 / 3; grid-row: 2; padding-top: 0; }
  .promo-cta { grid-column: 3; grid-row: 1 / 3; }
  .special-in { grid-template-columns: 1fr; }
  .resa { grid-template-columns: 1fr; }
  .resa-msg { grid-column: 1; }
}
@media (max-width: 860px) {
  :root { --header-h: 116px; }
  /* le menu reste visible : il passe sur une ligne sous le logo */
  .header-in { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .logo img { height: 50px; }
  .header-cta { margin-left: auto; padding: 11px 16px; min-height: 42px; font-size: 12px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 10px; border-top: 1px solid var(--line); margin-top: 10px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 12.5px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .seal { left: 0; }
  .features-in { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .about-in { grid-template-columns: 1fr; }
  .track { grid-auto-columns: calc((100% - 20px) / 2.3); }
  .car-prev { left: -8px; }
  .car-next { right: -8px; }
  .resa-form { grid-template-columns: 1fr 1fr; }
  .resa-form .btn { grid-column: 1 / -1; }
  .resa-form .rf:first-child { order: -2; }
  .resa-form .rf:nth-child(4) { order: -1; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .f-socials { margin: 0; }
}
@media (max-width: 560px) {
  .header-cta span { display: none; }
  .header-cta { width: 46px; padding: 0; }
  .header-cta svg { width: 20px; height: 20px; }
  .btns .btn { flex: 1 1 auto; }
  .header-cta { box-shadow: none; }
  .seal { width: 118px; bottom: 18px; }
  .seal b { font-size: 30px; }
  .seal span { font-size: 10px; }
  .seal text { font-size: 9.4px; }
  .feature { flex-direction: column; gap: 10px; padding: 18px 16px; }
  .feature .ic-lg { width: 28px; height: 28px; }
  .feature b { font-size: 12.5px; }
  .feature span { font-size: 13px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head-center { align-items: center; }
  .track { grid-auto-columns: 72%; gap: 14px; }
  .car-btn { width: 38px; height: 38px; top: 32%; }
  .promo { padding-top: 64px; }
  .promo-in { grid-template-columns: 120px 1fr; gap: 0 16px; }
  .promo-media { grid-row: 1; margin: -40px 0 18px 14px; }
  .promo-img { min-height: 150px; border-width: 4px; }
  .promo-title { padding: 20px 16px 20px 0; }
  .promo-items { grid-column: 1 / -1; grid-row: auto; padding: 18px 8px; border-top: 1px solid var(--line-dark); }
  .promo-items li { padding: 0 6px; }
  .promo-items b { font-size: 11px; letter-spacing: .06em; }
  .promo-items span { font-size: 12px; }
  .promo-cta { grid-column: 1 / -1; grid-row: auto; border-radius: 0 0 var(--radius) var(--radius); padding: 24px 16px; }
  .promo-cta .btn { width: 100%; }
  /* spécialité : photo pleine largeur, prix posé dessus, texte centré, bouton pleine largeur */
  .chef { grid-template-columns: 1fr; }
  .chef-media { min-height: 0; aspect-ratio: 4 / 3; }
  .chef-badge {
    display: block; position: absolute; right: 14px; bottom: -18px; z-index: 1;
    background: var(--primary); color: var(--accent-light); font: 600 18px/1 var(--serif);
    padding: 12px 18px; border-radius: 999px; border: 2px solid var(--accent); box-shadow: var(--shadow);
  }
  .chef-text { text-align: center; align-items: center; padding: 34px 22px 26px; }
  .chef-text .script { justify-content: center; }
  .chef-text .title span { display: inline; }
  .chef-foot { width: 100%; flex-direction: column; margin-top: 6px; }
  .chef-foot .price { display: none; }
  .chef-foot .btn { width: 100%; }
  .footer-in { gap: 32px 20px; }
  .f-col:last-child { grid-column: 1 / -1; }
  .f-hours div { display: block; }
  /* page Commander : en-tête compact pour voir les plats dès l'ouverture */
  .page-hero-in { padding-block: 18px 20px; gap: 2px; }
  .page-hero .script { font-size: 26px; margin: 2px 0 0; }
  .page-hero h1 { font-size: 23px; }
  .page-hero p:last-child { font-size: 13.5px; line-height: 1.45; }
  .crumbs { font-size: 11px; }
  [data-page="commande"] .order.section { padding-top: 16px; }
}
