/* ==========================================================================
   Chwa au Choix — feuille de style
   Direction : braise & vitrine. Noir charbon, crème, moutarde.
   Motif signature : l'arche marocaine du logo, utilisée comme cadre photo.
   ========================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --charbon: #141311;
  --anthracite: #22211e;
  --creme: #f6f1e7;
  --creme-2: #ece4d3;
  --moutarde: #e5b438;
  --dore: #c89532;
  --gris: #a29d94;
  --braise: #c8441f;
  --ink: #1d1b18;
  --ink-soft: #57524a;

  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec-pad: clamp(72px, 10vw, 140px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V30C0 18 14 12 28 9.5 39 7.5 46 4.5 50 0c4 4.5 11 7.5 22 9.5C86 12 100 18 100 30v70Z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--charbon);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--moutarde); color: var(--charbon); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; }
.light :focus-visible, .mustard :focus-visible { outline-color: var(--braise); }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.star { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* ---------- Typo ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--braise); margin-bottom: 22px;
}
.kicker-light { color: var(--moutarde); }
@media (max-width: 480px) { .kicker { font-size: 13px; letter-spacing: .16em; } }
.kicker-dark { color: var(--charbon); }

.h2 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 92px); line-height: .92; letter-spacing: -.005em;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.muted { color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .05s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-primary { --bg: var(--moutarde); --fg: var(--charbon); --bd: var(--moutarde); }
.btn-primary:hover { --bg: #f0c450; --bd: #f0c450; }
.btn-ghost { --fg: var(--creme); --bd: rgba(246, 241, 231, .55); }
.btn-ghost:hover { --bd: var(--creme); --bg: rgba(246, 241, 231, .08); }
.btn-dark { --bg: var(--charbon); --fg: var(--creme); --bd: var(--charbon); }
.btn-dark:hover { --bg: var(--anthracite); --bd: var(--anthracite); }
.btn-outline-dark { --fg: var(--charbon); --bd: var(--charbon); }
.btn-outline-dark:hover { --bg: var(--charbon); --fg: var(--creme); }

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

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Arche (cadre signature) ---------- */
.arch { -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); position: relative; }
.light { background: var(--creme) var(--grain); color: var(--ink); }
.dark { background: var(--charbon); color: var(--creme); }
.mustard { background: var(--moutarde); color: var(--charbon); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(20, 19, 17, .96); border-bottom-color: rgba(229, 180, 56, .18); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 60px; height: 60px; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-list a {
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--creme); text-decoration: none; padding: 10px 0; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--moutarde);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .brand img { width: 50px; height: 50px; }
  .nav, .header-call { display: none; }
  .burger {
    display: grid; place-content: center; gap: 7px; margin-left: auto;
    width: 48px; height: 48px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .burger span { display: block; width: 26px; height: 2px; background: var(--creme); transition: transform .25s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-mobile {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--charbon);
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto;
  }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile ul { margin-bottom: 32px; }
  .nav-mobile li { border-bottom: 1px solid rgba(246, 241, 231, .12); }
  .nav-mobile li a {
    display: block; padding: 16px 0; text-decoration: none; color: var(--creme);
    font-family: var(--f-display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1.1;
  }
  .nav-mobile .btn { width: 100%; }
  .menu-open .site-header { background: var(--charbon); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--creme); background: var(--charbon); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vh, 96px);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 70% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,19,17,.92) 0%, rgba(20,19,17,.7) 38%, rgba(20,19,17,.15) 70%, rgba(20,19,17,.35) 100%),
    linear-gradient(0deg, rgba(20,19,17,.85) 0%, rgba(20,19,17,0) 40%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.hero-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(60px, 10.4vw, 168px); line-height: .86; letter-spacing: -.01em;
  margin-bottom: 28px;
}
.hero-lead { font-size: clamp(18px, 1.7vw, 22px); max-width: 30ch; margin-bottom: 36px; color: rgba(246, 241, 231, .88); }
.hero-address {
  display: flex; align-items: center; gap: 10px; margin-top: 40px;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(246, 241, 231, .75);
}
.hero-address .ico { color: var(--moutarde); }
.hero-arch { width: clamp(240px, 24vw, 340px); aspect-ratio: 3 / 4.2; border-bottom: 4px solid var(--moutarde); }

/* entrée unique au chargement */
/* CSS pur : démarre dès le premier rendu, sans attendre le JavaScript.
   Le titre n'est jamais transparent (meilleur LCP), il glisse seulement. */
@keyframes rise { from { transform: translateY(22px); } }
@keyframes rise-fade { from { opacity: 0; transform: translateY(18px); } }
.hero-title { animation: rise .9s var(--ease) both; }
.hero-text > :not(.hero-title), .hero-arch { animation: rise-fade .8s var(--ease) both; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .2s; }
.hero-text > :nth-child(5) { animation-delay: .28s; }
.hero-arch { animation-delay: .15s; animation-duration: 1.1s; }

