/* Page vendeur. Tout est piloté par les variables --p-* calculées à partir du thème du vendeur. */
.shop-page {
  --p-muted: color-mix(in srgb, var(--p-text) 66%, transparent);
  --p-line: color-mix(in srgb, var(--p-text) 14%, transparent);
  --p-soft: color-mix(in srgb, var(--p-text) 8%, transparent);
  --p-btn-r: 999px;
  position: relative; isolation: isolate; min-height: var(--vh, 100dvh);
  color: var(--p-text); font-family: var(--p-font); font-size: 15px; line-height: 1.5; text-align: left;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.shop-page.sh-round { --p-btn-r: min(var(--p-radius), 14px); }
.shop-page.sh-square { --p-btn-r: 0px; }
.shop-page *, .shop-page *::before { box-sizing: border-box; }
.shop-page :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.shop-page .ic { flex: none; }

.sp-bg { position: sticky; top: 0; z-index: -1; height: var(--vh, 100dvh); margin-bottom: calc(-1 * var(--vh, 100dvh)); background: var(--p-bg); }
.bg-animated .sp-bg { background-size: 300% 300%; animation: sp-bg 16s ease infinite; }
@keyframes sp-bg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.sp-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 22px; }
.sp-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 28px; text-align: center; }
.al-left .sp-head { align-items: flex-start; text-align: left; }
.sp-banner { align-self: stretch; margin: -28px -16px 0; height: 150px; overflow: hidden; }
.sp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--p-accent); color: var(--p-on-accent); font: 700 38px var(--p-head); border: 3px solid var(--p-sheet);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.sp-avatar.over { margin-top: -52px; }
.sp-avatar.av-round { border-radius: 26px; }
.sp-avatar.av-square { border-radius: 6px; }
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-head h1 { margin: 6px 0 0; font: 700 clamp(24px, 6vw, 30px)/1.15 var(--p-head); letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sp-verified { color: var(--p-accent); display: inline-flex; }
.sp-tagline { margin: 0; color: var(--p-muted); font-size: 16px; text-wrap: balance; }
.sp-bio { margin: 4px 0 0; max-width: 46ch; text-wrap: pretty; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.al-left .sp-chips { justify-content: flex-start; }
.sp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--p-soft); font-size: 12.500px; font-weight: 600; }
.sp-actions { display: flex; gap: 8px; margin-top: 6px; }
.sp-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--p-line); border-radius: 999px; background: var(--p-card); font-weight: 600; font-size: 13px; }
.sp-icon.on { background: var(--p-accent); color: var(--p-on-accent); border-color: transparent; }
.sp-muted { color: var(--p-muted); margin: 0; }

