/* Yūgen — maison de thé japonais. Feuille de style.
   Palette : ivoire washi, encre sumi, or (accent), vert matcha, sceau vermillon. */
:root {
  --washi: #f5f0e6;
  --washi-2: #ece5d6;
  --ink-bg: #171915;
  --sumi: #141612;
  --sumi-2: #34362f;
  --muted: #6c675b;
  --line: #d9cfbb;
  --line-dark: rgba(245, 240, 230, .14);
  --gold: #8a6a35;
  --gold-2: #c2a36b;
  --gold-3: #e3cd9b;
  --matcha: #55663a;
  --seal: #a8382a;
  --white: #fffdf8;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
body.is-loaded { opacity: 1; }
/* grain de papier */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--gold-2); color: var(--sumi); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
em { font-family: var(--serif); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section--tint { background: var(--washi-2); }
.section--dark { background: var(--ink-bg); color: var(--washi); }
.section--dark .eyebrow { color: var(--gold-2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5em;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.kanji { font-family: var(--serif); color: var(--gold); }
.vertical { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .35em; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 30px; padding: 1px 10px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }

/* Boutons */
.arrow { width: 22px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.2; transition: transform .5s var(--ease-out); flex-shrink: 0; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: 54px; padding: 0 32px;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid var(--sumi); background: var(--sumi); color: var(--washi);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform .6s var(--ease-out); }
.btn:hover::after { transform: none; }
.btn:hover { border-color: var(--gold); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--sumi); }
.btn--ghost::after { background: var(--sumi); }
.btn--ghost:hover { color: var(--washi); border-color: var(--sumi); }
.btn--light { background: var(--washi); color: var(--sumi); border-color: var(--washi); }
.btn--light::after { background: var(--gold-2); }
.btn--line-light { background: transparent; color: var(--washi); border-color: rgba(245,240,230,.6); }
.btn--line-light::after { background: var(--washi); }
.btn--line-light:hover { color: var(--sumi); border-color: var(--washi); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { display: inline-flex; gap: .6em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; transition: color .3s, border-color .3s; }
.link:hover { color: var(--gold); }

/* Bandeau défilant */
.announce { background: var(--sumi); color: rgba(245,240,230,.82); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; overflow: hidden; height: 34px; display: flex; align-items: center; position: relative; z-index: 51; }
.announce__track { display: flex; gap: 0; white-space: nowrap; animation: marquee 38s linear infinite; }
.announce__track span { padding: 0 34px; position: relative; }
.announce__track span::after { content: "◆"; position: absolute; right: -4px; color: var(--gold-2); font-size: .5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 900px) {
  .announce__track { animation: none; margin: 0 auto; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, .9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, color .5s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.header__logo { justify-self: center; }
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo img { width: 44px; height: 44px; }
.logo__light { display: none; }
.logo__word { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .36em; line-height: 1; display: flex; flex-direction: column; gap: 7px; }
.logo__word small { font-family: var(--sans); font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.nav a, .nav-link-sm { position: relative; padding: 6px 0; }
.nav a::after, .nav-link-sm::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav-link-sm:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link-sm { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin-right: 10px; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; transition: opacity .3s; }
.icon-btn:hover { opacity: .6; }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--seal); color: #fff; font-size: .6rem; line-height: 17px; text-align: center;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.cart-count.has-items { transform: scale(1); }
.burger { display: none; }

/* En-tête transparent sur le hero de l'accueil */
.home .header { position: fixed; left: 0; right: 0; top: 34px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--washi); }
.home .header .logo__dark { display: none; }
.home .header .logo__light { display: block; }
.home .header .logo__word small { color: rgba(245,240,230,.7); }
.home:not(.past-hero) .header { border-bottom-color: transparent; }
.home.past-hero .header { top: 0; background: rgba(245, 240, 230, .92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); color: var(--sumi); border-bottom-color: var(--line); }
.home.past-hero .header .logo__dark { display: block; }
.home.past-hero .header .logo__light { display: none; }
.home.past-hero .header .logo__word small { color: var(--muted); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--sumi); color: var(--washi);
  display: flex; flex-direction: column; padding: 100px var(--gutter) 36px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .7s var(--ease-out), visibility 0s linear .7s;
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease-out); }
.mobile-menu a { font-family: var(--serif); font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu a small { font-size: .95rem; color: var(--gold-2); }
.mobile-menu__close { position: absolute; top: 22px; right: var(--gutter); }
.mobile-menu__foot { margin-top: auto; font-size: .8rem; color: rgba(245,240,230,.55); }

/* Tiroir panier */
.overlay { position: fixed; inset: 0; z-index: 85; background: rgba(20, 22, 18, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .5s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(460px, 100%); background: var(--washi);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .6s var(--ease-out), visibility 0s linear .6s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .5); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 1.2rem; display: flex; gap: 12px; align-items: baseline; }
.drawer__head .kanji { font-size: .95rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 26px; }
.drawer__foot { padding: 22px 26px 26px; border-top: 1px solid var(--line); background: var(--washi-2); }
.free-ship { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.free-ship__bar { height: 2px; background: var(--line); margin-top: 9px; overflow: hidden; }
.free-ship__bar i { display: block; height: 100%; background: var(--gold); transition: width .7s var(--ease-out); }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item__img img { width: 84px; height: 105px; object-fit: cover; background: var(--ink-bg); }
.line-item h4 { font-size: 1.02rem; margin: 0 0 2px; }
.line-item .muted { font-size: .8rem; }
.line-item__price { font-family: var(--serif); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; background: var(--white); }
.qty button { width: 34px; height: 34px; font-size: 1rem; transition: color .3s; }
.qty button:hover { color: var(--gold); }
.qty input { width: 36px; height: 34px; border: 0; background: transparent; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove { font-size: .72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; display: block; }
.remove:hover { color: var(--seal); }
.empty { text-align: center; padding: 64px 10px; color: var(--muted); }
.empty .kanji { font-size: 3.2rem; display: block; margin-bottom: 12px; opacity: .7; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total { font-family: var(--serif); font-size: 1.4rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 95;
  transform: translate(-50%, 30px); opacity: 0;
  background: var(--sumi); color: var(--washi); border-left: 2px solid var(--gold-2);
  padding: 14px 22px; font-size: .85rem;
  transition: all .5s var(--ease-out); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--washi); overflow: hidden; background: var(--sumi); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 16s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,18,.55) 0%, rgba(20,22,18,0) 30%, rgba(20,22,18,.15) 55%, rgba(20,22,18,.82) 100%); }
.hero__content { position: relative; padding-bottom: clamp(56px, 10vw, 120px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero h1 { max-width: 11em; margin-bottom: .45em; font-size: clamp(2.7rem, 7vw, 6rem); line-height: 1.05; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: lineUp 1.3s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { to { transform: none; } }
.hero p { max-width: 32em; font-size: 1.05rem; opacity: 0; animation: fadeUp 1.2s .5s var(--ease-out) forwards; color: rgba(245,240,230,.85); }
.hero .eyebrow { color: var(--gold-3); opacity: 0; animation: fadeUp 1s .2s var(--ease-out) forwards; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; opacity: 0; animation: fadeUp 1.2s .7s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__side { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero__vertical { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-3); }
.scroll-cue { width: 1px; height: 64px; background: rgba(245,240,230,.25); position: relative; overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-3); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Ruban de mots */
.ribbon { background: var(--sumi); color: var(--washi); overflow: hidden; border-top: 1px solid var(--line-dark); }
.ribbon__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ribbon__item { display: flex; align-items: baseline; gap: 16px; padding: 24px 42px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); white-space: nowrap; }
.ribbon__item b { font-weight: 400; color: var(--gold-2); font-size: .85em; }
.ribbon__item::after { content: "◆"; font-size: .45rem; color: var(--gold); margin-left: 42px; align-self: center; }

/* Manifeste */
.manifest { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.manifest__kanji { font-family: var(--serif); font-size: clamp(4.5rem, 11vw, 9rem); line-height: 1.05; color: var(--gold); writing-mode: vertical-rl; letter-spacing: .1em; }
.manifest p.lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.65; }

/* Catégories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.cat { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-bg); color: var(--washi); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out), filter 1s; filter: saturate(.9); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,18,0) 45%, rgba(20,22,18,.8)); }
.cat::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(227,205,155,0); z-index: 2; transition: border-color .8s var(--ease); pointer-events: none; }
.cat:hover::before { border-color: rgba(227,205,155,.55); }
.cat:hover img { transform: scale(1.06); filter: saturate(1); }
.cat__label { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.cat__label h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.cat__label { gap: 12px; }
.cat__label span { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-3); white-space: nowrap; }

/* Grille produits */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 4vw, 56px) clamp(14px, 2vw, 28px); }
.card { display: flex; flex-direction: column; }
.card__frame { position: relative; margin-bottom: 18px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-bg); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .8s var(--ease); }
.card__media .card__alt { opacity: 0; }
.card:hover .card__media.has-alt .card__alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.04); }
.card__jp-v { position: absolute; right: 14px; top: 14px; z-index: 2; writing-mode: vertical-rl; font-family: var(--serif); color: var(--gold-3); font-size: .95rem; letter-spacing: .25em; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--washi); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: 5px 10px; }
.card__badge--dark { background: var(--sumi); color: var(--gold-3); }
.card__quick {
  position: relative; z-index: 3; margin: -64px 14px 18px; min-height: 46px;
  background: rgba(245,240,230,.96); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out), background .3s, color .3s;
}
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__quick:hover { background: var(--sumi); color: var(--washi); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; transition: color .3s; }
.card__name:hover { color: var(--gold); }
.card__price { font-family: var(--serif); white-space: nowrap; }
.card__price small { font-family: var(--sans); font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.card__sub { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.card__cat { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card__sizes { display: flex; gap: 4px; }
.card__sizes span { font-size: .64rem; border: 1px solid var(--line); padding: 0 6px; color: var(--muted); }

/* Rangée défilante */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 22px; scrollbar-width: thin; scrollbar-color: var(--gold-2) transparent; }
.scroller > * { scroll-snap-align: start; }

/* Mise en avant */
.spotlight { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 640px; background: var(--ink-bg); color: var(--washi); }
.spotlight__media { position: relative; overflow: hidden; }
.spotlight__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight__body { padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.spotlight__body::before { content: attr(data-kanji); position: absolute; right: clamp(16px, 4vw, 56px); top: 40px; writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); color: rgba(194,163,107,.14); line-height: 1; }
.spotlight__body .eyebrow { color: var(--gold-2); }
.spotlight__body p { color: rgba(245,240,230,.75); max-width: 30em; }
.spotlight__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; margin: 18px 0 36px; padding: 20px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.spotlight__facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold-3); }
.spotlight__facts span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,240,230,.55); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-2); z-index: -1; }
.split__media .stamp { position: absolute; right: -18px; bottom: 32px; background: var(--seal); color: var(--washi); font-family: var(--serif); padding: 18px 12px; font-size: 1.1rem; }
.split--rev .split__media { order: 2; }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.principle { border-top: 1px solid var(--line-dark); padding-top: 32px; }
.principle .kanji { font-size: 3rem; display: block; line-height: 1; margin-bottom: 20px; color: var(--gold-2); }
.principle h3 { margin-bottom: .4em; }
.principle p { color: rgba(245,240,230,.7); font-size: .95rem; }

