/* =========================================================
   Jana Coffee Club, styles
   Palette bordeaux, crème, terracotta, rouille, doré
   Logo : Bagel Fat One. Titres : Baloo 2. Corps : Poppins.
   ========================================================= */

:root {
  --bordeaux: #7A1F1F;
  --bordeaux-light: #8C2A2A;
  --cream: #FAF6EC;
  --cream-alt: #F7F1E3;
  --terracotta: #C67B4E;
  --rouille: #B25A3E;
  --gold: #C99A5B;
  --ink: #231F1C;

  --font-display: "Baloo 2", "Cooper Black", Georgia, serif;
  --font-logo: "Bagel Fat One", "Baloo 2", "Cooper Black", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-blob: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --shadow-soft: 0 18px 40px -18px rgba(35, 31, 28, 0.35);
  --wrap: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { 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;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.08; }
h1, h2 { font-family: var(--font-logo); font-weight: 400; }
p { margin: 0 0 1em; }
sup { font-size: 0.55em; top: -0.6em; }

::selection { background: var(--bordeaux); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* subtle warm plaster grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bordeaux);
  color: var(--cream);
  padding: 0.75em 1.25em;
  z-index: 10000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85em 1.9em;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--bordeaux-light); }
.btn-outline {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn-outline:hover { transform: translateY(-2px); background: var(--bordeaux); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 236, 0.97);
  border-bottom: 1px solid rgba(122, 31, 31, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { display: block; flex-shrink: 0; }
.brand-mark img { display: block; width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.footer-brand .brand-mark img { width: 52px; height: 52px; border-radius: 12px; }
.brand-word {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--bordeaux);
}
.brand-word em { display: block; font-family: var(--font-display); font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bordeaux); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--bordeaux);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: 0 0 0 30%;
  z-index: 600;
  background: var(--cream-alt);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  align-items: center;
  padding: 100px 32px 32px;
  box-shadow: -18px 0 40px -18px rgba(35, 31, 28, 0.35);
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul { display: flex; flex-direction: column; gap: 22px; width: 100%; }
.primary-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bordeaux);
}

@media (min-width: 860px) {
  .header-inner { padding: 14px 20px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .primary-nav ul { flex-direction: row; gap: 30px; }
  .primary-nav a { font-size: 0.95rem; font-weight: 600; position: relative; }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Scallop dividers (textile edge between sections) ---------- */
.scallop-divider {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 44px 26px;
  margin-top: -1px;
}
.scallop-cream {
  background-image: radial-gradient(circle at 50% 0%, var(--cream) 0 13px, transparent 13.5px);
  background-color: transparent;
}
.scallop-terracotta {
  background-image: radial-gradient(circle at 50% 0%, var(--cream-alt) 0 13px, transparent 13.5px);
}
.scallop-bordeaux {
  background-image: radial-gradient(circle at 50% 0%, var(--bordeaux) 0 13px, transparent 13.5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 56px 0 0;
  background: var(--bordeaux);
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-texture.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-bg::after { content: ""; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(122,31,31,0.62), rgba(178,90,62,0.55));
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 60px;
  padding-top: 20px;
}

/* Authored arrival: the hero is the one focal moment, not another scroll reveal. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-settle {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-title { opacity: 0; animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; }
.hero-baseline { opacity: 0; animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.hero-text { opacity: 0; animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards; }
.hero-cta { opacity: 0; animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.44s forwards; }
.hero-media { opacity: 0; animation: hero-settle 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }

.hero-title {
  font-size: clamp(3rem, 12vw, 5.4rem);
  font-weight: 400;
  color: var(--cream);
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.hero-title span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.26em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  margin-top: 10px;
}
.hero-baseline {
  font-family: var(--font-logo);
  font-style: normal;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 400;
  color: var(--cream);
  margin: 18px 0 16px;
}
.hero-text { max-width: 46ch; color: rgba(250,246,236,0.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero .btn-outline { color: var(--cream); border-color: var(--cream); }
.hero .btn-outline:hover { background: var(--cream); color: var(--bordeaux); }

.hero-media { display: flex; justify-content: center; }
.frame {
  position: relative;
  background: var(--cream-alt);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  max-width: 340px;
}
.frame img { width: 100%; height: auto; }
.frame-arch {
  border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px;
  overflow: hidden;
  padding: 0;
  border: 6px solid var(--gold);
}
.frame-scallop {
  border-radius: 18px;
  border: 6px solid var(--gold);
}
.frame-scallop::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px; bottom: -16px;
  height: 20px;
  background-image: radial-gradient(circle at 50% 0%, var(--gold) 0 9px, transparent 9.5px);
  background-size: 30px 20px;
  background-repeat: repeat-x;
}

@media (min-width: 860px) {
  .hero-inner { flex-direction: row; align-items: center; padding: 70px 0 90px; }
  .hero-copy { flex: 1 1 54%; }
  .hero-media { flex: 1 1 40%; }
  .frame { max-width: 400px; }
}

/* ---------- Section shell ---------- */
.section { position: relative; padding: 76px 0; scroll-margin-top: 90px; }
.site-footer { scroll-margin-top: 90px; }
h2 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--bordeaux); }
.section-lede { max-width: 60ch; color: #4a423d; }

/* ---------- Notre histoire ---------- */
.histoire { background: var(--cream); }
.histoire-grid { display: flex; flex-direction: column; gap: 40px; }
.histoire-media { position: relative; }
.tag-float {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}
.histoire-copy p { color: #4a423d; max-width: 56ch; }
.mini-facts { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.mini-facts li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.mini-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}
.mini-facts strong { color: var(--bordeaux); }

@media (min-width: 900px) {
  .histoire-grid { flex-direction: row; align-items: center; gap: 60px; }
  .histoire-media, .histoire-copy { flex: 1 1 50%; }
}

/* ---------- Menu / gallery ---------- */
.menu { background: var(--cream-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 10px; }

.card {
  flex: 0 0 78%;
  max-width: 300px;
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(122,31,31,0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -20px rgba(35, 31, 28, 0.4); }
.card-media {
  border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border: 5px solid var(--gold);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.2rem; color: var(--bordeaux); margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: #4a423d; margin-bottom: 12px; }
.price-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--bordeaux);
  border: 1.5px dashed var(--rouille);
  border-radius: 100px;
  padding: 5px 14px;
}
@media (min-width: 720px) {
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .card { max-width: none; }
}

/* ---------- La carte (priced menu board) ---------- */
.menu-board-wrap {
  position: relative;
  margin-top: 64px;
  padding: 44px 22px 36px;
  background: var(--cream);
  border-radius: 24px;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.menu-board-trim {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  height: 24px;
  background-image: radial-gradient(circle at 50% 0%, var(--gold) 0 13px, transparent 13.5px);
  background-size: 36px 24px;
  background-repeat: repeat-x;
}
.menu-board-title { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--bordeaux); margin-bottom: 28px; }

.menu-board { display: flex; flex-direction: column; gap: 34px; }
.menu-col-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.menu-col-head h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--bordeaux);
  margin: 0;
  padding: 6px 18px;
  border-radius: 100px;
}
.menu-note { font-size: 0.72rem; color: var(--bordeaux); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.price-list { display: flex; flex-direction: column; gap: 9px; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.96rem;
}
.price-list li span:first-child {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
}
.price-list li span:first-child::after {
  content: "";
  flex: 1 1 auto;
  margin: 0 6px;
  border-bottom: 1.5px dotted var(--terracotta);
  transform: translateY(-4px);
  min-width: 12px;
}
.price-list .price {
  color: var(--bordeaux);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-list .price-tbc { color: var(--bordeaux); font-weight: 500; font-style: italic; }

.menu-addons {
  margin: 22px 0 10px;
  padding: 16px 18px;
  background: var(--cream-alt);
  border-radius: 14px;
  border: 1px solid rgba(122, 31, 31, 0.14);
}
.menu-addons-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bordeaux);
  margin: 0 0 10px;
}
.menu-addons-title-tight { margin-top: 18px; }
.price-list-addons li { font-size: 0.86rem; }

.menu-board-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--bordeaux);
  border-top: 1px dashed rgba(122,31,31,0.2);
  padding-top: 16px;
}
.menu-board-note a { color: var(--bordeaux); font-weight: 600; }