.sp-block { position: relative; display: flex; flex-direction: column; gap: 10px; }
.anim .sp-block { animation: sp-in .5s both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes sp-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .anim .sp-block, .bg-animated .sp-bg { animation: none; } }
.sp-block.selected { outline: 2px dashed var(--p-accent); outline-offset: 6px; border-radius: 6px; }
.sp-block.is-hidden, .sp-prod.is-hidden { opacity: .45; }
.sp-title { margin: 0; font: 700 19px/1.2 var(--p-head); text-align: center; }
.al-left .sp-title { text-align: left; }
.sp-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 16px; }
.blur .sp-card, .blur .sp-icon, .blur .sp-prod { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sp-tag { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #0b0b0f; color: #fff; font: 600 11px/1.6 Inter, system-ui, sans-serif; }
.sp-tag.block { top: -10px; left: auto; right: 0; }

/* boutons */
.sp-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 18px; border-radius: var(--p-btn-r);
  border: 2px solid transparent; background: var(--p-accent); color: var(--p-on-accent); text-decoration: none; font-weight: 700;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.sp-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sp-btn:active { transform: translateY(0); }
.sp-btn:disabled { opacity: .5; pointer-events: none; }
.sp-btn-text { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: center; padding-right: 32px; }
.sp-btn-text small { font-weight: 500; opacity: .8; font-size: 12.500px; }
.sp-cta { justify-content: center; }
.bs-outline .sp-btn { background: transparent; color: var(--p-text); border-color: var(--p-accent); }
.bs-soft .sp-btn { background: color-mix(in srgb, var(--p-accent) 18%, transparent); color: var(--p-text); }
.bs-glass .sp-btn { background: color-mix(in srgb, var(--p-text) 10%, transparent); color: var(--p-text); border: 1px solid color-mix(in srgb, var(--p-text) 22%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bs-brutal .sp-btn { border-color: var(--p-text); box-shadow: 4px 4px 0 var(--p-text); }
.bs-brutal .sp-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--p-text); }
.bs-neon .sp-btn { background: transparent; color: var(--p-accent); border-color: var(--p-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--p-accent) 60%, transparent), inset 0 0 10px color-mix(in srgb, var(--p-accent) 25%, transparent); }
.sp-links { display: flex; flex-direction: column; gap: 10px; }
.sp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-social { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--p-card); border: 1px solid var(--p-line); transition: transform .15s; }
.sp-social:hover { transform: translateY(-3px); background: var(--p-accent); color: var(--p-on-accent); }

