/* =========================================================
   Nūba Espresso — site vitrine
   ========================================================= */
:root {
  --night: #0b0806;
  --roast: #16100c;
  --cream: #f3e9dc;
  --cream-dim: rgba(243, 233, 220, .64);
  --gold: #c9a35a;
  --gold-light: #e8c985;
  --red: #b3242b;
  --coffee: #5a3219;
  --line: rgba(243, 233, 220, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Motif étoile à 8 branches façon zellige */
  --zellige: 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='%23c9a35a' stroke-width='1'%3E%3Cpath d='M40 18l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3Crect x='26' y='26' width='28' height='28'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--night); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h1 i, h2 i, h3 i { font-weight: 300; color: var(--gold); }
.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 700; }
.eyebrow::before { content: "✦"; margin-right: 12px; }

/* Grain de film */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- Logo (recréé en CSS — à remplacer par le fichier officiel si disponible) ---------- */
.brand-logo { display: inline-flex; flex-direction: column; align-items: center; gap: .3em; line-height: 1; font-size: 1rem; }
.brand-logo b { background: var(--red); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.45em; letter-spacing: -.01em; padding: .14em .42em .2em; }
.brand-logo small { font-size: .52em; letter-spacing: .55em; text-transform: uppercase; margin-right: -.55em; color: var(--cream); font-weight: 500; }
.brand-logo-lg { font-size: 1.6rem; margin-bottom: 1.4rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.8rem; border-radius: 100px; background: var(--gold); color: var(--night); font-weight: 700; font-size: .95rem; transition: background .4s var(--ease), color .4s, transform .3s var(--ease); will-change: transform; }
.btn:hover { background: var(--cream); }
.btn-small { padding: .65rem 1.2rem; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream); color: var(--night); }
.link-arrow { font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--night); display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
body.loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-cup { width: 100px; margin-bottom: 1.6rem; }
.loader-text { font-family: var(--serif); font-style: italic; color: var(--cream-dim); }