/* Rituel (accueil) */
.steps-ritual { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step-r { position: relative; padding-top: 70px; }
.step-r::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--gold); }
.step-r::after { content: ""; position: absolute; top: 22px; left: 72px; right: 0; height: 1px; background: var(--line); }
.step-r:last-child::after { display: none; }
.step-r h3 { font-size: 1.15rem; }
.step-r p { font-size: .92rem; color: var(--muted); }

/* Engagements */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.promise { text-align: center; padding: 10px; }
.promise svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.1; margin-bottom: 16px; }
.promise h4 { font-size: 1.02rem; margin-bottom: 4px; }
.promise p { font-size: .84rem; color: var(--muted); margin: 0; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.field-inline { display: flex; border-bottom: 1px solid currentColor; }
.field-inline input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 16px 0; outline: none; font-size: 1.05rem; }
.field-inline input::placeholder { color: inherit; opacity: .5; }
.field-inline button { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding: 0 4px 0 16px; display: inline-flex; gap: .7em; align-items: center; }
.field-inline button:hover .arrow { transform: translateX(5px); }

/* Pied de page */
.footer { background: var(--sumi); color: rgba(245,240,230,.7); padding: clamp(64px, 9vw, 110px) 0 30px; font-size: .9rem; }
.footer__top { border-bottom: 1px solid var(--line-dark); padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); }
.footer__motto { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; color: var(--washi); margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em 28px; letter-spacing: .08em; }
.footer__motto span { font-size: .95rem; letter-spacing: .04em; color: var(--gold-2); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--washi); font-family: var(--sans); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 20px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold-3); }
.footer__logo { margin-bottom: 22px; color: var(--washi); }
.footer__logo .logo__dark { display: none; }
.footer__logo .logo__light { display: block; }
.footer__logo .logo__word small { color: rgba(245,240,230,.5); }
.footer p { max-width: 30em; }
.footer__bottom { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .74rem; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line-dark); padding: 2px 8px; font-size: .62rem; letter-spacing: .12em; }