/* snap */
.sp-snap { display: flex; gap: 16px; align-items: center; }
.sp-qr { width: 104px; height: 104px; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.sp-snap-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.sp-snap-user { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; }
.sp-snap .sp-btn { min-height: 44px; margin-top: 4px; }

/* catalogue */
.sp-catalog { display: grid; gap: 10px; }
.sp-catalog.lay-grid { grid-template-columns: repeat(2, 1fr); }
.sp-catalog.lay-carousel { grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.sp-catalog.lay-carousel > * { scroll-snap-align: start; }
.sp-prod { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); transition: transform .15s; }
.sp-prod:hover { transform: translateY(-2px); }
.sp-prod-img { position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; background: var(--p-soft); overflow: hidden; }
.sp-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-prod-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.sp-prod-info b { font-weight: 700; line-height: 1.25; }
.sp-price { font-weight: 800; color: var(--p-text); }
.sp-price s { font-weight: 500; color: var(--p-muted); margin-right: 6px; }
.sp-price.big { font: 800 26px var(--p-head); }
.sp-desc { color: var(--p-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-stock { color: var(--p-muted); font-weight: 600; font-size: 12.500px; }
.sp-stock.low { color: var(--p-text); }
.sp-stock.low::before { content: "● "; color: #f59e0b; }
.sp-prod.out .sp-prod-img img { filter: grayscale(1); opacity: .6; }
.sp-badge { position: absolute; bottom: 6px; left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font-size: 11.500px; font-weight: 700; }
.sp-catalog.lay-list .sp-prod, .sp-catalog.lay-feature .sp-prod { flex-direction: row; align-items: stretch; }
.sp-catalog.lay-list .sp-prod-img { width: 92px; flex: none; }
.sp-catalog.lay-list .sp-prod-info, .sp-catalog.lay-feature .sp-prod-info { justify-content: center; flex: 1; }
.sp-catalog.lay-feature .sp-prod-img { width: 44%; flex: none; }
.sp-catalog.lay-feature .sp-prod-info b { font: 700 19px var(--p-head); }
.sp-prod.locked .sp-prod-img { background: repeating-linear-gradient(45deg, var(--p-soft) 0 10px, transparent 10px 20px); }
.sp-locked { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 26px 16px; border-style: dashed; background: repeating-linear-gradient(45deg, var(--p-soft) 0 12px, transparent 12px 24px); }

/* texte, galerie, promo */
.sp-text p { margin: 0 0 .7em; text-wrap: pretty; }
.sp-text p:last-child { margin: 0; }
.sp-text.ta-center { text-align: center; }
.sp-text.sz-s { font-size: 13.500px; } .sp-text.sz-l { font-size: 18px; }
.sp-gallery { display: grid; gap: 6px; }
.sp-gallery button { padding: 0; border: 0; background: var(--p-soft); border-radius: calc(var(--p-radius) * .6); overflow: hidden; }
.sp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
.sp-gallery.lay-grid { grid-template-columns: repeat(3, 1fr); }
.sp-gallery.lay-stack img { aspect-ratio: auto; }
.sp-gallery.lay-carousel { grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sp-gallery.lay-carousel > * { scroll-snap-align: center; }
.sp-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 14px 16px; border-radius: var(--p-radius); background: var(--p-accent); color: var(--p-on-accent); text-align: center; }
.sp-promo button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1.500px dashed currentColor; background: transparent; font: 700 13px ui-monospace, monospace; letter-spacing: .04em; }
.sp-promo.st-outline { background: transparent; color: var(--p-text); border: 2px solid var(--p-accent); }
.sp-promo.st-stripes { background: repeating-linear-gradient(-45deg, var(--p-accent) 0 14px, color-mix(in srgb, var(--p-accent) 82%, #000) 14px 28px); }

/* zone, horaires, FAQ, compte à rebours, vidéo */
.sp-zone { display: flex; flex-direction: column; gap: 10px; }
.sp-zone-modes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.sp-zone-modes span { display: inline-flex; align-items: center; gap: 6px; }
.sp-zone .sp-chips { justify-content: flex-start; }
.sp-hours table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.sp-hours td { padding: 5px 0; border-bottom: 1px solid var(--p-line); }
.sp-hours td:last-child { text-align: right; color: var(--p-muted); }
.sp-hours tr.today td { font-weight: 700; color: var(--p-text); }
.sp-hours p { margin-top: 10px; font-size: 13px; }
.sp-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sp-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-muted); }
.sp-open.on::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.sp-faq { display: flex; flex-direction: column; gap: 8px; }
.sp-faq details { padding: 0; }
.sp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq details[open] summary .ic { transform: rotate(180deg); }
.sp-faq details > div { padding: 0 16px 14px; color: var(--p-muted); }
.sp-faq details p { margin: 0 0 .5em; }
.sp-count { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.sp-count-label { font-weight: 600; color: var(--p-muted); }
.sp-count-row { display: flex; justify-content: center; gap: 10px; }
.sp-count-row div { display: flex; flex-direction: column; min-width: 62px; padding: 10px 6px; border-radius: calc(var(--p-radius) * .7); background: var(--p-soft); }
.sp-count-row b { font: 700 28px/1 var(--p-head); font-variant-numeric: tabular-nums; }
.sp-count-row small { font-size: 11px; color: var(--p-muted); margin-top: 4px; }
.sp-count.done { font: 700 20px var(--p-head); }
.sp-video { margin: 0; }
.sp-video video { width: 100%; border-radius: var(--p-radius); display: block; background: #000; }
.sp-video figcaption { margin-top: 6px; text-align: center; font-size: 13px; }
.sp-divider.st-line { border-top: 1px solid var(--p-line); margin-top: 12px; }
.sp-divider.st-dots { background: radial-gradient(circle, var(--p-muted) 2px, transparent 2.500px) center / 18px 6px repeat-x; background-size: 18px 6px; background-position: center; }

/* formulaires, avis */
.sp-form { display: flex; flex-direction: column; gap: 10px; }
.sp-input { width: 100%; padding: 12px 14px; border-radius: min(var(--p-radius), 14px); border: 1.500px solid var(--p-line); background: var(--p-soft); color: var(--p-text); font: inherit; resize: vertical; }
.sp-input::placeholder { color: var(--p-muted); }
.sp-input:focus { outline: none; border-color: var(--p-accent); }
.sp-code { text-align: center; font: 700 20px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.sp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--p-muted); cursor: pointer; }
.sp-check input { margin-top: 3px; accent-color: var(--p-accent); width: 16px; height: 16px; flex: none; }
.sp-err { display: flex; align-items: center; gap: 6px; margin: 0; color: #ef4444; font-weight: 600; font-size: 13.500px; }
.sp-done { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px; }
.sp-reviews { display: flex; flex-direction: column; gap: 8px; }
.sp-stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.sp-stars i { font-style: normal; color: var(--p-line); }
.sp-rev-avg { display: flex; align-items: center; gap: 14px; }
.sp-rev-avg > b { font: 800 34px/1 var(--p-head); }
.sp-rev-avg div { display: flex; flex-direction: column; }
.sp-rev-avg small { color: var(--p-muted); }
.sp-rev-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-rev-top small { margin-left: auto; color: var(--p-muted); }
.sp-rev p { margin: 6px 0 0; }
.sp-rev-reply { padding: 8px 12px; border-left: 3px solid var(--p-accent); background: var(--p-soft); border-radius: 0 8px 8px 0; font-size: 13.500px; }
.sp-rev-reply b { display: block; font-size: 12px; }
.sp-rate { display: flex; gap: 2px; }
.sp-rate button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--p-line); padding: 0 2px; }
.sp-rate button.on { color: #f5a623; }

/* pied, page privée */
.sp-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.sp-foot-link { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px; color: var(--p-muted); font-size: 12.500px; text-decoration: underline; text-underline-offset: 3px; }
.sp-brand { padding: 8px 16px; border-radius: 999px; background: var(--p-card); border: 1px solid var(--p-line); text-decoration: none; font-size: 13px; }
.sp-gate { min-height: var(--vh, 100dvh); justify-content: center; align-items: center; text-align: center; gap: 12px; padding-top: 40px; }
.sp-gate h1 { margin: 0; font: 700 26px var(--p-head); }
.sp-gate .sp-card { width: 100%; max-width: 380px; text-align: left; }
.sp-lock-big { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); }

/* panneaux par-dessus la page */
.sp-sheet-back { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); animation: sp-fade .2s; }
.sp-sheet { width: 100%; max-width: 520px; max-height: 90%; overflow-y: auto; background: var(--p-sheet); color: var(--p-text); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); animation: sp-up .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 640px) { .sp-sheet-back { align-items: center; } .sp-sheet { border-radius: 22px; } }
.sp-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--p-sheet); font: 700 18px var(--p-head); }
.sp-sheet-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 22px; }
.sp-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; padding: 0 16px 12px; scrollbar-width: none; }
.sp-slides img { width: 100%; flex: none; aspect-ratio: 1; object-fit: cover; border-radius: 16px; scroll-snap-align: center; }
.sp-slides img:not(:only-child) { width: 88%; }
.sp-zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .9); padding: 16px; cursor: zoom-out; animation: sp-fade .2s; }
.sp-zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- finitions v2 : relief, mouvement, barre flottante ---------- */
.sp-wrap { padding-bottom: 120px; gap: 26px; }
.sp-banner { border-radius: 0 0 30px 30px; height: 170px; }
.sp-banner img { transform: scale(1.04); }
.sp-avatar { width: 104px; height: 104px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--p-accent) 28%, transparent), 0 18px 44px -10px color-mix(in srgb, var(--p-accent) 60%, transparent); }
.sp-avatar.over { margin-top: -58px; }
.sp-head h1 { font-size: clamp(27px, 7vw, 36px); letter-spacing: -.025em; }
.sp-chip { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sp-icon { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s; }
.sp-icon:hover { transform: translateY(-2px) scale(1.05); }
.sp-icon:active { transform: scale(.92); }
.sp-title { font-size: 21px; letter-spacing: -.02em; }
.anim .sp-block { animation: sp-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.anim .sp-head { animation: sp-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sp-in { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(4px); } }
.sp-card, .sp-prod { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45); }
.sp-prod { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.sp-prod:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .55); }
.sp-prod-img img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.sp-prod:hover .sp-prod-img img { transform: scale(1.07); }
.sp-btn { position: relative; overflow: hidden; box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--p-accent) 80%, transparent); }
.sp-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.sp-btn:hover::after { transform: translateX(120%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.bs-brutal .sp-btn { overflow: visible; } .bs-brutal .sp-btn::after { display: none; }
.sp-social:hover { transform: translateY(-4px) rotate(-6deg); }
.sp-promo { box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--p-accent) 90%, transparent); }
.sp-locked, .sp-prod.locked .sp-prod-img { position: relative; overflow: hidden; }
.sp-locked::after, .sp-prod.locked .sp-prod-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--p-text) 14%, transparent) 50%, transparent 60%); animation: sp-sweep 3.2s ease-in-out infinite; }
@keyframes sp-sweep { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.sp-count-row div { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--p-text) 10%, transparent); }
.sp-brand { transition: transform .2s; } .sp-brand:hover { transform: translateY(-2px); }
/* barre flottante */
.sp-dock { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; width: min(calc(100% - 24px), 520px); padding: 8px 8px 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--p-sheet) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--p-line); box-shadow: 0 18px 44px -10px rgba(0, 0, 0, .5); transform: translate(-50%, 140%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.sp-dock.on { transform: translate(-50%, 0); opacity: 1; }
.sp-dock-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sp-dock-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dock .sp-avatar { width: 40px; height: 40px; font-size: 17px; border-width: 0; box-shadow: none; margin: 0; }
.sp-dock .sp-btn { width: auto; min-height: 46px; padding: 0 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .anim .sp-block, .anim .sp-head, .sp-locked::after, .sp-prod.locked .sp-prod-img::after { animation: none; } }

/* ---------- partage avec QR code, cœur animé ---------- */
.sp-share { align-items: center; text-align: center; }
.sp-share-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 20px; border-radius: var(--p-radius); background: var(--p-card); border: 1px solid var(--p-line); }
.sp-share-card img { width: 190px; height: 190px; padding: 10px; background: #fff; border-radius: 20px; }
.sp-share-card b { font: 700 20px var(--p-head); margin-top: 8px; } .sp-share-card span { color: var(--p-muted); font-size: 13px; }
.sp-alt.sp-btn { background: transparent; color: var(--p-text); border-color: var(--p-line); box-shadow: none; }
.sp-icon.on .ic { animation: sp-heart .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes sp-heart { 40% { transform: scale(1.5); } }

/* ================= v5 : effets de titre, tour de la photo, styles d'apparition, effets de fond ================= */
/* titre de la page */
.tf-gradient :is(.sp-head, .sp-gate) > h1 { background: linear-gradient(100deg, var(--p-text) 8%, var(--p-accent) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tf-glow :is(.sp-head, .sp-gate) > h1 { text-shadow: 0 0 14px color-mix(in srgb, var(--p-accent) 85%, transparent), 0 0 46px color-mix(in srgb, var(--p-accent) 60%, transparent); }
.tf-outline :is(.sp-head, .sp-gate) > h1 { color: transparent; -webkit-text-stroke: 1.4px var(--p-text); text-shadow: 3px 3px 0 var(--p-accent); letter-spacing: .01em; }

/* tour de la photo de profil */
@property --p-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ar-none :is(.sp-head, .sp-gate) > .sp-avatar { box-shadow: none; }
.ar-ring :is(.sp-head, .sp-gate) > .sp-avatar { box-shadow: 0 0 0 3px var(--p-accent); }
:is(.ar-gradient, .ar-story) :is(.sp-head, .sp-gate) > .sp-avatar { border: 4px solid transparent; box-shadow: 0 16px 38px -14px color-mix(in srgb, var(--p-accent) 75%, transparent);
  background: linear-gradient(var(--p-accent), var(--p-accent)) padding-box, conic-gradient(from var(--p-ang), var(--p-accent), var(--p-text), color-mix(in srgb, var(--p-accent) 45%, var(--p-text)), var(--p-accent)) border-box; }
:is(.ar-gradient, .ar-story) :is(.sp-head, .sp-gate) > .sp-avatar img { border: 3px solid var(--p-sheet); border-radius: inherit; }
.ar-story :is(.sp-head, .sp-gate) > .sp-avatar { animation: sp-ring 5s linear infinite; }
@keyframes sp-ring { to { --p-ang: 360deg; } }

/* styles d'apparition des blocs */
.anim.en-fade .sp-block, .anim.en-fade .sp-head { animation-name: sp-in-fade; }
.anim.en-zoom .sp-block, .anim.en-zoom .sp-head { animation-name: sp-in-zoom; }
.anim.en-slide .sp-block, .anim.en-slide .sp-head { animation-name: sp-in-slide; }
@keyframes sp-in-fade { from { opacity: 0; } }
@keyframes sp-in-zoom { from { opacity: 0; transform: scale(.84); } }
@keyframes sp-in-slide { from { opacity: 0; transform: translateX(-38px); } }

/* effets de fond : un calque fixe derrière le contenu */
.sp-fx { position: sticky; top: 0; z-index: -1; height: var(--vh, 100dvh); margin-bottom: calc(-1 * var(--vh, 100dvh)); pointer-events: none; overflow: hidden; }
.sp-fx::before, .sp-fx::after { content: ""; position: absolute; inset: 0; }
.fx-sparkles::before, .fx-sparkles::after { background-size: 260px 260px; animation: sp-twinkle 3.2s ease-in-out infinite alternate;
  background-image: radial-gradient(circle at 12% 18%, var(--p-text) 0 1.3px, transparent 1.9px), radial-gradient(circle at 34% 62%, var(--p-accent) 0 1.6px, transparent 2.2px), radial-gradient(circle at 58% 28%, var(--p-text) 0 1px, transparent 1.6px), radial-gradient(circle at 78% 74%, var(--p-accent) 0 1.2px, transparent 1.8px), radial-gradient(circle at 90% 12%, var(--p-text) 0 1.5px, transparent 2.1px), radial-gradient(circle at 22% 88%, var(--p-text) 0 .9px, transparent 1.5px); }
.fx-sparkles::after { background-size: 340px 340px; background-position: 130px 90px; animation-duration: 4.6s; animation-delay: -1.8s; }
@keyframes sp-twinkle { from { opacity: .12; } to { opacity: .95; } }
.fx-bubbles::before, .fx-bubbles::after { --tile: 420px; inset: 0 0 calc(-1 * var(--tile)) 0; background-size: 100% var(--tile); animation: sp-rise 20s linear infinite;
  background-image: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--p-accent) 40%, transparent) 0 14px, transparent 15px), radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--p-text) 16%, transparent) 0 22px, transparent 23px), radial-gradient(circle at 44% 58%, color-mix(in srgb, var(--p-accent) 26%, transparent) 0 9px, transparent 10px), radial-gradient(circle at 86% 82%, color-mix(in srgb, var(--p-text) 12%, transparent) 0 16px, transparent 17px); }
