:root { --c1: #c9841f; --c2: #5a3a12; --glow: #dc9a3a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Outfit', sans-serif; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%); /* fond de page */
}
.stage { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; }
.brand { opacity: .6; font-size: 14px; }

.card {
  position: relative; width: min(92vw, 980px); aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden;           /* overflow : le perso et le mot sont rognés */
  container-type: inline-size;                      /* permet d'utiliser l'unité cqw */
  background: radial-gradient(ellipse at 50% 60%, var(--glow) 0%, var(--c1) 55%, var(--c2) 150%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  font-family: 'Rajdhani', sans-serif;
  cursor: grab; user-select: none; touch-action: pan-y;
}
.card:active { cursor: grabbing; }

.card-nav { position: absolute; z-index: 3; top: 5%; left: 5%; display: flex; gap: 4cqw;
  font-size: clamp(8px, 1.2cqw, 12px); font-weight: 700; letter-spacing: .08em; }
.cart { position: absolute; z-index: 5; top: 4.5%; right: 5%; width: clamp(25px, 2.8cqw, 30px); height: clamp(25px, 2.8cqw, 30px); display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: #fff; cursor: default; }
.cart svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart span { position: absolute; top: -5px; right: -7px; min-width: 14px; height: 14px; padding: 0 3px; display: grid; place-items: center; border-radius: 999px; background: #e53935; color: #fff; font: 700 9px/1 Arial, sans-serif; }
.info-left { position: absolute; z-index: 3; left: 6%; top: 24%; }
.info-left h2 { font-size: clamp(14px, 2.6cqw, 26px); font-weight: 500; line-height: 1.1; }
.meta { margin-top: 1.2cqw; font-size: clamp(7px, 1.05cqw, 10px); font-weight: 700; line-height: 1.5; opacity: .9; }
.bio { position: absolute; z-index: 3; left: 23%; top: 28%; width: 21%;
  font-size: clamp(7px, 1cqw, 10px); line-height: 1.5;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.info-right { position: absolute; z-index: 3; right: 2.5%; top: 26%; width: 19%;
  font-size: clamp(7px, .95cqw, 9px); line-height: 1.5; opacity: .85; transition: opacity .4s; }

.arrows { position: absolute; z-index: 4; left: 79%; top: 44%; display: flex; gap: .8cqw;
  transform: translate(0, 0); transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.arrows button { width: clamp(24px, 2.6cqw, 28px); height: clamp(24px, 2.6cqw, 28px); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: none; color: #fff; font-size: clamp(12px, 1.2cqw, 14px); cursor: pointer; }

/* État "détails" pendant le drag : bio visible, desc masquée, flèches en bas à gauche */
.card.is-dragging .bio { opacity: .9; transform: none; }
.card.is-dragging .info-right { opacity: 0; }
.card.is-dragging .arrows { transform: translate(-62cqw, 18.75cqw); }

/* Couche 1 : mot géant, ancré en bas, rogné par le bas du cadre */
.word-wrap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 48%;
  overflow: hidden; pointer-events: none; }
.word { position: absolute; left: 50%; bottom: -4%; white-space: nowrap; opacity: 0;
  font: 400 30cqw/.8 'Anton', Impact, sans-serif; color: rgba(255, 255, 255, .88); }

/* Couche 2 : personnage au-dessus du mot, épaules rognées par le bas de la carte */
.hero { position: absolute; z-index: 2; left: 50%; bottom: -12%; height: 88%;
  transform-origin: 50% 100%; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }

.cursor { position: fixed; z-index: 99; left: 0; top: 0; width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; pointer-events: none; opacity: 0; }

/* Accès direct à la boutique */
.shop-btn{display:inline-flex;align-items:center;gap:.8cqw;margin-top:2.2cqw;padding:.9cqw 1.8cqw;border-radius:99px;background:#fff;color:var(--c2);font-size:clamp(8px,1.15cqw,12px);font-weight:700;letter-spacing:.12em;text-decoration:none;transition:transform .25s}
.shop-btn:hover{transform:translateX(4px)}
.shop-btn span{font-size:1.2em}
@media(max-width:600px){.card{width:94vw;aspect-ratio:4/5}.info-left{top:20%}.shop-btn{margin-top:12px;padding:9px 14px;font-size:10px}.card-nav{gap:2.5cqw}.card-nav a{font-size:8px}.info-right{width:23%;right:4%}.arrows{left:auto;right:5%}}
