/* =========================================================
   Café la Tasse — Fès, depuis 1951
   Palette : café, moka, laiton, sable, terre cuite
   ========================================================= */
:root {
  --mocha: #6f4526;
  --espresso: #3a2114;
  --espresso-dark: #22130b;
  --gold: #c9963a;
  --gold-light: #e6c079;
  --cream: #f7f0e3;
  --paper: #fffaf1;
  --coffee: #2b1a10;
  --brown: #5a3620;
  --terracotta: #b5532f;
  --ink: #33241a;
  --muted: #7a6858;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(43, 26, 16, .45);
  --font-display: 'Fraunces', 'Amiri', Georgia, serif;
  --font-body: 'Outfit', 'Tajawal', system-ui, sans-serif;
  /* Zellij plein : étoiles à huit branches (khatam) et croix, aux tons terre cuite et café */
  --zellij: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23b5532f'/%3E%3Cg stroke='%2322130b' stroke-width='2' stroke-linejoin='round'%3E%3Cpath fill='%23c9963a' d='M0-13L13 0 0 13-13 0zM100-13l13 13-13 13-13-13zM0 87l13 13-13 13-13-13zM100 87l13 13-13 13-13-13z'/%3E%3Cpath fill='%23f3e6cc' d='M100 50L85.360 64.640V85.360H64.640L50 100 35.360 85.360H14.640V64.640L0 50l14.640-14.640V14.640h20.720L50 0l14.640 14.640h20.720v20.720z'/%3E%3Cpath fill='%236f4526' transform='translate(50 50) scale(.48) translate(-50 -50)' stroke-width='4' d='M100 50L85.360 64.640V85.360H64.640L50 100 35.360 85.360H14.640V64.640L0 50l14.640-14.640V14.640h20.720L50 0l14.640 14.640h20.720v20.720z'/%3E%3Ccircle cx='50' cy='50' r='6' fill='%23c9963a' stroke-width='1.500'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9963a' stroke-width='1'%3E%3Crect x='24' y='24' width='32' height='32'/%3E%3Crect x='24' y='24' width='32' height='32' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 40h17.4M62.6 40H80M40 0v17.4M40 62.6V80M0 10L10 0M70 0l10 10M80 70L70 80M10 80L0 70'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-brown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%236f4526' stroke-width='1'%3E%3Crect x='24' y='24' width='32' height='32'/%3E%3Crect x='24' y='24' width='32' height='32' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 40h17.4M62.6 40H80M40 0v17.4M40 62.6V80M0 10L10 0M70 0l10 10M80 70L70 80M10 80L0 70'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
html[lang="ar"] {
  --font-display: 'Amiri', 'Fraunces', serif;
  --font-body: 'Tajawal', 'Outfit', system-ui, sans-serif;
}
html[lang="ar"] body { font-size: 1.12rem; line-height: 1.85; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--espresso); }
h3 { font-size: 1.3rem; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
address { font-style: normal; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 0; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1em;
}
html[lang="ar"] .kicker, html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .98rem; }
.kicker::before, .eyebrow::before {
  content: ''; width: 12px; height: 12px; background: currentColor; flex: none;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .lang-btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: .55em 1.15em; font-size: .93rem; }