.fx-bubbles::after { --tile: 560px; background-position: 46px 0; animation-duration: 31s; opacity: .7; }
@keyframes sp-rise { to { transform: translateY(calc(-1 * var(--tile))); } }
.fx-aurora::before, .fx-aurora::after { inset: auto; width: min(78%, 400px); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); }
.fx-aurora::before { left: max(-22%, calc(50% - 430px)); top: 4%; background: var(--p-accent); opacity: .26; animation: sp-drift 14s ease-in-out infinite alternate; }
.fx-aurora::after { right: max(-26%, calc(50% - 450px)); bottom: 2%; background: color-mix(in srgb, var(--p-accent) 45%, var(--p-text)); opacity: .17; animation: sp-drift 19s ease-in-out infinite alternate-reverse; }
@keyframes sp-drift { to { transform: translate(24%, 18%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .sp-fx::before, .sp-fx::after, .ar-story :is(.sp-head, .sp-gate) > .sp-avatar { animation: none; } }

/* ================= v9 : couverture proportionnée, styles d'en-tête, cadres de blocs, nouveaux blocs ================= */
/* la couverture suit la largeur de la page au lieu d'une hauteur fixe, et la photo de profil passe toujours devant */
.sp-banner { height: auto; aspect-ratio: 5 / 2; max-height: 190px; }
.sp-avatar { position: relative; z-index: 1; }
.shop-page { overflow-x: clip; }

/* en-tête « Couverture » : une grande image qui se fond dans la page */
.hd-cover .sp-banner { aspect-ratio: 1 / 1; max-height: 420px; border-radius: 0; margin-bottom: -120px; -webkit-mask-image: linear-gradient(#000 48%, transparent 97%); mask-image: linear-gradient(#000 48%, transparent 97%); }
.hd-cover .sp-avatar.over { margin-top: 0; }
/* en-tête « Côte à côte » : photo à gauche, nom à droite */
.hd-split .sp-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; justify-items: start; text-align: left; }
.hd-split .sp-banner { grid-column: 1 / -1; justify-self: stretch; }
.hd-split .sp-avatar { grid-row: span 2; width: 84px; height: 84px; font-size: 32px; }
.hd-split .sp-avatar.over { margin-top: -30px; }
.hd-split .sp-head h1 { margin: 0; justify-content: flex-start; align-self: end; }
.hd-split .sp-tagline { align-self: start; }
.hd-split .sp-chips, .hd-split .sp-bio, .hd-split .sp-actions { grid-column: 1 / -1; justify-content: flex-start; }
/* en-tête « Épuré » : sans couverture, photo plus petite */
.hd-minimal .sp-banner { display: none; }
.hd-minimal .sp-head { padding-top: 40px; }
.hd-minimal .sp-avatar, .hd-minimal .sp-avatar.over { width: 72px; height: 72px; margin-top: 0; font-size: 28px; }

/* style des cartes */
.cs-border .sp-card { border: 1.5px solid color-mix(in srgb, var(--p-text) 26%, transparent); }
.cs-shadow .sp-card { border-color: transparent; box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .55); }
/* cadre d'un bloc */
.sp-block.lk-card, .sp-block.lk-accent, .sp-block.lk-outline { padding: 18px 16px; border-radius: calc(var(--p-radius) + 6px); }
.sp-block.lk-card { background: var(--p-card); border: 1px solid var(--p-line); }
.sp-block.lk-accent { background: color-mix(in srgb, var(--p-accent) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--p-accent) 55%, transparent); }
.sp-block.lk-outline { border: 1.5px dashed color-mix(in srgb, var(--p-text) 34%, transparent); }

/* bandeau défilant */
.sp-marquee { overflow: hidden; margin: 0 -16px; padding: 12px 0; background: var(--p-accent); color: var(--p-on-accent); font: 700 16px var(--p-head); white-space: nowrap; }
.sp-marquee > div { display: inline-flex; animation: sp-marquee 26s linear infinite; }
.sp-marquee span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; }
.sp-marquee i { font-style: normal; opacity: .6; }
.sp-marquee.st-outline { background: transparent; color: var(--p-text); border-block: 1.5px solid var(--p-accent); }
.sp-marquee.st-plain { background: transparent; color: var(--p-text); opacity: .85; }
.sp-marquee.sz-s { padding: 8px 0; font-size: 13px; } .sp-marquee.sz-l { padding: 14px 0; font-size: 24px; }
@keyframes sp-marquee { to { transform: translateX(-50%); } }
.sp-block[class*="lk-"] .sp-marquee { margin: 0; border-radius: 12px; }