@media (min-width: 720px) {
  .menu-board { flex-direction: row; gap: 50px; }
  .menu-col { flex: 1 1 50%; }
}
@media (min-width: 900px) {
  .menu-board-wrap { padding: 44px 48px 48px; }
}

/* ---------- Events ---------- */
.events { background: var(--bordeaux); color: var(--cream); }
.events-grid { display: flex; flex-direction: column; gap: 36px; }
.events h2 { color: var(--cream); }
.events-copy p { color: rgba(250,246,236,0.9); max-width: 52ch; }
.events .btn-primary { background: var(--gold); color: var(--ink); }
.events .btn-primary:hover { background: var(--cream); }
.events .btn-outline { color: var(--cream); border-color: var(--cream); }
.events .btn-outline:hover { background: var(--cream); color: var(--bordeaux); }
.events-media .frame { background: var(--bordeaux-light); border-color: var(--gold); }

@media (min-width: 900px) {
  .events-grid { flex-direction: row; align-items: center; gap: 60px; }
  .events-copy, .events-media { flex: 1 1 50%; }
}

/* ---------- Communauté ---------- */
.communaute { background: var(--cream); }
.communaute .section-head { margin-bottom: 30px; }
.communaute a { color: var(--bordeaux); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}
.insta-tile {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
  border-style: solid;
  border-color: var(--cream);
  border-width: 10px 10px 30px;
  box-shadow: 0 16px 32px -16px rgba(35, 31, 28, 0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.insta-tile::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 1px 2px rgba(35, 31, 28, 0.4);
  z-index: 2;
}
.insta-tile:nth-child(1) { transform: rotate(-3deg); }
.insta-tile:nth-child(2) { transform: rotate(2.5deg); }
.insta-tile:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  box-shadow: 0 22px 40px -16px rgba(35, 31, 28, 0.5);
}
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta-tile:hover img { transform: scale(1.06); }
.insta-cta { text-align: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bordeaux); color: var(--cream); }
.footer-inner {
  display: grid;
  gap: 34px;
  padding: 20px 20px 40px;
  grid-template-columns: 1fr;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-baseline { font-family: var(--font-logo); font-weight: 400; font-size: 1.1rem; color: var(--cream); }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}
address { font-style: normal; color: rgba(250,246,236,0.9); margin-bottom: 12px; line-height: 1.7; }
.footer-link {
  display: block;
  color: var(--cream);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.footer-link:hover { border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250,246,236,0.15);
  padding: 18px 20px 28px;
  font-size: 0.8rem;
  color: rgba(250,246,236,0.7);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-baseline, .hero-text, .hero-cta, .hero-media {
    opacity: 1;
    animation: none;
  }
  .insta-tile:hover img { transform: none; }
  .card:hover { transform: none; }
  .insta-tile:hover { transform: none; }
}