@media (max-width: 1023px) { .hero-arch { display: none; } .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 699px) {
  .hero-bg img { object-position: 50% 70%; }
  .hero::after { background: linear-gradient(0deg, rgba(20,19,17,.95) 0%, rgba(20,19,17,.75) 45%, rgba(20,19,17,.25) 100%); }
  .hero .actions .btn { width: 100%; }
}

/* ---------- Le restaurant ---------- */
.resto-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.resto-photos { position: relative; padding-bottom: 12%; padding-right: 14%; }
.resto-main { aspect-ratio: 3 / 4; }
.resto-second {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4;
  border: 8px solid var(--creme); overflow: hidden;
}
.resto-second img { width: 100%; height: 100%; object-fit: cover; }
.resto-text .h2 { margin-bottom: 32px; font-size: clamp(40px, 5vw, 72px); }
.resto-text .lead { margin-bottom: 20px; }
.resto-text p:not(.kicker) { max-width: 56ch; }
.resto-text em { font-style: normal; font-weight: 700; color: var(--braise); }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 44px 0 0;
  border-top: 2px solid var(--charbon);
}
.facts div { padding: 18px 16px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid rgba(20, 19, 17, .18); }
.facts dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; line-height: 1.05; }

@media (max-width: 899px) {
  .resto-grid { grid-template-columns: 1fr; }
  .resto-photos { max-width: 480px; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(20, 19, 17, .18); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
}

/* ---------- Menu ---------- */
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.menu-band { aspect-ratio: 21 / 7; overflow: hidden; margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 4px solid var(--moutarde); }
.menu-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.menu-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: clamp(32px, 4.5vw, 72px); }
.menu-cat h3 {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1; color: var(--creme);
  padding-bottom: 16px; border-bottom: 2px solid var(--moutarde); margin-bottom: 8px;
}
.menu-cat h3 .num { font-size: .5em; color: var(--moutarde); letter-spacing: .1em; font-weight: 600; }
.menu-note { font-size: 15px; color: var(--gris); margin: 14px 0 6px; }
.menu-items li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid rgba(246, 241, 231, .1);
}
.menu-items .name { font-size: 18px; font-weight: 600; color: var(--creme); }
.menu-items .dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(162, 157, 148, .45); transform: translateY(-5px); }
.menu-items .price {
  font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--moutarde); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.menu-items li.is-star .name a { color: var(--moutarde); text-decoration: none; }
.menu-items li.is-star .name a::after { content: " →"; }
.menu-items li.is-star .name a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1199px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-cat-assiettes { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 699px) {
  .menu-grid { grid-template-columns: 1fr; gap: 56px; }
  .menu-cat-assiettes { grid-row: auto; }
  .menu-band { aspect-ratio: 4 / 3; }
  .menu-head .btn { width: 100%; }
}

/* ---------- Assiette Royale ---------- */
.royale-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.royale-photo { aspect-ratio: 3 / 4; border-bottom: 6px solid var(--charbon); }
.royale-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 9.5vw, 148px); line-height: .84; letter-spacing: -.01em;
}
.royale-price {
  display: inline-block; margin: 24px 0 36px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7vw, 104px); line-height: 1;
  color: var(--creme); background: var(--charbon); padding: 10px 22px 6px;
  font-variant-numeric: tabular-nums;
}
.royale-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-bottom: 40px; border-top: 2px solid var(--charbon); }
.royale-list li {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(20, 19, 17, .25); font-size: 18px; font-weight: 600;
}
.royale-list .q { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; min-width: 1ch; }
.royale-list .q:empty::before { content: "+"; }
@media (max-width: 899px) {
  .royale-grid { grid-template-columns: 1fr; }
  .royale-photo { max-width: 420px; aspect-ratio: 4 / 4.4; order: 2; }
}
@media (max-width: 480px) {
  .royale-list { grid-template-columns: 1fr; }
  .royale-text .btn { width: 100%; }
}

/* ---------- Galerie ---------- */
.gal-head { margin-bottom: 48px; }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px); gap: clamp(10px, 1.4vw, 18px);
}
.gallery li { overflow: hidden; background: var(--creme-2); }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.g-a { grid-column: 1 / span 7; grid-row: span 3; }
.g-b { grid-column: 8 / span 5; grid-row: span 2; }
.g-c { grid-column: 8 / span 5; grid-row: span 1; }
.g-c img { object-position: 50% 45%; }
.g-d { grid-column: 1 / span 4; grid-row: span 2; }
.g-e { grid-column: 5 / span 4; grid-row: span 2; }
.g-f { grid-column: 9 / span 4; grid-row: span 2; }
@media (max-width: 699px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; }
  .g-a { grid-column: 1 / -1; grid-row: span 2; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 1; grid-row: span 1; }
  .g-f { grid-column: 1 / -1; grid-row: span 1; }
}