/* En-tête de page */
.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 4vw, 52px); text-align: center; }
.page-head p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.page-head .kanji { display: block; font-size: 1.3rem; margin-bottom: 8px; }
.breadcrumb { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--gold); }

/* Boutique */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); padding: 7px 16px; font-size: .72rem; letter-spacing: .12em; border-radius: 30px; transition: all .35s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--sumi); }
.chip.is-active { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.select { border: 1px solid var(--line); background: transparent; padding: 9px 34px 9px 14px; font-size: .8rem; appearance: none; -webkit-appearance: none; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23141612'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.result-count { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* Fiche produit */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(56px, 9vw, 110px); }
.product__gallery { position: sticky; top: calc(var(--header-h) + 18px); }
.product__main { aspect-ratio: 4 / 5; background: var(--ink-bg); overflow: hidden; cursor: zoom-in; position: relative; }
.product__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), opacity .45s var(--ease); transform-origin: center; }
.product__main img.is-fading { opacity: 0; }
.product__main.is-zoomed img { transform: scale(1.9); }
.product__main.is-zoomed { cursor: zoom-out; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 78px; aspect-ratio: 4 / 5; background: var(--ink-bg); opacity: .55; transition: opacity .3s; border: 1px solid transparent; padding: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--gold); }
.product__info { padding-top: 6px; }
.product__kicker { display: flex; gap: 14px; align-items: center; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.product__kicker .kanji { font-size: 1.1rem; letter-spacing: .1em; }
.product__kicker .pill { color: var(--gold); }
.product__title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: .15em; }
.product__reading { font-size: .86rem; color: var(--muted); font-style: italic; margin-bottom: 22px; }
.product__price { font-family: var(--serif); font-size: 1.9rem; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.product__price small { font-family: var(--sans); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.product__tax { font-size: .74rem; color: var(--muted); margin-bottom: 24px; }
.product__short { font-size: 1.04rem; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.variants { border: 0; padding: 0; margin: 0 0 22px; }
.variants legend { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.variants__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.variant { position: relative; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant__box { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 14px 8px 12px; border: 1px solid var(--line); background: var(--white); text-align: center; transition: border-color .3s, background .3s, color .3s; }
.variant__box b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.variant__box small { font-size: .8rem; }
.variant__box em { font-style: normal; font-family: var(--sans); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.variant:hover .variant__box { border-color: var(--sumi); }
.variant input:checked + .variant__box { border-color: var(--sumi); background: var(--sumi); color: var(--washi); }
.variant input:checked + .variant__box em { color: var(--gold-2); }
.variant input:focus-visible + .variant__box { outline: 1px solid var(--gold); outline-offset: 3px; }
.buy { display: flex; gap: 12px; margin-bottom: 16px; }
.buy .qty { margin: 0; }
.buy .qty button, .buy .qty input { height: 54px; }
.buy .btn { flex: 1; }
.stock { font-size: .8rem; display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--matcha); box-shadow: 0 0 0 4px rgba(85,102,58,.15); }
.stock.is-low::before { background: var(--seal); box-shadow: 0 0 0 4px rgba(168,56,42,.15); }
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 28px; font-size: .72rem; text-align: center; color: var(--muted); }
.reassure svg { width: 21px; height: 21px; stroke: var(--gold); fill: none; stroke-width: 1.2; margin: 0 auto 6px; display: block; }
.profile { margin-bottom: 18px; }
.profile__title { font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.profile__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding: 6px 0; font-size: .88rem; }
.dots { display: flex; gap: 6px; }
.dots i { flex: 1; max-width: 56px; height: 3px; background: var(--line); }
.dots i.on { background: var(--gold); }

.brew__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.brew__item { padding: clamp(28px, 4vw, 48px) 12px; text-align: center; border-right: 1px solid var(--line-dark); }
.brew__item:last-child { border-right: 0; }
.brew__num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--gold-3); margin-bottom: 12px; }
.brew__num small { font-size: .4em; margin-left: 4px; color: var(--gold-2); }
.brew__num--text { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.6; }
.brew__label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,240,230,.6); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,240,230,.97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease-out); }
.sticky-buy img { width: 52px; height: 64px; object-fit: cover; background: var(--ink-bg); }
.sticky-buy b { display: block; font-family: var(--serif); font-weight: 400; font-size: .98rem; line-height: 1.3; }
.sticky-buy span { font-size: .78rem; color: var(--muted); }
.sticky-buy .btn { min-height: 46px; padding: 0 20px; }
.sticky-buy.is-visible { transform: none; }

/* Accordéons */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--serif); font-size: 1.1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; transition: transform .4s var(--ease-out); color: var(--gold); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 22px; color: var(--sumi-2); }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 40%; }

.story-band { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.story-band .vertical { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); }
.story-band p { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.8; }

