/* Rhuwa Paint, feuille de style commune aux 5 pages */

html, body { margin: 0; padding: 0; background: #140a1c; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.mk3 {
  --bg: #140a1c;
  --card: rgba(255,255,255,.045);
  --card-2: rgba(255,255,255,.085);
  --ink: #f5eef8;
  --muted: #b3a4c2;
  --magenta: #b8307a;
  --magenta-hi: #d2489a;
  --mg: 228, 70, 158;
  --lavender: #b39dff;
  --blue: #8fb8ff;
  --coral: #f07f86;
  --r: 2px;
  --magenta-soft: #ec7bb8;
  --font-head: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  --font-body: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --wrap: 1240px;
  --back: cubic-bezier(.34,1.56,.64,1);
  --out: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}
:where(.mk3) *, :where(.mk3) *::before, :where(.mk3) *::after { box-sizing: border-box; }
:where(.mk3) a { text-decoration: none; color: inherit; }
:where(.mk3) button { font: inherit; border: none; background: none; color: inherit; padding: 0; margin: 0; cursor: pointer; }
.mk3 h1, .mk3 h2, .mk3 h3, .logo-word, .fiche-name, .pcard-name, .gcard-name { font-family: var(--font-head); }
.mk3 ::selection { background: rgba(var(--mg), .45); color: #fff; }

/* contenu utile centré, la navbar et le décor gardent toute la largeur */
.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

/* ---------- décor : grain de toile et vrais coups de pinceau secs (canvas) ---------- */
.decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pstroke { position: absolute; display: block; will-change: transform; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.brush-sep { position: relative; z-index: 1; width: 100%; height: 70px; }
.brush-sep canvas { display: block; width: 100%; height: 100%; clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--out); }
.brush-sep.in canvas { clip-path: inset(0 0 0 0); }

/* ---------- transition entre les pages : discrète ---------- */
main, .footer { transition: opacity .55s ease, transform .7s var(--out); }
html.arriving main, html.arriving .footer { opacity: 0; transform: translateY(14px); }
html.leaving main, html.leaving .footer { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .35s ease; }
.page-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--magenta), var(--lavender)); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
html.leaving .page-progress { transform: scaleX(1); transition: transform .5s var(--out); }

/* ---------- barre de navigation (pleine largeur) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px; padding: 0 48px;
  background: rgba(20,10,28,.66);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.045);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 32px; height: 32px; }
.logo-word { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

.nav { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px; }
.nav-drop { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.nav a { position: relative; z-index: 1; display: inline-block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav.has-drop:hover a.is-active:not(:hover) { color: var(--muted); }
.nav:not(.has-drop) a.is-active { background: var(--card-2); border-radius: var(--r); }

.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent;
  transition: color .25s, background .25s, transform .35s var(--back);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--ink); background: var(--card-2); transform: rotate(-3deg); }
.cart-count[hidden] { display: none; }
.cart-count { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: var(--r); background: var(--magenta); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- boutons : taille propre, tilt fixe au survol, remplissage pinceau ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex: 0 0 auto; width: auto; align-self: flex-start;
  padding: 14px 26px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--back), box-shadow .35s;
}
.btn:hover { transform: rotate(-2.5deg); }
.btn-ghost:hover { transform: rotate(2.5deg); }
.btn-primary { background: var(--magenta); color: #fff5fa; box-shadow: 0 12px 28px -14px rgba(var(--mg), .8); --fill: #d64d9d; }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(var(--mg), .85); }
.btn-ghost { background: var(--card-2); color: var(--ink); --fill: rgba(184,48,122,.55); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.fiche-foot .btn, .buy-row .btn, .cta-row .btn { align-self: center; }
.btn .fill { position: absolute; top: -5px; bottom: -5px; left: -12px; right: -12px; z-index: -1; pointer-events: none; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--out); }
.btn .fill canvas { display: block; width: 100%; height: 100%; }
.btn-ghost .fill { opacity: .75; }
.btn-gold { background: rgba(214,170,86,.1); color: var(--ink); }
.btn svg.ic { width: 16px; height: 16px; }
.burst { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 50%; }

/* ---------- liseré magenta discret qui suit la souris (aucun reflet blanc) ---------- */
.rim { position: relative; }
.rim::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(175px circle at var(--gx,50%) var(--gy,50%), rgba(var(--mg), .85), rgba(var(--mg), .3) 48%, transparent 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: var(--rimo, 0); transition: opacity .25s;
}
.tilt { transform-style: preserve-3d; backface-visibility: hidden; transition: transform .6s var(--back), box-shadow .45s; }

