/*
Theme Name: SOC Theme
Description: Thème du catalogue Strong Organic Clothing — clair, premium, dynamique. Toutes les couleurs/typos sont des variables (section TOKENS) pour faire évoluer la DA sans toucher aux gabarits.
Version: 0.1.0
Requires PHP: 8.1
Text Domain: soc
*/

/* =========================================================== TOKENS */
:root {
  --bg: #ffffff;
  --bg-2: #f2f2ef;          /* fond des packshots, panneaux */
  --bg-3: #e8e8e4;
  --ink: #121212;
  --ink-2: #5a5b5f;
  --ink-3: #8c8d91;
  --line: #e3e3df;
  --dark: #151515;          /* cartes sombres */
  --dark-2: #232323;
  --on-dark: #f5f5f2;
  --accent: #e4572e;        /* signal : actions secondaires, puces, nouveautés */
  --ok: #2f8a4f; --low: #d08a1c; --out: #c2412d; --ask: #8c8d91;

  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-s: 8px; --r-m: 16px; --r-l: 24px; --r-pill: 999px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --maxw: 1480px;
  --header-h: 98px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

/* =========================================================== BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; } /* filet de sécurité : rien ne doit élargir la page sur mobile */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.i { width: 22px; height: 22px; flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); transition: transform .25s var(--ease), background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 16px; font-size: .84rem; }
.btn-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; background: var(--bg); transition: background .2s, border-color .2s; }
.btn-round:hover { border-color: var(--ink); }
.btn-round[disabled] { opacity: .35; pointer-events: none; }