/* tarifs */
.sp-prices { display: flex; flex-direction: column; gap: 14px; }
.sp-prices > div { display: flex; align-items: baseline; gap: 10px; }
.sp-prices span { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.sp-prices small { color: var(--p-muted); font-size: 13px; }
.sp-prices i { flex: 1; min-width: 14px; border-bottom: 2px dotted color-mix(in srgb, var(--p-text) 30%, transparent); translate: 0 -4px; }
.sp-prices em { padding: 3px 11px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font: 700 15px var(--p-head); white-space: nowrap; }

/* étapes */
.sp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; text-align: left; }
.sp-steps li:last-child { padding-bottom: 0; }
.sp-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--p-accent) 50%, transparent); }
.sp-steps b { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: var(--p-on-accent); font: 700 15px var(--p-head); }
.sp-steps div { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.sp-steps strong { font-family: var(--p-head); }
.sp-steps span { color: var(--p-muted); font-size: 14px; }

/* chiffres clés */
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.sp-stats .sp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; text-align: center; }
.sp-stats b { font: 700 clamp(22px, 7cqw, 32px)/1 var(--p-head); letter-spacing: -.03em; }
.sp-stats span { color: var(--p-muted); font-size: 12.5px; }

/* citation */
.sp-quote { position: relative; margin: 0; padding: 30px 20px 18px; text-align: left; }
.sp-quote::before { content: "“"; position: absolute; top: -4px; left: 14px; font: 700 64px/1 Georgia, serif; color: var(--p-accent); }
.sp-quote blockquote { margin: 0; font: 600 18px/1.4 var(--p-head); white-space: pre-line; }
.sp-quote figcaption { margin-top: 10px; color: var(--p-muted); font-size: 14px; }
.sp-quote figcaption::before { content: "— "; }

