@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 400; font-display: swap; src: url('/fonts/work-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-display: swap; src: url('/fonts/work-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-display: swap; src: url('/fonts/work-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 700; font-display: swap; src: url('/fonts/work-sans-latin-700-normal.woff2') format('woff2'); }

/* Direction « Vestiaire » : sobre, lignes fines, beaucoup de blanc. Shopami reste neutre ;
   sur la boutique d'un club et ses fiches, la couleur du club (--club) porte les actions. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f4f4f5;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --field: #cbd5e1;
  --brand: #0f172a;
  --brand-dark: #0f172a;
  --accent: #0f172a;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px rgba(15, 23, 42, .08);
  --font: 'Work Sans', "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: 'Outfit', "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg { display: block; max-width: 100%; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding-block: 2.5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.nav a, .nav .link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: .4rem; }
.nav a:hover, .nav .link:hover { color: var(--brand); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-spacer { flex: 1; }
.site-header .nav-toggle { display: none; margin-left: auto; }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; }
.pill { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 .5rem; font-size: .8rem; min-width: 1.5rem; text-align: center; }
.inline { display: inline; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nav .link { text-decoration: none; }

/* Boutons */
.btn, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; padding: .6rem 1.1rem; border-radius: 8px; cursor: pointer; text-decoration: none; transition: transform .12s, background .12s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost, .nav-toggle { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .3rem .75rem; font-size: .85rem; border-width: 1.5px; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }

/* Messages */
.flash { margin: 1.25rem 0 0; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; overflow-wrap: anywhere; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: var(--soft); border-color: #9fcfbf; color: #0f4033; }
.flash-error { background: #fdecea; border-color: #f0a8a0; color: #7a1c12; }
.notice { background: #fff6e5; border: 1px solid #f1d49a; border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }

/* Accueil */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: 4rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.hero-visual { position: relative; aspect-ratio: 1; }
.hero-garment { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 1rem; }
.hero-garment.g0 { width: 62%; left: 0; top: 4%; transform: rotate(-4deg); background: #fff; }
.hero-garment.g1 { width: 48%; right: 0; top: 30%; transform: rotate(5deg); background: #1d2a44; border-color: #1d2a44; }
.hero-garment.g2 { width: 38%; left: 18%; bottom: 0; transform: rotate(-2deg); background: #fff; }
.search { position: relative; display: flex; gap: .5rem; max-width: 560px; margin-block: 1.5rem; }
.search input { flex: 1; }
.suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: .3rem; z-index: 4; }
.suggestions a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.suggestions a:hover, .suggestions a:focus { background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 0; max-width: 560px; }
.stats div { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--surface); }
.stats dt { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.stats dd { margin: 0; color: var(--muted); font-size: .82rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.band { background: var(--brand-dark); color: #fff; padding-block: 3.5rem; margin-top: 2rem; }
.band h2 { font-size: 1.8rem; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; margin: 1.5rem 0 2rem; }
.steps li { counter-increment: s; border-top: 2px solid rgba(255, 255, 255, .35); padding-top: 1rem; display: grid; gap: .4rem; }
.steps li::before { content: "0" counter(s); font-family: var(--head); font-weight: 700; color: rgba(255, 255, 255, .55); }
.steps span { color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* Grilles et cartes */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .club-card, .product-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card, .club-card, .product-card { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover, .club-card:hover, .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); color: var(--ink); }
.discipline { display: grid; gap: .4rem; padding: 1.2rem; align-content: start; }
.discipline strong { font-size: 1.15rem; }
.tag { display: inline-block; justify-self: start; background: var(--soft); color: var(--brand-dark); font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 8px; text-decoration: none; }
.club-card { display: flex; gap: .9rem; padding: 1rem; align-items: center; }
.club-card-body { display: grid; gap: .15rem; min-width: 0; }
.club-logo { display: block; width: 64px; flex: none; }
.club-logo-lg { width: 120px; }
.product-card { display: grid; gap: .25rem; padding: .9rem; align-content: start; }
.product-visual { display: block; background: var(--soft); border-radius: 10px; padding: 8%; margin-bottom: .5rem; }
.product-visual-lg { padding: 10%; margin-bottom: 0; }
.gallery { align-self: start; position: sticky; top: 84px; display: grid; gap: .75rem; }
.gallery-admin { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.is-draggable { cursor: move; touch-action: none; }
.logo-frame { position: absolute; border: 1.5px dashed var(--ink); border-radius: 4px; pointer-events: none; }
.logo-handle { position: absolute; right: -13px; bottom: -13px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: nwse-resize; pointer-events: auto; }
.gallery-label { margin: 0 0 .3rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gallery-thumbs { display: flex; gap: .6rem; }
.gallery-thumb { width: 84px; padding: 4px 4px 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); }
.gallery-thumb .product-visual { padding: 6%; margin-bottom: 4px; }
.gallery-thumb.is-active { border-color: var(--ink); color: var(--ink); }
.gallery-thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.club-banner { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--club, var(--brand)); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.club-banner:hover { box-shadow: var(--shadow); color: var(--ink); }
.club-banner .club-logo { width: 56px; flex: none; }
.club-banner-text { display: grid; line-height: 1.25; min-width: 0; }
.club-banner-text small { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.club-banner-text strong { font-size: 1.1rem; }
.product-desc { font-size: 1.05rem; line-height: 1.6; }
.marking-box { background: var(--soft); border-radius: 10px; padding: .8rem 1rem; }
.marking-box ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.marking-title { margin: 0; font-weight: 800; color: var(--brand-dark); }
.assure { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .45rem; }
.assure li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.assure li::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; background: var(--club, var(--ink)); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-weight: 700; padding: .85rem 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.accordion details[open] summary::after { content: "–"; }
.accordion details > :not(summary) { margin: 0 1rem 1rem; }
.thumb { width: 56px; padding: 4px; margin: 0; }
.product-visual img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; mix-blend-mode: multiply; }
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .1rem 1.5rem; margin: 0 0 1.25rem; }
.sheet div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .4rem 0; }
.sheet dt { color: var(--muted); font-size: .9rem; }
.sheet dd { margin: 0; font-weight: 650; text-align: right; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .4rem; }
.swatch { display: flex; gap: .5rem; align-items: center; cursor: pointer; font-weight: 500; }
.swatch span { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.swatch i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.search-wide { max-width: 860px; }
.search-wide select { width: auto; }
code { background: var(--soft); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }
.log { background: #1d1d22; color: #e8e6df; padding: .8rem 1rem; border-radius: 10px; font-size: .82rem; overflow-x: auto; white-space: pre-wrap; margin: 0; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
input[type=file] { padding: .45rem; }
.visual-wrap { position: relative; display: block; }
.visual-wrap > svg { display: block; }
.product-visual img.visual-logo, .hero-garment img.visual-logo { position: absolute; transform: translate(-50%, -50%); height: auto; aspect-ratio: auto; mix-blend-mode: normal; border-radius: 0; max-width: none; pointer-events: none; }
.club-logo-img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--ink); }
.color-filter { flex-basis: 100%; border: 0; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.color-filter legend { float: left; margin-right: .6rem; font-weight: 650; font-size: .9rem; padding: 0; }
.color-chip { cursor: pointer; font-weight: 500; font-size: .88rem; }
.color-chip input { position: absolute; opacity: 0; pointer-events: none; }
.color-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1.5px solid var(--field); border-radius: 8px; background: #fff; }
.color-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.color-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.color-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-wide { flex-wrap: wrap; }
.btn-danger { background: #fff; color: #b3261e; border-color: #e3b1ad; }
.btn-danger:hover { background: #b3261e; color: #fff; border-color: #b3261e; }
.size-guide { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin: 0 0 1.25rem; background: var(--surface); }
.size-guide summary { cursor: pointer; font-weight: 700; }
.size-guide table { margin-top: .6rem; font-size: .92rem; }
.size-guide th, .size-guide td { padding: .35rem .6rem; text-align: center; }
.size-guide tbody th { text-align: left; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; white-space: pre; overflow-x: auto; }
.product-visual img, .product-visual svg { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.price { font-weight: 800; }
.price-lg { font-size: 1.7rem; letter-spacing: -.02em; }

/* Annuaire, boutique, produit */
.directory { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; margin-top: 1.5rem; }
.directory aside h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.1rem 0 .3rem; }
.filter { display: flex; justify-content: space-between; padding: .35rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.filter:hover { background: var(--surface); }
.filter.is-active { background: var(--ink); color: #fff; }
.filter.is-active .muted { color: #cfcfd6; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.club-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.club-head h1 { margin: .3rem 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.toolbar form { display: flex; align-items: center; gap: .5rem; }
.toolbar p { margin: 0; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product > *, .product .stack > * { min-width: 0; }
.size-guide .table-wrap { overflow-x: auto; }
.product h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; min-width: 2.8rem; text-align: center; border: 2px solid var(--line); background: var(--surface); border-radius: 10px; padding: .4rem .7rem; font-weight: 700; cursor: pointer; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy { display: flex; gap: 1rem; align-items: end; }
.buy .field { width: 110px; }

/* Formulaires */
.stack { display: grid; gap: 1.1rem; }
.panel { padding: 1.4rem; margin-bottom: 1.25rem; }
.field { display: grid; gap: .3rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
label, legend { font-weight: 650; font-size: .93rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; min-width: 0; }
legend { padding: 0; margin-bottom: .4rem; }
input:not([type=radio], [type=checkbox], [type=color]), select, textarea { font: inherit; color: inherit; width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.radio { display: flex; gap: .55rem; align-items: baseline; font-weight: 500; cursor: pointer; }
.radio input { accent-color: var(--brand); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .4rem; }
.auth { max-width: 460px; }
.step > legend { font-size: 1.2rem; font-weight: 750; margin-bottom: .8rem; }
.step { gap: 1rem; }
.step + .step { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.js-steps .step + .step { border-top: 0; padding-top: 0; }
.step-indicator { font-weight: 700; color: var(--brand); margin: 0; }
.step-nav { display: flex; gap: .75rem; justify-content: flex-end; }

/* Panier et commande */
.lines { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.line { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.line-visual { margin: 0; padding: 6px; }
.line-body { display: grid; gap: .1rem; }
.line-qty { display: flex; gap: .4rem; align-items: center; }
.line-qty input { width: 72px; }
.summary { margin-left: auto; max-width: 360px; display: grid; gap: .4rem; }
.summary p, .total, .recap li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.total { font-size: 1.15rem; border-top: 2px solid var(--ink); padding-top: .6rem; }
.recap { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }

/* Tableaux, onglets, espace gestionnaire */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .7rem; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: #0f6b4f; font-weight: 700; }
.neg { color: #a12a1c; font-weight: 700; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
td.actions { display: table-cell; white-space: nowrap; }
td.actions > * { margin-right: .3rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 8px; background: var(--soft); color: #44464f; white-space: nowrap; }
.badge-disponible, .badge-paid { background: #fff0d6; color: #7a4a00; }
.badge-demandee { background: #e2ecff; color: #1d3f8f; }
.badge-versee, .badge-shipped { background: #dff3ea; color: #0f5a43; }
.badge-refusee { background: #fde4e1; color: #8a2317; }
.badge-en_cours { background: #efe6ff; color: #4b2a94; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.tabs a { padding: .45rem 1rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; font-size: .93rem; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.partner { display: flex; gap: 1.25rem; align-items: center; }
.partner > div:nth-child(2) { flex: 1; min-width: 0; }
.partner h1 { font-size: 1.6rem; }
.partner p { margin-bottom: .5rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.share { font-size: .85rem; }
.share input { max-width: 380px; padding: .3rem .6rem !important; font-size: .85rem; }
.balance { background: var(--ink); color: #fff; border-radius: 12px; padding: 1rem 1.3rem; text-align: right; }
.balances { display: grid; gap: .5rem; }
.balance-alt { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.stats-wide { max-width: none; grid-template-columns: repeat(3, 1fr); }
.amount { max-width: 220px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.balance span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.balance strong { font-size: 1.4rem; letter-spacing: -.02em; }
.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--brand); }
.chart g:hover .bar { fill: var(--muted); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart text { font-size: 11px; text-anchor: middle; fill: var(--muted); font-family: var(--font); }
.chart .bar-value { fill: var(--ink); font-weight: 700; }
.validate { display: inline-flex; gap: .4rem; align-items: center; }
.validate select { width: auto; padding: .3rem .5rem !important; }
.marking { margin: 0; }
.validate input { width: 90px; padding: .3rem .5rem !important; }
.order { border-top: 1px solid var(--line); }
.order summary { display: grid; grid-template-columns: 1fr auto 130px; gap: 1rem; align-items: center; padding: .8rem .3rem; cursor: pointer; }
.order summary:hover { background: var(--bg); }
.order[open] summary { border-bottom: 1px dashed var(--line); }
.order .table-wrap { padding: .3rem 0 1rem; }
.manager-cta { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--ink); }
.manager-cta span:nth-child(2) { flex: 1; }
.manager-cta:hover { border-color: var(--ink); color: var(--ink); }
.request { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding-block: 1rem; border-top: 1px solid var(--line); }
.request p { margin: .3rem 0 0; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem 1.5rem; margin-top: 3rem; }
.band + .site-footer, main > .band:last-child { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; padding-block: .15rem; }
.footer-grid a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-grid, .product, .checkout, .directory { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { position: static; }
  .site-header .nav-toggle { display: inline-flex; padding: .4rem .9rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; gap: .6rem; }
  .nav.is-open { display: flex; }
  .line { grid-template-columns: 64px 1fr auto; }
  .partner { flex-direction: column; align-items: stretch; }
  .balances { grid-template-columns: 1fr 1fr; }
  .order summary { grid-template-columns: 1fr auto; }
  .order summary .num { grid-column: 1 / -1; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .club-head { flex-direction: column; align-items: flex-start; }
  .search { flex-direction: column; }
  .request { flex-direction: column; }
}
/* --- Vestiaire : typographie, formes et couleur du club */
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M7 12.5l3.4 3.4L17 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
h1, h2, h3, .brand, .price, .stats dt, .balance strong, .club-banner-text strong, .discipline strong, .step > legend { font-family: var(--head); }
h1 { font-weight: 700; letter-spacing: -.025em; }
h2 { font-weight: 600; }
.price { font-weight: 700; }
.brand { font-weight: 700; font-size: 1.25rem; }
.btn, .nav-toggle { font-family: var(--head); font-weight: 600; border-width: 1.5px; cursor: pointer; transition: background .2s, border-color .2s, color .2s, filter .2s; }
.btn:hover { background: #1e293b; border-color: #1e293b; transform: none; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.card:hover, .club-card:hover, .product-card:hover { transform: none; }
.product-card { padding: 0 0 .9rem; border: 0; border-radius: 0; background: none; }
.product-card:hover { box-shadow: none; }
.product-card .product-visual { transition: background .2s; }
.product-card:hover .product-visual { background: #e9e9ec; }
.product-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.product-visual { border-radius: var(--radius); }
.tag { color: var(--ink); border-radius: 6px; }
.toolbar { border-top-width: 1px; border-top-color: var(--line); }
th { border-bottom: 1px solid var(--ink); }
.marking-box { border-radius: var(--radius); }
.marking-title { font-family: var(--head); font-weight: 600; color: var(--ink); }
.chip span { border-width: 1.5px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.chip span:hover { border-color: var(--ink); }
.eyebrow, .step-indicator { color: var(--muted); }
.radio input { accent-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.flash, .notice { border-radius: var(--radius); }

/* Boutique d'un club et fiches de ses articles : la couleur du club porte les actions. */
.club-scope .btn:not(.btn-ghost, .btn-danger, .btn-light, .btn-small) { background: var(--club); border-color: var(--club); color: var(--club-ink); }
.club-scope .btn:not(.btn-ghost, .btn-danger, .btn-light, .btn-small):hover { filter: brightness(.9); }
.club-scope .club-banner { background: var(--club); color: var(--club-ink); border: 0; }
.club-scope .club-banner:hover { color: var(--club-ink); box-shadow: none; filter: brightness(.94); }
.club-scope .club-banner-text small { color: inherit; opacity: .8; }
.club-scope .club-banner .club-logo { background: #fff; border-radius: 50%; padding: 3px; }
.club-scope .club-head { border-bottom: 3px solid var(--club); padding-bottom: 1.5rem; }
.club-scope .toolbar { border-top: 0; padding-top: 0; }
.club-scope .gallery-thumb.is-active { border-color: var(--club); }

/* --- Vestiaire, version plus chaleureuse : teintes chaudes, formes plus rondes, touches de couleur Shopami. */
:root {
  --soft: #f6f2ec;
  --line: #e8e2d9;
  --field: #d3cbbf;
  --radius: 14px;
  --accent: #e8590c;
  --green: #1f6f5c;
  --green-dark: #154d40;
}
body { background: #fffdfa; }
.brand-mark { border-radius: 7px 7px 7px 0; background: linear-gradient(135deg, var(--green) 55%, var(--accent) 55%); }
.btn, .nav-toggle { border-radius: 999px; }
.btn:hover { transform: translateY(-1px); }
.btn-small { border-radius: 999px; }
.eyebrow, .step-indicator { color: var(--accent); }
.hero { background: radial-gradient(900px 420px at 88% 8%, #ffe3d1 0%, transparent 62%), radial-gradient(700px 380px at 0% 100%, #dff1ea 0%, transparent 60%), #fffdfa; }
.hero h1 { letter-spacing: -.03em; }
.hero-garment { border-radius: 22px; }
.hero-garment.g0 { background: #eef6f2; }
.hero-garment.g2 { background: #fff1e6; }
.stats div { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 14px; }
.stats dt { color: var(--green-dark); }
.band { background: var(--green-dark); }
.steps li::before { color: #ffb48a; }
.tag { background: #e3f1ec; color: var(--green-dark); border-radius: 999px; }
.card:hover, .club-card:hover { transform: translateY(-3px); border-color: var(--line); }
.product-card .product-visual { border-radius: 18px; transition: background .2s, transform .2s; }
.product-card:hover .product-visual { background: #efe9e0; transform: translateY(-3px); }
.product-visual { border-radius: 18px; }
.chip span { border-radius: 10px; }
.chip span:hover { border-color: var(--club, var(--ink)); }
.chip input:checked + span { border-color: var(--club, var(--ink)); background: var(--club, var(--ink)); color: var(--club-ink, #fff); }
.tabs a, .color-chip span, .badge { border-radius: 999px; }
.assure li::before { background: var(--club, var(--green)); }
.price-lg { font-size: 2rem; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
:focus-visible { outline-color: var(--accent); }
.flash-success { background: #e3f1ec; border-color: #9fcfbf; color: #0f4033; }

/* Boutique d'un club : son en-tête et sa fiche baignent dans une teinte de sa couleur. */
.club-scope .club-head { background: color-mix(in srgb, var(--club) 9%, #fff); border: 0; border-radius: 22px; padding: 1.5rem 1.75rem; }
.club-scope .club-head .club-logo { background: #fff; border-radius: 50%; padding: 6px; box-shadow: var(--shadow); }
.club-scope .tag { background: #fff; color: var(--ink); }
.club-scope .marking-box { background: color-mix(in srgb, var(--club) 9%, #fff); }
.club-scope .marking-title { color: var(--ink); }
.club-scope .club-banner { border-radius: 18px; }
.club-scope .price-lg { color: var(--ink); }
.club-scope .product-visual-lg { background: color-mix(in srgb, var(--club) 5%, var(--soft)); }

td input:not([type=radio], [type=checkbox], [type=color]) { min-width: 9rem; padding: .4rem .6rem; }

/* Accueil : vrais articles (photo du textile + logo du club) à la place des dessins. */
.hero-garment.hero-photo { background: var(--soft); border-color: #fff; border-width: 6px; padding: 5%; }
.hero-garment.hero-photo.g1 { background: var(--soft); border-color: #fff; }
.hero-garment.hero-photo img:not(.visual-logo) { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.hero-visual:has(.hero-photo:only-child) .hero-photo { width: 82%; left: 9%; top: 9%; transform: rotate(-3deg); }
.hero-visual:has(.hero-photo:nth-child(2):last-child) .g0 { width: 66%; }
.hero-visual:has(.hero-photo:nth-child(2):last-child) .g1 { width: 54%; top: 40%; }

/* --- Logo Shopami et ses deux couleurs : bleu nuit #151e30 et corail #eb5b43. */
:root {
  --ink: #151e30;
  --brand: #151e30;
  --brand-dark: #151e30;
  --accent: #eb5b43;
  --green: #151e30;
  --green-dark: #151e30;
}
.brand-logo { display: block; height: 34px; width: auto; }
.site-footer .brand-logo { height: 30px; }
.btn:hover { background: #24304a; border-color: #24304a; }
.eyebrow, .step-indicator { color: #c9432c; }
.hero { background: radial-gradient(900px 420px at 88% 8%, #fde3dc 0%, transparent 62%), radial-gradient(700px 380px at 0% 100%, #e6eaf2 0%, transparent 60%), #fffdfa; }
.hero-garment.g0 { background: #eef1f6; }
.hero-garment.g2 { background: #fdebe6; }
.stats dt { color: var(--ink); }
.band { background: #151e30; }
.steps li::before { color: #f49a88; }
.tag { background: #fdebe6; color: #a5341f; }
.flash-success { background: #eef1f6; border-color: #c5cddd; color: #151e30; }
.assure li::before { background: var(--club, var(--accent)); }
.chart .bar { fill: var(--accent); }

/* Pages légales */
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.footer-legal a { color: var(--ink); }

/* Accueil : message aux responsables de club */
html { scroll-behavior: smooth; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #d24a33; border-color: #d24a33; color: #fff; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.promises li { background: #fff; border-radius: 999px; padding: .45rem 1rem; box-shadow: var(--shadow); font-size: .95rem; }
.promises strong { font-family: var(--head); font-size: 1.1rem; color: var(--accent); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-card { border-radius: 22px; padding: 1.6rem 1.75rem; }
.compare-card h3 { font-family: var(--head); font-size: 1.25rem; margin: 0 0 1rem; }
.compare-card ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .7rem; }
.compare-card li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.45; }
.compare-card li::before { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.compare-before { background: var(--soft); color: var(--muted); }
.compare-before li::before { content: "×"; background: #e3ddd3; color: var(--muted); }
.compare-after { background: var(--ink); color: #fff; }
.compare-after li::before { content: ""; background: var(--accent) var(--check-white) center / 70% no-repeat; }
.compare-after .btn { background: #fff; border-color: #fff; color: var(--ink); }
.compare-after .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
:root { --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.member-band { background: var(--soft); padding-block: 2.5rem; }
.member-band h2 { margin-bottom: 0; }
.member-band .search { margin-bottom: 0; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.label-free { display: inline-block; margin-left: .6rem; padding: .25rem .8rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }

.audiences { font-family: var(--head); font-weight: 600; font-size: 1.25rem; color: var(--accent); margin: -.2rem 0 1rem; }

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.1rem; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); line-height: 1.7; max-width: 70ch; }
.faq > p { margin-top: 1.75rem; }

/* Fiche produit : agrandissement du visuel en plein écran au clic */
.product-visual-lg { position: relative; cursor: zoom-in; }
.zoom-btn { position: absolute; right: .75rem; bottom: .75rem; min-height: 44px; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); cursor: zoom-in; transition: border-color .15s; }
.zoom-btn:hover { border-color: var(--ink); }
.zoom-btn:focus-visible, .zoom-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
dialog.zoom { width: min(94vw, 94vh, 1000px); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; }
dialog.zoom::backdrop { background: rgba(21, 30, 48, .82); }
.zoom-stage { margin: 0; padding: 3%; background: var(--soft); cursor: zoom-out; }
.zoom-close { position: absolute; top: .6rem; right: .6rem; z-index: 1; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; }

/* Blog */
.post-grid { align-items: stretch; }
.post-card { display: grid; gap: .5rem; align-content: start; padding: 0 0 1.25rem; overflow: hidden; }
.post-card > :not(img) { margin-inline: 1.25rem; }
.post-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .5rem; }
.post-card strong { font-family: var(--head); font-size: 1.15rem; line-height: 1.3; }
.post-card .muted { font-size: .95rem; line-height: 1.55; }
.post-card small { color: var(--muted); }
.post-head { max-width: 900px; }
.post h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; margin-top: .5rem; }
.post .lead { max-width: none; }
.post-banner { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 520; border-radius: var(--radius); margin: 1.5rem 0 2.5rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.post-text { font-size: 1.06rem; }
.post-text > :first-child { margin-top: 0; }
.post-text h3 { margin-top: 1.5rem; }
.post-side { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
.post-cta { padding: 1.5rem; background: var(--soft); border-radius: var(--radius); }
.post-cta h2 { margin-top: 0; font-size: 1.3rem; }
.post-cta p:last-child { margin-bottom: 0; }
.section > .post-cta { margin-top: 2.5rem; }
.post-others h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.post-other { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.post-other:hover span { text-decoration: underline; text-underline-offset: 3px; }
.post-other img { display: block; width: 96px; height: 60px; object-fit: cover; border-radius: 8px; }
textarea.post-body { min-height: 28rem; line-height: 1.6; }
.illus-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.illus-option { display: grid; gap: .35rem; font-size: .85rem; cursor: pointer; position: relative; }
.illus-option input { position: absolute; top: .5rem; left: .5rem; }
.illus-option img { display: block; width: 100%; height: auto; border-radius: 10px; border: 3px solid transparent; }
.illus-option input:checked + img { border-color: var(--ink); }
.illus-option input:focus-visible + img { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 2rem; }
  .post-side { position: static; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