/* =========================================================== BANDEAU DÉFILANT */
.ticker { background: var(--ink); color: var(--on-dark); overflow: hidden; height: 34px; display: flex; align-items: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker__track { display: flex; gap: 48px; white-space: nowrap; animation: ticker 38s linear infinite; padding-left: 48px; }
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker__track span::after { content: "✦"; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================== EN-TÊTE */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: .9; display: inline-flex; flex-direction: column; }
/* Logo (sirène + marin) à gauche : grand en haut de page, se réduit au défilement. */
.logo picture { display: block; }
.logo__img { display: block; height: 86px; width: auto; transition: height .45s var(--ease), transform .45s var(--ease); filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.site-header .logo { justify-self: start; margin-left: -6px; }
.site-header .logo:hover .logo__img { transform: rotate(-3deg) scale(1.03); }
.site-header.is-scrolled .logo__img { height: 68px; }
@media (max-width: 720px) { :root { --header-h: 74px; } .logo__img { height: 64px; } .site-header.is-scrolled .logo__img { height: 56px; } }
.logo small { font-family: var(--f-mono); font-weight: 400; font-size: .56rem; letter-spacing: .2em; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; justify-content: center; gap: 4px; white-space: nowrap; }
.nav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 500; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); }
/* 7 liens : on resserre sur les écrans moyens avant de passer au menu mobile. */
@media (max-width: 1320px) { .nav { gap: 0; } .nav a { padding: 8px 10px; font-size: .86rem; } .site-header__in { gap: 16px; } }
.header-actions { display: flex; align-items: center; gap: 6px; grid-column: 3; justify-self: end; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .2s; position: relative; }
.icon-btn:hover { background: var(--bg-2); }
.sel-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; transform: scale(0); transition: transform .3s var(--ease); }
.sel-count.has { transform: scale(1); }
.sel-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; display: none; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input { flex: 1; height: 48px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 20px; background: var(--bg-2); outline: none; }
.search-form input:focus { border-color: var(--ink); background: var(--bg); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 980px) {
  .site-header__in { gap: 10px; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 32px; transform: translateY(-100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.mobile-nav.open { transform: none; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav a.big { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

/* =========================================================== HERO */
.hero { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 40px) 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr; }
.hero__stage { position: relative; height: clamp(360px, 60vh, 640px); display: grid; place-items: center; }
.hero__word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 900; font-size: clamp(4.5rem, 19vw, 20rem); line-height: .8; letter-spacing: -.065em; color: var(--ink); white-space: nowrap; user-select: none; z-index: 0; }
.hero__word span { display: inline-block; transition: transform .7s var(--ease), opacity .5s, filter .6s; }
.hero__word.is-out span { transform: translateY(-18%); opacity: 0; filter: blur(14px); }
.hero__word.is-in span { transform: translateY(18%); opacity: 0; filter: blur(14px); transition: none; }
/* Pas de z-index ici : il isolerait l'image et empêcherait le fond blanc du packshot de « disparaître » (multiply) sur le mot. */
.hero__garment { position: relative; height: 100%; aspect-ratio: 4 / 5; max-width: 80vw; pointer-events: none; }
.hero__garment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero__garment .main { transition: opacity .5s, transform .8s var(--ease), filter .6s; }
.hero__garment .ghost { opacity: 0; filter: blur(10px); transform: translateX(0); }
.hero__garment.is-moving .main { opacity: 0; transform: translateX(-30px) scale(.97); filter: blur(8px); }
.hero__garment.is-moving .ghost { animation: ghost .9s var(--ease); }
@keyframes ghost { 0% { opacity: .0; transform: translateX(60px); } 35% { opacity: .45; } 100% { opacity: 0; transform: translateX(-90px); } }
.hero__copy { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 520px) 1fr minmax(0, 300px); gap: 24px; align-items: end; padding-block: clamp(16px, 2vw, 28px) clamp(20px, 3vw, 40px); }
.hero__copy .hero__card { margin-top: -120px; }
.hero__lead { display: grid; gap: 18px; }
.hero__lead p { color: var(--ink-2); max-width: 34ch; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__card { justify-self: end; width: 100%; max-width: 300px; background: var(--dark); color: var(--on-dark); border-radius: var(--r-l); padding: 18px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.hero__card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero__card .mono { color: #b9b9b5; }
.hero__dots { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: auto; }
.hero__dots button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--dark); box-shadow: 0 0 0 1px #555; transition: box-shadow .2s, transform .2s; }
.hero__dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--on-dark); transform: scale(1.08); }
.hero__tag { position: absolute; z-index: 3; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); animation: floaty 6s ease-in-out infinite; }
.hero__tag b { color: var(--accent); font-weight: 500; }
.hero__tag--a { left: 14%; top: 18%; }
.hero__tag--b { right: 12%; top: 30%; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero__stage { height: auto; aspect-ratio: 1 / 1.12; align-items: end; }
  .hero__word { font-size: 25vw; top: 4%; transform: translate(-50%, 0); }
  .hero__garment { height: 82%; }
  .hero__copy { grid-template-columns: 1fr; padding-top: 4px; }
  .hero__copy > span:empty { display: none; }
  .hero__copy .hero__card { margin-top: 0; justify-self: stretch; max-width: none; }
  .hero__tag { display: none; }
}

/* ---- Hero « défilé » (template-parts/hero-runway.php) : file de tenues portées, pilotée par le défilement.
   .runway-scroll est haut (une « marche » par tenue) ; .runway reste collé sous l'en-tête pendant qu'on défile. */
.runway-scroll { --step: 60svh; position: relative; height: calc(100svh - var(--header-h) + (var(--n, 6) - 1) * var(--step)); }
.runway { --floor: 7%; --rw-left: clamp(330px, 27vw, 420px); position: sticky; top: var(--header-h); overflow: hidden; isolation: isolate; height: calc(100svh - var(--header-h)); min-height: 560px; background: radial-gradient(120% 90% at 55% 38%, #f7f6f3 0%, #ecebe6 62%, #e2e0da 100%); user-select: none; }
.runway__stage { position: absolute; inset: 0; z-index: 1; cursor: grab; }
.runway.is-dragging .runway__stage { cursor: grabbing; }
.runway__word { position: absolute; left: var(--rw-left); right: 0; top: 8%; z-index: 0; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: min(14.5vw, 15rem, 24svh); line-height: .8; letter-spacing: -.065em; color: var(--ink); white-space: nowrap; pointer-events: none; }
.runway__word span { display: inline-block; transition: transform .7s var(--ease), opacity .5s, filter .6s; }
.runway__word.is-out span { transform: translateY(-16%); opacity: 0; filter: blur(14px); }
.runway__word.is-in span { transform: translateY(16%); opacity: 0; filter: blur(14px); transition: none; }
.runway__look { position: absolute; left: calc(var(--rw-left) + (100% - var(--rw-left)) * .36); bottom: var(--floor); height: calc(80% * var(--h, 1)); padding: 0; transform-origin: 50% 100%; transform: translateX(-50%) translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1)); filter: blur(var(--b, 0px)); opacity: var(--o, 1); transition: transform .5s var(--ease), filter .5s var(--ease), opacity .4s var(--ease); will-change: transform, filter; }
.runway__look img { height: 100%; width: auto; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.runway__look::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -1.6%; width: 64%; height: 4.5%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.26), rgba(0,0,0,0)); }
.runway__look:focus-visible { outline: none; }
.runway.is-dragging .runway__look, .runway.is-still .runway__look { transition: none; }
.runway__floor { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--floor) + 6%); background: linear-gradient(to top, rgba(0,0,0,.045), rgba(0,0,0,0)); pointer-events: none; }
.runway__ui { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: calc(var(--rw-left) - var(--gutter) - 24px) 1fr; grid-template-rows: auto minmax(0, 1fr); column-gap: 24px; row-gap: 18px; padding-block: clamp(18px, 2.6vw, 32px) calc(clamp(18px, 2.6vw, 32px) + 34px); pointer-events: none; } /* + 34px : hauteur du bandeau défilant, pour que la carte soit entière dès l'arrivée */
.runway__ui > * { pointer-events: auto; }
.runway__copy { grid-column: 1; grid-row: 1; align-self: start; display: grid; gap: 12px; }
.runway__copy h1 { font-size: clamp(1.6rem, 2.3vw, 2.25rem); }
.runway__copy p { color: var(--ink-2); max-width: 34ch; }
.runway__rail { grid-column: 1; grid-row: 2; align-self: end; min-height: 0; max-height: 100%; display: flex; flex-direction: column; background: rgba(255,255,255,.74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-l); padding: 12px; box-shadow: 0 30px 60px -34px rgba(0,0,0,.35); }
.runway__rail-head { display: flex; justify-content: space-between; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; padding: 2px 4px 10px; }
.runway__pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.runway__piece { animation: rwPiece .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.runway__piece a { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 5px; border-radius: var(--r-m); transition: background .2s; }
.runway__piece a:hover { background: rgba(0,0,0,.04); }
.runway__thumb { aspect-ratio: 4 / 5; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.runway__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.runway__piece b { display: block; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; font-size: .8rem; letter-spacing: .02em; line-height: 1.25; }
.runway__piece small { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .76rem; line-height: 1.3; margin-top: 3px; }
.runway__piece small i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.runway__piece .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease); }
.runway__piece .go .i { width: 15px; height: 15px; }
.runway__piece a:hover .go { transform: rotate(-45deg); }
@keyframes rwPiece { from { opacity: 0; transform: translateX(-14px); } }
.runway__nav { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.runway__nav .icon-btn { background: rgba(255,255,255,.8); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.runway__nav .icon-btn:hover { background: #fff; }
.runway__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.runway__progress { width: 120px; height: 2px; background: rgba(0,0,0,.12); border-radius: 2px; overflow: hidden; }
.runway__progress span { display: block; height: 100%; width: 0; background: var(--ink); }
.runway__hint { width: 100%; text-align: right; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.runway__hint::before { content: ""; display: inline-block; width: 9px; height: 14px; margin-right: 8px; vertical-align: -3px; border: 1.5px solid currentColor; border-radius: 6px; background: linear-gradient(currentColor, currentColor) 50% 3px / 1.5px 3px no-repeat; animation: rwWheel 1.6s ease-in-out infinite; }
@keyframes rwWheel { 50% { background-position: 50% 6px; } }
/* Écrans peu hauts (portables) : on compacte le texte et la carte pour que tout tienne. */
@media (min-width: 901px) and (max-height: 860px) {
  .runway__copy p { display: none; }
  .runway__copy h1 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
  .runway__piece a { grid-template-columns: 48px 1fr auto; padding: 4px; }
  .runway__piece small + small { display: none; }
}
@media (min-width: 901px) and (max-height: 680px) { .runway__copy .eyebrow, .runway__hint { display: none; } }
/* Mobile : texte en haut, file au milieu, flèches + pièces en bas ; tout tient dans l'écran. */
@media (max-width: 900px) {
  .runway-scroll { --step: 52svh; }
  .runway { --rw-left: 0px; display: flex; flex-direction: column; min-height: 0; }
  .runway__ui { display: contents; }
  .runway__copy { order: 0; padding: 14px var(--gutter) 0; gap: 10px; }
  .runway__copy .eyebrow, .runway__copy p { display: none; }
  .runway__copy h1 { font-size: 1.45rem; }
  .runway__copy .btn { padding-block: 10px; font-size: .9rem; }
  .runway__copy .btn--ghost { display: none; }
  .runway__copy, .runway__nav, .runway__rail { align-self: stretch; min-width: 0; }
  .runway__stage { order: 1; position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
  .runway__word { top: 6px; font-size: min(24vw, 9rem); }
  .runway__look { left: 40%; height: calc(86% * var(--h, 1)); bottom: 5%; }
  .runway__nav { order: 2; justify-content: center; padding: 6px var(--gutter) 8px; flex-wrap: nowrap; }
  .runway__hint { display: none; }
  .runway__rail { order: 3; margin: 0 var(--gutter) 12px; padding: 8px 0 8px 8px; flex: none; }
  .runway__rail-head { padding: 2px 14px 6px 4px; }
  .runway__pieces { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 8px; }
  .runway__piece { scroll-snap-align: start; }
  .runway__piece a { grid-template-columns: 48px 1fr auto; }
  .runway__piece small + small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .runway__look, .runway__word span { transition: opacity .3s; } .runway__piece, .runway__hint::before { animation: none; } }

/* =========================================================== SECTIONS */
.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
.section-head p { color: var(--ink-2); max-width: 46ch; margin-top: 10px; }
.section-head__side { display: flex; gap: 8px; align-items: center; }

/* Rail horizontal (catégories, produits) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-w, clamp(220px, 23vw, 320px)); gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }
.rail-bleed { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }

/* Tuiles catégories (accès rapide façon Uniqlo) */
.cat-tile { position: relative; display: grid; gap: 10px; }
.cat-tile__img { aspect-ratio: 1 / 1.05; background: var(--bg-2); border-radius: var(--r-l); overflow: hidden; display: grid; place-items: center; padding: 10%; transition: background .3s; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.cat-tile:hover .cat-tile__img img { transform: scale(1.06) rotate(-1.5deg); }
.cat-tile:hover .cat-tile__img { background: var(--bg-3); }
.cat-tile__label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.01em; }
.cat-tile__label .mono { color: var(--ink-3); font-weight: 400; }
.cat-tile--empty .cat-tile__img { font-family: var(--f-display); font-weight: 800; font-size: 3rem; color: var(--bg-3); }

/* Onglets */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: var(--r-pill); flex-wrap: wrap; }
.tabs button, .tabs a { padding: 8px 16px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s; }
.tabs [aria-selected="true"], .tabs .is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* =========================================================== CARTE PRODUIT */
.card { display: grid; gap: 12px; align-content: start; position: relative; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); border-radius: var(--r-m); overflow: hidden; display: block; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; transition: opacity .45s, transform .7s var(--ease); }
.card__media .alt { opacity: 0; }
.card:hover .card__media .alt { opacity: 1; }
.card:hover .card__media .main.has-alt { opacity: 0; }
.card:hover .card__media img { transform: scale(1.035); }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.badge { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); border-radius: var(--r-pill); padding: 4px 9px; }
.badge--accent { background: var(--accent); color: #fff; }
.card__quick { position: absolute; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card__body { display: grid; gap: 6px; padding-inline: 2px; }
.card__title { font-family: var(--f-mono); font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; display: flex; justify-content: space-between; gap: 10px; }
.card__title small { color: var(--ink-3); font-weight: 400; font-size: .72rem; white-space: nowrap; }
.card__spec { font-size: .82rem; color: var(--ink-2); }
.swatches { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); transition: transform .2s; }
button.swatch:hover { transform: scale(1.2); }
button.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.swatches .more { font-size: .74rem; color: var(--ink-2); margin-left: 4px; }
@media (hover: none) { .card__quick { opacity: 1; transform: none; } }

/* =========================================================== BANDE IMMERSIVE (sombre) */
.band { position: relative; background: var(--dark); color: var(--on-dark); border-radius: var(--r-l); overflow: hidden; }
.band__in { display: grid; grid-template-columns: 1fr; place-items: center; text-align: center; padding: clamp(40px, 6vw, 80px) 20px; min-height: clamp(460px, 62vw, 760px); position: relative; }
.band__kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; max-width: 44ch; color: #c9c9c5; position: relative; z-index: 3; }
.band__title { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: clamp(3.4rem, 11vw, 11rem); line-height: .85; letter-spacing: -.055em; text-transform: uppercase; z-index: 0; padding: 0 12px; }
.band__img { position: relative; width: clamp(240px, 32vw, 460px); aspect-ratio: 4/5; margin-block: 18px; mix-blend-mode: multiply; }
@media (max-width: 700px) {
  .band__title { position: relative; inset: auto; font-size: 13vw; margin-top: 18px; }
  .band__img { margin-top: -16vw; width: 78vw; }
}
.band__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0,0,0,.55)); }
.band__img.is-light img { mix-blend-mode: normal; }
.band__foot { position: relative; z-index: 3; display: grid; gap: 18px; justify-items: center; }
.band__foot p { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #c9c9c5; max-width: 52ch; }
.band__corner { position: absolute; width: 22px; height: 22px; border: 2px solid #777; z-index: 3; }
.band__corner--tl { left: 22px; top: 22px; border-right: 0; border-bottom: 0; }
.band__corner--tr { right: 22px; top: 22px; border-left: 0; border-bottom: 0; }
.band__corner--bl { left: 22px; bottom: 22px; border-right: 0; border-top: 0; }
.band__corner--br { right: 22px; bottom: 22px; border-left: 0; border-top: 0; }

/* ---- Bandeau hiver (template-parts/band-winter.php) : 3 tenues portées qui traversent un ciel de neige.
   Même principe que le hero : .winter-scroll est haut (une « marche » par tenue), .winter reste collé. */
.winter-scroll { --step: 60svh; --gap: 12px; position: relative; height: calc(100svh - var(--header-h) - 2 * var(--gap) + (var(--n, 3) - 1) * var(--step)); }
.winter { --wn-left: clamp(310px, 26vw, 400px); position: sticky; top: calc(var(--header-h) + var(--gap)); height: calc(100svh - var(--header-h) - 2 * var(--gap)); min-height: 540px; border-radius: var(--r-l); overflow: hidden; isolation: isolate; color: #fff; user-select: none;
  background: radial-gradient(70% 34% at 50% 100%, #f6f8fa 0%, rgba(246,248,250,.85) 40%, rgba(246,248,250,0) 100%), radial-gradient(60% 50% at 78% 8%, rgba(255,255,255,.28), rgba(255,255,255,0) 70%), linear-gradient(180deg, #3f5875 0%, #6d88a6 38%, #a9bdd0 68%, #dfe7ee 100%); }
.winter__bg { position: absolute; inset: 0; z-index: 0; transform: scale(1.08); will-change: transform; }
.winter__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* voile pour lire les textes blancs (haut gauche) sur un ciel clair */
.winter__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(25,40,62,.5) 0%, rgba(25,40,62,.16) 30%, rgba(25,40,62,0) 52%), linear-gradient(180deg, rgba(25,40,62,.22) 0%, rgba(25,40,62,0) 40%); }
.winter__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.winter__snow--back { z-index: 1; }
.winter__snow--front { z-index: 4; }
.winter__words { position: absolute; top: 0; bottom: 0; right: 0; left: var(--wn-left); z-index: 2; pointer-events: none; }
.winter__word { position: absolute; left: 50%; top: 9%; font-family: var(--f-display); font-weight: 900; font-size: min(15vw, 17rem, 27svh); line-height: .8; letter-spacing: -.065em; color: #fff; white-space: nowrap; text-shadow: 0 30px 80px rgba(30,50,80,.18); transform: translateX(-50%) translateX(var(--wx, 0px)) skewX(var(--wk, 0deg)); opacity: var(--wo, 1); filter: blur(var(--wb, 0px)); will-change: transform, filter, opacity; }
.winter__stage { position: absolute; inset: 0; z-index: 3; cursor: grab; }
.winter.is-dragging .winter__stage { cursor: grabbing; }
.winter__look { position: absolute; left: calc(var(--wn-left) + (100% - var(--wn-left)) * .46); bottom: calc(5% + var(--lift, 0) * 100%); height: calc(80% * var(--h, 1)); padding: 0; transform-origin: 50% 100%; transform: translateX(-50%) translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1)); filter: blur(var(--b, 0px)); opacity: var(--o, 1); transition: transform .5s var(--ease), filter .5s var(--ease), opacity .4s var(--ease); will-change: transform, filter; }
.winter__look img { height: 100%; width: auto; max-width: none; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 24px 30px rgba(20,35,60,.18)); }
/* ombre au sol (descend de --lift quand la personne saute) */
.winter__look::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: calc(-1.4% - var(--lift, 0) * 100% / (.8 * var(--h, 1))); width: calc(56% - var(--lift, 0) * 200%); height: 4%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(30,45,70,.32), rgba(30,45,70,0)); }
.winter__look:focus-visible { outline: none; }
.winter.is-dragging .winter__look, .winter.is-still .winter__look { transition: none; }
.winter__ui { position: relative; z-index: 5; height: 100%; display: grid; grid-template-columns: minmax(270px, 340px) 1fr minmax(220px, auto); grid-template-rows: auto minmax(0, 1fr); gap: 18px 24px; padding: clamp(20px, 2.6vw, 34px); pointer-events: none; }
.winter__ui > * { pointer-events: auto; }
.winter__head { grid-column: 1; grid-row: 1; display: grid; gap: 12px; align-self: start; }
.winter__kicker { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); max-width: 38ch; line-height: 1.6; }
.winter__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; color: #fff; }
.winter__rail { grid-column: 1; grid-row: 2; align-self: end; color: var(--ink); }
.winter__foot { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; display: grid; gap: 14px; justify-items: end; }
.winter__foot p { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: right; max-width: 30ch; }
.winter__nav { display: flex; align-items: center; gap: 12px; }
.winter__nav .icon-btn { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.winter__nav .icon-btn:hover { background: #fff; }
.winter__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.winter__dots { display: flex; gap: 6px; }
.winter__dots span { width: 8px; height: 8px; border-radius: 8px; background: rgba(23,37,58,.25); transition: width .4s var(--ease), background .4s; }
.winter__dots span.is-on { width: 26px; background: var(--ink); }
.winter__foot .btn--light { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 901px) and (max-height: 820px) {
  .winter__kicker { display: none; }
  .winter__rail .runway__piece a { grid-template-columns: 48px 1fr auto; padding: 4px; }
  .winter__rail .runway__piece small + small { display: none; }
}
@media (max-width: 900px) {
  .winter-scroll { --step: 52svh; --gap: 8px; }
  .winter { --wn-left: 0px; display: flex; flex-direction: column; min-height: 0; }
  .winter__ui { display: contents; }
  .winter__head, .winter__foot, .winter__rail { align-self: stretch; min-width: 0; }
  .winter__head { order: 0; position: relative; z-index: 5; padding: 16px 18px 0; gap: 0; }
  .winter__kicker { display: none; }
  .winter__title { font-size: 1.7rem; }
  .winter__word { top: 22%; font-size: min(26vw, 9rem); }
  .winter__stage { order: 1; position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
  .winter__look { left: 50%; height: calc(88% * var(--h, 1)); bottom: calc(4% + var(--lift, 0) * 100%); }
  .winter__look::after { bottom: calc(-1.4% - var(--lift, 0) * 100% / (.88 * var(--h, 1))); }
  .winter__foot { order: 2; position: relative; z-index: 5; gap: 8px; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-self: stretch; padding: 6px 14px; }
  .winter__foot p { display: none; }
  .winter__foot .btn { height: 40px; padding: 0 14px; gap: 8px; font-size: .84rem; }
  .winter__nav { gap: 6px; }
  .winter__nav .icon-btn { width: 38px; height: 38px; }
  .winter__rail { order: 3; position: relative; z-index: 5; margin: 4px 12px 12px; padding: 8px 0 8px 8px; flex: none; }
  .winter__rail .runway__rail-head { padding: 2px 14px 6px 4px; }
  .winter__rail .runway__pieces { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 8px; }
  .winter__rail .runway__piece { scroll-snap-align: start; }
  .winter__rail .runway__piece a { grid-template-columns: 48px 1fr auto; }
  .winter__rail .runway__piece small + small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .winter__look { transition: opacity .3s; } }

/* =========================================================== SAVOIR-FAIRE */
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tech { position: relative; border-radius: var(--r-l); padding: 22px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; background: var(--dark); color: var(--on-dark); overflow: hidden; transition: transform .5s var(--ease); }
.tech:nth-child(even) { transform: translateY(28px); }
.tech:hover { transform: translateY(-6px); }
.tech:nth-child(even):hover { transform: translateY(20px); }
.tech--light { background: var(--bg-2); color: var(--ink); }
.tech .pill { align-self: flex-start; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 4px 10px; opacity: .8; }
.tech h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.tech h3 em { font-style: normal; color: var(--accent); }
.tech p { font-size: .9rem; opacity: .75; }
.tech__art { position: absolute; right: -14%; top: 18%; width: 70%; opacity: .14; font-family: var(--f-display); font-weight: 900; font-size: 9rem; line-height: .8; letter-spacing: -.06em; pointer-events: none; }
.tech .btn-round { background: transparent; border-color: currentColor; color: inherit; }
@media (max-width: 1000px) { .tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .tech:nth-child(even) { transform: none; } .tech:nth-child(even):hover { transform: translateY(-6px); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } .tech { min-height: 240px; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 20px 20px 0 0; display: grid; gap: 10px; align-content: start; }
.step .num { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* CTA final */
.cta-big { display: grid; gap: 28px; justify-items: start; }
.cta-big h2 { font-size: clamp(2.6rem, 8vw, 8.5rem); letter-spacing: -.05em; line-height: .88; }
.cta-big h2 span { color: var(--ink-3); }

/* =========================================================== CATALOGUE */
.page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(18px, 2vw, 28px); display: grid; gap: 14px; }
.crumbs { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .06em; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); letter-spacing: -.05em; display: flex; align-items: flex-start; gap: 14px; }
.page-hero h1 sup { font-family: var(--f-mono); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: .5em; }
.subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; background: var(--bg); transition: border-color .2s, background .2s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .swatch { width: 14px; height: 14px; }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.toolbar__in { display: flex; align-items: center; gap: 10px; min-height: 58px; overflow-x: auto; scrollbar-width: none; }
.toolbar__in .sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.toolbar .count { margin-left: auto; flex: none; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); }
.filter { position: relative; flex: none; }
.filter > button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; }
.filter > button:hover, .filter.open > button { border-color: var(--ink); }
.filter > button.has-value { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter__panel { position: fixed; z-index: 60; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.25); display: none; width: min(340px, calc(100vw - 32px)); }
.filter.open .filter__panel { display: grid; gap: 8px; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px) clamp(10px, 1.4vw, 18px); padding-block: 28px 80px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.empty { padding: 80px 0; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }
.grid .card { animation: rise .6s var(--ease) both; }
.grid .card:nth-child(4n+2) { animation-delay: .05s; } .grid .card:nth-child(4n+3) { animation-delay: .1s; } .grid .card:nth-child(4n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } }

/* =========================================================== FICHE PRODUIT */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 18px 40px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery__main { position: relative; aspect-ratio: 1 / 1.08; background: var(--bg-2); border-radius: var(--r-l); overflow: hidden; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: opacity .45s, transform .7s var(--ease), filter .5s; }
.gallery__main img.leaving { opacity: 0; transform: translateX(-40px); filter: blur(10px); }
.gallery__main img.entering { opacity: 0; transform: translateX(40px); filter: blur(10px); }
.gallery__word { position: absolute; left: 0; right: 0; bottom: -0.12em; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: clamp(4rem, 11vw, 10rem); letter-spacing: -.06em; line-height: 1; color: var(--bg-3); pointer-events: none; white-space: nowrap; overflow: hidden; }
.gallery__nav { position: absolute; inset: auto 14px 14px auto; display: flex; gap: 8px; z-index: 3; }
.gallery__zone { position: absolute; left: 14px; top: 14px; z-index: 3; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 4/5; background: var(--bg-2); border-radius: var(--r-s); overflow: hidden; border: 1px solid transparent; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }

.buy { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; display: grid; gap: 22px; }
.buy__head { display: grid; gap: 10px; }
.buy__title { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; letter-spacing: 0; line-height: 1.15; }
.buy__tagline { color: var(--ink-2); font-size: 1.02rem; }
.specs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.specs-chips span { font-family: var(--f-mono); font-size: .72rem; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 10px; }
.block { display: grid; gap: 10px; }
.block__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; }
.block__label b { font-weight: 600; }
.colorpick { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px; } /* tous les coloris visibles, sans défilement */
.colorpick .swatch { width: 30px; height: 30px; }
.sizegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.size { border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 6px 6px; display: grid; gap: 4px; justify-items: center; transition: border-color .2s, background .2s; }
.size:focus-within { border-color: var(--ink); }
.size.has-qty { border-color: var(--ink); background: var(--bg-2); }
.size.is-off { opacity: .4; }
.size__name { font-weight: 600; font-size: .86rem; }
.size input { width: 100%; text-align: center; border: 0; background: transparent; font-family: var(--f-mono); font-size: .9rem; padding: 2px 0; outline: none; -moz-appearance: textfield; }
.size input::-webkit-outer-spin-button, .size input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--ask); }
.stock-dot.ok { background: var(--ok); } .stock-dot.low { background: var(--low); } .stock-dot.out { background: var(--out); } .stock-dot.off { background: var(--line); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .74rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle small { font-family: var(--f-mono); font-size: .68rem; opacity: .7; }
textarea.note { width: 100%; min-height: 70px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; font-size: .9rem; background: var(--bg); }
.buy__cta { display: grid; gap: 10px; padding-top: 4px; }
.buy__total { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); }
.buy__msg { font-size: .86rem; min-height: 1.3em; }
.buy__msg.err { color: var(--out); }