/* ---------- textes communs ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lavender); }
.eyebrow::before { content: ""; width: 20px; height: 7px; background: var(--magenta-hi); border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
.page-head { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.page-head.center { align-items: center; text-align: center; }
.page-title { font-size: 38px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.page-intro { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 540px; margin: 0; }
.sec { padding-top: 72px; padding-bottom: 72px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head h2 { font-size: 30px; font-weight: 700; margin: 0; }
.sec-head p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.link-more { font-size: 13px; font-weight: 600; color: var(--lavender); display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .35s var(--back); }
.link-more:hover { color: #fff; transform: rotate(-2deg); }

/* ---------- accueil : hero ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 720px; padding-top: 36px; padding-bottom: 36px; }
.hero-text { flex: 0 1 520px; display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-size: 54px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .wi { display: inline-block; }
.hero-title .hl { position: relative; display: inline-block; white-space: nowrap; color: var(--magenta-soft); }
.hero-title .hl .stroke { position: absolute; left: -4px; right: -4px; bottom: -10px; width: calc(100% + 8px); height: 20px; overflow: visible; }
.hero-title .hl .stroke path { fill: none; stroke: var(--magenta); stroke-width: 6; stroke-linecap: round; opacity: .85; }
.hero-lead { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 460px; margin: 0; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.perks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.perk { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.perk i { width: 10px; height: 10px; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; background: var(--c, var(--magenta-hi)); }
.hint { margin: 0; font-size: 12px; color: rgba(179,164,194,.75); font-style: italic; }
.price { font-size: 14px; font-weight: 700; color: var(--magenta-soft); }

/* ---------- carrousel « À la une » (contenu et réglages venant du CMS) ---------- */
.carousel { position: relative; flex: 0 0 auto; width: 600px; height: 640px; outline: none; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.showcase-label { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.car-paint { position: absolute; left: -60px; right: -60px; top: 150px; height: 340px; pointer-events: none; }
.car-paint canvas { display: block; width: 100%; height: 100%; opacity: .5; }
.car-stage { position: absolute; left: 0; right: 0; top: 40px; bottom: 60px; cursor: grab; }
.car-stage.dragging { cursor: grabbing; }
.slide { position: absolute; left: 50%; top: 50%; width: 300px; height: 460px; margin: -230px 0 0 -150px; transform-origin: 50% 60%; }
.slide-card {
  --tone: #b8307a;
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r); background: #1d1129; box-shadow: 0 32px 64px -24px rgba(0,0,0,.85);
}
.slide.is-center .slide-card:hover { box-shadow: 0 32px 64px -24px rgba(0,0,0,.85), 0 0 40px -6px rgba(var(--mg), .4); }
.slide-media { position: relative; flex: 1 1 auto; min-height: 0; }
.slide-body { padding: 16px 18px 18px; }
.fiche-name { font-size: 18px; font-weight: 700; }
.fiche-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fiche-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; }
.slide:not(.is-center) a, .slide:not(.is-center) .btn { pointer-events: none; }
.arrow-btn { position: absolute; top: 50%; margin-top: -32px; z-index: 300; width: 44px; height: 44px; border-radius: var(--r); background: rgba(34,20,46,.9); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .3s, transform .35s var(--back); }
.arrow-btn:hover { background: rgba(var(--mg), .45); transform: rotate(-3deg); }
.arrow-l { left: 0; }
.arrow-r { right: 0; }
.car-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 300; }
.car-dot { position: relative; width: 22px; height: 4px; border-radius: 1px; background: var(--card-2); overflow: hidden; transition: width .5s var(--out); }
.car-dot i { position: absolute; inset: 0; background: var(--magenta-hi); transform: scaleX(0); transform-origin: left center; }
.car-dot.on { width: 46px; }
.car-dot.on i { animation: dotFill var(--dur, 6000ms) linear forwards; }
.carousel.static .car-dot.on i { animation: none; transform: scaleX(1); }
.carousel.paused .car-dot.on i { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }

/* ---------- images peintes au pinceau : noir et blanc, la couleur se révèle sous la souris ---------- */
.paintable { position: relative; width: 100%; height: 100%; overflow: hidden; background: #120c17; }
.paintable img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.9); user-select: none; -webkit-user-drag: none; }
.paintable canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- cartes portrait inclinées (galerie, boutique, vous aimerez aussi) ---------- */
.scatter { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 34px; padding: 6px 0 36px; }
.scatter.left { justify-content: flex-start; }
.slot { flex: 0 0 auto; transform: rotate(var(--rest, 0deg)); }
.scatter .slot:nth-child(even) { margin-top: 36px; }
.scatter.calm .slot:nth-child(even) { margin-top: 18px; }

.gcard, .pcard {
  --tone: #b8307a;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: #1d1129;
  box-shadow: 0 24px 46px -22px rgba(0,0,0,.85);
}
.gcard:hover, .pcard:hover { box-shadow: 0 30px 56px -22px rgba(0,0,0,.85), 0 0 36px -8px rgba(var(--mg), .38); }
.gcard { width: 216px; height: 288px; }
.gcard > .paintable { position: absolute; inset: 0; }
.gcard > .paintable::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(rgba(12,7,16,0), rgba(12,7,16,.88)); pointer-events: none; }
.pcard { width: 228px; }
.media { position: relative; overflow: hidden; }
.pcard .media { height: 270px; }
.gcard-foot { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.gcard-name { font-size: 14px; font-weight: 600; }
.gcard-num { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 8px; border-radius: var(--r); background: rgba(20,10,28,.78); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pinfo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.pcard-name { font-size: 15px; font-weight: 600; }
.pcard-meta { font-size: 11px; color: var(--muted); }
.pinfo .price { margin-top: 4px; font-size: 13px; }

/* vue liste de la boutique : cartes horizontales de taille fixe */
.scatter.list { flex-direction: column; align-items: flex-start; gap: 18px; }
.scatter.list .slot { transform: none !important; margin-top: 0 !important; }
.scatter.list .pcard { width: 560px; flex-direction: row; }
.scatter.list .pcard .media { width: 140px; height: 170px; flex: 0 0 auto; }
.scatter.list .pinfo { justify-content: center; padding: 16px 22px; }

/* ---------- boutique ---------- */
.search-bar { position: relative; width: 520px; max-width: 100%; }
.search-bar svg { position: absolute; left: 16px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--muted); }
.search-bar input { width: 100%; padding: 15px 18px 15px 44px; border: none; border-radius: var(--r); background: var(--card-2); color: var(--ink); font-family: var(--font-body); font-size: 14px; outline: none; transition: background .3s, box-shadow .3s; }
.search-bar input:focus { background: rgba(255,255,255,.11); box-shadow: inset 0 -2px 0 var(--magenta-hi); }
.search-bar input::placeholder { color: var(--muted); }
.shop { display: flex; align-items: flex-start; gap: 48px; padding-bottom: 80px; }
.cats { flex: 0 0 220px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.cats-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cats a { position: relative; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 12px 8px 0; font-size: 14px; color: var(--muted); transition: color .25s, transform .35s var(--back); }
.cats a::before { content: ""; width: 8px; height: 8px; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; background: var(--card-2); transition: background .3s, transform .4s var(--back); }
.cats a:hover { color: var(--ink); transform: translateX(4px); }
.cats a.is-active { color: var(--ink); }
.cats a.is-active::before { background: var(--magenta-hi); transform: scale(1.4); }
.shop-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--muted); }
.tools { display: flex; align-items: center; gap: 14px; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { width: 36px; height: 36px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background .25s, color .25s, transform .35s var(--back); }
.view-toggle button:hover { transform: rotate(-3deg); color: var(--ink); }
.view-toggle button.is-active { background: var(--card-2); color: var(--ink); }
.sort-select { appearance: none; -webkit-appearance: none; border: none; border-radius: var(--r); background: var(--card-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23b3a4c2'/></svg>") no-repeat right 14px center; color: var(--ink); padding: 10px 38px 10px 14px; font-family: var(--font-body); font-size: 13px; cursor: pointer; outline: none; }
.sort-select option { background: #1d1027; }
.empty { display: none; font-size: 14px; color: var(--muted); padding: 30px 0; }

/* ---------- fiche produit ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 32px; }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--magenta-soft); }
.crumb .current { color: var(--ink); }
.product { display: flex; align-items: flex-start; gap: 64px; padding: 32px 0 72px; flex-wrap: wrap; }
.gallery-col { flex: 0 0 auto; display: flex; flex-direction: column; gap: 16px; }
.media-panel {
  --tone: #b8307a;
  position: relative; width: 440px; height: 560px; border-radius: var(--r); overflow: hidden;
  background: #1d1129; box-shadow: 0 32px 64px -24px rgba(0,0,0,.8);
}
.media-panel:hover { box-shadow: 0 32px 64px -24px rgba(0,0,0,.8), 0 0 40px -6px rgba(var(--mg), .38); }
.media-panel .paintable { position: absolute; inset: 0; }
.thumbs { display: flex; gap: 12px; }
.thumb { width: 72px; height: 88px; border-radius: var(--r); overflow: hidden; background: #1d1129; transition: transform .35s var(--back); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transition: filter .45s; }
.thumb:hover { transform: rotate(-3deg); }
.thumb:hover img, .thumb.is-active img { filter: none; }
.info { flex: 0 1 460px; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.info-title { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0; }
.info .price { font-size: 22px; }
.info-desc { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.specs { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--card); }
.spec { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.spec span:first-child { color: var(--muted); }
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r); background: var(--card); padding: 5px; }
.qty button { width: 32px; height: 32px; border-radius: var(--r); background: var(--card-2); color: var(--ink); font-size: 15px; transition: background .25s, transform .35s var(--back); }
.qty button:hover { background: rgba(var(--mg), .35); transform: rotate(-4deg); }
.qty span { min-width: 30px; text-align: center; font-size: 14px; }

/* ---------- formulaires devis et contact ---------- */
.form-layout { display: flex; align-items: flex-start; gap: 64px; padding-bottom: 96px; flex-wrap: wrap; }
.form-panel { position: relative; width: 640px; max-width: 100%; flex: 0 0 auto; border-radius: var(--r); background: rgba(33,19,44,.94); padding: 40px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.75); }
.form-panel:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.75), 0 0 40px -10px rgba(var(--mg), .3); }
.row2 { display: flex; gap: 20px; }
.row2 .field { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: none; border-radius: var(--r); background: rgba(255,255,255,.055); color: var(--ink);
  padding: 13px 16px; font-family: var(--font-body); font-size: 14px; outline: none; resize: vertical;
  transition: background .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(179,164,194,.7); }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255,255,255,.09); box-shadow: inset 0 -2px 0 var(--magenta-hi); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: rgba(255,255,255,.055) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23b3a4c2'/></svg>") no-repeat right 16px center; }
