/* ============================================================
   IT - Italian Trattoria Bonne Nouvelle
   Palette : nuit boulevard + peperoncino calabrais
   ============================================================ */

:root {
  --ground:     #F6F3EE;
  --surface:    #FFFFFF;
  --surface-2:  #ECE7DF;
  --text:       #14191A;
  --text-soft:  #4C5654;
  /* #7C8785 ne donnait que 3,35 de contraste sur le fond clair, sous le
     seuil de 4,5 : les etiquettes ADRESSE, TELEPHONE, METRO etaient trop
     pales. #666E71 monte a 4,70 en restant discret. */
  --text-mute:  #666E71;
  --rule:       #DCD5CB;

  /* le monde nuit reste nuit dans les deux thèmes */
  --night:      #101314;
  --night-2:    #191E1F;
  --night-text: #EDE9E3;
  --night-mute: #939C9A;
  --night-rule: #2A3132;

  --chili:      #D8341D;
  /* Le rouge de marque ne donne que 4,28 de contraste en TEXTE sur le fond
     clair. On garde #D8341D pour les aplats (bouton rouge, texte blanc
     dessus : parfaitement lisible) et on reserve cette variante un ton plus
     sombre, a 4,76, aux textes comme les surtitres. */
  --chili-txt:  #CC2F1A;
  --chili-hi:   #ED4028;
  --led:        #F5B82E;
  --ambre-txt:  #8A5E00;   /* l ambre lisible sur fond clair : 5,15 de contraste */
  --basil:      #2F6B4F;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + .78vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.3rem);
  --step-4:  clamp(2.9rem, 1.9rem + 4.6vw, 6.2rem);

  --pad: clamp(1.25rem, .6rem + 3vw, 4.5rem);
  --gap: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  --radius: 3px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:    #0C0F10;
    --surface:   #14191A;
    --surface-2: #1D2324;
    --text:      #EDE9E3;
    --text-soft: #B4BCBA;
    --text-mute: #838C8B;
    --rule:      #262D2E;
  }
}
:root[data-theme="dark"] {
  --ground:    #0C0F10;
  --surface:   #14191A;
  --surface-2: #1D2324;
  --text:      #EDE9E3;
  --text-soft: #B4BCBA;
  --text-mute: #838C8B;
  --rule:      #262D2E;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* le pied de page reste collé en bas sur les pages courtes
     (journal vide, 404, mentions légales) */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Archivo", Arial, sans-serif;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
figure img { width: 100%; height: 100%; object-fit: cover; }

.it { font-family: "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: .01em; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--chili-txt);
  margin: 0;
}

main { flex: 1 0 auto; }
.foot { flex: none; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gap); }
.sec-head { max-width: 54ch; }
.sec-head h2 { font-size: var(--step-3); margin-block: .55rem .9rem; }
.sec-head p { color: var(--text-soft); }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--chili);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================ mouvement ============================ */
/* Trois moments seulement, chacun lié à quelque chose de réel :
   les photos se dévoilent derrière un volet, les titres montent ligne par ligne,
   et les pastilles pulsent pour de bon. Le reste ne bouge pas. */

/* --- transition entre les pages (navigation classique, sans framework) --- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sortie .28s var(--ease) both; }
::view-transition-new(root) { animation: entree .42s var(--ease) both; }
@keyframes sortie { to { opacity: 0; } }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }
/* la barre supérieure et la marque ne clignotent pas d'une page à l'autre */
.topbar { view-transition-name: topbar; }
.callbar { view-transition-name: callbar; }

/* --- le volet : la photo se découvre du bas vers le haut, en se posant ---
   Le rognage porte sur l'IMAGE, jamais sur la figure : un clip-path sur
   l'élément observé le réduit à une surface nulle et l'IntersectionObserver
   ne le déclenche plus jamais. */