/* Panier / checkout */
.cart-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 110px; }
.summary { background: var(--washi-2); padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { margin-bottom: 18px; }
.summary .row-between { padding: 8px 0; font-size: .92rem; }
.summary .row-between.total-row { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--white); border: 1px solid var(--line); padding: 14px; font-size: 1rem; border-radius: 0; outline: none; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sumi); }
.field.has-error input, .field.has-error select { border-color: var(--seal); }
.field .error { color: var(--seal); font-size: .74rem; margin-top: 4px; display: none; }
.field.has-error .error { display: block; }
.promo-msg { font-size: .76rem; min-height: 1.2em; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.confirm { text-align: center; padding: clamp(64px, 11vw, 130px) 0; }
.confirm .seal { width: 92px; height: 92px; margin: 0 auto 30px; background: var(--seal); color: var(--washi); display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; transform: rotate(-4deg); }
.confirm-box { max-width: 560px; margin: 38px auto 0; text-align: left; background: var(--washi-2); padding: 28px; }

/* Histoire */
.chapter { display: grid; grid-template-columns: 150px 1fr; gap: clamp(20px, 5vw, 72px); padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.chapter__num { font-family: var(--serif); color: var(--gold); }
.chapter__num span { display: block; font-size: 3.2rem; line-height: 1; }
.chapter__num small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.chapter p { font-size: 1.05rem; }
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.55; text-align: center; max-width: 860px; margin: 0 auto; }
.quote cite { display: block; margin-top: 20px; font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.full-img { width: 100%; height: clamp(340px, 60vw, 720px); object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline li { border-top: 1px solid var(--gold); padding-top: 20px; color: var(--sumi-2); }
.timeline b { font-family: var(--serif); font-size: 1.7rem; display: block; font-weight: 400; color: var(--sumi); margin-bottom: 6px; }

/* FAQ */
.faq-group { margin-bottom: 52px; }
.faq-group h2 { font-size: 1.55rem; display: flex; gap: 14px; align-items: baseline; }
.faq-group h2 .kanji { font-size: 1.1rem; }
.faq-search { width: 100%; border: 0; border-bottom: 1px solid var(--sumi); background: transparent; padding: 16px 0; font-size: 1.05rem; outline: none; margin-bottom: 52px; }

/* Pages texte */
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.placeholder { background: #f7efd9; padding: 0 4px; }
.legal-note { background: var(--washi-2); border-left: 2px solid var(--gold); padding: 14px 18px; font-size: .92rem; }
.legal-box { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); font-size: .92rem; }
.legal-box p { margin: 0 0 .9em; }
.legal-box p:last-child { margin-bottom: 0; }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(4n+2), .cats > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid > .reveal:nth-child(4n+3), .cats > .reveal:nth-child(3n+3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4n+4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span, .hero p, .hero .eyebrow, .hero__actions { transform: none; opacity: 1; }
  body { opacity: 1; }
}

/* Responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .scroller { grid-auto-columns: minmax(250px, 32%); }
  .steps-ritual { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step-r:nth-child(2)::after { display: none; }
}
@media (max-width: 1000px) {
  .nav, .nav-link-sm { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .logo img { width: 36px; height: 36px; }
  .logo { gap: 10px; }
  .logo__word { font-size: 1.18rem; letter-spacing: .3em; }
  .logo__word small { font-size: .42rem; letter-spacing: .22em; }
  .header__actions { gap: 0; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__side { display: none; }
  .manifest, .story-band { grid-template-columns: 1fr; }
  .manifest__kanji { writing-mode: horizontal-tb; font-size: 4.2rem; }
  .story-band .vertical { writing-mode: horizontal-tb; letter-spacing: .2em; font-size: 1.7rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .newsletter, .product, .cart-page, .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { aspect-ratio: 4 / 5; }
  .split--rev .split__media { order: 0; }
  .split__media .stamp { right: 12px; }
  .split__media::after { inset: 12px -8px -12px 8px; }
  .principles { grid-template-columns: 1fr; }
  .product__gallery, .summary { position: static; }
  .cart-page .summary, .checkout .summary { order: -1; }
  .chapter { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: 64%; }
  .card__quick { opacity: 1; transform: none; margin: 0 0 12px; background: transparent; border: 1px solid var(--line); min-height: 40px; }
  .card__frame { margin-bottom: 12px; }
  .card__jp-v { font-size: .8rem; }
  .brew__grid { grid-template-columns: repeat(2, 1fr); }
  .brew__item:nth-child(2) { border-right: 0; }
  .brew__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .sticky-buy { display: grid; }
  .page-product .footer { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .home .header { top: 34px; }
  .cats .cat:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 12; }
  .grid { gap: 32px 12px; }
  .card__meta { flex-direction: column; gap: 0; }
  .card__name { font-size: 1rem; }
  .card__sizes { display: none; }
  .card__quick { display: none; }
  .card__frame { margin-bottom: 14px; }
  .cat__label { left: 16px; right: 16px; bottom: 16px; }
  .cat__label h3 { font-size: 1.1rem; }
  .cat__label span { font-size: .9rem; }
  .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .reassure { font-size: .66rem; }
  .hero h1 { font-size: min(2.45rem, 9.4vw); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .btn { letter-spacing: .18em; font-size: .7rem; padding: 0 22px; }
  .eyebrow { letter-spacing: .24em; font-size: .64rem; }
  .eyebrow::before { width: 22px; }
  .toolbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .summary { padding: 22px 16px; }
  .buy .qty button { width: 30px; }
  .profile__row { grid-template-columns: 92px 1fr; }
  .spotlight__facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .spotlight__facts b { font-size: 1.2rem; }
  .steps-ritual { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
  .step-r { padding-top: 50px; }
  .step-r::before { font-size: 2.1rem; }
  .step-r h3 { font-size: 1.05rem; }
  .step-r p { font-size: .84rem; }
  .step-r::after { display: none; }
}

/* ================= Couche d'expérience ================= */

/* Intro */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--sumi); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.intro.is-out { opacity: 0; visibility: hidden; }
.intro__inner { display: grid; justify-items: center; gap: 14px; color: var(--washi); }
.intro svg { width: 92px; height: 92px; fill: none; stroke: var(--gold-2); stroke-width: 3.2; stroke-linecap: round; }
.intro svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__kanji { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .4em; opacity: 0; animation: fadeUp .9s .5s var(--ease-out) forwards; }
.intro__word { font-size: .62rem; letter-spacing: .6em; color: var(--gold-2); opacity: 0; animation: fadeUp .9s .75s var(--ease-out) forwards; }

/* Méga-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--washi); color: var(--sumi); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility 0s linear .4s; box-shadow: 0 40px 60px -50px rgba(0,0,0,.4); }
.header.mega-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.mega__inner { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.1fr; gap: 40px; padding-top: 40px; padding-bottom: 44px; }
.mega__col h4 { font-family: var(--sans); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.mega__col a { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; font-family: var(--serif); font-size: 1.2rem; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease-out); }
.mega__col a .kanji { font-size: .85rem; width: 2.6em; }
.mega__col a small { margin-left: auto; font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.mega__col a:hover { color: var(--gold); padding-left: 6px; }
.mega__feature { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ink-bg); color: var(--washi); }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature span { position: absolute; left: 18px; right: 18px; bottom: 16px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.mega__feature small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 4px; }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,22,18,.75)); }
.mega__feature span { z-index: 1; }

/* Recherche */
.search { position: fixed; inset: 0; z-index: 120; background: rgba(245,240,230,.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-top: clamp(60px, 12vh, 140px); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.search.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.search__bar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--sumi); }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.4rem); padding: 14px 0; outline: none; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 40px; font-size: .78rem; color: var(--muted); }
.search__hints button { border: 1px solid var(--line); border-radius: 30px; padding: 5px 14px; font-size: .74rem; transition: all .3s; }
.search__hints button:hover { border-color: var(--sumi); color: var(--sumi); }
.search__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; padding-bottom: 60px; }
.search__item { display: grid; gap: 12px; }
.search__item img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--ink-bg); transition: opacity .3s; }
.search__item:hover img { opacity: .85; }
.search__item b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.search__item small { font-size: .74rem; color: var(--muted); }