.details { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .3s; }
.acc[open] summary .i { transform: rotate(45deg); }
.acc__body { padding-bottom: 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 75ch; }
.acc__body ul { margin: 0; padding-left: 18px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: .92rem; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; color: var(--ink); }

.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zone { background: var(--bg-2); border-radius: var(--r-m); padding: 16px; display: grid; gap: 4px; }
.zone b { font-family: var(--f-display); font-size: 1.1rem; }

/* Barre devis mobile */
.mbar { display: none; }
@media (max-width: 960px) {
  .buy { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
  body.has-mbar { padding-bottom: 76px; }
}

/* =========================================================== TIROIR SÉLECTION */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(18,18,18,.35); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__bg { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { aspect-ratio: 4/5; background: var(--bg-2); border-radius: var(--r-s); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.line__title { font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; font-weight: 500; }
.line__meta { font-size: .8rem; color: var(--ink-2); display: grid; gap: 2px; }
.line__qty { font-family: var(--f-mono); font-size: .76rem; color: var(--ink); }
.line__rm { color: var(--ink-3); font-size: .78rem; text-decoration: underline; }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

/* Toast */
/* width: max-content : sans elle, « left: 50% » limitait la bulle à la moitié de l'écran (texte en colonne, bulle ronde sur mobile) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 140%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-l); display: flex; gap: 14px; align-items: center; justify-content: space-between; font-size: .9rem; line-height: 1.35; transition: transform .45s var(--ease); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 960px) { .has-mbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } } /* au-dessus de la barre « Ajouter au devis » */
@media (max-width: 600px) { .toast { width: calc(100vw - 32px); } }
.toast:not(.show) { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.toast:empty { display: none; }
.toast.show { transform: translate(-50%, 0); }
.toast a { text-decoration: underline; white-space: nowrap; }

/* =========================================================== PAGE SÉLECTION / DEVIS */
.quote { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 80px; align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.qline { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.qline__img { aspect-ratio: 4/5; background: var(--bg-2); border-radius: var(--r-m); overflow: hidden; }
.qline__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.qline__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.qline__body { display: grid; gap: 12px; min-width: 0; }
.qline .sizegrid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.form-card { position: sticky; top: calc(var(--header-h) + 18px); background: var(--bg-2); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; }
@media (max-width: 960px) { .form-card { position: static; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; }
.form-card, .quote > * { min-width: 0; }
.field label { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select { height: 46px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 14px; background: var(--bg); outline: none; font-size: .95rem; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.err input { border-color: var(--out); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.summary { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 12px; }
.done { text-align: center; padding: 80px 0; display: grid; gap: 18px; justify-items: center; }
.done h2 { font-size: clamp(2.4rem, 6vw, 5rem); }

/* =========================================================== PIED */
.site-footer { background: var(--dark); color: var(--on-dark); margin-top: 40px; }
/* Grand mot du pied de page : la taille suit la largeur du conteneur (cqi) pour tenir en entier sur une ligne */
.site-footer__big { container-type: inline-size; padding-top: clamp(32px, 5vw, 64px); overflow: hidden; }
.site-footer__big span { display: block; font-family: var(--f-display); font-weight: 900; font-size: 12.15cqi; letter-spacing: -.065em; line-height: .8; padding-bottom: .04em; white-space: nowrap; text-align: center; color: #2a2a2a; background: linear-gradient(180deg, #313131 0%, #232323 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
.site-footer h4 { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9b9b97; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__legal { border-top: 1px solid #2c2c2c; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); font-size: .78rem; color: #8d8d89; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* Révélation au défilement (contenu visible par défaut, animé seulement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Packshots détourés (wp soc cutout) : le vêtement passe devant le texte */
.hero__garment.is-cut img { mix-blend-mode: normal; }
.hero__garment.is-cut .main { filter: drop-shadow(0 30px 30px rgba(0,0,0,.18)); }
.hero__garment.is-cut.is-moving .main { filter: blur(8px); }
.band__img.is-cut { mix-blend-mode: normal; }
.band__img.is-cut img { filter: drop-shadow(0 34px 34px rgba(0,0,0,.22)); }

/* =========================================================== ENCOCHE (coin découpé, arrondi inversé)
   Usage : <div class="notch notch--tr"> … <span class="notch__slot">contenu</span></div>
   Variantes de coin : --tr (haut droite), --tl, --br, --bl.
   Réglages : --nw / --nh (taille de l'encoche), --nr (arrondi), --nbg (couleur du fond derrière l'élément). */
.notch { position: relative; --nw: 56px; --nh: 56px; --nr: 14px; --nbg: var(--bg); }
.notch::after, .notch::before { content: ""; position: absolute; pointer-events: none; z-index: 2; }
/* L'encoche elle-même */
/* +1px : l'encoche déborde de 1px vers l'extérieur (top/right:-1px) ; sans ce +1 il reste une fente
   d'un pixel entre l'encoche et ses raccords, visible en trait sombre sur les photos. */
.notch::after { width: calc(var(--nw) + 1px); height: calc(var(--nh) + 1px); background: var(--nbg); }
/* Les deux raccords arrondis de part et d'autre de l'encoche */
.notch::before { inset: 0; background-repeat: no-repeat; background-size: var(--nr) var(--nr); }

.notch--tr::after { top: -1px; right: -1px; border-bottom-left-radius: var(--nr); }
.notch--tr::before { background-image: radial-gradient(circle at 0 100%, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr)), radial-gradient(circle at 0 100%, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr));
  background-position: right var(--nw) top 0, right 0 top var(--nh); }
.notch--tl::after { top: -1px; left: -1px; border-bottom-right-radius: var(--nr); }
.notch--tl::before { background-image: radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr)), radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr));
  background-position: left var(--nw) top 0, left 0 top var(--nh); }
.notch--br::after { bottom: -1px; right: -1px; border-top-left-radius: var(--nr); }
.notch--br::before { background-image: radial-gradient(circle at 0 0, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr)), radial-gradient(circle at 0 0, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr));
  background-position: right var(--nw) bottom 0, right 0 bottom var(--nh); }
.notch--bl::after { bottom: -1px; left: -1px; border-top-right-radius: var(--nr); }
.notch--bl::before { background-image: radial-gradient(circle at 100% 0, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr)), radial-gradient(circle at 100% 0, transparent calc(var(--nr) - .5px), var(--nbg) var(--nr));
  background-position: left var(--nw) bottom 0, left 0 bottom var(--nh); }

/* Contenu logé dans l'encoche (bouton, flèche, numéro) */
.notch__slot { position: absolute; z-index: 3; width: calc(var(--nw) - 10px); height: calc(var(--nh) - 10px); display: grid; place-items: center; }
.notch--tr .notch__slot { top: 0; right: 0; }
.notch--tl .notch__slot { top: 0; left: 0; }
.notch--br .notch__slot { bottom: 0; right: 0; }
.notch--bl .notch__slot { bottom: 0; left: 0; }
.notch__btn { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); transition: background .25s, color .25s, transform .35s var(--ease); }
.notch__btn:hover, .card:hover .notch__btn { background: var(--ink); color: var(--bg); }
.card:hover .notch__btn .i-plus { transform: rotate(90deg); }
.notch__btn .i { transition: transform .35s var(--ease); width: 20px; height: 20px; }

/* Application */
.card__frame { --nw: 54px; --nh: 54px; --nr: 14px; }
.card__frame .card__media { border-radius: var(--r-m); }
.card__frame.notch--tl .card__badges, .card__frame.notch--tr .card__badges { top: auto; bottom: 10px; }
.card__frame.notch--tl .card__badges { left: 10px; }
.cat-tile__img.notch { --nw: 50px; --nh: 50px; --nr: 14px; }
.cat-tile .notch__btn { background: var(--bg-2); }
.cat-tile:hover .notch__btn { background: var(--ink); color: var(--bg); }
.gallery__main.notch { --nw: 116px; --nh: 62px; --nr: 18px; }
.gallery__main .notch__slot { gap: 8px; display: flex; align-items: center; justify-content: center; }
.gallery__main .notch__slot .btn-round { border-color: var(--line); }
.tech.notch { --nw: 64px; --nh: 64px; --nr: 18px; }
.tech .notch__slot { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); }
.tech .notch__slot span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.hero__card.notch { --nw: 52px; --nh: 52px; --nr: 14px; }
.hero__card .notch__slot a { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease); }
.hero__card .notch__slot a:hover { transform: rotate(-45deg); }
@media (max-width: 720px) {
  .card__frame { --nw: 46px; --nh: 46px; --nr: 12px; }
  .card__frame .notch__btn .i { width: 17px; height: 17px; }
}
.tech.notch--br { padding-bottom: calc(var(--nh) + 14px); }
.cat-tile--empty .cat-tile__img { position: relative; }

/* Tuiles catégories : photo de mise en scène plein cadre (méta soc_scene) */
.cat-tile__img { aspect-ratio: 3 / 4; }
.cat-tile--scene .cat-tile__img { padding: 0; background: var(--bg-3); }
.cat-tile--scene .cat-tile__img img { object-fit: cover; mix-blend-mode: normal; }
.cat-tile--scene:hover .cat-tile__img img { transform: scale(1.04); }

/* Filtre couleur : grandes pastilles lisibles */
.filter > button .swatch { width: 16px; height: 16px; }
.filter > button.has-value .swatch { box-shadow: 0 0 0 1.5px var(--bg); }
.rainbow { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#e4572e, #e8c34a, #5d7f5a, #3e6aa8, #6f4f8f, #e3a3b5, #e4572e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.filter--colors .filter__panel { width: min(480px, calc(100vw - 32px)); padding: 18px; border-radius: var(--r-l); gap: 14px; }
.cpanel__head { display: flex; justify-content: space-between; align-items: baseline; }
.cpanel__head b { font-family: var(--f-display); font-size: 1.15rem; }
.cpanel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .cpanel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cswatch { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--r-m); text-align: center; transition: background .2s; }
.cswatch:hover { background: var(--bg-2); }
.cswatch.is-active { background: var(--bg-2); }
.cswatch__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .3s var(--ease), box-shadow .2s; color: #fff; }
.cswatch:hover .cswatch__dot { transform: scale(1.08); }
.cswatch.is-active .cswatch__dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }
.cswatch__dot .i { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cswatch__label { font-size: .8rem; font-weight: 500; line-height: 1.2; }
.cswatch__n { font-size: .68rem; color: var(--ink-3); }
.cswatch.is-empty { opacity: .35; pointer-events: none; }

/* Certifications : logos officiels */
.certs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--bg-2); border-radius: var(--r-m); transition: background .2s; }
.certs-row:hover { background: var(--bg-3); }
.certs-row img { height: 64px; width: auto; max-width: 110px; object-fit: contain; mix-blend-mode: multiply; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.cert { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--bg-2); border-radius: var(--r-m); padding: 12px; }
.cert__logo { background: #fff; border-radius: var(--r-s); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.cert__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert b { color: var(--ink); font-size: .92rem; }
.cert p { font-size: .82rem; margin-top: 2px; }
.cert-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--bg); font-size: .8rem; font-weight: 600; }
.cert-pill .i { width: 16px; height: 16px; color: var(--ok); }
.cert__logo .i { width: 30px; height: 30px; color: var(--ok); }

