/* ============================================================
   Jim's café mobile — site statique
   Palette reprise de l'identité d'origine, mise en page refondue
   ============================================================ */
:root {
  --espresso: #2a1d16;
  --coffee: #4f3827;
  --sage: #8e937a;
  --sage-light: #d4dac5;
  --sage-dark: #5d644f;
  --sage-wash: #eef1e7;
  --cream: #f7ece5;
  --paper: #fffaf5;
  --gold: #fde490;
  --ink: #31251d;
  --muted: #77695e;
  --line: rgba(79, 56, 39, 0.16);
  --radius: 12px;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 20px 50px rgba(42, 29, 22, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--gold); color: var(--espresso); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--espresso);
  border-radius: 0 0 8px 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.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;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ----------------------------- Header ------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(93, 100, 79, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.16);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(93, 100, 79, .96);
  color: #fff;
  box-shadow: 0 2px 14px rgba(42,29,22,.18), inset 0 -1px 0 rgba(255,255,255,.14);
}
.brand {
  display: inline-flex; align-items: center;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.brand img { width: auto; height: 44px; max-width: 120px; object-fit: contain; }
.site-header.is-scrolled .brand { opacity: 1; transform: none; pointer-events: auto; }

.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); margin-left: auto; }
.site-nav a {
  position: relative; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none; opacity: .85;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: currentColor; transition: right .25s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { right: 0; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px; font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.header-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.site-header.is-scrolled .header-cta { border-color: rgba(255,255,255,.62); }
.site-header.is-scrolled .header-cta:hover { color: var(--espresso); }

/* ------------------------------ Hero ------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(900px, 100svh);
  padding: 150px clamp(20px, 6vw, 90px) 120px;
  background: var(--espresso);
  color: #fff;
  overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0;
  background: url("bg.jpg?v=2") center / cover no-repeat;
  opacity: .48;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 520px at 88% 18%, rgba(142,147,122,.5), transparent 72%),
    linear-gradient(120deg, rgba(25,16,11,.93) 0%, rgba(42,52,37,.74) 50%, rgba(79,56,39,.5) 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; width: min(100%, 1040px); margin: 0 auto; }

.hero__logo-wrap {
  display: inline-block;
  margin-bottom: 10px;
  padding: 18px 28px;
  border: 1px solid rgba(212,218,197,.5);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(212,218,197,.48), rgba(142,147,122,.34));
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 28px 64px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.28);
  transform: rotate(-1.5deg);
}
.hero__logo { width: min(400px, 74vw); height: auto; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  color: var(--sage-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow--light { color: var(--sage-light); }
.eyebrow__line { width: 34px; height: 1px; background: currentColor; flex: none; }

.hero h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero h1 em { color: var(--sage-light); font-weight: 500; }
.hero__lead {
  margin: 26px 0 0;
  max-width: 560px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.hero__highlights {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.hero__highlights li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border: 1px solid rgba(212,218,197,.32);
  border-radius: 999px;
  background: rgba(212,218,197,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92); font-size: .86rem; font-weight: 600;
}
.hero__highlights li span { font-size: 1.05rem; line-height: 1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--gold); color: var(--espresso); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(253,228,144,.28); }
.btn--outline { border-color: rgba(212,218,197,.6); color: #fff; }
.btn--outline:hover { background: rgba(212,218,197,.16); transform: translateY(-3px); }
.btn--large { min-height: 62px; padding: 18px 38px; font-size: 1rem; }

.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(212,218,197,.72); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll span {
  width: 1px; height: 34px;
  background: linear-gradient(rgba(212,218,197,0), rgba(212,218,197,.9));
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100% { transform: scaleY(.5); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------ Titres ------------------------------------ */
.section-head h2, .final-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.03em;
}

/* ------------------------------ Contact ---------------------------------- */
.contact {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 90px);
  background: radial-gradient(760px 420px at 88% 4%, rgba(142,147,122,.18), transparent 72%), var(--cream);
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 26px;
  width: min(100%, 1180px); margin: 0 auto 44px;
}
.section-head h2 span { color: var(--sage); }
.section-head__note { max-width: 330px; margin: 0; color: var(--muted); font-size: .92rem; }

.actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  width: min(100%, 1180px); margin: 0 auto;
}
.action {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  min-height: 122px; padding: 24px;
  border: 1px solid rgba(93,100,79,.22); border-radius: var(--radius);
  background: linear-gradient(155deg, var(--paper), var(--sage-wash)); text-decoration: none; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.action::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--sage-dark); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.action:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.action:hover::before { transform: scaleX(1); }
.action--feature { background: var(--coffee); border-color: var(--coffee); color: #fff; }
.action--feature::before { background: var(--gold); }
.action--feature:hover { box-shadow: 0 22px 44px rgba(79,56,39,.28); }
.action__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(142,147,122,.2); color: var(--sage-dark);
}
.action--feature .action__icon { background: var(--sage-light); color: var(--espresso); }
.action__icon svg { width: 23px; height: 23px; fill: currentColor; }
.action__body { display: flex; flex-direction: column; min-width: 0; }
.action__label { color: var(--sage-dark); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.action--feature .action__label { color: var(--sage-light); }
.action__body strong { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; line-height: 1.2; }
.action__arrow { margin-left: auto; align-self: flex-start; opacity: .45; transition: transform .25s ease, opacity .25s ease; }
.action:hover .action__arrow { opacity: 1; transform: translate(3px, -3px); }

/* -------------------------------- Menu ----------------------------------- */
section[id] { scroll-margin-top: 76px; }

.menu {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 90px);
  background:
    radial-gradient(720px 380px at 8% 0%, rgba(212,218,197,.6), transparent 70%),
    linear-gradient(180deg, var(--sage-wash), var(--paper));
}
.menu__inner { width: min(100%, 1180px); margin: 0 auto; }
.menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.menu__card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(93,100,79,.2); border-radius: 20px;
  background: linear-gradient(155deg, rgba(255,255,255,.86), rgba(238,241,231,.86));
  box-shadow: 0 18px 44px rgba(42,29,22,.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.menu__card-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
}
.menu__card-title img { width: 42px; height: 42px; flex: none; }
.menu__count {
  margin-left: auto; color: var(--sage-dark);
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.menu__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px;
  margin: 0; padding: 0; list-style: none;
}
.menu__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-size: .9rem; font-weight: 600;
}
.menu__list img { width: 30px; height: 30px; flex: none; }

.menu__extras {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px;
  margin-top: 22px; padding: 28px clamp(22px, 3vw, 34px);
  border: 1px solid var(--coffee); border-radius: 20px;
  background: var(--coffee); color: #fff;
}
.menu__extras h3 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.menu__extras-head > p { margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: .9rem; }
.menu__extras-list, .menu__syrups ul {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.menu__extras-list li, .menu__syrups li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(212,218,197,.3); border-radius: 999px;
  background: rgba(212,218,197,.14);
  font-size: .86rem; font-weight: 600;
}
.menu__extras img { width: 26px; height: 26px; flex: none; }
.menu__plus {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--espresso); font-weight: 700;
}
.menu__syrups { margin-top: 24px; }
.menu__syrups > p {
  margin: 0 0 12px; color: var(--sage-light);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ----------------------------- Événements -------------------------------- */
.events {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 90px);
  background: var(--espresso); color: #fff;
}
.events::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 340px at 92% 0%, rgba(142,147,122,.24), transparent 72%),
    radial-gradient(520px 320px at 2% 96%, rgba(142,147,122,.16), transparent 72%);
}
.events__inner { position: relative; z-index: 1; width: min(100%, 1280px); margin: 0 auto; }
.section-head--light { margin-bottom: 40px; }
.section-head--light .section-head__note { color: rgba(255,255,255,.6); }
.section-head--light h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.events__emoji { font-family: var(--font-body); font-size: .55em; letter-spacing: 0; white-space: nowrap; }