/* Aperçu rapide */
.qv { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.qv.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.qv__backdrop { position: absolute; inset: 0; background: rgba(20,22,18,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.qv__panel { position: relative; width: min(980px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--washi); display: grid; grid-template-columns: 1fr 1fr; transform: translateY(20px) scale(.98); transition: transform .6s var(--ease-out); }
.qv.is-open .qv__panel { transform: none; }
.qv__media { background: var(--ink-bg); aspect-ratio: 4 / 5; }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.qv__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3em; }
.qv__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--washi); }
.qv .link { align-self: flex-start; }

/* Bouton aperçu sur les cartes */
.card__view { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -40%); opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease-out), background .3s, color .3s;
  background: rgba(245,240,230,.95); padding: 12px 20px; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.card:hover .card__view { opacity: 1; transform: translate(-50%, -50%); }
.card__view:hover { background: var(--sumi); color: var(--washi); }

/* Curseur */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transition: transform .35s var(--ease-out), background .3s; }
.cursor.is-link::before { transform: scale(3.2); background: rgba(138,106,53,.22); }
.cursor span { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; background: var(--sumi); color: var(--washi); display: grid; place-items: center;
  font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; transform: scale(0); transition: transform .45s var(--ease-out); }
.cursor.is-view span { transform: scale(1); }
.cursor.is-view::before { transform: scale(0); }
@media (pointer: fine) { .card__media, .cat, .mega__feature, .spotlight__media { cursor: none; } }

/* Parallaxe */
[data-parallax] { will-change: transform; }

/* Bannière de catégorie (boutique) */
.cat-banner { position: relative; min-height: clamp(320px, 46vw, 520px); display: grid; align-items: end; color: var(--washi); overflow: hidden; background: var(--ink-bg); }
.cat-banner img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.cat-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,18,.82) 0%, rgba(20,22,18,.35) 55%, rgba(20,22,18,.1)), linear-gradient(0deg, rgba(20,22,18,.5), transparent 50%); }
.cat-banner__body { position: relative; z-index: 1; padding-bottom: clamp(36px, 6vw, 72px); padding-top: 120px; }
.cat-banner .breadcrumb { color: rgba(245,240,230,.65); }
.cat-banner__kanji { font-family: var(--serif); color: var(--gold-3); font-size: 1.3rem; letter-spacing: .3em; display: block; margin-bottom: 10px; }
.cat-banner h1 { margin-bottom: .25em; }
.cat-banner p { max-width: 34em; color: rgba(245,240,230,.8); margin: 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .76rem; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 34px; height: 19px; border-radius: 20px; background: var(--line); position: relative; transition: background .3s; cursor: pointer; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out); }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { transform: translateX(15px); }
.edito-tile { grid-column: span 2; position: relative; background: var(--ink-bg); color: var(--washi); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; min-height: 100%; }
.edito-tile img { width: 100%; height: 100%; object-fit: cover; }
.edito-tile__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.edito-tile__body p { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; }
.edito-tile__body .eyebrow { color: var(--gold-2); }

/* Complétez le rituel */
.pairing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pair { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 12px; transition: border-color .3s; }
.pair:hover { border-color: var(--sumi); }
.pair img { width: 96px; height: 120px; object-fit: cover; background: var(--ink-bg); }
.pair b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.pair small { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.pair button { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.pair button:hover { color: var(--gold); }

/* Terroirs */
.terroirs { border-top: 1px solid var(--line-dark); }
.terroir { position: relative; display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: baseline; padding: clamp(20px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-dark); color: var(--washi); transition: padding .5s var(--ease-out), color .3s; }
.terroir__jp { font-family: var(--serif); color: var(--gold-2); font-size: 1.1rem; }
.terroir__name { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.1; }
.terroir__name small { display: block; font-family: var(--sans); font-size: .82rem; color: rgba(245,240,230,.55); margin-top: 8px; letter-spacing: .02em; }
.terroir__teas { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,230,.55); text-align: right; }
.terroir:hover { padding-left: 14px; }
.terroir:hover .terroir__name { color: var(--gold-3); }
.terroir__img { position: absolute; right: 18%; top: 50%; width: 200px; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; z-index: 2; opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.9); transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.terroir:hover .terroir__img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }

@media (max-width: 860px) {
  .mega { display: none; }
  .search__results { grid-template-columns: repeat(2, 1fr); }
  .qv__panel { grid-template-columns: 1fr; }
  .qv__media { aspect-ratio: 4 / 3; }
  .card__view { display: none; }
  .edito-tile { grid-template-columns: 1fr; }
  .edito-tile img { aspect-ratio: 16 / 10; }
  .pairing { grid-template-columns: 1fr; }
  .terroir { grid-template-columns: 60px 1fr; }
  .terroir__teas { grid-column: 2; text-align: left; }
  .terroir__img { display: none; }
}
.home .header.mega-open { background: var(--washi); color: var(--sumi); top: 0; }
.home .header.mega-open .logo__dark { display: block; }
.home .header.mega-open .logo__light { display: none; }
.home .header.mega-open .logo__word small { color: var(--muted); }
@media (max-width: 520px) {
  .toolbar > * { min-width: 0; max-width: 100%; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; }
  .filters .toggle { grid-column: 1 / -1; }
  .filters .select { width: 100% !important; }
  .toolbar { gap: 14px; }
}

.full-img-wrap { overflow: hidden; height: clamp(340px, 60vw, 720px); }
.full-img-wrap .full-img { height: 100%; }

/* Visuels produits « boîte sur fond blanc » : les cadres prennent la teinte du fond des visuels. */
:root { --pack-bg: #fdfdfd; }
.card__media, .product__main, .thumb, .qv__media, .line-item__img img, .search__item img, .pair img, .sticky-buy img { background: var(--pack-bg); }
.card__media img:not(.card__alt) { object-fit: contain; }
.card__media .card__alt { object-fit: cover; }
.card__jp-v { color: var(--gold); text-shadow: none; }
.card__badge { background: var(--sumi); color: var(--gold-3); }
@media (max-width: 520px) {
  .card__badge { top: 8px; left: 8px; font-size: .5rem; letter-spacing: .14em; padding: 3px 7px; }
  .card__jp-v { top: 8px; right: 8px; font-size: .72rem; }
}

/* ================= Corrections mobiles ================= */
html { -webkit-tap-highlight-color: transparent; }

/* Écrans tactiles : pas d'état « survolé » qui reste collé après un tap */
@media (hover: none) {
  .btn::after { display: none; }
  .btn:hover { border-color: var(--sumi); }
  .btn--light:hover { border-color: var(--washi); }
  .btn--ghost:hover { color: var(--sumi); border-color: var(--sumi); }
  .btn--line-light:hover { color: var(--washi); border-color: rgba(245,240,230,.6); }
  .btn:active { opacity: .82; }
  .btn:hover .arrow, .field-inline button:hover .arrow { transform: none; }
  .card:hover .card__media img { transform: none; }
  .card:hover .card__media.has-alt .card__alt { opacity: 0; }
  .cat:hover img { transform: none; }
  .terroir:hover { padding-left: 0; }
  .icon-btn:hover { opacity: 1; }
}

/* En-tête posé sur le hero : il remonte en même temps que le bandeau défilant */
.home .header { top: var(--hdr-top, 34px); }
.home.past-hero .header, .home .header.mega-open { top: 0; }

@media (max-width: 860px) {
  /* iOS zoome la page si un champ fait moins de 16 px */
  input, select, textarea, .select, .field input, .field select, .field textarea { font-size: 16px !important; }
  .page-product .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  /* Catégories : 6 tuiles → la première et la dernière en pleine largeur */
  .cats .cat:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 12; }
  .cat__label { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat__label span { font-size: .8rem; letter-spacing: .1em; }
}
@media (max-width: 860px) {
  /* Les colonnes de grille ne doivent jamais être élargies par un contenu insécable */
  .cart-page > *, .newsletter > *, .split > *, .product > *, .spotlight > *, .fields > *, .principles > * { min-width: 0; }
  .remove { padding: 8px 0; margin-top: 2px; }
  .logo__word small { font-size: .5rem; letter-spacing: .18em; }
}
@media (max-width: 520px) {
  .card__badge { font-size: .56rem; }
}
@media (max-width: 360px) {
  .logo__word small { display: none; }
  .logo__word { font-size: 1.05rem; letter-spacing: .24em; }
  .header__actions .icon-btn { width: 38px; }
  .spotlight__facts { grid-template-columns: 1fr 1fr; }
  .steps-ritual { grid-template-columns: 1fr; }
}
/* Le masque d'animation du titre ne doit pas rogner les jambages (q, p, g) */
.hero h1 .line { padding-bottom: .14em; margin-bottom: -.14em; }
/* Le menu mobile passe au-dessus du voile (sinon il apparaît flou et les taps tombent sur le voile) */
.mobile-menu { z-index: 88; }
@media (hover: none) { .cat:hover::before { border-color: transparent; } }
@media (max-width: 520px) {
  .variant__box em { font-size: .52rem; letter-spacing: .1em; white-space: nowrap; }
}

/* ================= Checkout une page ================= */
.page-checkout { background: var(--washi); }
.drawer[hidden], .btn[hidden] { display: none; }
.header--minimal { position: sticky; }
.header--minimal .header__inner { height: 76px; }
.co-back, .co-secure { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.co-back svg { width: 22px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.2; transition: transform .4s var(--ease-out); }
.co-back:hover { color: var(--sumi); }
.co-back:hover svg { transform: translateX(-4px); }
.co-secure { justify-self: end; }
.co-secure svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.co-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: .74rem; color: var(--muted); }
.co-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.co-footer a:hover { color: var(--sumi); }
.co-footer span { margin-left: auto; }

.co { min-height: 70vh; }
.co-empty { text-align: center; padding: 120px 0; }
.co-empty .kanji { font-size: 3rem; display: block; margin-bottom: 10px; }
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 77px); }
.co__main { padding: 44px clamp(24px, 5vw, 72px) 80px clamp(20px, 4vw, 40px); max-width: 640px; width: 100%; justify-self: end; }
.co__summary { background: var(--washi-2); border-left: 1px solid var(--line); position: relative; }
.co__summary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 50vw; background: var(--washi-2); }
.co-sum { position: sticky; top: 77px; padding: 44px clamp(20px, 4vw, 40px) 60px clamp(24px, 4vw, 56px); max-width: 520px; }