/* =========================================================== TUILE VEDETTE (modèle recommandé) */
.card--featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 12px; }
.card--featured .card__frame { flex: 1; --nw: 64px; --nh: 64px; --nr: 18px; }
.card--featured .card__media { height: 100%; min-height: 460px; aspect-ratio: auto; background: var(--dark); border-radius: var(--r-l); isolation: auto; }
.card--featured .card__media img.main { padding: 9% 14% 20%; mix-blend-mode: normal; }
.card--featured .card__media:not(.is-cut) img.main { background: transparent; mix-blend-mode: normal; border-radius: var(--r-m); }
.card--featured .card__media.is-cut img.main { filter: drop-shadow(0 34px 34px rgba(0,0,0,.55)); }
.card--featured:hover .card__media img.main { transform: scale(1.04) translateY(-6px); }
.feat__word { position: absolute; left: 0; right: 0; top: 42%; transform: translateY(-50%); text-align: center; font-family: var(--f-display); font-weight: 900; font-size: clamp(4rem, 12vw, 11rem); letter-spacing: -.06em; line-height: .8; color: #262626; white-space: nowrap; overflow: hidden; pointer-events: none; }
.feat__label { position: absolute; left: 18px; top: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--r-pill); }
.feat__info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; display: grid; gap: 6px; color: var(--on-dark); }
.feat__pitch { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2.1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.05; max-width: 22ch; }
.feat__facts { color: #a9a9a5; font-size: .74rem; }
.card--featured .card__title { font-size: 1.05rem; }
.card--featured .notch__btn { background: var(--ink); color: var(--bg); }
.card--featured:hover .notch__btn .i-arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .card--featured { grid-row: auto; }
  .card--featured .card__media { min-height: 0; aspect-ratio: 4 / 5; }
  .card--featured .card__media img.main { padding: 10% 12% 26%; }
}
.certs-row .cert-pill--logo { height: auto; padding: 8px 14px 8px 10px; gap: 10px; border-radius: var(--r-m); line-height: 1.2; max-width: 260px; }
.certs-row .cert-pill--logo img { height: 30px; max-width: none; mix-blend-mode: multiply; }