.btn-lg { padding: 1em 2.2em; font-size: 1.35rem; font-weight: 600; }
.btn-gold { background: var(--gold); color: var(--coffee); box-shadow: 0 10px 24px -12px rgba(201, 150, 58, .9); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(247, 240, 227, .5); color: var(--cream); }
.btn-ghost:hover { background: rgba(247, 240, 227, .12); }
.btn-brown { background: var(--mocha); color: #fff; }
.btn-brown:hover { background: var(--espresso); }
.btn-line { border-color: rgba(111, 69, 38, .35); color: var(--espresso); }
.btn-line:hover { background: rgba(111, 69, 38, .08); }

/* ===== Navigation ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(18px, 4vw, 44px);
  color: var(--cream);
  transition: padding .35s ease;
}
/* Le fond est porté par un pseudo-élément : un backdrop-filter posé sur .nav
   enfermerait le menu mobile (position: fixed) dans la barre. */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: rgba(34, 19, 11, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .35s ease;
}
.nav.scrolled { padding-block: 10px; }
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; fill: var(--gold); stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .steam-mini { fill: none; animation: miniSteam 3s ease-in-out infinite; }
.brand-logo { height: 78px; width: auto; transition: height .35s ease; }
.nav.scrolled .brand-logo { height: 58px; }
.footer-logo { height: 104px; width: auto; }
.brand-text { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
html[lang="ar"] .brand-text small { letter-spacing: 0; font-size: .8rem; }

.nav-links { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a { text-decoration: none; font-size: .97rem; position: relative; padding: 6px 0; opacity: .9; }
.nav-links a::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: inline-start; transition: transform .3s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  font: inherit; font-size: .93rem; color: var(--cream); cursor: pointer;
  background: rgba(247, 240, 227, .1); border: 1px solid rgba(247, 240, 227, .3);
  padding: .45em 1em; border-radius: 999px; transition: background-color .25s ease;
}
.lang-btn:hover { background: rgba(247, 240, 227, .22); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--cream); margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 0;
  color: var(--cream);
  background: radial-gradient(120% 90% at 80% 10%, var(--mocha) 0%, var(--espresso) 45%, var(--espresso-dark) 100%);
}
.hero-pattern {
  position: absolute; inset: -80px; z-index: -1; opacity: .16;
  background-image: var(--zellige-gold); background-size: 80px 80px;
  animation: drift 60s linear infinite;
  mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 100%);
}
/* Vidéo réelle de torréfaction en fond, sous un voile café pour garder le texte lisible */
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(34, 19, 11, .95) 0%, rgba(34, 19, 11, 0) 38%),
    linear-gradient(to right, rgba(34, 19, 11, .9) 0%, rgba(34, 19, 11, .62) 50%, rgba(34, 19, 11, .3) 100%);
}
html[dir="rtl"] .hero-shade {
  background:
    linear-gradient(to top, rgba(34, 19, 11, .95) 0%, rgba(34, 19, 11, 0) 38%),
    linear-gradient(to left, rgba(34, 19, 11, .9) 0%, rgba(34, 19, 11, .62) 50%, rgba(34, 19, 11, .3) 100%);
}
.arch-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  width: min(1140px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 720px); align-items: center;
  padding-bottom: clamp(40px, 7vw, 80px);
}
.eyebrow { color: var(--gold-light); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 500; margin-bottom: .45em; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: italic; color: var(--gold-light); }
html[lang="ar"] .hero h1 em { font-style: normal; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 34em; opacity: .88; font-weight: 300; }
html[lang="ar"] .lead { font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }

/* Arche */
.arch-wrap { position: relative; justify-self: center; width: min(360px, 78vw); }
.arch {
  aspect-ratio: 3 / 4.2; padding: 24px;
  border-radius: 999px 999px 14px 14px;
  border: 4px solid var(--gold);
  background: var(--zellij) center top / 48px 48px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  animation: floaty 7s ease-in-out infinite;
}
.arch-inner {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 999px 999px 8px 8px;
  border: 4px solid var(--gold);
  box-shadow: inset 0 10px 30px -12px rgba(43, 26, 16, .5);
  background: radial-gradient(90% 60% at 50% 70%, #fff7e6 0%, var(--cream) 55%, #ecdcbf 100%);
  display: grid; place-items: end center;
}
.arch-zellige { position: absolute; inset: 0; background-image: var(--zellige-brown); background-size: 54px 54px; opacity: .22; }
.cup { position: relative; width: 78%; margin-bottom: 9%; overflow: visible; }
.cup-body { fill: var(--espresso); }
.cup-handle { fill: none; stroke: var(--espresso); stroke-width: 12; stroke-linecap: round; }
.cup-coffee { fill: #1a0e07; stroke: var(--mocha); stroke-width: 5; }
.saucer { fill: var(--mocha); }
.cup-star rect { fill: none; stroke: var(--gold-light); stroke-width: 2.5; }
.steam path {
  fill: none; stroke: var(--brown); stroke-width: 5; stroke-linecap: round; opacity: 0;
  stroke-dasharray: 150; stroke-dashoffset: 150;
  animation: steam 4.2s ease-in-out infinite;
}
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.8s; }

.seal {
  position: absolute; inset-block-end: 8%; inset-inline-start: -8%;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1.1;
  background: var(--terracotta); color: var(--cream);
  border: 2px dashed rgba(247, 240, 227, .6); outline: 6px solid var(--terracotta);
  transform: rotate(-10deg);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
}
.seal strong { font-family: 'Fraunces', serif; font-size: 1.7rem; }
.seal span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
html[lang="ar"] .seal span { letter-spacing: 0; font-size: 1rem; }

/* Grains flottants */
.beans { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bean {
  position: absolute; width: 34px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #b98452, #7a4a2a);
  opacity: .5; will-change: transform;
  translate: 0 var(--py, 0px);
  animation: beanFloat 9s ease-in-out infinite;
}
.bean::after {
  content: ''; position: absolute; inset: 6px 45% 6px 45%;
  border-inline-start: 2px solid rgba(0, 0, 0, .45); border-radius: 50%;
  transform: rotate(8deg) scaleX(4);
}
.b1 { top: 16%; left: 6%; rotate: 25deg; }
.b2 { top: 62%; left: 44%; rotate: -40deg; scale: .7; animation-delay: -2s; }
.b3 { top: 12%; left: 52%; rotate: 70deg; scale: .55; animation-delay: -4s; }
.b4 { top: 74%; left: 9%; rotate: -15deg; scale: .85; animation-delay: -1s; }
.b5 { top: 22%; left: 92%; rotate: 50deg; scale: .75; animation-delay: -5s; }
.b6 { top: 80%; left: 88%; rotate: -60deg; animation-delay: -3s; }

/* Chiffres */
.stats {
  width: min(1140px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(230, 192, 121, .28);
}
.stats li { padding: 26px 12px; text-align: center; }
.stats li + li { border-inline-start: 1px solid rgba(230, 192, 121, .28); }
.stats strong { display: block; font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; color: var(--gold-light); line-height: 1; }
.stats span { font-size: .9rem; opacity: .8; }

/* ===== Bandeau défilant ===== */
.marquee { background: var(--gold); color: var(--coffee); overflow: hidden; direction: ltr; padding: 13px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
}
.marquee-track span::after {
  content: ''; width: 14px; height: 14px; background: var(--espresso);
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
}

/* ===== Histoire ===== */
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.story-body .timeline { margin-top: 2.2em; }
.story p { color: #4d3c30; font-size: 1.1rem; }
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 7px; width: 2px;
  background: linear-gradient(var(--gold), var(--mocha));
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; top: 6px; inset-inline-start: -34px; width: 16px; height: 16px;
  background: var(--cream); border: 3px solid var(--gold); transform: rotate(45deg);
}
.t-year { font-family: 'Fraunces', var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--terracotta); line-height: 1; }
.timeline h3 { margin: .3em 0 .2em; color: var(--espresso); }
.timeline p { margin: 0; color: var(--muted); }

.zellige-band {
  height: 72px; background: var(--zellij) center / 64px 64px;
  border-block: 4px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--espresso-dark);
}

/* ===== Torréfaction ===== */
.roast { background: var(--paper); }
/* Le parcours du grain : une scène qui reste à l'écran et change avec l'étape lue */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.flow-stage { position: sticky; top: calc(50vh - 190px); display: grid; place-items: center; }
.scene { width: min(380px, 100%); height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(43, 26, 16, .35)); }
.scene * { transform-box: view-box; }
.scene-bg { fill: var(--espresso); stroke: var(--gold); stroke-width: 3; transition: fill 1.2s ease; }
.scene-glow { opacity: 0; transition: opacity 1s ease; }
.scene-drum { fill: none; stroke: var(--gold-light); stroke-width: 4; stroke-linecap: round; transform-origin: 160px 150px; transition: opacity .8s ease, stroke 1s ease; }
.scene-beans { transform-origin: 160px 150px; }
.scene-beans-wrap { transform-origin: 160px 150px; transition: transform 1.1s cubic-bezier(.3, 1.3, .5, 1); }
.scene-beans ellipse { fill: var(--bean, #8c9c4f); transition: fill 1.4s ease; }
.scene-beans path { fill: none; stroke: rgba(20, 10, 4, .55); stroke-width: 3; stroke-linecap: round; }
.scene-flames { opacity: 0; transition: opacity .8s ease; }
.scene-flames path { fill: #ee7a22; transform-origin: 0 0; animation: flame .85s ease-in-out infinite; }
.scene-flames .flame-core { fill: #ffd15c; }
.scene-wind { opacity: 0; transition: opacity .8s ease; }
.scene-wind path { fill: none; stroke: rgba(247, 240, 227, .85); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 70 22; animation: flow 1.6s linear infinite; }
.scene-smoke { opacity: 0; transition: opacity 1s ease; }
.scene-smoke circle { fill: rgba(247, 240, 227, .22); filter: blur(5px); animation: puff 3.2s ease-out infinite; }
.scene-smoke circle:nth-child(2) { animation-delay: -1.1s; }
.scene-smoke circle:nth-child(3) { animation-delay: -2.1s; }
.scene-bag { opacity: 0; transform: translateY(26px) scale(.86); transform-origin: 160px 200px; transition: opacity .8s ease, transform 1s cubic-bezier(.3, 1.3, .5, 1); }
.scene-bag path { fill: #c8a06a; stroke: var(--espresso-dark); stroke-width: 3; stroke-linejoin: round; }
.scene-bag .bag-top { fill: #b08a55; }
.scene-bag .bag-line { fill: none; stroke: rgba(34, 19, 11, .45); stroke-linecap: round; }

/* États de la scène */
.roast[data-step="1"] { --bean: #8c9c4f; }
.roast[data-step="2"] { --bean: #b57a38; }
.roast[data-step="3"] { --bean: #6f4526; }
.roast[data-step="4"] { --bean: #4a2a17; }
.roast[data-step="2"] .scene-bg { fill: #4a2110; }
.roast[data-step="2"] .scene-glow { opacity: 1; }
.roast[data-step="2"] .scene-drum { stroke: #ffcf7a; }
.roast[data-step="2"] .scene-flames { opacity: 1; }
.roast[data-step="2"] .scene-smoke, .roast[data-step="3"] .scene-smoke { opacity: 1; }
.roast[data-step="3"] .scene-wind { opacity: 1; }
.roast[data-step="4"] .scene-drum { opacity: 0; }
.roast[data-step="4"] .scene-bag { opacity: 1; transform: none; }
.roast[data-step="4"] .scene-beans-wrap { transform: translateY(44px) scale(.5); }

/* Les étapes : celle qu'on lit s'allume, un fil doré suit la progression */
.steps { position: relative; counter-reset: step; padding-inline-start: 38px; }
.steps::before, .steps::after { content: ''; position: absolute; inset-inline-start: 6px; top: 0; width: 2px; }
.steps::before { height: 100%; background: rgba(90, 54, 32, .18); }
.steps::after { height: calc(var(--progress, 0) * 100%); background: var(--gold); transition: height .25s linear; }
.steps li {
  position: relative; counter-increment: step;
  display: flex; flex-direction: column; justify-content: center; min-height: 36vh;
  opacity: .32; transform: translateX(14px);
  transition: opacity .6s ease, transform .6s ease;
}
html[dir="rtl"] .steps li { transform: translateX(-14px); }
.steps li.active, html[dir="rtl"] .steps li.active { opacity: 1; transform: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif; font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 400; line-height: 1;
  color: var(--gold); margin-bottom: .15em;
}
.steps li::after {
  content: ''; position: absolute; inset-inline-start: -38px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--paper); border: 2px solid rgba(90, 54, 32, .3); transform: rotate(45deg);
  transition: background-color .5s ease, border-color .5s ease, transform .5s ease;
}
.steps li.active::after { background: var(--gold); border-color: var(--gold); transform: rotate(45deg) scale(1.3); }
.steps h3 { margin: 0 0 .3em; font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--espresso); }
.steps p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 26em; }

/* ===== Cafés ===== */
.coffees { background: var(--coffee); color: var(--cream); overflow: hidden; }
.coffees-pattern { position: absolute; inset: 0; background-image: var(--zellige-gold); background-size: 80px 80px; opacity: .07; }
.coffees .wrap { position: relative; }
.coffees h2 { color: var(--cream); }
.coffees .kicker { color: var(--gold-light); }
.coffees .section-head p:last-child, .coffees .note { color: rgba(247, 240, 227, .65); }
.coffee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.coffee-card {
  position: relative; overflow: hidden;
  padding: 0 0 28px; border-radius: 160px 160px var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(247, 240, 227, .09), rgba(247, 240, 227, .03));
  border: 1px solid rgba(230, 192, 121, .25); text-align: center;
  transition: transform .35s ease, border-color .35s ease, background-color .35s ease;
}
.coffee-card:hover { transform: translateY(-8px); border-color: var(--gold); }
.coffee-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  margin-bottom: 22px; border-bottom: 3px solid var(--gold);
  transition: transform .8s ease;
}
.coffee-card:hover .coffee-photo { transform: scale(1.06); }
.coffee-card h3, .coffee-card p { padding-inline: 22px; }
.coffee-card h3 { font-size: 1.45rem; color: var(--gold-light); }
.coffee-card p { font-size: .98rem; opacity: .8; min-height: 3.3em; }
.intensity { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
html[lang="ar"] .intensity { letter-spacing: 0; font-size: .95rem; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 13px; border-radius: 50%; background: rgba(247, 240, 227, .2); }
.dots i.on { background: var(--gold); }
.note { text-align: center; margin: 36px 0 0; font-size: .95rem; }

/* ===== Épices ===== */
.spice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.spice-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper); border: 1px solid rgba(90, 54, 32, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.spice-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.spice-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .8s ease;
}
.spice-card:hover .spice-photo { transform: scale(1.06); }
.spice-body { position: relative; padding: 18px 20px 22px; border-top: 4px solid var(--c); background: var(--paper); }
.spice-card h3 { font-size: 1.12rem; margin-bottom: .3em; color: var(--coffee); }
.spice-card p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
html[lang="ar"] .spice-card p { font-size: 1rem; line-height: 1.7; }
.spice-quote {
  margin: clamp(40px, 6vw, 64px) auto 0; max-width: 720px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--espresso); line-height: 1.4;
}
html[lang="ar"] .spice-quote { font-style: normal; }

/* ===== Boutiques ===== */
.shops { background: var(--paper); }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 8px;
  padding: .2em .9em; border-radius: 999px; font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: rgba(46, 107, 79, .12); color: #23634a; }
.status.open::before { animation: pulse 1.8s ease-out infinite; }
.status.closed { background: rgba(181, 83, 47, .12); color: var(--terracotta); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin-inline: auto; }
.shop {
  background: var(--cream); border: 1px solid rgba(90, 54, 32, .12); border-radius: var(--radius);
  padding: 34px 30px 30px; text-align: center; transition: transform .35s ease, box-shadow .35s ease;
}
.shop:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.shop-arch {
  width: 76px; height: 96px; margin: 0 auto 20px; border-radius: 999px 999px 8px 8px;
  display: grid; place-items: center; color: var(--gold-light);
  background: var(--zellij) center top / 36px 36px;
  border: 3px solid var(--gold);
}
.shop-arch span {
  font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso);
}
.shop h3 { font-size: 1.7rem; color: var(--espresso); }
.shop address { color: var(--muted); min-height: 3.3em; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ===== Appel ===== */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(64px, 9vw, 110px) 0; color: var(--cream);
  background: linear-gradient(140deg, var(--espresso), var(--espresso-dark));
}
.cta h2 { color: var(--cream); }
.cta p { opacity: .85; margin-bottom: 1.6em; font-size: 1.15rem; }

/* ===== Pied de page ===== */
.footer { background: var(--espresso-dark); color: rgba(247, 240, 227, .7); padding: 26px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer .brand-text { color: var(--gold-light); }

/* ===== Barre d'action mobile (appel / itinéraire) ===== */
.quickbar { display: none; }
@media (max-width: 860px) {
  .quickbar {
    position: fixed; inset: auto 0 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(34, 19, 11, .96); border-top: 1px solid rgba(230, 192, 121, .3);
    transform: translateY(110%); transition: transform .35s ease;
  }
  .quickbar.show { transform: none; }
  .quickbar .btn { padding: .75em 1em; }
  .footer { padding-bottom: 96px; }
}

/* ===== Animations ===== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in:hover { transition-delay: 0s; transition-duration: .35s; transform: translateY(-6px); }
.js .section-head.reveal.in:hover, .js .story .reveal.in:hover, .js .cta .reveal.in:hover, .js .note.reveal.in:hover, .js .spice-quote.reveal.in:hover { transform: none; }
.js .load { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.l1 { animation-delay: .1s !important; } .l2 { animation-delay: .25s !important; }
.l3 { animation-delay: .45s !important; } .l4 { animation-delay: .6s !important; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(80px, 80px); } }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes beanFloat { 50% { transform: translateY(-16px) rotate(12deg); } }
@keyframes steam {
  0% { stroke-dashoffset: 150; opacity: 0; transform: translateY(8px); }
  35% { opacity: .55; }
  100% { stroke-dashoffset: -150; opacity: 0; transform: translateY(-14px); }
}
@keyframes miniSteam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-1px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flicker { 50% { transform: scale(1.25, 1.4); } }
@keyframes flame { 0%, 100% { transform: scale(1, .92) skewX(0deg); } 35% { transform: scale(.9, 1.12) skewX(-4deg); } 70% { transform: scale(1.05, 1) skewX(4deg); } }
@keyframes flow { to { stroke-dashoffset: -92; } }
@keyframes puff { 0% { transform: translateY(14px) scale(.7); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-38px) scale(1.7); opacity: 0; } }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 9px transparent; } }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .coffee-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-call { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--espresso-dark);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-family: var(--font-display); font-size: 1.7rem; }
  .hero { padding-top: 118px; }
  .hero-shade, html[dir="rtl"] .hero-shade { background: linear-gradient(to top, rgba(34, 19, 11, .96) 0%, rgba(34, 19, 11, .72) 45%, rgba(34, 19, 11, .6) 100%); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .arch-wrap { width: min(270px, 66vw); order: -1; }
  .seal { width: 84px; height: 84px; inset-inline-start: -12%; }
  .seal strong { font-size: 1.35rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(230, 192, 121, .28); }
  .story-grid, .flow { grid-template-columns: 1fr; }
  .flow { gap: 0; }
  .flow-stage { top: 70px; z-index: 3; padding: 12px 0 18px; background: linear-gradient(var(--paper) 86%, transparent); }
  .scene { width: 190px; filter: drop-shadow(0 14px 18px rgba(43, 26, 16, .3)); }
  .steps li { min-height: 44vh; }
  .shop-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .coffee-grid { grid-template-columns: 1fr; }
  .coffee-card p, .shop address { min-height: 0; }
  .brand-text { font-size: 1.18rem; }
  .brand-logo { height: 56px; }
  .nav.scrolled .brand-logo { height: 48px; }
  .footer-logo { height: 76px; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .load { opacity: 1; transform: none; }
  .steam path { opacity: .45; stroke-dashoffset: 0; }
}
