/* Deïa Coffee & Kitchen — tokens from the room itself:
   black awning, terracotta plaster, powder-pink plates, amber niche light. */
:root {
  --store: #1F1714;
  --terre: #6E3A24;
  --enduit: #9C5828;
  --enduit-clair: #B8723F;
  --rose: #EBCFC4;
  --rose-pale: #F7ECE7;
  --marbre: #FFFDFB;
  --ambre: #F2A54A;
  --texte: #2B201B;
  --texte-doux: #5E4A40;
  --sur-noir: #EBCFC4;
  --sur-noir-doux: #C9B3A8;

  --f-display: "Marcellus", "Times New Roman", serif;
  --f-script: "Sacramento", cursive;
  --f-body: "Instrument Sans", system-ui, sans-serif;

  --s-14: .875rem;
  --s-17: 1.0625rem;
  --s-21: 1.3125rem;
  --s-28: 1.75rem;
  --s-40: 2.5rem;
  --s-64: 4rem;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 76rem;
  --radius: 6px;
  --arch: 999px 999px 4px 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--s-17);
  line-height: 1.6;
  color: var(--texte);
  background: var(--rose-pale);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--terre); }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 2px; }
main :focus-visible { outline-color: var(--terre); }
main .menu :focus-visible { outline-color: var(--ambre); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--marbre); color: var(--store); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 600 var(--s-17)/1.2 var(--f-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--terre); color: var(--marbre); }
.btn--dark:hover { background: var(--store); }
.btn--line { border-color: var(--terre); color: var(--terre); }
.btn--line:hover { background: var(--terre); color: var(--marbre); }
.btn--light { background: var(--rose); color: var(--store); min-height: 44px; padding: .5rem 1.15rem; }
.btn--light:hover { background: var(--marbre); }

.link { color: var(--terre); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-block; padding: .35rem 0; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header: the black awning ---------- */
.store {
  position: sticky; top: 0; z-index: 50;
  background: var(--store); color: var(--sur-noir);
  border-bottom: 1px solid #3a2c26;
}
.store__inner {
  max-width: var(--max); margin: 0 auto;
  padding: .5rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.25rem;
}
.logo { display: inline-flex; align-items: baseline; gap: .75rem; text-decoration: none; color: #fff; padding: .25rem 0; margin: 0; }
.logo__name { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: .42em; margin-right: -.42em; }
.logo__script { font-family: var(--f-script); font-size: 1.6rem; line-height: 1; color: var(--sur-noir); white-space: nowrap; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  color: var(--sur-noir); text-decoration: none; font-size: var(--s-14); font-weight: 500;
  padding: .75rem .8rem; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero: the wall with three niches ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  min-height: calc(100vh - 4.25rem);
}
.hero__place { font-size: var(--s-14); font-weight: 600; color: var(--texte-doux); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--store); margin-bottom: 1.5rem; text-wrap: balance; }
.hero__lead { font-size: var(--s-17); max-width: 34rem; color: var(--texte-doux); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.75rem; }
.hero__rating { font-size: var(--s-14); color: var(--texte-doux); margin: 0; }
.hero__rating strong { color: var(--terre); }
.hero__open { font-size: var(--s-14); margin: .35rem 0 0; color: var(--texte-doux); }
.hero__open b { color: var(--terre); font-weight: 600; }

.wall {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.45fr 1fr; grid-template-rows: 1fr auto; align-items: end;
  height: min(44rem, calc(100vh - 9rem)); min-height: 26rem;
  gap: clamp(.75rem, 2.4vw, 1.75rem);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3.4vw, 2.75rem) 0;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(214, 140, 80, .45), transparent 60%),
    radial-gradient(90% 60% at 10% 100%, rgba(70, 30, 12, .35), transparent 70%),
    var(--enduit);
  overflow: hidden;
}
/* the shelf line under the niches */
.wall::after {
  content: ""; grid-column: 1 / -1; height: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0 calc(-1 * clamp(1rem, 3.4vw, 2.75rem));
  background: linear-gradient(var(--terre), #5a2e1b);
}
.niche {
  position: relative; border-radius: var(--arch); overflow: hidden;
  height: 66%;
  box-shadow: 0 0 0 3px rgba(242, 165, 74, .35);
  transition: box-shadow 1.6s ease;
}
.niche--main { height: 88%; }
.niche img { width: 100%; height: 100%; object-fit: cover; }
.niche--main img { object-position: 50% 50%; }
/* amber backlight, as in the room */
.niche::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(242, 165, 74, .0), inset 0 18px 40px rgba(255, 190, 110, 0);
  transition: box-shadow 1.6s ease;
}
.is-lit .niche { box-shadow: 0 0 0 3px var(--ambre), 0 0 38px 6px rgba(242, 165, 74, .55); }
.is-lit .niche::after { box-shadow: inset 0 0 0 4px rgba(255, 196, 120, .9), inset 0 18px 40px rgba(255, 190, 110, .35); }
.is-lit .niche--side { transition-delay: .35s; }
.is-lit .niche--side::after { transition-delay: .35s; }