.ph { position: relative; }
.js .ph img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.09);
  transition: clip-path 1.05s var(--ease), transform 1.4s var(--ease), opacity .5s ease;
  transition-delay: var(--d, 0ms);
}
.js .ph.seen img { clip-path: inset(0 0 0 0); transform: none; }
.ph img:not(.ready) { opacity: 0; }
/* la vignette basse définition tient la place le temps du chargement */
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg) center/cover no-repeat;
  filter: blur(14px);
  transform: scale(1.1);
  transition: opacity .5s ease;
}
.ph.done.seen::before { opacity: 0; transition-delay: .35s; }
/* le survol reprend la main sur la mise à l'échelle du volet */
.gal-grid figure.seen:hover img,
.post:hover .ph.seen img { transform: scale(1.06); transition-duration: .6s; }

/* --- les titres montent ligne par ligne, découpés par le script --- */
/* le masque a besoin d'air en bas, sinon il coupe les jambages (Q, g, p) */
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > i {
  display: block; font-style: inherit;
  transform: translateY(102%);
  transition: transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.decoupe.seen .ln > i { transform: none; }

/* le titre du hero part dès le chargement, sans attendre le défilement */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
}
.js .line > span {
  transform: translateY(105%);
  animation: lineUp .95s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes lineUp { to { transform: none; } }

/* --- le reste du contenu : une simple montée, discrète --- */
.js .rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rise.seen { opacity: 1; transform: none; }

/* --- la photo du hero respire lentement --- */
.kenburns.seen img { animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }

/* --- rien de tout cela si le visiteur a demandé moins d'animations --- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .ph img { clip-path: none; transform: none; transition: none; }
  .line > span, .ln > i { transform: none; animation: none; transition: none; }
  .kenburns.seen img { animation: none; }
}

/* ============================ barre supérieure ============================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  color: var(--night-text);
  border-bottom: 1px solid var(--night-rule);
  transition: box-shadow .3s ease;
}
.topbar.stuck { box-shadow: 0 10px 30px -18px rgba(0,0,0,.9); }
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.75rem);
  min-height: 68px;
  padding-block: .5rem;
  transition: min-height .3s var(--ease);
}
.topbar.stuck .wrap { min-height: 56px; }

.brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .28rem; text-decoration: none; margin-right: auto;
  color: var(--night-text);
}
.brand-lockup { display: block; line-height: 0; }
.brand-lockup svg { width: clamp(118px, 12vw, 152px); height: auto; display: block; }
.brand-loc {
  font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--night-mute); padding-left: .18em;
}
.topbar.stuck .brand-lockup svg { width: clamp(104px, 10vw, 132px); transition: width .3s var(--ease); }

/* pastille officielle de l'enseigne, posée en biais sur le bandeau de page */
.pastille {
  position: absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%) rotate(-9deg);
  width: clamp(84px, 11vw, 132px); height: auto;
  filter: invert(1);
}
@media (max-width: 820px) { .pastille { display: none; } }
.pagehead .wrap { position: relative; }
.brand-mark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.04em;
  background: var(--chili); color: #fff;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  flex: none;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
}
.brand-txt small { font-size: .72rem; color: var(--night-mute); letter-spacing: .08em; text-transform: uppercase; }