.co-steps { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.co-steps li { display: inline-flex; align-items: center; gap: 10px; }
.co-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--line); }
.co-steps .is-current { color: var(--sumi); font-weight: 500; }
.co-steps .is-done a { color: var(--gold); }

.co-express { margin-bottom: 8px; }
.co-express__title { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 12px; }
.co-express__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-wallet { height: 50px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; transition: opacity .25s, transform .25s; }
.co-wallet:hover { opacity: .88; }
.co-wallet:active { transform: scale(.985); }
.co-wallet--apple { background: #000; color: #fff; }
.co-wallet--apple svg { width: 20px; height: 20px; fill: #fff; margin-top: -3px; }
.co-wallet--google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.co-g { font-weight: 700; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.co-sec { padding: 28px 0 8px; }
.co-sec + .co-sec { border-top: 1px solid var(--line); }
.co-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 0 0 18px; }
.co-sec__n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: inline-grid; place-items: center; font-family: var(--sans); font-size: .72rem; flex-shrink: 0; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row--zip { grid-template-columns: 2fr 3fr; }

/* Champs à étiquette flottante */
.fl { position: relative; margin-bottom: 12px; }
.fl input, .fl select, .fl textarea {
  width: 100%; height: 56px; padding: 22px 14px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  font-size: 1rem; outline: none; transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.fl textarea { height: auto; min-height: 96px; resize: vertical; line-height: 1.5; padding-top: 26px; }
.fl select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141612' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.fl label { position: absolute; left: 15px; top: 18px; font-size: .95rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 30px); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label, .fl--select label { transform: translateY(-10px) scale(.76); }
.fl input:focus, .fl select:focus, .fl textarea:focus { border-color: var(--sumi); box-shadow: 0 0 0 3px rgba(20,22,18,.06); }
.fl__msg { display: block; font-size: .74rem; color: var(--seal); min-height: 0; padding-top: 4px; }
.fl__msg:empty { display: none; }
.fl.is-invalid input, .fl.is-invalid select { border-color: var(--seal); box-shadow: 0 0 0 3px rgba(168,56,42,.08); }
.fl.is-valid input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11'%3E%3Cpath d='M1 5.5l4 4L13 1' fill='none' stroke='%2355663a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.fl__count { position: absolute; right: 12px; bottom: 10px; font-size: .68rem; color: var(--muted); }
.fl--sm input { height: 48px; padding-top: 18px; }
.fl--sm label { top: 14px; }

.co-check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; margin: 6px 0 14px; cursor: pointer; line-height: 1.5; }
.co-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 4px; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; background: var(--white); transition: background .2s, border-color .2s; cursor: pointer; }
.co-check input:checked { background: var(--sumi); border-color: var(--sumi); }
.co-check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.co-check a { text-decoration: underline; text-underline-offset: 3px; }
.co-check--cgv { margin-top: 26px; }
.co-check.is-invalid input { border-color: var(--seal); box-shadow: 0 0 0 3px rgba(168,56,42,.1); }

/* Modes de livraison */
.co-options { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); margin-bottom: 18px; }
.co-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px; cursor: pointer; transition: background .2s; }
.co-opt + .co-opt { border-top: 1px solid var(--line); }
.co-opt:has(input:checked) { background: #faf6ee; box-shadow: inset 2px 0 0 var(--gold); }
.co-opt input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 50%; margin: 3px 0 0; display: grid; place-items: center; cursor: pointer; }
.co-opt input:checked { border-color: var(--sumi); }
.co-opt input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sumi); }
.co-opt__body b { display: block; font-weight: 500; font-size: .95rem; }
.co-opt__body small { display: block; font-size: .8rem; color: var(--matcha); }
.co-opt__body em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.co-opt__price { font-family: var(--serif); white-space: nowrap; }

.co-gift { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px dashed var(--gold-2); border-radius: 8px; cursor: pointer; background: rgba(194,163,107,.06); }
.co-gift input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--gold); border-radius: 4px; flex-shrink: 0; margin-top: 3px; display: grid; place-items: center; cursor: pointer; background: var(--white); }
.co-gift input:checked { background: var(--gold); }
.co-gift input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.co-gift__box b { display: block; font-weight: 500; }
.co-gift__box small { color: var(--muted); font-size: .8rem; }
.co-gift__msg { margin-top: 12px; }

/* Paiement */
.co-test { display: inline-block; font-family: var(--sans); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: #6a5414; background: #f7efd9; border: 1px solid #e4d29f; border-radius: 30px; padding: 3px 10px; margin-left: auto; }
.co-hint { font-size: .8rem; color: var(--muted); margin: -6px 0 14px; line-height: 1.6; }
.co-hint b { color: var(--sumi); font-weight: 500; white-space: nowrap; }
.co-card { border: 1px solid var(--line); border-radius: 8px; background: var(--washi-2); padding: 14px 14px 4px; margin-bottom: 14px; }
.co-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .86rem; font-weight: 500; }
.co-card__head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.co-card__head svg { width: 15px; height: 15px; stroke: var(--sumi); fill: none; stroke-width: 1.4; }
.co-brands { display: flex; gap: 4px; }
.co-brands i { font-style: normal; font-size: .56rem; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--line); background: var(--white); border-radius: 3px; padding: 2px 5px; opacity: .45; transition: opacity .2s; }
.co-brands i.is-on { opacity: 1; }
.co-billing { padding-top: 4px; }
.co-alert { background: rgba(168,56,42,.07); border-left: 2px solid var(--seal); color: var(--seal); font-size: .84rem; padding: 12px 14px; margin: 0 0 14px; border-radius: 0 6px 6px 0; }
.co-pay { min-height: 60px; border-radius: 6px; font-size: .78rem; gap: 12px; }
.co-pay svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.co-pay .spinner { margin-right: 4px; }
.co-trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; font-size: .72rem; color: var(--muted); }
.co-trust li { display: inline-flex; align-items: center; gap: 6px; }
.co-trust svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 1.4; }