/* ---------- Curseur ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--cream); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--cream); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .35s; }
.cursor-label { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--night); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; }
.cursor.has-label .cursor-ring { width: 96px; height: 96px; background: var(--cream); }
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } input, textarea, select { cursor: text; } }

/* ---------- Progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold)); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem clamp(1rem, 4vw, 3rem); transition: padding .4s, transform .5s var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 8, 6, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.nav.scrolled { padding-top: .8rem; padding-bottom: .8rem; }
.nav.scrolled::before { opacity: 1; }
.nav.hidden { transform: translateY(-100%); }
.nav .brand-logo { font-size: .9rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .9rem; font-weight: 500; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 40px; height: 40px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--cream); transition: transform .4s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .char { display: inline-block; transform: translateY(110%) rotate(8deg); transition: transform 1s var(--ease); }
.split.in .char { transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; padding: 8rem clamp(1rem, 5vw, 5rem) 5rem; overflow: hidden;
  background: radial-gradient(ellipse 55% 70% at 75% 45%, rgba(201, 163, 90, .18), transparent 70%), var(--night); }
#steam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.beans { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bean { position: absolute; width: var(--s); }
.bean svg { width: 100%; animation: beanFloat var(--d) ease-in-out infinite alternate; }
@keyframes beanFloat { to { transform: translateY(-18px) rotate(25deg); } }
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 8rem); margin-bottom: 1.6rem; }
.hero-sub { max-width: 30rem; color: var(--cream-dim); font-size: 1.08rem; margin-bottom: 2.4rem; transition-delay: .5s; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; transition-delay: .7s; }
.hero .eyebrow { transition-delay: .1s; }

.hero-visual { position: relative; z-index: 2; justify-self: center; width: min(400px, 78vw); animation: heroIn 1.6s var(--ease) both; animation-play-state: paused; }
body.loaded .hero-visual { animation-play-state: running; }
@keyframes heroIn { from { opacity: 0; transform: translateY(60px) scale(.94); } }
.arch { position: relative; aspect-ratio: 9 / 15; border-radius: 999px 999px 24px 24px; overflow: hidden; border: 1px solid rgba(201, 163, 90, .5); box-shadow: 0 0 0 10px rgba(201, 163, 90, .06), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(201, 163, 90, .45); background: var(--roast); }
.arch video { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11, 8, 6, .55)); pointer-events: none; }
.video-sound { position: absolute; z-index: 2; bottom: 1rem; right: 1rem; padding: .45rem .9rem; border-radius: 100px; background: rgba(11, 8, 6, .6); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.video-sound:hover { background: var(--gold); color: var(--night); }

.hero-capsule { position: absolute; left: -18%; bottom: 6%; width: 46%; perspective: 900px; z-index: 3; }
.hero-capsule-inner { transform-style: preserve-3d; }
.hero-capsule-inner svg { width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.badge-orbit { position: absolute; top: -6%; right: -14%; width: 130px; height: 130px; border-radius: 50%; background: var(--red); display: grid; place-items: center; animation: spin 18s linear infinite; box-shadow: 0 20px 40px -10px rgba(179, 36, 43, .6); z-index: 3; }
.badge-orbit::after { content: "✦"; position: absolute; color: #fff; font-size: 1.4rem; animation: spin 18s linear infinite reverse; }
.badge-orbit > span { position: absolute; inset: 0; }
.badge-orbit .char-orbit { position: absolute; left: 50%; top: 8px; width: 1em; margin-left: -.5em; height: calc(50% - 8px); text-align: center; transform-origin: bottom center; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; z-index: 2; bottom: 1.6rem; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.4rem 0; background: var(--roast); transform: rotate(-2deg) scale(1.04); margin: 2rem 0; }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 30s linear infinite; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); font-style: italic; font-weight: 300; }
.marquee-track i { color: var(--red); font-style: normal; font-size: .6em; align-self: center; }
.marquee-track span:nth-of-type(even) { -webkit-text-stroke: 1px var(--gold); color: transparent; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- L'univers (lanterne) ---------- */
.univers { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: 8rem clamp(1rem, 5vw, 5rem); position: relative; }
.univers::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .05; pointer-events: none; }
.lantern { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 520px; width: 100%; justify-self: center; border: 1px solid rgba(201, 163, 90, .35); --mx: 30%; --my: 45%; }
.lantern img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lantern-base { filter: brightness(.28) saturate(.6); }
.lantern-light { -webkit-mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 30%, transparent 100%); mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 30%, transparent 100%); filter: brightness(1.15) saturate(1.1); }
.lantern-hint { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); background: rgba(11, 8, 6, .55); padding: .4rem .9rem; border-radius: 100px; transition: opacity .6s; white-space: nowrap; }
.lantern.touched .lantern-hint { opacity: 0; }
.univers-text { position: relative; }
.univers-text h2 { margin-bottom: 1.6rem; }
.univers-text > p { color: var(--cream-dim); max-width: 34rem; margin-bottom: 1.2rem; }
.univers-text em { color: var(--gold-light); font-style: italic; }
.pillars { list-style: none; display: grid; gap: 1rem; margin-top: 2.4rem; }
.pillars li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pillars b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.pillars span { color: var(--cream-dim); }
.pillars li:nth-child(2) { transition-delay: .1s; } .pillars li:nth-child(3) { transition-delay: .2s; }