.navlinks { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  text-decoration: none;
  font-size: .87rem; font-weight: 500;
  color: var(--night-mute);
  padding-block: .35rem;
  position: relative;
  transition: color .2s;
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--chili);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.navlinks a:hover { color: var(--night-text); }
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--night-text); }
@media (max-width: 1040px) { .navlinks { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Archivo", sans-serif;
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
  padding: .62rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--chili); color: #fff; }
.btn-red:hover { background: var(--chili-hi); }
/* Par defaut on est sur un fond CLAIR : ces couleurs doivent donc etre celles
   du texte courant. Avant, .btn-ghost portait en dur les couleurs de nuit :
   sur les sections claires le bouton etait quasi blanc sur blanc, donc
   illisible (« Ouvrir dans Google Maps » sur la page Groupes). */
.btn-ghost { border-color: var(--rule); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-mute); }
/* Dans les sections a fond sombre, on reprend les couleurs de nuit. */
.topbar .btn-ghost, .hero .btn-ghost, .pagehead .btn-ghost, .quartier .btn-ghost,
.foot .btn-ghost, .callbar .btn-ghost {
  border-color: var(--night-rule); color: var(--night-text);
}
.topbar .btn-ghost:hover, .hero .btn-ghost:hover,
.pagehead .btn-ghost:hover, .quartier .btn-ghost:hover,
.foot .btn-ghost:hover, .callbar .btn-ghost:hover { border-color: var(--night-mute); }
.btn-out { border-color: var(--rule); color: var(--text); }
.btn-out:hover { border-color: var(--text-mute); }
.btn-lg { font-size: 1rem; padding: .9rem 1.5rem; }
@media (max-width: 560px) { .topbar .btn-tel { display: none; } }

/* ============================ hero ============================ */

.hero { background: var(--night); color: var(--night-text); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--step-4); margin-bottom: 1.25rem; }
.hero h1 .red { color: var(--chili); }
.hero h1 .it { font-weight: 400; letter-spacing: -.005em; }

.hero-lede {
  font-size: var(--step-1);
  color: var(--night-mute);
  max-width: 34ch; line-height: 1.5;
  margin-bottom: 1.9rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1.4rem;
  font-size: .9rem; color: var(--night-mute);
  margin-bottom: 2rem;
}
.dot-open { display: inline-flex; align-items: center; gap: .45rem; color: var(--night-text); font-weight: 600; }
.dot-open::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--basil); box-shadow: 0 0 0 3px rgba(47,107,79,.25);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .hero-photo { aspect-ratio: 16 / 11; } }

/* bandeau de page intérieure */
.pagehead { background: var(--night); color: var(--night-text); }
.pagehead .wrap { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.pagehead h1 { font-size: var(--step-3); margin-block: .6rem .9rem; max-width: 20ch; }
.pagehead p { color: var(--night-mute); max-width: 52ch; }

/* ============================ bandeau défilant ============================ */

.strip { background: var(--chili); color: #fff; overflow: hidden; }
.strip-track {
  display: flex; padding-block: .8rem;
  white-space: nowrap; width: max-content;
  animation: slide 38s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .4vw, 1.25rem);
  letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 3rem;
  padding-right: 3rem;
}
.strip-track span::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--led); display: inline-block;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; }
}

/* ============================ la journee : les trois moments ============================ */

.how { background: var(--surface); border-bottom: 1px solid var(--rule); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; } }
.split figure { aspect-ratio: 4 / 3; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}
.step { display: grid; gap: .8rem; }
.pager {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #F2543C, var(--chili) 58%, #93200F);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,.35), 0 6px 18px -8px rgba(216,52,29,.7);
}
.pager::after {
  content: ""; position: absolute; inset: 10px;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,.3);
}
.pager b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
}

/* la couronne de diodes : huit points qui tournent quand la pastille s allume */
.leds { position: absolute; inset: 0; }
.leds i {
  position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: rotate(var(--a)) translateY(-38px);
}
.leds i:nth-child(1) { --a: 0deg; }
.leds i:nth-child(2) { --a: 45deg; }
.leds i:nth-child(3) { --a: 90deg; }
.leds i:nth-child(4) { --a: 135deg; }
.leds i:nth-child(5) { --a: 180deg; }
.leds i:nth-child(6) { --a: 225deg; }
.leds i:nth-child(7) { --a: 270deg; }
.leds i:nth-child(8) { --a: 315deg; }