.field select option { background: #1d1027; }
.side { width: 320px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.side h3 { font-size: 18px; font-weight: 600; margin: 0; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--r); background: var(--card-2); color: var(--magenta-soft); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step p { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.citem { display: flex; align-items: center; gap: 14px; }
.citem .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r); background: var(--card-2); color: var(--magenta-soft); display: flex; align-items: center; justify-content: center; }
.citem .ic svg { width: 17px; height: 17px; }
.citem small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.citem span { font-size: 14px; }

/* ---------- pied de page ---------- */
.footer { position: relative; z-index: 2; margin-top: auto; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 48px 48px 28px; }
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.fcol a { align-self: flex-start; font-size: 13px; color: var(--muted); transition: color .2s, transform .35s var(--back); }
.fcol a:hover { color: var(--magenta-soft); transform: translateX(3px); }
.fcol p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 280px; }
.fsocial { display: flex; gap: 6px; }
.fbottom { max-width: var(--wrap); margin: 0 auto; padding: 18px 48px 36px; font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.signature { position: relative; display: inline-flex; align-items: center; padding: 8px 16px; isolation: isolate; }
.sig-paint { position: absolute; left: -14px; right: -18px; top: -2px; bottom: -2px; z-index: -1; pointer-events: none; }
.sig-paint canvas { display: block; width: 100%; height: 100%; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--out); }
.signature:hover .sig-paint canvas, .signature:focus-visible .sig-paint canvas { clip-path: inset(0 0 0 0); }
.sig-text { font-size: 13px; font-weight: 500; letter-spacing: .01em; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); background: linear-gradient(90deg, #8ff5e0, #e3fff8, #cfc2ff, #a99bff, #8ff5e0); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sigFlow 7s linear infinite; }
.sig-text b { font-weight: 700; }
.signature:hover .sig-text { animation-duration: 2.4s; }
@keyframes sigFlow { to { background-position: 300% 0; } }
.slot, .gallery-col { position: relative; }
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 45; width: 44px; height: 44px; border-radius: var(--r); background: var(--magenta); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -12px rgba(var(--mg), .9); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .35s, transform .45s var(--back); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top.show:hover { transform: rotate(-4deg); }

.toast { position: fixed; left: 50%; bottom: 36px; z-index: 950; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; border-radius: var(--r); background: #22122f; color: var(--ink); font-size: 13px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.8); transition: opacity .35s, transform .45s var(--back); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- page signature (codée en dur, hors CMS), couleur teal ---------- */
.credits { position: relative; display: flex; justify-content: center; padding-top: 70px; padding-bottom: 110px; }
.credits-bg { position: absolute; inset: 0 -120px; z-index: 0; pointer-events: none; }
.credits-bg canvas { position: absolute; display: block; }
.credits-card { position: relative; z-index: 1; width: 700px; max-width: 100%; padding: 20px 0 10px; }
.credits-top { display: flex; align-items: center; gap: 30px; margin-bottom: 38px; }
.al-mono { position: relative; width: 116px; height: 116px; flex: 0 0 auto; }
.al-ring { position: absolute; inset: -16px; z-index: 2; pointer-events: none; }
.al-ring canvas { display: block; width: 100%; height: 100%; }
.al-mono img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 40px -6px rgba(46,196,182,.55); }
.eyebrow.teal { color: #5eead4; }
.eyebrow.teal::before { background: #2ec4b6; }
.credits-kicker { margin: 0; font-size: 15px; color: #d2c6df; letter-spacing: .02em; }
.credits-card p, .chip-txt { text-shadow: 0 0 2px rgba(20,10,28,.95), 0 1px 14px rgba(20,10,28,.95); }
.credits-name-wrap { position: relative; display: inline-block; margin: 10px 0 24px; }
.credits-paint { position: absolute; left: -38px; right: -50px; top: 10%; bottom: -12%; z-index: 0; }
.credits-paint canvas { display: block; width: 100%; height: 100%; opacity: .38; }
.credits-name { position: relative; z-index: 1; margin: 0; font-size: 70px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, #c9fff3 0%, #2ec4b6 35%, #9ff7e2 55%, #14908b 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tealShift 7s ease-in-out infinite alternate; }
@keyframes tealShift { to { background-position: 100% 0; } }
.credits-role { margin: 0 0 34px; font-size: 15px; line-height: 1.75; color: #d2c6df; max-width: 520px; }
.credits-links { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { gap: 14px; padding: 12px 18px 12px 12px; align-self: auto; }
.btn-teal { background: rgba(20,10,28,.45); color: var(--ink); }
.btn-teal .fill { opacity: .45; }
.chip-ic { width: 38px; height: 38px; border-radius: var(--r); background: rgba(46,196,182,.14); color: #5eead4; display: flex; align-items: center; justify-content: center; }
.chip-ic svg { width: 17px; height: 17px; }
.chip-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.chip-txt small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #c9bdd6; font-weight: 500; }
.chip-txt b { font-size: 14px; font-weight: 600; }
.chip em { font-style: normal; font-size: 11px; font-weight: 600; color: #5eead4; margin-left: 8px; letter-spacing: .04em; }
.credits-note { margin: 30px 0 0; font-size: 13px; color: #c9bdd6; font-style: italic; }

/* ---------- boutique en ligne : prix, éditions, options, panier ---------- */
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price-row { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-old { font-size: 12px; color: var(--muted); text-decoration-thickness: 1.5px; }
.price-row.big .price { font-size: 24px; }
.price-row.big .price-old { font-size: 16px; }
.badge-sale { left: auto; right: 12px; background: var(--magenta); color: #fff; }
.badge.is-out { background: rgba(60,50,70,.9); color: var(--muted); }
.chip-sale { align-self: center; padding: 4px 9px; border-radius: var(--r); background: var(--magenta); color: #fff; font-size: 12px; font-weight: 700; }
.edition-line { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink); }
.edition-bar { width: 260px; height: 5px; background: var(--card-2); border-radius: 1px; overflow: hidden; }
.edition-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--lavender)); }
.info-desc p { margin: 0 0 12px; }
.info-desc p:last-child { margin-bottom: 0; }
.options { display: flex; flex-direction: column; gap: 16px; }
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r); background: var(--card); color: var(--ink); font-size: 13px; transition: background .25s, transform .35s var(--back); }
.opt small { font-size: 11px; color: var(--muted); }
.opt:hover { background: var(--card-2); transform: rotate(-2deg); }
.opt.is-active { background: rgba(var(--mg), .3); }
.opt.is-active small { color: var(--ink); }
.sold-out { display: inline-flex; padding: 14px 22px; border-radius: var(--r); background: var(--card-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.ship-note { margin: 0; font-size: 12px; color: var(--muted); }
.qty button svg { width: 14px; height: 14px; }
.qty button { display: inline-flex; align-items: center; justify-content: center; }

.rp-select { position: relative; display: inline-block; min-width: 200px; }
.field .rp-select { display: block; width: 100%; }
.rp-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--r); background: var(--card-2); color: var(--ink); font-size: 13px; text-align: left; }
.field .rp-select-btn { padding: 13px 16px; font-size: 14px; background: rgba(255,255,255,.055); }
.rp-select-btn svg { width: 14px; height: 14px; color: var(--muted); transition: transform .3s; }
.rp-select.open .rp-select-btn svg { transform: rotate(180deg); }
.rp-select-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-direction: column; padding: 6px; border-radius: var(--r); background: #1f1230; box-shadow: 0 24px 50px -18px rgba(0,0,0,.85); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--out); }
.rp-select.open .rp-select-menu { opacity: 1; transform: none; pointer-events: auto; }
.rp-select-menu button { padding: 10px 12px; border-radius: var(--r); text-align: left; font-size: 13px; color: var(--ink); transition: background .2s; }
.rp-select-menu button:hover { background: rgba(var(--mg), .22); }
.rp-select-menu button.is-active { background: rgba(var(--mg), .35); }

.cart-layout { display: flex; align-items: flex-start; gap: 48px; padding-bottom: 96px; flex-wrap: wrap; }
.cart-items { flex: 0 1 620px; display: flex; flex-direction: column; gap: 14px; }
.cart-form { width: 460px; }
.form-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.cart-line { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: var(--r); background: #1d1129; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.cart-line .thumb-img { width: 84px; height: 104px; flex: 0 0 auto; overflow: hidden; border-radius: var(--r); }
.cart-line .thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line .cl-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line .cl-name { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.cart-line .cl-opts { font-size: 12px; color: var(--muted); }
.cart-line .cl-price { font-weight: 700; color: var(--magenta-soft); font-size: 14px; }
.cart-line .cl-remove { width: 36px; height: 36px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .25s, color .25s, transform .35s var(--back); }
.cart-line .cl-remove:hover { background: var(--card-2); color: var(--ink); transform: rotate(-4deg); }
.cart-line .cl-remove svg { width: 16px; height: 16px; }
.cart-line.is-off { opacity: .55; }
.cart-empty { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.cart-total strong { font-family: var(--font-head); font-size: 26px; color: var(--ink); }
.cart-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 0 110px; }
.order-number { font-size: 14px; color: var(--muted); margin: 0; }
.order-number strong { color: var(--ink); font-size: 18px; margin-left: 8px; }
a.citem { transition: transform .35s var(--back); align-self: flex-start; }
a.citem:hover { transform: translateX(4px); }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 -2px 0 #ff6b81; }

/* ---------- écrans plus étroits ---------- */
@media (max-width: 1120px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .carousel { align-self: center; }
  .cats { position: static; }
  .cart-form { width: 100%; max-width: 560px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; height: 68px; }
  .nav { display: none; }
  .wrap { padding: 0 16px; }
  .hero-title { font-size: 38px; }
  .carousel { width: 100%; max-width: 420px; height: 600px; }
  .shop { flex-direction: column; }
  .cats { flex-basis: auto; }
  .media-panel { width: 100%; max-width: 440px; height: 500px; }
  .row2 { flex-direction: column; }
  .form-panel { padding: 24px; }
  .footer-inner, .fbottom { padding-left: 16px; padding-right: 16px; }
  .scatter.list .pcard { width: 100%; max-width: 560px; }
  .credits-card { padding: 10px 0; }
  .credits-name { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk3 * { transition-duration: .01ms !important; }
  .brush-sep canvas { clip-path: none; }
}
.toast.bad { background: #3b1224; color: #ffd6e0; }
.arrow-btn svg, .to-top svg { width: 16px; height: 16px; }
.view-toggle button svg { width: 15px; height: 15px; }
.link-more svg { width: 14px; height: 14px; }
.cart-empty .link-more { font-size: 14px; }
.mk3 [hidden] { display: none !important; }

/* ---------- bandeau d'annonce, logo ---------- */
.announce { position: relative; z-index: 41; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; font-size: 12.5px; letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, rgba(var(--mg), .55), color-mix(in srgb, var(--lavender) 45%, transparent), color-mix(in srgb, var(--blue) 40%, transparent)); text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.announce a svg { width: 13px; height: 13px; transition: transform .3s var(--back); }
.announce a:hover svg { transform: translateX(3px); }
.brand-logo { display: block; width: auto; max-width: 180px; object-fit: contain; }
.fcompany { max-width: var(--wrap); margin: 0 auto; padding: 14px 48px 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* ---------- panier : livraison, paiement ---------- */
.cart-layout > .cart-items { flex: 1 1 440px; }
@media (min-width: 901px) { .cart-form { width: 500px; } }
.cart-form .form-title { margin-top: 6px; }
.opt-cards { display: flex; flex-direction: column; gap: 8px; }
.opt-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.05); cursor: pointer; transition: background .25s, transform .35s var(--back), box-shadow .3s; }
.opt-card:hover { background: rgba(255,255,255,.08); transform: translateX(3px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card.is-on { background: rgba(var(--mg), .16); box-shadow: inset 3px 0 0 var(--magenta-hi); }
.opt-card[hidden] { display: none !important; }
.oc-ic { flex: 0 0 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: rgba(255,255,255,.07); color: var(--lavender); transition: background .25s, color .25s; }
.opt-card.is-on .oc-ic { background: rgba(var(--mg), .3); color: #fff; }
.oc-ic svg { width: 18px; height: 18px; }
.oc-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oc-txt b { font-size: 14px; font-weight: 600; }
.oc-txt small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.oc-price { font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; }
.oc-marks { display: flex; gap: 7px; color: var(--ink); opacity: .85; }
.oc-marks svg { width: 20px; height: 20px; }
#payChoices .opt-card:nth-child(4n+1) .oc-ic { color: var(--blue); }
#payChoices .opt-card:nth-child(4n+2) .oc-ic { color: var(--lavender); }
#payChoices .opt-card:nth-child(4n+3) .oc-ic { color: #5eead4; }
#payChoices .opt-card:nth-child(4n+4) .oc-ic { color: var(--coral); }
.cart-sum { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.cart-sum > div:not(.cart-total) { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.cart-sum > div:not(.cart-total) span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.check-line { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.check-line input { position: absolute; opacity: 0; }
.check-line .box { flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: var(--r); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .25s; }
.check-line .box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--back); }
.check-line input:checked + .box { background: var(--magenta); }
.check-line input:checked + .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check-line input:focus-visible + .box { box-shadow: 0 0 0 2px var(--lavender); }
.check-line.has-error .box { box-shadow: inset 0 0 0 2px #ff7b93; }
.check-line a { color: var(--magenta-soft); text-decoration: underline; text-underline-offset: 3px; }
.secure-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 14px; height: 14px; color: #5eead4; }
#addressFields { display: flex; flex-direction: column; gap: 20px; }
#addressFields[hidden] { display: none; }
.vacation-note { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--coral) 16%, transparent); font-size: 14px; line-height: 1.5; }
.vacation-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--coral); }
.vacation-note.small { margin: 4px 0 0; padding: 12px 14px; font-size: 13px; }

/* ---------- confirmation de commande ---------- */
.order-done { padding-bottom: 96px; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.done-card { width: 100%; }
.done-side { display: flex; flex-direction: column; gap: 20px; }
.done-lines { display: flex; flex-direction: column; gap: 12px; }
.done-line { display: flex; align-items: center; gap: 14px; }
.done-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r); }
.done-line span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.done-line b { font-size: 14px; font-weight: 600; }
.done-line small { font-size: 12px; color: var(--muted); }
.done-line strong { font-family: var(--font-head); font-size: 15px; }
.done-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 14px; }
.done-kv dt { color: var(--muted); }
.done-kv dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.done-kv dd.copyable { cursor: pointer; color: #8ff5e0; }
.done-kv dd.copyable:hover { text-decoration: underline; text-underline-offset: 3px; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order-done.is-cancelled .page-title { color: var(--coral); }

/* ---------- pages légales ---------- */
.legal-wrap { padding-bottom: 96px; }
.legal-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; max-width: 820px; margin: 0 0 40px; padding: 28px 32px; border-radius: var(--r); background: rgba(33,19,44,.94); font-size: 14px; line-height: 1.55; }
.legal-rows dt { color: var(--lavender); }
.legal-rows dd { margin: 0; }
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.legal-body h2 { margin: 0 0 10px; font-size: 20px; }
.legal-body section:nth-child(4n+1) h2 { color: var(--magenta-soft); }
.legal-body section:nth-child(4n+2) h2 { color: var(--lavender); }
.legal-body section:nth-child(4n+3) h2 { color: var(--blue); }
.legal-body section:nth-child(4n+4) h2 { color: var(--coral); }
.legal-body p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--ink); }

@media (max-width: 900px) {
  .done-grid { grid-template-columns: 1fr; }
  .fcompany { padding-left: 16px; padding-right: 16px; }
  .legal-rows { grid-template-columns: 1fr; gap: 4px; padding: 22px; }
  .legal-rows dd { margin-bottom: 10px; }
}

/* ---------- badge « Bientôt » peint (fonctions qui attendent une connexion externe) ---------- */
.soon-badge { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px 7px; font-family: var(--font-head, inherit); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #2a1206; white-space: nowrap; transform: rotate(-3deg); vertical-align: middle; }
.soon-badge::before { content: ""; position: absolute; inset: -2px -8px; z-index: -1; background: linear-gradient(100deg, #ffd27a 0%, #f6a85f 45%, #ffcf86 75%, #f39a6b 100%); background-size: 200% 100%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 40' preserveAspectRatio='none'%3E%3Cpath d='M4 22c2-9 14-14 34-15 22-1 44 1 66-1 14-1 28 1 32 8 3 6-1 13-9 15-18 4-40 2-62 3-20 1-40 3-54-1-6-2-8-5-7-9z'/%3E%3Cpath d='M2 16c10-3 20-4 30-4' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M108 33c10 1 20 0 28-3' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M120 9c6 0 11 1 16 4' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M6 31c6 2 14 3 22 2' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 40' preserveAspectRatio='none'%3E%3Cpath d='M4 22c2-9 14-14 34-15 22-1 44 1 66-1 14-1 28 1 32 8 3 6-1 13-9 15-18 4-40 2-62 3-20 1-40 3-54-1-6-2-8-5-7-9z'/%3E%3Cpath d='M2 16c10-3 20-4 30-4' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M108 33c10 1 20 0 28-3' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M120 9c6 0 11 1 16 4' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M6 31c6 2 14 3 22 2' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; animation: soonSheen 5s ease-in-out infinite alternate; }
.soon-badge::after { content: ""; width: 6px; height: 6px; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; background: #7a2d0e; order: -1; }
.soon-badge.lg { font-size: 13px; padding: 8px 20px 9px; }
@keyframes soonSheen { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .soon-badge::before { animation: none; } }

/* =====================================================================
   v1.2 : menus au survol, bouton mis en avant, compte, pinceau auto,
   foil des éditions, créations, journal
   ===================================================================== */

/* ---------- menus au survol : la goutte tombe du lien et fait apparaître les choix ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-item.has-menu > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--back); opacity: .8; }
.nav-item.is-open > a::after { transform: translateY(3px) rotate(225deg); }
.nav .nav-item.is-open > a { color: #fff; }
.nav-sub { position: absolute; top: 100%; left: 50%; z-index: 60; transform: translateX(-50%); padding: 44px 16px 18px; pointer-events: none; }
.nav-item.is-open > .nav-sub { pointer-events: auto; }
.drip-svg { position: absolute; overflow: visible; pointer-events: none; z-index: 0; }
.nav-sub-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; }
.nav-sub-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nav .nav-sub a.nav-sub-link { display: inline-flex; align-items: center; padding: 12px 22px; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .01em; color: #fff; white-space: nowrap; text-shadow: 0 1px 8px rgba(10,5,16,.6); opacity: 0; transform: translateY(-10px) scale(.7) rotate(-4deg); transition: opacity .25s ease, transform .55s var(--back); transition-delay: 0s; }
.nav-item.is-shown .nav-sub a.nav-sub-link { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 90ms); }
.nav .nav-sub a.nav-sub-link:hover, .nav .nav-sub a.nav-sub-link:focus-visible { transform: rotate(-3deg) scale(1.04); transition-delay: 0s; outline: none; }
.nav-sub-cats { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .45s var(--back); }
.nav-item.is-shown .nav-sub-cats { opacity: 1; transform: none; transition-delay: calc(260ms + var(--i, 0) * 90ms); }
.nav .nav-sub-cats a { white-space: nowrap; padding: 5px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink); border-radius: 44% 56% 52% 48% / 58% 46% 54% 42%; background: rgba(24,12,34,.9); transition: transform .35s var(--back), color .2s; }
.nav .nav-sub-cats a:hover { color: #fff; transform: rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .nav .nav-sub a.nav-sub-link, .nav-sub-cats { transition: opacity .15s; transform: none !important; } }

/* ---------- bouton mis en avant à droite (Journal par défaut) ---------- */
.nav-cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; margin-left: 8px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: #fff; transition: transform .4s var(--back); }
.nav-cta-paint { position: absolute; inset: -3px -6px; z-index: -1; background: var(--cta); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 40' preserveAspectRatio='none'%3E%3Cpath d='M4 22c2-9 14-14 34-15 22-1 44 1 66-1 14-1 28 1 32 8 3 6-1 13-9 15-18 4-40 2-62 3-20 1-40 3-54-1-6-2-8-5-7-9z'/%3E%3Cpath d='M2 16c10-3 20-4 30-4' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M108 33c10 1 20 0 28-3' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 40' preserveAspectRatio='none'%3E%3Cpath d='M4 22c2-9 14-14 34-15 22-1 44 1 66-1 14-1 28 1 32 8 3 6-1 13-9 15-18 4-40 2-62 3-20 1-40 3-54-1-6-2-8-5-7-9z'/%3E%3Cpath d='M2 16c10-3 20-4 30-4' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M108 33c10 1 20 0 28-3' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--cta) 45%, transparent)); transition: transform .5s var(--back); }
.nav-cta:hover { transform: rotate(-3deg); }
.nav-cta:hover .nav-cta-paint { transform: scaleX(1.06) rotate(1deg); }
.nav-cta.is-active .nav-cta-paint { filter: brightness(1.15) drop-shadow(0 8px 18px color-mix(in srgb, var(--cta) 60%, transparent)); }

/* ---------- bouton compte ---------- */
.account-btn .acc-dot { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-head); box-shadow: 0 6px 14px -6px rgba(0,0,0,.8); transition: border-radius .6s var(--back); }
.account-btn:hover .acc-dot { border-radius: 58% 42% 44% 56% / 42% 58% 42% 58%; }

/* ---------- menu mobile ---------- */
.menu-toggle { display: none; }
.mobile-menu { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 39; overflow-y: auto; padding: 18px 20px 40px; background: rgba(20,10,28,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 6px; animation: mmIn .45s var(--out); }
@keyframes mmIn { from { opacity: 0; transform: translateY(-12px); } }
.mm-item { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 10px; }
.mm-item > a { position: relative; align-self: flex-start; padding: 8px 4px 8px 22px; font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.mm-item > a::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--c); border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; }
.mm-col { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 0 4px 22px; }
.mm-col a { font-size: 14px; color: var(--ink); padding: 4px 0; }
.mm-col a.mm-col-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: color-mix(in srgb, var(--cc, var(--c)) 45%, #fff); }
.mm-col:has(a:not(.mm-col-title)) a.mm-col-title { flex-basis: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- pinceau Auto / Manuel, en haut à gauche ---------- */
.brush-toggle { position: fixed; left: 18px; top: 150px; z-index: 55; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r); background: rgba(29,16,40,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.9); transition: transform .5s var(--back), opacity .35s; }
.brush-toggle .bt-ic { width: 16px; height: 16px; margin: 0 6px 0 6px; color: var(--magenta-soft); flex: 0 0 auto; }
.brush-toggle button { position: relative; padding: 6px 12px; border-radius: var(--r); font-size: 12px; font-weight: 600; color: var(--muted); transition: color .25s, background .3s, transform .35s var(--back); }
.brush-toggle button:hover { color: var(--ink); transform: rotate(-3deg); }
.brush-toggle button.is-on { color: #fff; background: var(--magenta); box-shadow: 0 8px 18px -10px rgba(var(--mg), .9); }
.brush-toggle.is-tucked { transform: translateX(calc(-100% + 34px)); opacity: .85; }
.brush-toggle.is-tucked:hover { transform: none; opacity: 1; }

/* ---------- foil : holographique (pièces uniques), doré (éditions limitées) ---------- */
.has-foil .media, .has-foil .slide-media { isolation: isolate; }
.foil { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: calc(.32 * var(--foil-k, .7)); transition: opacity .45s ease; }
.has-foil:hover .foil, .has-foil.is-tilting .foil { opacity: calc(.78 * var(--foil-k, .7)); }
.foil-holo { opacity: calc(.45 * var(--foil-k, .7)); }
.has-foil:hover .foil-holo, .has-foil.is-tilting .foil-holo { opacity: calc(1 * var(--foil-k, .7) + .1); }
.foil-gold { opacity: calc(.55 * var(--foil-k, .7)); }
.has-foil:hover .foil-gold, .has-foil.is-tilting .foil-gold { opacity: calc(1 * var(--foil-k, .7) + .15); }
.foil-holo {
  background:
    repeating-linear-gradient(calc(118deg + var(--fa, 0deg)), #ff9fe4 0%, #ffe39a 5%, #a6ffd6 10%, #9fe1ff 15%, #cdb2ff 20%, #ff9fe4 25%),
    radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255,255,255,.55), transparent 42%);
  background-size: 260% 260%, 100% 100%;
  background-position: var(--fx, 50%) var(--fy, 50%), 0 0;
  mix-blend-mode: overlay;
}
.foil-holo::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.9) .7px, transparent 1.2px), radial-gradient(rgba(255,240,200,.8) .6px, transparent 1.1px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; -webkit-mask: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #000, transparent 55%); mask: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #000, transparent 55%); mix-blend-mode: screen; opacity: .8; }
.foil-gold {
  background:
    linear-gradient(calc(108deg + var(--fa, 0deg)), transparent 22%, rgba(255,214,125,.0) 32%, rgba(255,210,110,.9) 44%, rgba(255,247,214,1) 50%, rgba(214,158,52,.9) 57%, transparent 70%),
    linear-gradient(160deg, rgba(232,184,92,.45), rgba(140,92,24,.35));
  background-size: 280% 280%, 100% 100%;
  background-position: var(--fx, 50%) var(--fy, 50%), 0 0;
  mix-blend-mode: overlay;
}
.foil-gold::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(calc(62deg + var(--fa, 0deg)), rgba(255,230,160,.0) 0 7px, rgba(255,230,160,.22) 7px 8px); mix-blend-mode: soft-light; }
.has-foil:not(:hover):not(.is-tilting) .foil { animation: foilIdle 7s ease-in-out infinite alternate; }
@keyframes foilIdle { from { background-position: 10% 20%, 0 0; } to { background-position: 90% 80%, 0 0; } }
.has-foil[data-edition="unique"] .badge { background: linear-gradient(100deg, #ffd1f2, #fff1b8, #c4fff0, #cfe3ff, #e6d2ff); color: #2a1236; }
.has-foil[data-edition="limited"] .badge { background: linear-gradient(100deg, #f7d68a, #fff3cf, #d9a445); color: #2e1d05; }
@media (prefers-reduced-motion: reduce) { .foil { animation: none !important; } }

/* ---------- rayons de la boutique ---------- */
.rayon-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -14px 0 40px; }
.rayon-tabs a { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--ink); transition: transform .4s var(--back), color .25s; }
.rayon-tabs a i { width: 10px; height: 10px; background: var(--rc); border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; transition: transform .5s var(--back); }
.rayon-tabs a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 44% 56% 52% 48% / 58% 46% 54% 42%; background: var(--rc); opacity: 0; transform: scale(.6, .4); transition: transform .55s var(--back), opacity .3s; }
.rayon-tabs a:hover { transform: rotate(-2.5deg); }
.rayon-tabs a:hover::before { opacity: .22; transform: scale(1); }
.rayon-tabs a.is-on { color: #fff; }
.rayon-tabs a.is-on::before { opacity: .9; transform: scale(1); }
.rayon-tabs a.is-on i { background: #fff; transform: scale(1.2); }

/* ---------- filtres en pastilles (créations, journal) ---------- */
.chips-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -10px 0 36px; }
.chip-f { padding: 8px 15px; border-radius: var(--r); background: var(--card-2); font-size: 13px; font-weight: 500; color: var(--ink); transition: background .25s, transform .35s var(--back), color .25s; }
.chip-f:hover { transform: rotate(-2.5deg); background: rgba(255,255,255,.12); }
.chip-f.is-on { background: var(--magenta); color: #fff; }
.page-head:not(.center) + .chips-row { justify-content: flex-start; margin-top: -20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags > * { padding: 5px 10px; border-radius: var(--r); background: var(--card-2); font-size: 12px; color: var(--lavender); transition: transform .35s var(--back), color .2s; }
.tags a:hover { transform: rotate(-3deg); color: #fff; }

/* ---------- créations (hors vente) ---------- */
.nfs { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 5px 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #06231f; background: #5eead4; border-radius: 42% 58% 50% 50% / 55% 45% 55% 45%; transform: rotate(-4deg); }
.nfs.big { position: static; align-self: flex-start; font-size: 11px; padding: 7px 14px 8px; }
.creations-grid .gcard { width: 240px; height: 320px; }
.creations-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 10px auto 90px; max-width: 760px; padding: 18px 22px; border-radius: var(--r); background: color-mix(in srgb, #26a89c 13%, transparent); font-size: 14px; line-height: 1.6; text-align: center; }
.creations-note > svg { width: 18px; height: 18px; color: #5eead4; flex: 0 0 auto; }
.info .btn + .btn { margin-top: -6px; }
.media-panel .paintable.big { position: absolute; inset: 0; }

/* ---------- journal ---------- */
.post-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin-bottom: 36px; border-radius: var(--r); overflow: hidden; background: #1d1129; box-shadow: 0 30px 60px -30px rgba(0,0,0,.85); }
.post-lead .post-cover { position: relative; min-height: 380px; }
.post-lead .post-cover .paintable { position: absolute; inset: 0; }
.post-lead .post-body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.post-lead h2 { margin: 0; font-size: 32px; line-height: 1.15; }
.post-lead p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.post-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #f3c46c; }
.post-meta b { padding: 3px 8px; border-radius: var(--r); background: #e0a13a; color: #2a1606; letter-spacing: .1em; font-size: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; padding-bottom: 40px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #1d1129; box-shadow: 0 24px 46px -24px rgba(0,0,0,.85); }
.post-card .post-cover { position: relative; height: 200px; }
.post-card .post-cover .paintable { position: absolute; inset: 0; }
.post-card .post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.post-card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.insta-soon { display: flex; align-items: center; gap: 22px; margin: 20px 0 96px; padding: 26px 30px; border-radius: var(--r); background: linear-gradient(110deg, rgba(var(--mg), .16), color-mix(in srgb, #f6a85f 14%, transparent)); }
.insta-soon h3 { margin: 0 0 4px; font-size: 18px; }
.insta-soon p { margin: 0; font-size: 14px; color: var(--muted); }
.article { max-width: 820px; padding-bottom: 60px; }
.article-head { padding: 40px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.article-head .page-intro { max-width: none; font-size: 17px; }
.article-cover { position: relative; height: 440px; border-radius: var(--r); overflow: hidden; margin-bottom: 40px; box-shadow: 0 32px 64px -28px rgba(0,0,0,.85); }
.article-cover .paintable { position: absolute; inset: 0; }
.article-body { margin-bottom: 30px; }

/* ---------- texte riche (articles, créations) ---------- */
.rich { font-size: 16px; line-height: 1.85; color: var(--ink); }
.info-desc.rich { font-size: 14.5px; }
.rich p { margin: 0 0 16px; }
.rich h2 { margin: 36px 0 12px; font-size: 26px; color: var(--magenta-soft); }
.rich h3 { margin: 28px 0 10px; font-size: 20px; color: var(--lavender); }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich li { margin: 4px 0; }
.rich li::marker { color: var(--magenta-soft); }
.rich blockquote { margin: 22px 0; padding: 14px 22px; border-radius: var(--r); background: rgba(var(--mg), .12); font-style: italic; font-size: 17px; }
.rich a { color: var(--magenta-soft); text-decoration: underline; text-underline-offset: 3px; }
.rich img { display: block; max-width: 100%; height: auto; margin: 24px 0; border-radius: var(--r); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.rich strong { color: #fff; }

/* ---------- contact à propos d'une création ---------- */
.piece-ref { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r); background: color-mix(in srgb, #26a89c 14%, transparent); }
.piece-ref img { width: 58px; height: 58px; object-fit: cover; border-radius: var(--r); }
.piece-ref span { display: flex; flex-direction: column; gap: 2px; }
.piece-ref small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8ff5e0; }
.piece-ref b { font-size: 15px; }

@media (max-width: 1180px) {
  .nav a { padding: 10px 14px; }
  .nav-cta { padding: 9px 16px; }
}
@media (max-width: 980px) {
  .post-lead { grid-template-columns: 1fr; }
  .post-lead .post-cover { min-height: 260px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .top-actions { gap: 2px; }
  .top-actions > a.icon-btn[target="_blank"], .top-actions > .nav-cta { display: none; }
  .brush-toggle { top: auto; bottom: 14px; left: 64px; }
  .brush-toggle.is-tucked { transform: none; }
  .brush-toggle button { padding: 5px 9px; }
  .post-lead .post-body { padding: 24px; }
  .post-lead h2 { font-size: 24px; }
  .article-cover { height: 280px; }
  .insta-soon { flex-direction: column; align-items: flex-start; }
  .creations-grid .gcard { width: 200px; height: 270px; }
}

/* ---------- v1.3 : prix « À partir de », cadrage des photos, foil de la fiche ---------- */
.price-from { font-size: .72em; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-right: 6px; align-self: center; }
.price-row.big .price-from { font-size: 14px; }
.price-from.is-gone { display: none; }
.paintable img { position: relative; }
.paintable.is-contain img { object-fit: contain; }
.paintable .pt-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(22px) grayscale(1) brightness(.42) saturate(0); transform: scale(1.08); pointer-events: none; }
.media-panel.foil-rest .foil { opacity: 0 !important; animation: none !important; transition: opacity 1.2s ease; }
/* v1.3 : sur les écrans où la marge est étroite, le choix du pinceau se range sur le bord et s'ouvre au survol */
@media (min-width: 761px) and (max-width: 1640px) {
  .brush-toggle:not(:hover):not(:focus-within) { transform: translateX(calc(-100% + 34px)); opacity: .9; }
}

/* v1.3 : chaque photo garde son format d'origine (portrait, carré, paysage) : aucun recadrage, aucun flou.
   --ar = largeur / hauteur de la photo, posé par le serveur quand il le connaît, sinon par site.js au chargement */
.pcard { width: clamp(190px, calc(300px * var(--ar, .76)), 340px); }
.pcard .media { height: auto; aspect-ratio: var(--ar, 3 / 4); }
.scatter.list .pcard { width: 560px; }
.scatter.list .pcard .media { width: clamp(110px, calc(170px * var(--ar, .76)), 240px); height: auto; aspect-ratio: var(--ar, 3 / 4); }
.gcard { width: clamp(180px, calc(290px * var(--ar, .75)), 330px); height: auto; aspect-ratio: var(--ar, 3 / 4); }
.media-panel { width: min(clamp(320px, calc(560px * var(--ar, .75)), 640px), calc(78vh * var(--ar, .75))); height: auto; aspect-ratio: var(--ar, 3 / 4); transition: width .45s var(--out), box-shadow .3s; }
.product:has(.media-panel) .info { flex: 1 1 380px; }
.slide { display: flex; align-items: center; justify-content: center; }
.slide-card { width: clamp(220px, calc(390px * var(--ar, .75)), 320px); height: auto; }
.slide-media { flex: none; aspect-ratio: var(--ar, 3 / 4); }
.post-card .post-cover { height: auto; aspect-ratio: var(--ar, 16 / 10); }
.post-lead .post-cover { min-height: 0; height: auto; aspect-ratio: var(--ar, 4 / 3); }
.article-cover { height: auto; aspect-ratio: var(--ar, 16 / 9); width: min(100%, calc(78vh * var(--ar, 1.78))); margin-left: auto; margin-right: auto; }
.thumb { width: auto; height: 84px; aspect-ratio: var(--ar, 4 / 5); }
.paintable.is-contain img { object-fit: cover; }
.paintable .pt-bg { display: none; }
@media (max-width: 760px) {
  .media-panel { width: min(100%, calc(70vh * var(--ar, .75))); max-width: none; height: auto; }
  .pcard { width: clamp(170px, calc(280px * var(--ar, .76)), min(340px, calc(100vw - 48px))); }
  .scatter.list .pcard { width: 100%; }
  .post-lead .post-cover { min-height: 0; }
  .article-cover { height: auto; }
}
