/* Bistronomie Yasmine — "La façade en page"
   Tokens: see design-system/yasmine/MASTER.md */

:root {
  --petrol: #2E5A70;
  --petrol-deep: #1D3D4E;
  --petrol-ink: #14303E;
  --saffron: #E9A23B;
  --red: #B8322A;
  --red-dark: #962820;
  --terracotta: #A33F1C;
  --cream: #F4ECDD;
  --paper: #FBF7EF;
  --wood: #563916;
  --ink: #23201B;
  --muted: #5C5246;
  --line: #D9CBB2;

  --f-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-ar: "Aref Ruqaa", "Noto Naskh Arabic", "Amiri", serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Carreaux de ciment : étoile à huit branches */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23E4DCCB'/%3E%3Cpath d='M24 6l5 13 13 5-13 5-5 13-5-13-13-5 13-5z' fill='%232E5A70'/%3E%3Cpath d='M24 13l3 8 8 3-8 3-3 8-3-8-8-3 8-3z' fill='%23E4DCCB'/%3E%3Ccircle cx='24' cy='24' r='2.6' fill='%23B8322A'/%3E%3Cpath d='M0 0h7L0 7zM48 0h-7l7 7zM0 48h7l-7-7zM48 48h-7l7-7z' fill='%23628796'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
sup { font-size: .6em; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
.motto :focus-visible, .about :focus-visible, .menu :focus-visible, .infos :focus-visible { outline-color: var(--petrol); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--saffron); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i-red { color: var(--red); }
.eyebrow { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; color: var(--terracotta); margin-bottom: .9rem; }
.eyebrow--light { color: var(--saffron); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--terracotta); text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.4rem;
  font: 700 1rem/1.1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--petrol-deep); }
