/* ═══════════════════════════════════════════════════════
   GIUNA PREMIUM MOTION — restrained, purposeful animation
   (all motion disabled under prefers-reduced-motion)
═══════════════════════════════════════════════════════ */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* ───────── Scroll progress ───────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 400; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #9aa1e0); pointer-events: none; }

/* ───────── Reveal on scroll ───────── */
.js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .rv.in { opacity: 1; transform: none; will-change: auto; }

/* ───────── Split headline ───────── */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split-word > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.split-in .split-word > span { transform: none; }

/* ───────── Cards: still hit-box, soft shadow + gentle image zoom (no cursor tracking) ───────── */
.product-card, .cat-showcase, .hero-tile { transform: none !important; transition: border-color 0.25s var(--ease), box-shadow 0.35s var(--ease-out) !important; }
.product-card:hover, .cat-showcase:hover, .hero-tile:hover { transform: none !important; box-shadow: 0 16px 34px -16px rgba(61, 21, 21, 0.3); border-color: var(--accent); }
.product-visual img, .cat-showcase-visual img, .hero-tile-visual img { transition: transform 0.6s var(--ease-out) !important; }
.product-card:hover .product-visual img, .cat-showcase:hover .cat-showcase-visual img, .hero-tile:hover .hero-tile-visual img { transform: scale(1.04); }
/* ───────── Magnetic buttons ───────── */
.magnetic { will-change: transform; transition: transform 0.35s var(--ease-out); }
.magnetic.is-magnet { transition: transform 0.12s linear; }

/* ───────── Hero promo card (premium) ───────── */
.hero-promo { min-height: 540px; background: radial-gradient(120% 90% at 100% 0%, #4a2340 0%, #2b0f14 45%, #150707 100%); box-shadow: 0 30px 60px -30px rgba(29, 8, 12, 0.7); transition: box-shadow 0.4s var(--ease-out) !important; transform: none !important; }
.hero-promo:hover { transform: none !important; box-shadow: 0 40px 70px -28px rgba(29, 8, 12, 0.85), 0 0 0 1px rgba(110, 118, 184, 0.5); }
.hero-promo::before { top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(110, 118, 184, 0.5) 0%, transparent 70%); animation: glow-drift 9s ease-in-out infinite alternate; z-index: 0; }
.hero-promo::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), rgba(255, 255, 255, 0.12), transparent 60%); }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 50px, 0) scale(1.25); } }
.hero-promo-media { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero-promo-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; opacity: 0.95; }
@keyframes float-y { from { translate: 0 -4px; } to { translate: 0 8px; } }
.hero-promo-badge, .hero-promo-body { position: relative; z-index: 3; }
.hero-promo-badge { background: linear-gradient(135deg, #7b83c6, #5b63a5); box-shadow: 0 6px 16px -6px rgba(110, 118, 184, 0.9); }
.hero-promo-body { margin-top: auto; padding-top: 220px; }
.hero-promo-body h2 { font-size: 34px; background: linear-gradient(180deg, #fff 30%, #d8d9ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-promo-body h2 .split-word > span { -webkit-text-fill-color: transparent; }
.hero-promo-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #7b83c6, #5b63a5); box-shadow: 0 10px 24px -10px rgba(110, 118, 184, 0.9); }
.hero-promo-cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }

/* ───────── Promo code button ───────── */
/* Black Friday (2026-11-14, Adam) : noir/or assorti au bandeau + à la cloche, plus le rouge
   d'origine — le fondu "banner-flow" + le reflet diagonal restent, juste recolorés. */
.hero-new-client { position: relative; overflow: hidden; background: linear-gradient(120deg, #000 0%, #1a1a1a 50%, #000 100%); background-size: 200% 100%; animation: banner-flow 9s linear infinite; }
@keyframes banner-flow { to { background-position: -200% 0; } }
.hero-new-client::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,217,138,0.35), transparent); animation: hnc-shine 3.6s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes hnc-shine { 0% { left: -40%; } 55% { left: 130%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .hero-new-client, .hero-new-client::after { animation: none !important; } }
.code-copy { display: inline-flex; align-items: center; gap: 10px; margin-left: 4px; padding: 5px 6px 5px 12px; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; letter-spacing: 0.08em; border: 1.5px dashed rgba(61, 21, 21, 0.35); cursor: pointer; position: relative; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.2s; }
.code-copy:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); border-color: var(--ink); }
.code-copy:active { transform: scale(0.97); }
.code-copy .cc-action { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.3s; min-width: 84px; justify-content: center; }
.code-copy .cc-action svg { width: 13px; height: 13px; }
.code-copy .cc-check { display: none; }
.code-copy.copied { border-style: solid; border-color: #0A7C4A; }
.code-copy.copied .cc-action { background: #0A7C4A; }
.code-copy.copied .cc-copy { display: none; }
.code-copy.copied .cc-check { display: inline; }
.code-copy .cc-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.4s 0.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; z-index: 500; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: confetti 0.9s var(--ease-out) forwards; }
@keyframes confetti { to { transform: translate3d(var(--cx), var(--cy), 0) rotate(var(--cr)); opacity: 0; } }

/* ───────── Stats band (icons + count-up) ───────── */
.stats-band { background: linear-gradient(180deg, #f3f1ec, #ece9e2); padding: 64px 0; border-block: 1px solid var(--line); }
.stats-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
@media (max-width: 900px) { .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } .stats-inner .stat:last-child { grid-column: 1 / -1; } }
.stat svg { width: 54px; height: 54px; margin: 0 auto 14px; color: #3d1515; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out), color 0.3s; }
.stat:hover svg { transform: translateY(-4px) rotate(-4deg); color: var(--accent); }
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; color: #6b5a68; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { margin-top: 6px; font-size: 13.5px; color: var(--ink-mute); }

/* ───────── Scrollytelling ───────── */
.story-scroll { background: var(--paper); padding: 96px 0 40px; }
.ss-head { max-width: 760px; margin: 0 auto 24px; padding: 0 24px; text-align: center; }
.ss-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.ss-head p { color: var(--ink-mute); font-size: 15px; }
.ss-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.ss-stage { position: sticky; top: 96px; height: calc(100vh - 140px); max-height: 640px; display: grid; place-items: center; }
.ss-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #f4f3f1; box-shadow: 0 40px 80px -40px rgba(61, 21, 21, 0.45); transform: perspective(1200px) rotateY(calc((var(--p, 0) - 0.5) * -10deg)) rotateX(calc((var(--p, 0) - 0.5) * 4deg)); transition: transform 0.2s linear; }
.ss-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease-out); }
.ss-img.active { opacity: 1; transform: scale(1); }
.ss-count { position: absolute; left: 18px; bottom: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.ss-bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); width: calc(var(--p, 0) * 100%); z-index: 2; }
.ss-steps { padding: 6vh 0; }
.ss-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transform: translate3d(0, 10px, 0); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); }
.ss-step.active { opacity: 1; transform: none; }
.ss-step .ss-n { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 12px; }
.ss-step h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.ss-step p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 460px; }
.ss-step a { display: inline-flex; margin-top: 18px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) {
  .ss-inner { grid-template-columns: 1fr; gap: 0; }
  .ss-stage { position: sticky; top: 0; z-index: 5; height: auto; padding: 12px 0; background: var(--paper); }
  .ss-step { min-height: 46vh; }
}