/* ---------- La collection : les 6 intensités ---------- */
.collection { position: relative; overflow: hidden; padding: 8rem clamp(1rem, 5vw, 5rem) 6rem; background: var(--bg, #2a0b0d); --accent: #d8262e; }
.collection::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .04; pointer-events: none; }
.color-wipe { position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: circle(0 at var(--x) var(--y)); transition: clip-path .9s var(--ease); }
.color-wipe.go { clip-path: circle(150% at var(--x) var(--y)); }
.collection > * { position: relative; z-index: 1; }
.collection-head { margin-bottom: 3rem; }
.collection-stage { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 560px; }
.flavor-visual { position: relative; display: grid; place-items: center; perspective: 1200px; padding: 2rem 0; }
.flavor-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); filter: blur(100px); opacity: .45; transition: background .8s; }
.flavor-big-num { position: absolute; right: 2%; top: -4%; font-family: var(--serif); font-size: clamp(9rem, 20vw, 18rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .5; }
.pack-tilt { position: relative; width: min(300px, 70vw); transform-style: preserve-3d; transition: transform .2s ease-out; }
.pack { width: 100%; aspect-ratio: var(--ratio, .53); border-radius: 10px; background-repeat: no-repeat; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.pack.enter { animation: packIn .9s var(--ease); }
@keyframes packIn { from { opacity: 0; transform: translateY(40px) rotateY(-50deg) scale(.85); } }
.pack-shine { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 25%), rgba(255, 240, 210, .25), transparent 45%); mix-blend-mode: screen; }
.flavor-info > * { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flavor-info.swap > * { opacity: 0; transform: translateY(16px); }
.flavor-mood { color: var(--accent); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin-bottom: .8rem; }
.flavor-name { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 1.2rem; }
.flavor-desc { color: var(--cream-dim); max-width: 30rem; margin-bottom: 2rem; font-size: 1.05rem; }
.flavor-meta { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 1.6rem; }
.meta-label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: .5rem; }
.meta-value { font-family: var(--serif); font-size: 1.3rem; }
.intensity-row { display: flex; align-items: center; gap: .9rem; }
.intensity-row b { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); min-width: 1.4em; }
.intensity { display: flex; gap: 4px; }
.intensity i { width: 8px; height: 22px; border-radius: 4px; background: var(--line); transition: background .4s, transform .4s var(--ease); }
.intensity i.on { background: var(--accent); transform: scaleY(1.12); }
.blend { display: flex; height: 38px; border-radius: 10px; overflow: hidden; max-width: 420px; margin-bottom: 2rem; border: 1px solid var(--line); }
.blend span { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: 0 .8rem; font-size: .8rem; white-space: nowrap; overflow: hidden; transition: flex-basis .8s var(--ease); min-width: 0; }
.blend em { font-style: normal; font-weight: 600; }
.blend b { font-weight: 800; }
.blend-a { background: var(--accent); color: #fff; }
.blend-r { background: rgba(243, 233, 220, .08); }
.blend span.empty { padding: 0; }
.flavor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
#playMusic { background: var(--accent); color: #fff; }
#playMusic:hover { background: var(--cream); color: var(--night); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
.playing .eq i { animation: eq .5s ease-in-out infinite alternate; }
.playing .eq i:nth-child(2) { animation-delay: .15s; } .playing .eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { to { height: 100%; } }
.pack-info { font-size: .85rem; color: var(--cream-dim); }

.flavor-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: 3.5rem; }
.flavor-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); text-align: left; background: rgba(11, 8, 6, .25); transition: background .3s, border-color .3s, transform .4s var(--ease); overflow: hidden; }
.flavor-tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.flavor-tab:hover { transform: translateY(-4px); border-color: var(--c); }
.flavor-tab.active { background: rgba(243, 233, 220, .1); border-color: var(--c); }
.flavor-tab b { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.flavor-tab small { color: var(--cream-dim); font-size: .78rem; }
.flavor-tab .tab-num { position: absolute; right: .9rem; top: .7rem; font-family: var(--serif); font-weight: 800; font-size: 1.4rem; color: var(--c); }

/* ---------- Du grain à la tasse ---------- */
.journey { position: relative; height: 420vh; background: var(--night); }
.journey-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.journey-title { padding: 0 clamp(1rem, 5vw, 5rem); margin-bottom: 3rem; }
.journey-track { display: flex; gap: 2rem; padding: 0 clamp(1rem, 5vw, 5rem); width: max-content; will-change: transform; align-items: stretch; }
.step { position: relative; width: min(400px, 78vw); padding: 2.2rem; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, rgba(243, 233, 220, .05), transparent); }
.step-num { position: absolute; top: 1.4rem; right: 1.8rem; font-family: var(--serif); font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.step h3 { font-size: 1.9rem; margin-bottom: .8rem; }
.step p { color: var(--cream-dim); }
.step-art { height: 150px; margin-bottom: 1.6rem; border-radius: 18px; position: relative; overflow: hidden; background: var(--roast); }
.art-1::before { content: ""; position: absolute; width: 90px; height: 120px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-20deg); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7a4423, #3b2213); box-shadow: 60px 10px 0 -20px #5a3219, -60px 20px 0 -25px #4a2a16; animation: sway 4s ease-in-out infinite; }
.art-2 { background: radial-gradient(circle at 50% 120%, #e2752b, #6b2a10 45%, var(--roast) 75%); }
.art-2::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 120%, transparent 0 14px, rgba(255, 200, 120, .12) 15px 16px); animation: heat 3s linear infinite; }
.art-3::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--gold) 1.2px, transparent 1.6px); background-size: 14px 14px; animation: grind 6s linear infinite; opacity: .7; }
.art-4 { background: var(--roast) var(--zellige) center / 60px; }
.art-4::before { content: ""; position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from 0deg, #8a6a2c, var(--gold-light), #8a6a2c, var(--gold), #8a6a2c); box-shadow: 0 0 40px rgba(201, 163, 90, .5); animation: spin 8s linear infinite; }
@keyframes sway { 50% { transform: translate(-50%, -54%) rotate(-10deg); } }
@keyframes heat { to { transform: translateY(-16px); } }
@keyframes grind { to { background-position: 140px 70px; } }
.step-photo { padding: 0; overflow: hidden; width: min(360px, 74vw); border-color: rgba(201, 163, 90, .4); }
.step-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.step-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 8, 6, .9)); }
.step-quote { position: absolute; z-index: 1; left: 1.8rem; right: 1.8rem; bottom: 1.8rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--cream) !important; }
.step-quote i { color: var(--gold); }