/* l'étape en cours : le boîtier tressaute et les diodes s'allument en chaîne */
.step.sonne .pager { animation: vibre .5s var(--ease) 1; }
.step.sonne .leds i { animation: tourne 1.1s steps(1) 2; }
.step.sonne .leds i:nth-child(1) { animation-delay: 0ms; }
.step.sonne .leds i:nth-child(2) { animation-delay: 55ms; }
.step.sonne .leds i:nth-child(3) { animation-delay: 110ms; }
.step.sonne .leds i:nth-child(4) { animation-delay: 165ms; }
.step.sonne .leds i:nth-child(5) { animation-delay: 220ms; }
.step.sonne .leds i:nth-child(6) { animation-delay: 275ms; }
.step.sonne .leds i:nth-child(7) { animation-delay: 330ms; }
.step.sonne .leds i:nth-child(8) { animation-delay: 385ms; }

@keyframes vibre {
  0%, 100% { transform: none; }
  15% { transform: translate3d(-2px, 1px, 0) rotate(-3deg); }
  32% { transform: translate3d(2px, -1px, 0) rotate(3deg); }
  50% { transform: translate3d(-2px, -1px, 0) rotate(-2deg); }
  68% { transform: translate3d(2px, 1px, 0) rotate(2deg); }
  84% { transform: translate3d(-1px, 0, 0) rotate(-1deg); }
}
@keyframes tourne {
  0%, 22% { background: var(--led); box-shadow: 0 0 8px var(--led); }
  23%, 100% { background: rgba(255,255,255,.22); box-shadow: none; }
}
/* la troisième étape est celle où le plat arrive : elle sonne plus longtemps */
.step:last-child.sonne .leds i { animation-iteration-count: 4; }

@media (prefers-reduced-motion: reduce) {
  .step.sonne .pager, .step.sonne .leds i { animation: none; }
  .leds i { background: var(--led); }
}

.step h3 { font-size: var(--step-1); }
.step p { color: var(--text-soft); font-size: .95rem; max-width: 30ch; }

/* ============================ la carte ============================ */

.menu-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 780px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-col > figure { aspect-ratio: 4 / 3; margin-bottom: 1.1rem; }
.menu-col h3 {
  font-size: var(--step-1);
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--text);
  margin-bottom: .35rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.menu-col h3 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: .72em; letter-spacing: 0; color: var(--text-mute);
  white-space: nowrap;
}
.dish {
  display: flex; align-items: baseline; gap: .6rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--rule);
}
.dish-name { font-weight: 600; font-size: .97rem; }
.dish-desc { display: block; font-weight: 400; font-size: .84rem; color: var(--text-mute); line-height: 1.45; margin-top: .12rem; }
.dish-lead { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); transform: translateY(-.2em); min-width: 1.5rem; }
.dish-price {
  flex: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: .95rem; color: var(--text-soft);
}
.tags { display: inline-flex; gap: .3rem; margin-left: .35rem; vertical-align: middle; }
.tag-v {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: var(--basil); border: 1px solid currentColor;
  padding: 0 .3em; border-radius: 2px; line-height: 1.5;
}
.supp {
  font-size: .75rem; font-weight: 600;
  color: #241A00; background: var(--led);
  padding: .05em .4em; border-radius: 2px;
  margin-left: .35rem; white-space: nowrap;
}
.note {
  margin-top: 2.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--chili);
  background: var(--surface-2);
  font-size: .89rem; color: var(--text-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* grille du spritz bar */
.spritz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.spritz {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  display: grid; gap: .35rem; align-content: start;
  transition: transform .25s var(--ease), border-color .25s;
}
.spritz:hover { transform: translateY(-3px); border-color: var(--chili); }
.spritz b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; letter-spacing: -.02em; }
.spritz small { color: var(--text-mute); font-size: .84rem; line-height: 1.45; }
.spritz .p { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--chili); }

/* ============================ quartier ============================ */