/* =========================================================== SECTION « NOTRE SPÉCIALITÉ » (personnalisation) */
.perso__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(22px, 3vw, 36px); }
.perso__head .eyebrow { grid-column: 1 / -1; }
.perso__head h2 { font-size: clamp(2.2rem, 5.4vw, 4.8rem); letter-spacing: -.045em; line-height: .95; }
.perso__head h2 span { color: var(--accent); }
.perso__head p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) { .perso__head { grid-template-columns: 1fr; } }

.perso__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .perso__grid { grid-template-columns: 1fr; } }
.perso-card { --nw: 64px; --nh: 64px; --nr: 18px; position: relative; border-radius: var(--r-l); background: var(--bg-2); color: var(--ink); padding: clamp(20px, 2.6vw, 30px); min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; }
.perso-card--dark { background: var(--dark); color: var(--on-dark); }
.perso-card__tag { align-self: flex-start; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 4px 11px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.perso-card__body { display: grid; gap: 12px; position: relative; z-index: 1; }
.perso-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.03em; }
.perso-card p { font-size: .95rem; opacity: .78; max-width: 48ch; }
.perso-card__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.perso-card__list li { font-size: .78rem; font-weight: 500; border-radius: var(--r-pill); padding: 6px 12px; background: rgba(255,255,255,.08); }
.perso-card:not(.perso-card--dark) .perso-card__list li { background: var(--bg); }
.perso-card .notch__btn { background: var(--ink); color: var(--bg); }
.perso-card:hover .notch__btn .i-arrow { transform: translateX(3px); }