/* gros bouton */
.sp-btn.sp-big { min-height: 74px; padding: 14px 20px; justify-content: space-between; text-align: left; font-size: 18px; text-decoration: none; }
.sp-big > span { display: flex; flex-direction: column; min-width: 0; }
.sp-big small { font-weight: 500; font-size: 13px; opacity: .8; }
.sp-big.st-outline { background: transparent; color: var(--p-text); border: 2px solid var(--p-accent); box-shadow: none; }
.sp-big.st-glow { animation: sp-glow 2.2s ease-in-out infinite; }
@keyframes sp-glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--p-accent) 22%, transparent), 0 18px 40px -12px var(--p-accent); } }

/* affiche */
.sp-poster { position: relative; display: block; overflow: hidden; border-radius: var(--p-radius); aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.sp-poster.lay-square { aspect-ratio: 1; } .sp-poster.lay-tall { aspect-ratio: 4 / 5; }
.sp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
a.sp-poster:hover img { transform: scale(1.05); }
.sp-poster span { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); font: 700 18px var(--p-head); text-align: left; }

/* avant / après */
.sp-compare { --x: 50%; position: relative; aspect-ratio: 4 / 5; max-height: 460px; overflow: hidden; border-radius: var(--p-radius); touch-action: pan-y; }
.sp-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-compare img.top { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.sp-compare .lab { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; }
.sp-compare .lab.l { left: 12px; } .sp-compare .lab.r { right: 12px; }
.sp-compare .bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; background: #fff; translate: -50%; box-shadow: 0 0 12px rgba(0, 0, 0, .5); }
.sp-compare .bar u { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.sp-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* bulles « à la une » */
.sp-stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; justify-content: safe center; }
.sp-stories button { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sp-stories span { width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: conic-gradient(var(--p-accent), var(--p-text), var(--p-accent)); transition: transform .3s; }
.sp-stories button:hover span { transform: scale(1.06); }
.sp-stories img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 3px solid var(--p-sheet); }
.sp-stories small { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .sp-marquee > div, .sp-big.st-glow { animation: none; } }