.btn--outline { color: var(--petrol-deep); border-color: var(--petrol); }
.btn--outline:hover { background: var(--petrol); color: #fff; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--petrol-deep); color: #fff; border-bottom: 3px solid var(--saffron); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; min-height: 44px; align-items: center; }
.brand__name { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.brand__ar { font-family: var(--f-ar); color: var(--saffron); font-size: 1.3rem; line-height: 1; }
.nav__toggle { width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav__links {
  position: absolute; top: 67px; left: 0; right: 0;
  display: none; flex-direction: column; padding: .5rem var(--gutter) 1.5rem;
  background: var(--petrol-deep); border-bottom: 3px solid var(--saffron);
}
.nav__links.is-open { display: flex; }
.nav__links a:not(.btn) { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav__links a:not(.btn):hover { color: var(--saffron); }
.nav__links .btn { margin-top: 1rem; }

/* Hero */
.hero { position: relative; background: var(--petrol); color: #fff; overflow: hidden; display: grid; }
.hero__calli {
  position: absolute; inset: auto 0 -2.5rem auto; z-index: 0; max-width: 100%; overflow: hidden;
  font-family: var(--f-ar); font-size: clamp(8rem, 40vw, 30rem); line-height: 1;
  color: rgba(255,255,255,.07); pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__text { position: relative; z-index: 1; padding: 2.5rem var(--gutter) 2.5rem; }
.hero__kicker { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--saffron); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.hero__title { font-size: clamp(4rem, 19vw, 8rem); line-height: .95; margin: .35rem 0 .3rem; letter-spacing: -.02em; }
.hero__y { font-style: italic; color: #EAF1F4; }
.hero__title .i-red { position: relative; display: inline-block; }
.jasmin { position: absolute; width: .34em; height: .34em; left: 50%; top: -.12em; transform: translateX(-50%); color: #fff; }
.hero__sub { font-family: var(--f-display); font-size: clamp(1.15rem, 3.6vw, 1.55rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .8rem; margin-bottom: 1.25rem; }
.hero__ar { font-family: var(--f-ar); color: var(--saffron); font-size: 1.35em; line-height: 1; }
.hero__promise { max-width: 34rem; font-size: 1.1rem; color: #E6EEF1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.25rem; }
.hero__rating { font-size: .95rem; color: #DCE6EA; margin: 0; }
.stars { color: var(--saffron); letter-spacing: .1em; }
.hero__photo { position: relative; z-index: 1; height: 56vh; min-height: 340px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Tile frieze */
.tiles { height: 28px; background: var(--tile) repeat-x center / 28px 28px; border-block: 2px solid var(--petrol-deep); }

/* Motto */
.motto { background: var(--paper); padding: clamp(3rem, 8vw, 5.5rem) var(--gutter); text-align: center; }
.motto blockquote { margin: 0 auto; max-width: 52rem; }
.motto p { font-family: var(--f-display); font-size: clamp(1.6rem, 4.6vw, 2.9rem); line-height: 1.2; color: var(--petrol-deep); margin: 0; }

/* About */
.about { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.about__grid { display: grid; gap: 3rem; }
.lead { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; color: var(--petrol-deep); }
.about__text p:not(.lead):not(.eyebrow) { color: var(--muted); max-width: 38rem; }
.about__photos { position: relative; padding-bottom: 3rem; padding-right: 2rem; }
.about__main img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.about__inset { position: absolute; right: 0; bottom: 0; width: 44%; border: 6px solid var(--cream); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(35,32,27,.22); }
.about__inset img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* Menu */
.menu { background: var(--paper); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.menu__head { max-width: 40rem; margin-bottom: 2.5rem; }
.menu__note { color: var(--muted); }
.signature { display: grid; background: var(--petrol-deep); color: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 3rem; }
.signature__img img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.signature__body { padding: 2rem 1.5rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.signature h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.signature p { color: #DCE6EA; }
.signature__prices { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; max-width: 22rem; }
.signature__prices li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed rgba(255,255,255,.3); padding-bottom: .5rem; font-weight: 500; }
.signature .price { font-family: var(--f-display); font-size: 1.6rem; color: var(--saffron); }
.signature .price::after, .items .p::after { content: " €"; font-size: .7em; }

.menu__grid { display: grid; gap: 2.5rem 4rem; }
.menu__cat h3 { color: var(--petrol-deep); border-bottom: 2px solid var(--petrol); padding-bottom: .5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.menu__cat h3 small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); font-weight: 500; }
.menu__sub { margin-top: 2rem; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: baseline; gap: .5rem; padding: .55rem 0; }
.items .n { font-weight: 500; }
.items .n small { display: inline-block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-left: .25rem; }
.items li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.3em); min-width: 1.5rem; }
.items .p { order: 2; font-family: var(--f-display); font-size: 1.15rem; color: var(--terracotta); white-space: nowrap; }

.sweets { margin-top: 3rem; padding: 1.5rem; border: 2px solid var(--saffron); border-radius: var(--radius); background: #FFF6E4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.sweets p { margin: 0; }

/* Gallery */
.gallery { background: var(--petrol-deep); color: #fff; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3.5rem, 9vw, 6rem); }
.gallery__grid { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .6rem; grid-auto-flow: dense; }
.g { overflow: hidden; border-radius: var(--radius); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g:hover img { transform: scale(1.04); }
.gallery__grid { grid-template-areas: "a b" "a c" "d c" "e e" "f f"; }
.gallery__grid .g:nth-child(1) { grid-area: a; }
.gallery__grid .g:nth-child(2) { grid-area: b; }
.gallery__grid .g:nth-child(3) { grid-area: c; }
.gallery__grid .g:nth-child(4) { grid-area: e; }
.gallery__grid .g:nth-child(5) { grid-area: d; }
.gallery__grid .g:nth-child(6) { grid-area: f; }

/* Reviews */
.reviews { background: var(--petrol); color: #fff; padding: clamp(3.5rem, 9vw, 6rem) 0; position: relative; overflow: hidden; }
.reviews__head { max-width: 40rem; margin-bottom: 2.5rem; }
.reviews__list { display: grid; gap: 1.25rem; }
.review { background: rgba(255,255,255,.07); border-left: 4px solid var(--saffron); padding: 1.5rem 1.5rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.review blockquote { margin: 0 0 1rem; }
.review p { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.4; margin: 0; }
.review figcaption { font-weight: 700; color: var(--saffron); }
.review figcaption span { font-weight: 400; color: #DCE6EA; }

/* Infos */
.infos { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.infos__grid { display: grid; gap: 2.5rem; }
.contact { margin: 0 0 1.5rem; display: grid; gap: 1.1rem; }
.contact dt { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.contact dd { margin: .15rem 0 0; font-size: 1.1rem; }
.contact dd a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--f-display); font-size: 1.5rem; color: var(--petrol-deep); text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.infos__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hours__title { color: var(--petrol-deep); border-bottom: 2px solid var(--petrol); padding-bottom: .5rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.hours th { font-weight: 700; padding-right: 1rem; width: 7.5rem; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); }
.hours tr.is-today th::after { content: " · aujourd'hui"; font-weight: 400; font-size: .8rem; display: block; }
.hours__note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.infos__map iframe { width: 100%; height: 320px; border: 2px solid var(--petrol); border-radius: var(--radius); background: #E4DCCB; display: block; }

/* Footer */
.footer { background: var(--petrol-ink); color: #D5E0E5; padding: 3rem 0 2.5rem; font-size: .95rem; }
.footer a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; }
.footer p { margin: 0 0 .3rem; }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__brand { font-family: var(--f-display); font-size: 1.8rem; color: #fff; }
.footer__brand span[lang="ar"] { font-family: var(--f-ar); color: var(--saffron); font-size: .8em; margin-left: .4rem; }
.footer__meta { color: #B5C6CE; font-size: .88rem; }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr 1fr 1.2fr;
  background: var(--petrol-deep); border-top: 3px solid var(--saffron);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; }
.actionbar svg { width: 20px; height: 20px; fill: currentColor; }
.actionbar__main { background: var(--red); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ≥ 640px */
@media (min-width: 640px) {
  .gallery__grid { grid-auto-rows: 240px; }
  .reviews__list { grid-template-columns: repeat(2, 1fr); }
  .signature { grid-template-columns: 1.1fr 1fr; }
  .signature__body { padding: 2.5rem; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .nav__toggle { display: none; }
  .nav__links { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; background: none; border: 0; }
  .nav__links a:not(.btn) { border: 0; font-size: 1rem; min-height: 44px; }
  .nav__links .btn { margin: 0; }

  .hero { grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 67px); max-height: 900px; }
  .hero__text { padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem); align-self: center; }
  .hero__photo { height: auto; min-height: 0; }
  .hero__calli { inset: auto auto -2.5rem 4%; font-size: clamp(14rem, 24vw, 24rem); color: rgba(255,255,255,.08); }

  .about__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5rem; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 270px); grid-auto-rows: 270px;
    grid-template-areas: "a b c d" "a e f d"; }
  .gallery__grid .g:nth-child(1) { grid-area: a; }
  .gallery__grid .g:nth-child(2) { grid-area: b; }
  .gallery__grid .g:nth-child(3) { grid-area: d; }
  .gallery__grid .g:nth-child(4) { grid-area: c; }
  .gallery__grid .g:nth-child(5) { grid-area: e; }
  .gallery__grid .g:nth-child(6) { grid-area: f; }
  .reviews__list { grid-template-columns: repeat(4, 1fr); }
  .infos__grid { grid-template-columns: 1fr 1fr; gap: 3rem 5rem; }
  .infos__map { grid-column: 1 / -1; }
  .infos__map iframe { height: 380px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer__meta { text-align: right; }
}

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