/* Récapitulatif */
.co-sum__title { font-size: 1.3rem; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.co-sum__title span { font-family: var(--sans); font-size: .76rem; color: var(--muted); }
.co-lines { list-style: none; margin: 0; padding: 0 0 6px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; }
.co-line__img { position: relative; width: 64px; height: 80px; border-radius: 6px; background: var(--pack-bg); border: 1px solid var(--line); }
.co-line__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.co-line__img b { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--muted); color: #fff; font-size: .66rem; font-weight: 500; display: grid; place-items: center; }
.co-line__name { font-size: .9rem; line-height: 1.35; }
.co-line__name small { display: block; color: var(--muted); font-size: .76rem; }
.co-line__price { font-family: var(--serif); white-space: nowrap; }
.co-promo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; padding: 14px 0; }
.co-promo summary { cursor: pointer; font-size: .84rem; list-style: none; display: flex; justify-content: space-between; }
.co-promo summary::-webkit-details-marker { display: none; }
.co-promo summary::after { content: "+"; color: var(--gold); font-size: 1.1rem; line-height: 1; transition: transform .3s; }
.co-promo[open] summary::after { transform: rotate(45deg); }
.co-promo__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.co-promo__row .fl { margin: 0; }
.co-promo__btn { border: 1px solid var(--sumi); border-radius: 6px; padding: 0 18px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s; }
.co-promo__btn:hover { background: var(--sumi); color: var(--washi); }
.co-promo__msg { font-size: .76rem; margin: 8px 0 0; }
.co-promo__msg:empty { display: none; }
.co-promo__msg.is-ok { color: var(--matcha); }
.co-promo__msg.is-ko { color: var(--seal); }
.co-totals { margin: 0; }
.co-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .9rem; }
.co-totals dt small { display: block; font-size: .72rem; color: var(--muted); }
.co-totals dd { margin: 0; white-space: nowrap; }
.co-totals .is-discount { color: var(--matcha); }
.co-remove { font-size: .68rem; color: var(--muted); text-decoration: underline; margin-left: 6px; }
.co-totals__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px !important; }
.co-totals__total dt { font-family: var(--serif); font-size: 1.15rem; }
.co-totals__total dd { font-family: var(--serif); font-size: 1.7rem; display: flex; align-items: baseline; gap: 8px; }
.co-totals__total dd span { font-family: var(--sans); font-size: .66rem; color: var(--muted); letter-spacing: .1em; }
.co-reassure { list-style: none; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .8rem; color: var(--muted); }
.co-reassure b { display: block; color: var(--sumi); font-weight: 500; }
.co-reassure a { text-decoration: underline; text-underline-offset: 3px; }

/* Récapitulatif repliable + barre de paiement (mobile) */
.co-toggle, .co-paybar { display: none; }
.co-sheet { position: fixed; inset: 0; z-index: 130; display: grid; align-items: end; justify-items: center; }
.co-sheet__backdrop { position: absolute; inset: 0; background: rgba(20,22,18,.5); opacity: 0; transition: opacity .3s; }
.co-sheet__panel { position: relative; width: min(440px, 100%); background: var(--white); border-radius: 16px 16px 0 0; padding: 26px 24px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease-out); }
.co-sheet.is-open .co-sheet__backdrop { opacity: 1; }
.co-sheet.is-open .co-sheet__panel { transform: none; }
.co-sheet__panel h3 { margin: 10px 0 6px; font-size: 1.4rem; }
.co-sheet__panel .co-test { margin-left: 0; }
.co-sheet__panel .btn { margin-top: 18px; border-radius: 6px; }
.co-sheet__cancel { display: block; width: 100%; padding: 14px; font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
  .co__grid { grid-template-columns: 1fr; min-height: 0; }
  .co__main { justify-self: stretch; max-width: none; padding: 26px var(--gutter) 40px; }
  .co__summary { order: -1; border-left: 0; border-bottom: 1px solid var(--line); display: none; }
  .co__summary::after { display: none; }
  .co.is-summary-open .co__summary { display: block; }
  .co-sum { position: static; max-width: none; padding: 20px var(--gutter) 24px; }
  .co-sum__title { display: none; }
  .co-reassure { display: none; }
  .co-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--gutter); background: var(--washi-2); border-bottom: 1px solid var(--line); font-size: .84rem; }
  .co-toggle__label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
  .co-toggle__label svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.3; }
  .co-toggle__chev { width: 14px !important; height: 14px !important; transition: transform .3s; }
  .co.is-summary-open .co-toggle__chev { transform: rotate(180deg); }
  .co-toggle__total { font-family: var(--serif); font-size: 1.15rem; }
  .co-paybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-between; align-items: center; gap: 14px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(245,240,230,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .4s var(--ease-out); }
  .co-paybar.is-hidden { transform: translateY(110%); }
  .co-paybar small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .co-paybar b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
  .co-paybar .btn { min-height: 48px; padding: 0 26px; border-radius: 6px; gap: 10px; }
  .co-paybar .btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; }
  .co-footer { padding-bottom: 100px; }
  .co-secure span { display: none; }
  .co-back span { display: none; }
}
@media (max-width: 520px) {
  .co-row { grid-template-columns: 1fr; gap: 0; }
  .co-row--zip { grid-template-columns: 2fr 3fr; gap: 10px; }
  .co-sec h2 { font-size: 1.15rem; }
  .co-steps { font-size: .6rem; }
  .co-opt { padding: 14px 12px; gap: 10px; }
  .co-footer span { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) { .co-steps { display: none; } .co-express { margin-top: 4px; } }
.co-sheet__panel { max-height: calc(100vh - 20px); overflow-y: auto; }

/* iOS 26 : Safari colore la zone de la barre d'état d'après le premier élément fixe (≥ ~90 % de large,
   > 10 px de haut) trouvé en haut de l'écran. Sur mobile, le grain de papier (body::before, fixe, plein écran)
   est retiré et l'en-tête devient opaque, sans flou : c'est lui qui donne sa couleur à la barre d'état. */
html { background: #f5f0e6; }
@media (max-width: 1000px) {
  body::before { display: none; }
  .header, .home.past-hero .header, .header.is-scrolled {
    background: #f5f0e6; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .home:not(.past-hero) .header { background: transparent; }
}