.quartier { background: var(--night); color: var(--night-text); }
.quartier h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.quartier p { color: var(--night-mute); max-width: 44ch; }
.quartier .eyebrow { color: var(--led); }
.quartier figure { aspect-ratio: 3 / 2; }
.walk { list-style: none; margin: 1.9rem 0 0; padding: 0; display: grid; gap: .1rem; }
.walk li {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--rule);
  font-size: .95rem;
}
.walk li b { font-weight: 500; margin-right: auto; }
/* Les distances etaient en --led, un ambre concu pour les fonds sombres : sur
   la page claire /le-quartier/ le contraste tombait a 1,61, donc illisible.
   Ambre fonce par defaut, et l ambre lumineux uniquement dans la section
   sombre .quartier ou il est a sa place. */
.walk li span {
  font-variant-numeric: tabular-nums;
  color: var(--ambre-txt); font-weight: 600; font-size: .88rem; white-space: nowrap;
}
.quartier .walk li { border-bottom-color: var(--night-rule); }
.quartier .walk li span { color: var(--led); }

/* ============================ galerie ============================ */

.gal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .6rem; margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 620px)  { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gal-grid { grid-template-columns: repeat(5, 1fr); } }
.gal-grid figure { aspect-ratio: 1; }
.gal-grid figure:hover img { transform: scale(1.06); }

/* ============================ cartes ============================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.15rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--surface);
  display: grid; gap: .5rem; align-content: start;
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--chili); }
.card h3 { font-size: var(--step-1); }
.card p { font-size: .92rem; color: var(--text-soft); }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--chili); }

/* ============================ infos pratiques ============================ */

.infos .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.infos h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.infoblock { display: grid; gap: 1.5rem; align-content: start; }
.infoline { display: grid; gap: .2rem; margin: 0; }
.infoline dt {
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute);
}
.infoline dd { margin: 0; font-size: 1.02rem; font-weight: 500; }
.infoline dd a { text-decoration-color: var(--chili); text-underline-offset: 3px; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 500; color: var(--text-soft); }
.hours td { font-variant-numeric: tabular-nums; text-align: right; }
.map { aspect-ratio: 16 / 12; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================ blog ============================ */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.post {
  display: grid; gap: .75rem; align-content: start;
  text-decoration: none;
}
.post figure { aspect-ratio: 3 / 2; }
.post:hover img { transform: scale(1.05); }
.post h3 { font-size: var(--step-1); }
.post p { font-size: .92rem; color: var(--text-soft); }
.post time { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--chili); }

/* ============================ pied de page ============================ */

.foot {
  background: var(--night);
  color: var(--night-mute);
  font-size: .87rem;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.foot .wrap { display: grid; gap: 1.5rem; }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--night-rule);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.foot-links a { text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--night-text); }
.foot small { display: block; max-width: 74ch; line-height: 1.65; }
.social { display: inline-flex; gap: .55rem; align-items: center; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--night-rule); border-radius: var(--radius);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.social a:hover { border-color: var(--chili); color: var(--night-text); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================ barre d'action mobile ============================ */

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: none;
  background: var(--night);
  border-top: 1px solid var(--night-rule);
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .55rem;
}
.callbar .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 76px; }
}

/* pastille « ouvre à 8h30 » hors service */
.dot-open.ferme::before { background: var(--led); box-shadow: 0 0 0 3px rgba(245,184,46,.25); }

/* ============================ sommaire collant des cartes ============================ */
/* Les pages carte et boissons sont longues : on garde les rubriques sous la main. */

.somm {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.somm::-webkit-scrollbar { display: none; }
.somm ul {
  display: flex; gap: .35rem;
  list-style: none; margin: 0;
  padding: .6rem var(--pad);
  width: max-content; min-width: 100%;
}
.somm a {
  display: block;
  font-size: .84rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  color: var(--text-mute);
  padding: .4rem .85rem;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: color .2s, background .25s var(--ease), border-color .2s;
}
.somm a:hover { color: var(--text); border-color: var(--rule); }
.somm a[aria-current="true"] {
  color: #fff; background: var(--chili); border-color: var(--chili);
}
@media (max-width: 760px) { .somm { top: 60px; } }

/* le sommaire décale les ancres pour que le titre ne passe pas sous les barres */
.section[id] { scroll-margin-top: 128px; }
