/* Page d'accueil, identité de la boutique (docs/identite-visuelle.md) : fond clair, Rubik, bleu d'action, cartes douces ; Shin'Rah en vedette.
 * Les jetons --h-* pointent vers ceux du kit (/assets/kit/asap.css, chargé avant ; ses valeurs communes sont celles de shop.css).
 * Ancienne version (nuit bleue, « arcade sticker ») : _tmp/identite/avant/public_home.css */
:root {
  --h-bg: var(--paper);
  --h-bg2: var(--paper-2);
  --h-card: var(--card);
  --h-card2: var(--paper-2);
  --h-ink: var(--ink);
  --h-text: var(--ink);
  --h-muted: var(--muted);
  --h-yuzu: var(--yuzu);
  --h-yuzu-ink: #14120d;
  --h-cyan: var(--focus);
  --h-coral: var(--signal);
  --h-mint: var(--ok);
  --h-r: 14px;
  --h-font: var(--font);
  --h-on-img: #ffffff;
  --sw: 210px;
}
[hidden] { display: none !important; }
html { background: var(--h-bg); }
body.home { margin: 0; min-height: 100%; font: 400 15px/1.5 var(--h-font); color: var(--h-text); background: var(--h-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home a { color: inherit; text-decoration: none; }
.home :focus-visible { outline: 2px solid var(--h-cyan); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- header ---- */
.h-bar { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.h-bar-in { display: flex; align-items: center; gap: 12px; min-height: var(--bar); padding: 0 var(--pad); max-width: 1700px; margin: 0 auto; }
.h-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font: 800 19px/1 var(--h-font); letter-spacing: -0.01em; margin-right: 10px; }
.h-brand img { width: 36px; height: 36px; display: block; transform: rotate(-4deg); transition: transform 0.25s var(--ease); }
.h-brand:hover img { transform: rotate(3deg) translateY(-2px); }
.h-top-nav { display: flex; gap: 4px; margin-right: auto; }
.h-top-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font: 500 15px/1 var(--h-font); }
.h-top-nav a:hover { color: var(--ink); background: var(--paper-2); }
.h-top-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.h-find { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper-2); color: var(--muted); cursor: text; }
.h-find svg { width: 16px; height: 16px; flex: none; }
.h-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 14px var(--h-font); outline: 0; }
.h-find input::placeholder { color: var(--muted); opacity: 1; }
.h-find:focus-within { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.15); }
.h-bar select, .h-pill { height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--card); color: var(--ink); font: 600 14px var(--h-font); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.h-bar select { padding-right: 6px; font-weight: 500; }
.h-pill:hover, .h-bar select:hover { border-color: var(--ink); }
.h-pill.y { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.h-pill.y:hover { background: var(--accent-d); border-color: var(--accent-d); }
.h-pill i { width: 12px; height: 12px; border-radius: 50%; }
.h-grow { flex: 1; }

/* ---- layout + side rail (categories) ---- */
.h-app { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); max-width: 1700px; margin: 0 auto; }
.h-rail { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; }
.h-rail .h-nav, .h-tabbar .h-nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 15px/1.1 var(--h-font); text-align: left; cursor: pointer; }
.h-nav svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.h-rail .h-nav:hover { background: var(--paper-2); }
.h-nav.on { background: var(--ink) !important; color: #fff !important; }
.h-nav.on svg { color: #fff; }
.h-rail .h-nav.shin { background: #0e3d4a; color: #fff; font-weight: 700; }
.h-rail .h-nav.shin svg { color: #5ff0dc; }
.h-rail .h-nav.shin:hover { background: #12505f; }
.h-hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; width: calc(100% - 12px); }
.h-sp { flex: 1; }

/* ---- main ---- */
.h-main { padding: 18px clamp(14px, 2vw, 28px) 60px; min-width: 0; }
.h-sec { margin-bottom: 8px; }
.h-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.h-head h2 { font: 800 21px/1.1 var(--h-font); letter-spacing: -0.02em; }
.h-cats { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.h-cats button { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink); font: 600 13px var(--h-font); }
.h-cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- tiles ---- */
.h-tile { position: relative; display: block; border-radius: var(--h-r); overflow: hidden; background: hsl(var(--h, 240) 25% 22%); color: var(--h-on-img); isolation: isolate; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.h-tile:hover, .h-tile:focus-visible { box-shadow: var(--shadow); transform: translateY(-2px); }
.h-tile .art, .h-thumb .art { position: absolute; inset: 0; z-index: -2; }
.art svg, .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.h-tile:hover .art img, .h-tile:hover .art svg { transform: scale(1.06); }
.h-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 18, 0.78)); }
.h-cap { position: absolute; left: 14px; right: 14px; bottom: 11px; }
.h-tile h3 { font: 700 16px/1.15 var(--h-font); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); color: #fff; }
.h-meta { margin-top: 3px; font-size: 12.5px; color: #e8eaf0; }
.h-stick { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 6px; font: 600 11px/1 var(--h-font); background: #fff; color: var(--ink); }
.h-stick.new { background: var(--signal); color: var(--signal-ink); }
.h-stick.lock { left: auto; right: 10px; background: var(--ink); color: #fff; }
.h-go { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--h-font); opacity: 0; transform: translateY(-4px); transition: 0.2s; }
.h-tile:hover .h-go, .h-tile:focus-visible .h-go { opacity: 1; transform: none; }
.h-stick.lock ~ .h-go { right: auto; left: 10px; top: 40px; }
.h-soon { background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--stage) 14px 28px); display: grid; place-items: center; text-align: center; color: var(--muted); font: 600 15px var(--h-font); }
.h-soon::after { display: none; }
.h-soon:hover { transform: none; box-shadow: none; }

/* ---- the star : Shin'Rah, with Yuzu laid over its right side ---- */
.h-top { position: relative; display: grid; margin-bottom: 8px; }
.h-hero { min-height: clamp(340px, 31vw, 460px); border-radius: 18px; background: #0e3d4a; }
.h-hero::after { background: linear-gradient(90deg, rgba(6, 28, 36, 0.86), rgba(6, 28, 36, 0.3) 52%, transparent 76%); }
.h-hero:hover { transform: none; }
.h-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.h-hero:hover .h-hero-img { transform: scale(1.04); }
.h-hero .h-cap { left: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 38px); right: auto; max-width: min(520px, 62%); display: grid; gap: 12px; justify-items: start; }
.h-gem { width: 32px; height: 38px; background: linear-gradient(160deg, #c9fff8, #26d6c4 55%, #0e7d8c); clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%); }
.h-hero h1, .h-hero h2 { font: 800 clamp(40px, 5.4vw, 72px)/0.95 var(--h-font); letter-spacing: -0.04em; color: #fff; }
.h-hero p { font-size: clamp(15px, 1.4vw, 18px); color: #d7f1ee; }
.h-btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: var(--r-s); background: #fff; color: #0b2b34; font: 700 16px var(--h-font); }
.h-btn svg { width: 15px; height: 15px; }
.h-btn.s { height: 36px; padding: 0 16px; font-size: 14px; background: var(--accent); color: var(--accent-ink); }

.h-yz { position: absolute; right: clamp(12px, 2vw, 22px); top: clamp(12px, 2vw, 22px); z-index: 3; width: min(270px, 40%); display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); color: var(--ink); }
.h-who { display: flex; gap: 10px; align-items: flex-end; min-height: 96px; }
.h-face { position: relative; width: 96px; height: 96px; flex: none; border-radius: 20px; background: var(--yuzu); overflow: hidden; }
.h-face svg { width: 100%; height: 100%; display: block; }
.h-face button { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: 20px; }
.h-say { position: relative; flex: 1; background: var(--paper-2); color: var(--ink); border-radius: 12px 12px 12px 3px; padding: 8px 11px; font-weight: 500; font-size: 13.5px; line-height: 1.35; min-height: 38px; opacity: 0; transform: translateY(4px); transition: 0.15s; }
.h-say.on { opacity: 1; transform: none; }
.h-say .tag, .h-say .rest { display: none; }
.h-bond { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.h-bond .t { display: flex; justify-content: space-between; gap: 10px; font: 600 13px var(--h-font); }
.h-bond .t span:last-child { color: var(--muted); }
.h-pbar { height: 8px; border-radius: 99px; background: var(--line); margin: 8px 0 0; overflow: hidden; }
.h-pbar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: var(--accent); transition: width 0.3s; }
.h-looks { display: flex; gap: 8px; flex-wrap: wrap; }
.h-look { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(135deg, var(--a, #e2e5ec), var(--b, #cfd4de)); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.h-look svg { width: 15px; height: 15px; }
.h-look[aria-pressed='true'] { outline: 2px solid var(--accent); outline-offset: 1px; }
.h-look.locked { background: var(--paper-2); }

/* ---- rows and grid ---- */
.h-row3 { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 12px; scrollbar-width: thin; }
.h-row3 .h-tile { flex: 0 0 clamp(190px, 17vw, 250px); aspect-ratio: 16 / 10; scroll-snap-align: start; }
.h-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.h-mosaic .h-tile { aspect-ratio: 16 / 10; }
.h-empty { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; padding: 24px 0; color: var(--muted); }
.h-err { color: #b3261e; }
.h-panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 4px 16px; }
.h-again { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; }
.h-again + .h-again { border-top: 1px solid var(--line); }
.h-thumb { position: relative; width: 72px; height: 50px; border-radius: 10px; overflow: hidden; isolation: isolate; }
.h-thumb .art { z-index: 0; }
.h-again b { font-weight: 700; }
.h-again small { display: block; color: var(--muted); font-size: 13px; }

/* ---- the shop, quiet ---- */
.h-shop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.h-shop > b { font: 700 15px/1 var(--h-font); }
.h-shopcards { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.h-pack { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 500 13px/1 var(--h-font); }
.h-pack:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(18, 21, 28, 0.08); }
.h-pack-img { position: relative; display: block; width: 44px; height: 30px; border-radius: 6px; overflow: hidden; background: var(--stage); flex: none; }
.h-pack-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-foot { margin-top: 26px; color: var(--muted); font-size: 13px; max-width: 720px; }
.h-tabbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .h-tile, .h-go, .h-say, .h-pbar i, .art img, .art svg, .h-hero-img, .h-brand img { transition: none !important; }
  .h-tile:hover, .h-tile:hover .art img, .h-hero:hover .h-hero-img, .h-brand:hover img { transform: none !important; }
}

/* ---- tablets: the rail shrinks to icons ---- */
@media (max-width: 1180px) {
  :root { --sw: 84px; }
  .h-rail .h-nav { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 11.5px; text-align: center; justify-content: center; }
  .h-nav svg { width: 24px; height: 24px; }
  .h-top-nav { display: none; }
  .h-bar-in { gap: 8px; }
  .h-find { margin-left: auto; }
  .h-grow { display: none; }
}

/* ---- phones ---- */
@media (max-width: 900px) {
  .h-app { grid-template-columns: 1fr; overflow-x: clip; }
  .h-rail { display: none; }
  .h-main { padding: 12px 14px 100px; }
  .h-bar-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .h-find { order: 9; flex: 1 1 100%; margin-left: 0; }
  .h-brand { margin-right: auto; }
  .h-bar select { max-width: 104px; }
  .h-bar select, .h-pill { height: 38px; padding: 0 12px; font-size: 13px; }
  .h-cats { display: flex; width: 100%; }
  .h-top { display: block; }
  .h-hero { min-height: 0; display: grid; }
  .h-hero-img { position: relative; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .h-hero::after { display: none; }
  .h-hero .h-cap { position: relative; left: 0; bottom: 0; max-width: none; padding: 16px; background: #0e3d4a; }
  .h-hero .h-btn { width: 100%; justify-content: center; }
  .h-yz { position: static; width: auto; margin-top: 12px; box-shadow: none; border: 1px solid var(--line); }
  .h-row3 .h-tile { flex-basis: min(72%, 260px); }
  .h-mosaic { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .h-go { display: none; }
  .h-shopcards { margin-left: 0; }
  .h-tabbar { position: fixed; left: 10px; right: 10px; bottom: 10px; height: 62px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 30; }
  .h-tabbar .h-nav { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 2px; font: 500 10.5px var(--h-font); color: var(--muted); text-align: center; background: none; }
  .h-tabbar .h-nav svg { width: 22px; height: 22px; }
  .h-tabbar .h-nav.on { background: none !important; color: var(--accent) !important; }
  .h-tabbar .h-nav.on svg { color: var(--accent); }
}
@media (max-width: 420px) { .h-brand span { display: none; } }

/* Yuzu's drawing (same rules as companion.css, which this page does not load) */
.yuzu {
  --hoodie: #f2f5ff;
  --hoodie-shade: #c3cdee;
  --trim: #22c7e6;
  --skin: #ffe4d2;
  --skin-shade: #f4bfa6;
  --ink: #2b2030;
}
[data-outfit='cyan'] .yuzu {
  --hoodie: #26c3e0;
  --hoodie-shade: #168faa;
  --trim: #fff3d6;
}
[data-outfit='coral'] .yuzu {
  --hoodie: #ff6f7d;
  --hoodie-shade: #d64a5c;
  --trim: #fff3d6;
}
[data-outfit='ink'] .yuzu {
  --hoodie: #2a3366;
  --hoodie-shade: #1a2148;
  --trim: #e8e8e6;
}
.yuzu .c-hoodie { fill: var(--hoodie); }
.yuzu .c-hoodie-shade { fill: var(--hoodie-shade); }
.yuzu .c-trim { fill: var(--trim); }
.yuzu .c-skin { fill: var(--skin); }
.yuzu .c-skin-shade { fill: var(--skin-shade); }
.yuzu .s-hoodie { stroke: var(--hoodie); }
.yuzu .s-hoodie-shade { stroke: var(--hoodie-shade); }
.yuzu .s-trim { stroke: var(--trim); }
.yuzu .c-string { stroke: var(--hoodie-shade); stroke-width: 4; fill: none; stroke-linecap: round; }
.yuzu .c-trim-line { stroke: var(--trim); stroke-width: 5; fill: none; stroke-linecap: round; }
.yuzu .ol { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.yuzu .ol-thin { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.yuzu .ol-line { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.yuzu .strand { stroke: #c98414; stroke-width: 3; fill: none; stroke-linecap: round; }
.yuzu .eye-happy,
.yuzu .mouth-open,
.yuzu .mouth-o,
.yuzu .acc { display: none; }
.yuzu[data-ears] .acc-ears { display: inline; }
.yuzu[data-mood='happy'] .eye-open,
.yuzu[data-mood='shy'] .eye-open { display: none; }
.yuzu[data-mood='happy'] .eye-happy,
.yuzu[data-mood='shy'] .eye-happy { display: inline; }
.yuzu[data-mood='happy'] .mouth-smile { display: none; }
.yuzu[data-mood='happy'] .mouth-open { display: inline; }
.yuzu[data-mood='surprised'] .mouth-smile { display: none; }
.yuzu[data-mood='surprised'] .mouth-o { display: inline; }