/* Illustration « fichiers déposés » (vos visuels) */
.perso-card__files { position: relative; height: 190px; }
.file { position: absolute; display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 10px 14px 10px 10px; font-family: var(--f-mono); font-size: .8rem; box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); --r: 0deg; transform: rotate(var(--r)); animation: fileFloat 7s ease-in-out infinite; }
@keyframes fileFloat { 50% { transform: translateY(-8px) rotate(var(--r)); } }
.file b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font-size: .66rem; letter-spacing: .04em; color: #fff; }
.file.f1 { left: 6%; top: 6%; --r: -4deg; } .file.f1 b { background: #e4572e; }
.file.f2 { left: 40%; top: 0; --r: 3deg; animation-delay: -2s; } .file.f2 b { background: #3e6aa8; }
.file.f3 { left: 18%; top: 50%; --r: 2deg; animation-delay: -4s; } .file.f3 b { background: #121212; }
.file.f4 { left: 52%; top: 46%; --r: -3deg; animation-delay: -5s; } .file.f4 b { background: #5d7f5a; }
@media (max-width: 520px) { .file.f2, .file.f4 { left: 34%; } .perso-card { min-height: 0; } }

/* Vidéo « flocage » (vos visuels) : presse à chaud, logo SOC, générée avec Kling (sources data/scenes/flocage/) */
.perso-card__press { position: relative; align-self: stretch; }
.press__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); background: #d9d8d3; }
.press__file { left: 14px; bottom: -14px; --r: -3deg; z-index: 1; }
.press__file b { background: #e4572e; }
.perso-card__press--dark .press__video { background: #1d1d1c; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.perso-card__press--dark .press__file { color: var(--ink); --r: 2deg; }
.perso-card__press--dark .press__file b { background: #121212; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
@media (max-width: 520px) { .press__file { display: none; } }

/* Dépôt de visuels (formulaire de devis) */
.field__label { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed #c9c9c4; border-radius: var(--r-m); background: var(--bg); cursor: pointer; font-size: .86rem; line-height: 1.35; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: #fafaf8; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease); }
.dropzone:hover .dropzone__icon, .dropzone.is-over .dropzone__icon { transform: rotate(90deg); }
.dropzone .muted { font-size: .76rem; }
.files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--bg); border-radius: var(--r-s); padding: 6px 10px 6px 6px; font-size: .84rem; }
.files-list__ext { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: .6rem; }
.files-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tuile vedette avec photo de mise en situation */
.card--featured .card__media.has-photo img.main { padding: 0; object-fit: cover; object-position: center 30%; mix-blend-mode: normal; border-radius: 0; filter: none; }
.card--featured .card__media.has-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10,10,10,.72), rgba(10,10,10,0)); z-index: 2; pointer-events: none; }
.card--featured:hover .card__media.has-photo img.main { transform: scale(1.03); }

/* Tuile vedette : nom du modèle bien lisible + vignette packshot */
.feat__name { font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.7rem); letter-spacing: -.01em; line-height: 1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.feat__name small { font-family: var(--f-body); text-transform: none; font-size: .78rem; font-weight: 500; letter-spacing: 0; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: var(--r-pill); padding: 4px 10px; }
.card--featured .feat__pitch { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; opacity: .92; }
.feat__thumb { position: absolute; right: 0; bottom: 0; width: clamp(74px, 9vw, 104px); aspect-ratio: 4 / 5; background: var(--bg-2); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.feat__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.card--featured .card__media.has-photo .feat__info { padding-right: clamp(86px, 10.5vw, 120px); }
.card--featured .card__media.has-photo::after { inset: 38% 0 0; }

/* ---- Espace revendeurs (espace-pro.php) : connexion, tarifs et calculateur de devis sur le site.
   Les écrans viennent de l'extension (assets/pricing.css) ; ici, l'habillage aux couleurs du site. */
.pro { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 90px); }
.pro h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 8px 0 0; }
.pro-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pro-tabs a { text-decoration: none; }
.pro-login { max-width: 440px; margin: clamp(10px, 4vw, 50px) auto; background: var(--bg-2); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.pro-login h1 { font-size: 2.2rem; }
.pro-login p { color: var(--ink-2); margin: 0; }
.pro-alert { background: #fdecea; color: #9b1c1c !important; border-radius: var(--r-s); padding: 10px 14px; }
.pro-login form { display: grid; gap: 12px; }
.pro-login form p { margin: 0; display: grid; gap: 6px; }
.pro-login label { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.pro-login input[type="text"], .pro-login input[type="password"] { height: 48px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 14px; background: var(--bg); font-size: 1rem; width: 100%; }
.pro-login input:focus { border-color: var(--ink); outline: none; }
.pro-login .login-remember label { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.pro-login #wp-submit { height: 50px; width: 100%; border-radius: var(--r-pill); border: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .95rem; cursor: pointer; }
.pro-lost { font-size: .85rem; color: var(--ink-2); text-decoration: underline; justify-self: start; }

.socp-front { --bg2: #f2f2ef; }
.socp-front .socp-demo { border-radius: var(--r-m); }
.socp-front .socp-ok { background: #e9f6ec; border-radius: var(--r-s); padding: 2px 14px; margin-bottom: 12px; }
.socp-front .socp-filters input, .socp-front .socp-filters select, .socp-front .socp-bar select,
.socp-front .socp-line select, .socp-front .socp-line input[type="number"], .socp-front .socp-model, .socp-front .socp-client input {
  height: 42px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; background: var(--bg); font: inherit; font-size: .92rem; }
.socp-front .socp-filters input[type="search"] { min-width: min(100%, 340px); }
.socp-front .socp-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.socp-front .socp-table th { text-align: left; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 10px 8px; border-bottom: 2px solid var(--ink); background: var(--bg); position: sticky; top: var(--header-h); z-index: 2; }
.socp-front .socp-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.socp-front .socp-table tbody tr:hover td { background: var(--bg-2); }
.socp-front .socp-table .num { text-align: right; }
.socp-front .socp-cost { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.socp-front .socp-save { background: var(--bg); padding: 14px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.socp-front .socp-save .description { color: var(--ink-2); font-size: .85rem; }
.socp-front .socp-doc { border-radius: var(--r-l); }
.socp-front .socp-sizes input { width: 58px; padding: 0 6px; text-align: center; }
.socp-front .socp-del { background: none; border: 0; text-decoration: underline; cursor: pointer; }
.socp-front .socp-line { border-radius: var(--r-m); }
@media (max-width: 900px) {
  .socp-front .socp-table-wrap, .socp-front form { overflow-x: auto; }
  .socp-front .socp-table th { position: static; }
}
@media print {
  .ticker, .site-header, .site-footer, .mbar, .pro-head, .toast, .drawer, .mobile-nav, .search-panel { display: none !important; }
  body.has-mbar { padding-bottom: 0 !important; }
  .pro { padding: 0; }
}
/* accès discret à l'espace revendeurs (en-tête) */
.pro-access { opacity: .55; transition: opacity .2s; }
.pro-access:hover, .pro-access:focus-visible { opacity: 1; }
.pro-access .i { width: 20px; height: 20px; }
@media (max-width: 420px) { .pro-access { display: none; } } /* sur petit écran : lien du pied de page */
/* réglages des tarifs sur le site */
.socp-front .socp-card { border-radius: var(--r-l); border-color: var(--line); }
.socp-front .socp-card h2 { font-size: 1.15rem; }
.socp-front .socp-card .description { color: var(--ink-2); font-size: .88rem; }
.socp-front .socp-grid { border-collapse: collapse; }
.socp-front .socp-grid input, .socp-front .socp-card input[type="number"], .socp-front .socp-card .regular-text { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--bg); font: inherit; font-size: .9rem; }
.socp-front .socp-card .regular-text { width: min(100%, 360px); }
.socp-front .socp-card { overflow-x: auto; }
.pro-lost a { text-decoration: underline; }
/* accès discret à l'espace revendeurs dans le menu mobile */
.mobile-nav__pro { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; align-self: flex-start; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mobile-nav__pro .i { width: 18px; height: 18px; }