.gallery { columns: 4 230px; column-gap: 16px; }
.shot {
  display: block; width: 100%; margin: 0 0 16px; padding: 0;
  border: 0; border-radius: var(--radius); background: #000;
  cursor: zoom-in; overflow: hidden; break-inside: avoid;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.shot img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s ease; }
.shot:hover img { transform: scale(1.045); opacity: .88; }

/* ----------------------------- Final CTA --------------------------------- */
.final-cta {
  position: relative; overflow: hidden;
  padding: clamp(72px, 9vw, 116px) clamp(20px, 6vw, 90px);
  background: linear-gradient(145deg, #a0a78e 0%, var(--sage) 52%, #7c836b 100%); color: var(--espresso); text-align: center;
}
.final-cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,218,197,.6), transparent 68%);
  top: -280px; right: -120px; pointer-events: none;
}
.final-cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(42,29,22,.14); bottom: -280px; left: -120px; pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; width: min(100%, 720px); margin: 0 auto; }
.final-cta .eyebrow { justify-content: center; color: var(--espresso); }
.final-cta h2 em { color: var(--paper); }
.final-cta .btn { margin-top: 34px; background: var(--espresso); color: var(--gold); }
.final-cta .btn:hover { box-shadow: 0 16px 34px rgba(42,29,22,.28); }

/* ------------------------------- Footer ---------------------------------- */
.site-footer {
  padding: 64px clamp(20px, 6vw, 90px) 32px;
  border-top: 3px solid var(--sage);
  background: #1c130e; color: rgba(255,255,255,.62); text-align: center;
}
.footer__top { width: min(100%, 720px); margin: 0 auto; }
.footer__logo {
  display: block; width: min(260px, 68vw); height: auto;
  margin: 0 auto 22px; padding: 12px 20px;
  border: 1px solid rgba(212,218,197,.3); border-radius: 14px;
  background: rgba(212,218,197,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-user-select: none; user-select: none;
}
.footer__top p { margin: 0; font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 34px auto 26px; }
.footer__links a {
  font-size: .82rem; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.footer__links a:hover { color: var(--sage-light); border-color: var(--sage-light); }
.footer__copyright { margin: 0; font-size: .75rem; opacity: .55; }

/* ------------------------------ Lightbox --------------------------------- */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 40px 80px; border: 0;
  background: rgba(15, 10, 7, .97); color: #fff;
  display: grid; place-items: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(15,10,7,.97); }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82dvh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.6); font-size: .82rem; letter-spacing: .1em; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: transparent; color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--espresso); }
.lightbox__close { top: 20px; right: 24px; font-size: 2rem; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ------------------------------ Animations ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Responsive -------------------------------- */
@media (max-width: 980px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__extras { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 18px; }
  .site-nav { display: none; }
  .brand img { height: 36px; max-width: 100px; }
  .header-cta { padding: 9px 15px; font-size: .76rem; }
  .hero { min-height: 720px; padding: 120px 18px 100px; align-items: flex-start; }
  .hero__logo-wrap { padding: 10px 16px; border-radius: 16px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .hero__lead { margin-top: 24px; }
  .desktop-break { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .section-head { align-items: flex-start; }
  .section-head__note { max-width: 100%; }
  .actions { grid-template-columns: 1fr; }
  .action { min-height: 104px; padding: 20px; }
  .menu__list { grid-template-columns: 1fr; }
  .menu__card-title img { width: 36px; height: 36px; }
  .gallery { columns: 2 130px; column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .lightbox { padding: 60px 16px; }
  .lightbox img { max-height: 72dvh; }
  .lightbox__nav { width: 40px; height: 40px; top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
}

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