/* ---------- Story ---------- */
.story {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.story__photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.story h2 { font-size: clamp(var(--s-28), 3.4vw, var(--s-40)); margin-bottom: 1.5rem; max-width: 22ch; }
.story__text > p { max-width: 36rem; }
.sign {
  margin: 2.5rem 0 0; padding: 1.5rem 1.75rem;
  background: var(--store); color: #fff; border-radius: var(--radius);
  max-width: 30rem;
}
.sign p { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: .02em; }
.sign footer { font-size: var(--s-14); color: var(--sur-noir-doux); }

/* ---------- Menu ---------- */
.menu { background: var(--store); color: var(--sur-noir); padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.menu > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.menu__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.menu__head h2 { color: #fff; font-size: clamp(var(--s-40), 5vw, var(--s-64)); }
.menu__head p { margin: 0; max-width: 32rem; color: var(--sur-noir-doux); }
.menu__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.menu__col h3 {
  color: var(--ambre); font-size: var(--s-28);
  padding-bottom: .75rem; margin-bottom: .5rem; border-bottom: 1px solid #4a3830;
}
.menu__col ul { list-style: none; margin: 0; padding: 0; }
.menu__col li { padding: .8rem 0; border-bottom: 1px solid #33261f; }
.menu__col li span { display: block; font-family: var(--f-display); font-size: var(--s-21); color: #fff; line-height: 1.3; }
.menu__col li small { display: block; font-size: var(--s-14); color: var(--sur-noir-doux); margin-top: .2rem; }
.menu__note { margin-top: clamp(2rem, 4vw, 3rem); color: var(--sur-noir-doux); }
.menu__note a { color: var(--ambre); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: .3rem 0; }

/* ---------- Gallery ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.gallery__title { font-size: clamp(var(--s-28), 3.4vw, var(--s-40)); margin-bottom: 2rem; }
.gallery__grid {
  display: grid; gap: clamp(.6rem, 1.4vw, 1rem);
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(14rem, 24vw, 21rem));
  grid-template-areas: "a b c" "a d d";
}
.g { overflow: hidden; border-radius: var(--radius); }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g:nth-child(1) { grid-area: a; }
.g:nth-child(2) { grid-area: b; }
.g:nth-child(3) { grid-area: c; }
.g:nth-child(4) { grid-area: d; }
.g:nth-child(1) { border-radius: var(--arch); }

/* ---------- Reviews ---------- */
.reviews { background: var(--rose); padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.reviews > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews__head h2 { font-size: clamp(var(--s-28), 3.4vw, var(--s-40)); }
.reviews__head p { margin: 0; color: var(--texte-doux); }
.reviews__head strong { color: var(--terre); }
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.review { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--terre); }
.review p { font-family: var(--f-display); font-size: var(--s-21); line-height: 1.4; color: var(--store); margin-bottom: 1rem; }
.review footer { font-weight: 600; color: var(--terre); font-size: var(--s-14); }

/* ---------- Infos ---------- */
.infos {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem);
}
.infos h2 { font-size: clamp(var(--s-28), 3.4vw, var(--s-40)); margin-bottom: 2rem; }
.infos__block { margin-bottom: 2rem; }
.infos__block h3 { font-family: var(--f-body); font-weight: 600; font-size: var(--s-17); color: var(--store); margin-bottom: .5rem; }
.infos__block p { margin-bottom: .25rem; }
address { font-style: normal; }
.infos__tip { color: var(--texte-doux); font-size: var(--s-14); margin-top: .6rem; max-width: 30rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 24rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid #e2cbc0; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--terre); font-weight: 600; }
.infos__map { display: flex; flex-direction: column; gap: .5rem; }
.infos__map iframe { width: 100%; flex: 1; min-height: 22rem; border: 0; border-radius: var(--radius); background: var(--rose); }
.infos__maplink { align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--store); color: var(--sur-noir-doux); padding: 3rem var(--gutter); }
.footer__inner { max-width: var(--max); margin: 0 auto; }
.logo--footer { margin-bottom: 1rem; }
.footer p { margin-bottom: .5rem; }
.footer__small { font-size: var(--s-14); max-width: 40rem; }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .store__cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .wall { height: 32rem; }
  .wall { order: -1; }
  .story { grid-template-columns: 1fr; }
  .story__photo { max-width: 28rem; }
  .menu__head { grid-template-columns: 1fr; gap: 1rem; }
  .menu__cols { grid-template-columns: 1fr 1fr; }
  .reviews__list { grid-template-columns: 1fr; max-width: 40rem; }
  .infos { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4.25rem; }
  .store__cta { display: none; }
  .store__inner { min-height: 3.75rem; justify-content: center; }
  .logo__name { font-size: 1.45rem; }
  .logo__script { font-size: 1.4rem; }
  .hero { padding-top: 0; gap: 2rem; }
  .wall { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; height: 22rem; min-height: 0; }
  .wall::after { margin: 0 calc(-1 * clamp(1rem, 3.4vw, 2.75rem)); }
  .hero__actions .btn { flex: 1 1 100%; }
  .menu__cols { grid-template-columns: 1fr; }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 18rem 12rem 12rem;
    grid-template-areas: "a b" "a c" "d d";
  }
  .actionbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--store); border-top: 1px solid #3a2c26;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    min-height: 3.75rem; color: var(--sur-noir); text-decoration: none; font-size: .8125rem; font-weight: 600;
  }
  .actionbar a + a { border-left: 1px solid #3a2c26; }
  .actionbar svg { width: 1.3rem; height: 1.3rem; fill: var(--ambre); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