/* ---------- Commander ---------- */
.order { background: var(--anthracite); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.order-text .h2 { margin-bottom: 28px; }
.order-text .lead { margin-bottom: 40px; color: rgba(246, 241, 231, .85); max-width: 40ch; }
.order-number { border-top: 2px solid var(--moutarde); padding-top: 26px; }
.order-label { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); }
.big-number {
  display: block; margin: 6px 0 10px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 6.4vw, 96px); line-height: 1;
  color: var(--moutarde); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.big-number:hover { color: #f0c450; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--creme);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.copy-btn span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.copy-btn:hover { color: var(--moutarde); }
.copy-status { min-height: 1.5em; font-size: 14px; color: var(--moutarde); }
.steps { margin-top: 28px; }
.steps li { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(246, 241, 231, .12); color: rgba(246, 241, 231, .85); }
.steps li > span:first-child { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--moutarde); min-width: 2ch; }
@media (max-width: 899px) { .order-grid { grid-template-columns: 1fr; } }
@media (max-width: 699px) { .order .actions .btn { width: 100%; } }
@media (pointer: coarse) { .copy-btn { display: none; } }

/* ---------- Infos pratiques ---------- */
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.contact-text .h2 { margin-bottom: 44px; }
.info-blocks { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px 48px; margin-bottom: 44px; }
.info h3 { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--moutarde); }
.info p, .info address, .info li { font-size: 17px; }
.info .link { font-weight: 700; }
.hours .time { display: block; font-weight: 700; white-space: nowrap; }
.contact-photo { aspect-ratio: 3 / 4; border-bottom: 6px solid var(--moutarde); }
@media (max-width: 1100px) { .info-blocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { max-width: 420px; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 480px) {
  .info-blocks { grid-template-columns: 1fr; }
  .contact-text .actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charbon); color: var(--creme); padding-top: 88px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 16px; }
.footer-name { font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.footer-brand .muted { max-width: 28ch; margin-top: 6px; }
.footer-h { font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--moutarde); margin-bottom: 14px; }
.site-footer address, .site-footer p, .site-footer li { color: rgba(246, 241, 231, .82); }
.site-footer address + p { margin-top: 10px; }
.footer-links li a, .legal-links a { display: inline-block; padding: 6px 0; text-decoration: none; color: rgba(246, 241, 231, .82); }
.footer-links li a:hover, .legal-links a:hover { color: var(--moutarde); }
.site-footer .link { display: inline-block; padding: 4px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid rgba(246, 241, 231, .12); color: var(--gris); font-size: 14px;
}
.footer-bottom p { color: var(--gris); }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-links a { color: var(--gris); padding: 10px 0; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre d'actions mobile ---------- */
.action-bar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .action-bar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 40;
    background: var(--charbon); border-top: 1px solid rgba(229, 180, 56, .3);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .3s var(--ease);
  }
  .action-bar.is-hidden { transform: translateY(110%); }
  .action-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px;
    font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--creme); text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid rgba(246, 241, 231, .12); }
  .action-bar a.is-primary { background: var(--moutarde); color: var(--charbon); }
}

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 13, 12, .96); color: var(--creme);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 13, 12, .9); }
.lb-img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  background: rgba(20, 19, 17, .7); border: 1px solid rgba(246, 241, 231, .25); border-radius: 2px; cursor: pointer; color: var(--creme);
}
.lb-close:hover, .lb-nav:hover { border-color: var(--moutarde); color: var(--moutarde); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-nav { display: none; }

/* ---------- Apparitions discrètes ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Pages légales ---------- */
.legal-page { background: var(--creme) var(--grain); color: var(--ink); }
.legal-header { background: var(--charbon); }
.legal-header .header-inner { justify-content: space-between; }
.legal-header a.back { color: var(--creme); font-family: var(--f-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.legal-header a.back:hover { color: var(--moutarde); }
.legal-main { padding-block: clamp(56px, 8vw, 110px); }
.legal-main .wrap { max-width: calc(820px + var(--gutter) * 2); }
.legal-main h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 7vw, 80px); line-height: .95; margin-bottom: 40px; }
.legal-main h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 28px; margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--moutarde); }
.legal-main p, .legal-main li { margin-bottom: 10px; max-width: 70ch; }
.legal-main ul { list-style: disc; padding-left: 22px; }
.legal-main a { color: var(--braise); }
.todo { background: #fbe7b0; padding: 0 6px; font-weight: 600; }
.legal-page .site-footer { padding-top: 0; }
.legal-page body, body.legal-page { padding-bottom: 0; }
.legal-page .action-bar { display: none; }