/* ───────── Reviews marquee ───────── */
.reviews-marquee { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: marquee 80s linear infinite; }
.reviews-track.reverse { animation-direction: reverse; animation-duration: 95s; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
.reviews-track .review { flex: 0 0 360px; margin: 0; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ───────── Live order toasts ───────── */
.live-toast { position: fixed; left: 20px; bottom: 20px; z-index: 250; display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 12px 16px 12px 12px; border-radius: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.3); transform: translate3d(0, 30px, 0); opacity: 0; pointer-events: none; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.live-toast.show { transform: none; opacity: 1; pointer-events: auto; }
.live-toast img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper-warm); }
.live-toast b { display: block; font-size: 13.5px; line-height: 1.3; }
.live-toast small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-mute); }
.live-toast .lt-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; display: inline-block; margin-right: 6px; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (max-width: 600px) { .live-toast { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* Cart badge pop */
.cart-badge { transition: transform 0.3s var(--ease-out); }
@keyframes badge-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .split-word > span, .ss-step, .ss-img, .reviews-track, .hero-promo::before, .hero-promo-media img, .hero-promo-cta::after, .hero-new-client { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .reviews-track { overflow-x: auto; }
}

/* Category showcase: whole product visible, never zoomed */
.cat-showcase-visual { height: auto !important; aspect-ratio: 12 / 5; padding: 0 !important; overflow: hidden; background: #f7f7f6; display: block !important; }
.cat-showcase-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── Product grid: fixed card scale (images can no longer stretch the columns) ───────── */
.product-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 18px; }
.product-grid > .product-card { flex: 0 0 calc((100% - 4 * 18px) / 5); min-width: 0; }
@media (max-width: 1250px) { .product-grid > .product-card { flex-basis: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 980px) { .product-grid > .product-card { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 680px) { .product-grid { gap: 10px; } .product-grid > .product-card { flex-basis: calc((100% - 10px) / 2); } }
.product-card { min-width: 0; }
.product-visual { position: relative; min-width: 0; aspect-ratio: 4 / 3 !important; padding: 0 !important; overflow: hidden; }
.product-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-visual > svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; padding: 8%; }
.product-body { padding: 14px 14px 16px; }
@media (max-width: 480px) {
  .product-body { padding: 10px 10px 12px; gap: 5px; }
  .product-name { font-size: 13px; }
  .product-desc { display: none; }
  .product-foot { flex-wrap: wrap; gap: 8px; }
  .product-btn { padding: 8px 10px; font-size: 11px; }
}

/* ───────── Header search suggestions (all pages) ───────── */
.header-search { position: relative; }
.header-search .search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 400; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(61, 21, 21, 0.35); overflow: hidden; display: none; text-align: left; }
.header-search .search-suggest.open { display: block; animation: ss-in .18s ease-out; }
@keyframes ss-in { from { opacity: 0; transform: translateY(-4px); } }
.header-search .search-suggest a { position: static; display: flex; justify-content: space-between; align-items: center; gap: 14px; width: auto; padding: 11px 16px; font-size: 14.5px; line-height: 1.3; color: var(--ink); background: transparent; border-bottom: 1px solid #f0ece5; }
.header-search .search-suggest a:hover, .header-search .search-suggest a.active { background: var(--paper-warm, #FAF9F6); color: var(--ink); }
.header-search .search-suggest .ss-name { font-weight: 600; min-width: 0; }
.header-search .search-suggest small { font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #f4f1eb; }
.header-search .search-suggest mark { background: rgba(110, 118, 184, 0.22); color: inherit; border-radius: 2px; padding: 0 1px; font-weight: 800; }
.header-search .search-suggest .ss-foot { display: block; font-size: 13px; color: var(--accent); font-weight: 600; border-bottom: 0; background: #faf9f6; }
.header-search .search-suggest .empty { display: grid; gap: 4px; padding: 18px 16px; font-size: 13.5px; color: var(--ink-mute); }
.header-search .search-suggest .empty b { color: var(--ink); font-size: 15px; }
.header-search .search-suggest .empty a { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; margin-top: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