/* ---------- Le rituel (machine) ---------- */
.brew { padding: 8rem clamp(1rem, 5vw, 5rem); background: radial-gradient(ellipse at 50% 60%, rgba(201, 163, 90, .12), transparent 60%), var(--roast); overflow: hidden; }
.brew-head { text-align: center; margin-bottom: 4rem; }
.brew-head .eyebrow::before { display: none; }
.brew-hint { color: var(--cream-dim); margin-top: 1rem; }
.brew-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3rem; }
.tray { display: grid; grid-template-columns: repeat(3, 72px); gap: 1rem; justify-self: end; }
.tray-capsule { width: 72px; padding: 6px; border-radius: 16px; touch-action: none; transition: transform .3s var(--ease), background .3s, opacity .3s; }
.tray-capsule:hover { transform: translateY(-6px) rotate(-6deg); background: rgba(243, 233, 220, .06); }
.tray-capsule.used { opacity: .2; pointer-events: none; }
.tray-capsule svg { width: 100%; pointer-events: none; }
.drag-ghost { position: fixed; width: 80px; z-index: 140; pointer-events: none; transform: translate(-50%, -50%) rotate(-10deg) scale(1.15); filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .5)); }
.drag-ghost.fly { transition: left .55s var(--ease), top .55s var(--ease), transform .55s var(--ease), opacity .3s .45s; }
.drag-ghost.fly.drop { transform: translate(-50%, -20%) rotate(0) scale(.45); opacity: 0; }

.machine { position: relative; width: 250px; }
.m-top { height: 54px; background: linear-gradient(#34302d, #1a1715); border-radius: 26px 26px 6px 6px; display: grid; place-items: center; }
.m-slot { width: 120px; height: 24px; border-radius: 12px; background: #0b0b0d; box-shadow: inset 0 4px 8px rgba(0, 0, 0, .8); display: grid; place-items: center; transition: box-shadow .3s, transform .3s; }
.m-slot span { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(243, 233, 220, .35); }
.m-slot.over { box-shadow: inset 0 4px 8px rgba(0, 0, 0, .8), 0 0 0 3px var(--gold), 0 0 30px var(--gold); transform: scale(1.06); }
.dragging .m-slot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 4px 8px rgba(0, 0, 0, .8), 0 0 0 2px rgba(201, 163, 90, .6); } }
.m-body { position: relative; height: 340px; margin-top: 4px; background: linear-gradient(90deg, #171412, #34302d 45%, #171412); border-radius: 6px 6px 22px 22px; overflow: hidden; }
.m-brand { position: absolute; top: 18px; left: 22px; font-family: var(--sans); font-weight: 700; letter-spacing: .3em; font-size: .75rem; color: #fff; background: var(--red); padding: .15rem .4rem; }
.m-light { position: absolute; top: 20px; right: 22px; width: 12px; height: 12px; border-radius: 50%; background: #333; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transition: background .3s, box-shadow .3s; }
.machine.brewing .m-light { background: var(--gold); box-shadow: 0 0 14px var(--gold); animation: blink .6s steps(2) infinite; }
.machine.done .m-light { background: #6fcf8a; box-shadow: 0 0 14px #6fcf8a; animation: none; }
@keyframes blink { 50% { opacity: .3; } }
.m-head, .m-stream { z-index: 2; }
.m-head { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); width: 120px; height: 40px; background: linear-gradient(#26221f, #0f0d0c); border-radius: 0 0 14px 14px; }
.m-spout { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 26px; height: 14px; background: #0c0c0e; border-radius: 0 0 8px 8px; }
.m-stream { position: absolute; top: 108px; left: 50%; width: 6px; margin-left: -3px; height: 192px; border-radius: 3px; background: linear-gradient(#a0561f, #7a4423); transform: scaleY(0); transform-origin: top; transition: transform .45s ease-in, height .3s; }
.machine.pouring .m-stream { transform: scaleY(1); height: 140px; transition: transform .45s ease-in, height 3.4s cubic-bezier(.3, .1, .3, 1); animation: wobble .2s linear infinite; }
@keyframes wobble { 50% { width: 5px; margin-left: -2.5px; } }
.m-space { position: absolute; left: 22px; right: 22px; top: 100px; bottom: 34px; background: radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, .6), rgba(0, 0, 0, .25)); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; }
.m-tray { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 18px; border-radius: 6px; background: repeating-linear-gradient(90deg, #2c2c32 0 6px, #18181b 6px 10px); }
.cup { position: relative; width: 92px; height: 72px; margin-bottom: 2px; border: 3px solid rgba(243, 233, 220, .65); border-top: 0; border-radius: 4px 4px 44px 44px; background: rgba(243, 233, 220, .06); }
.cup::after { content: ""; position: absolute; right: -22px; top: 10px; width: 20px; height: 30px; border: 3px solid rgba(243, 233, 220, .65); border-left: 0; border-radius: 0 16px 16px 0; }
.cup-inner { position: absolute; inset: 0; border-radius: 0 0 41px 41px; overflow: hidden; }
.cup-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#5a311b, #2e170b); transition: height 3.4s cubic-bezier(.3, .1, .3, 1); }
.cup-crema { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: #c98a4b; opacity: 0; transition: opacity 1.5s 1.8s; }
.machine.pouring .cup-liquid, .machine.done .cup-liquid { height: 78%; }
.machine.pouring .cup-crema, .machine.done .cup-crema { opacity: 1; }
.cup-steam { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; opacity: 0; transition: opacity 1s; }
.cup-steam i { width: 6px; height: 34px; border-radius: 6px; background: linear-gradient(transparent, rgba(243, 233, 220, .55)); filter: blur(3px); animation: steam 2.4s ease-in-out infinite; }
.cup-steam i:nth-child(2) { animation-delay: .6s; height: 44px; }
.cup-steam i:nth-child(3) { animation-delay: 1.2s; }
.machine.done .cup-steam { opacity: 1; }
@keyframes steam { 0% { transform: translateY(10px) scaleX(1); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-30px) scaleX(2.4) skewX(20deg); opacity: 0; } }
.machine.brewing { animation: rumble .12s linear infinite; }
@keyframes rumble { 50% { transform: translate(.6px, -.6px); } }

.brew-status { max-width: 300px; }
.status-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.status-text { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin: .4rem 0 1.2rem; min-height: 2.4em; }
.status-text i { color: var(--gold); }
.pressure { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pressure span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .3s; }
.status-sub { font-size: .85rem; color: var(--cream-dim); margin: .6rem 0 1.4rem; font-variant-numeric: tabular-nums; }
.brew-reveal { width: 180px; margin-bottom: 1.4rem; border-radius: 16px; overflow: hidden; border: 1px solid rgba(201, 163, 90, .5); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); animation: polaroid 1s var(--ease); transform: rotate(-3deg); }
@keyframes polaroid { from { opacity: 0; transform: translateY(30px) rotate(8deg) scale(.8); } }
.sound-toggle { display: block; margin-top: 1.4rem; font-size: .8rem; color: var(--cream-dim); }

/* ---------- Points de vente ---------- */
.stores { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.stores li { display: grid; gap: .1rem; padding: 1rem 1.2rem 1rem 3rem; border: 1px solid var(--line); border-radius: 16px; position: relative; background: rgba(243, 233, 220, .03); }
.stores li::before { content: "📍"; position: absolute; left: 1rem; top: 1rem; }
.stores b { font-weight: 700; }
.stores span { color: var(--cream-dim); font-size: .9rem; }
.store-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-bottom: 2.6rem; }
.socials a:hover { color: var(--gold); }
.hero-ar { font-family: "Noto Kufi Arabic", sans-serif; color: var(--gold); opacity: .8; font-size: 1.05rem; margin: -1rem 0 2.2rem; text-align: left; transition-delay: .6s; }

/* ---------- Boutique / contact ---------- */
.contact { padding: 7rem clamp(1rem, 5vw, 5rem) 8rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-photo { position: sticky; top: 100px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(201, 163, 90, .3); }
.contact-photo img { width: 100%; }
.contact-info > p { color: var(--cream-dim); margin: 1.6rem 0 2rem; max-width: 30rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 2.6rem; }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.contact-list span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.contact-form { display: grid; gap: 1.4rem; padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: 28px; background: rgba(243, 233, 220, .03); }
.contact-form label { display: grid; gap: .5rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); }
.contact-form input, .contact-form textarea, .contact-form select { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--cream); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .6rem 0; outline: none; transition: border-color .3s; resize: vertical; }
.contact-form select option { background: var(--roast); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { padding: 4rem clamp(1rem, 5vw, 5rem) 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font-family: var(--serif); font-weight: 800; font-size: clamp(4rem, 17vw, 16rem); line-height: .9; letter-spacing: -.04em; white-space: nowrap; background: linear-gradient(180deg, var(--gold-light), rgba(201, 163, 90, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-big i { font-weight: 300; font-size: .4em; letter-spacing: .1em; margin-left: .3em; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .85rem; color: var(--cream-dim); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a:hover { color: var(--gold); }
.footer-egg { font-style: italic; opacity: .6; }

/* ---------- Toast & pluie de capsules ---------- */
.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 160; transform: translate(-50%, calc(100% + 3rem)); visibility: hidden; padding: 1rem 1.6rem; border-radius: 100px; background: var(--gold); color: var(--night); font-weight: 700; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .6s var(--ease), visibility 0s .6s; max-width: calc(100% - 2rem); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.rain-item { position: fixed; top: -80px; z-index: 170; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 160px)) rotate(var(--r)); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .brew-stage { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; }
  .tray { justify-self: center; grid-template-columns: repeat(6, 56px); }
  .tray-capsule { width: 56px; }
  .brew-status { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .status-text { min-height: 0; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem; font-family: var(--serif); font-size: 2rem; background: var(--night); clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); }
  .nav-links.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav-links .btn { font-family: var(--sans); font-size: 1rem; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 7rem; gap: 4rem; }
  .hero-visual { width: min(300px, 68vw); }
  .badge-orbit { width: 100px; height: 100px; right: -10%; }
  .hero-capsule { left: -14%; }
  .scroll-hint { display: none; }
  .univers, .collection-stage, .contact { grid-template-columns: 1fr; }
  .flavor-list { grid-template-columns: repeat(3, 1fr); }
  .flavor-big-num { right: 0; }
  .univers { padding-top: 5rem; padding-bottom: 5rem; }
  .pillars li { grid-template-columns: 1fr; gap: .2rem; }
  .contact-photo { position: static; max-width: 420px; }
}
@media (max-width: 480px) {
  .tray { grid-template-columns: repeat(3, 64px); }
  .tray-capsule { width: 64px; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .flavor-list { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Numéro d'intensité sous chaque capsule de la machine */
.tray-capsule { position: relative; }
.tray-label { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-size: .72rem; font-weight: 800; color: var(--cream-dim); }

/* ---------- Fonds illustrés de la gamme (illustrations HD du packaging) ---------- */
.collection, .color-wipe {
  background:
    linear-gradient(90deg, transparent 0%, var(--bg) 62%),
    linear-gradient(rgba(8, 5, 3, .45), rgba(8, 5, 3, .45)),
    var(--art, none) left center / cover no-repeat,
    var(--bg, #2a0b0d);
}
@media (max-width: 860px) {
  .collection, .color-wipe {
    background:
      linear-gradient(180deg, transparent 0%, var(--bg) 48%),
      linear-gradient(rgba(8, 5, 3, .45), rgba(8, 5, 3, .45)),
      var(--art, none) center top / cover no-repeat,
      var(--bg, #2a0b0d);
  }
}

/* ---------- Frise : bande illustrée comme sur les boîtes ---------- */
.frise { position: relative; margin-top: 7rem; }
.frise-band { height: 170px; overflow: hidden; border-top: 3px solid var(--gold); background: #000; }
.frise-track { display: flex; height: 100%; width: max-content; animation: marquee 60s linear infinite; }
.frise:hover .frise-track { animation-play-state: paused; }
.frise-tile { flex: none; width: 300px; height: 100%; background-size: cover; background-position: center; position: relative; filter: saturate(1.05); transition: filter .4s; }
.frise-tile:hover { filter: saturate(1.3) brightness(1.1); }
.frise-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)); }
.frise-tile span { position: absolute; z-index: 1; left: 14px; bottom: 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.frise-tile b { font-family: var(--sans); font-weight: 800; margin-left: .3rem; }
.frise-cup { position: absolute; z-index: 2; left: 7%; bottom: 46px; width: min(250px, 42vw); filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .6)); animation: spin 50s linear infinite; pointer-events: none; }
@media (max-width: 860px) { .frise-band { height: 130px; } .frise-tile { width: 220px; } .frise-cup { bottom: 70px; left: 4%; } }
