/* Footjobeuse — direction artistique : magazine de luxe, noir velours, or champagne, porcelaine rosée. */
:root {
  --bg: #0e0a0c; --bg2: #151014; --surface: #1b1418; --surface2: #231a1f; --raised: #2b2026;
  --line: rgba(216, 178, 110, .16); --line2: rgba(216, 178, 110, .32);
  --gold: #d8b26e; --gold2: #f0d9a8; --gold-ink: #1a1206;
  --rose: #e8bba5; --rose2: #f6d6c7; --wine: #7a2238; --wine2: #a33a55;
  --slate: #8396b3;
  --text: #f3ebe5; --muted: #b2a29a; --faint: #7d6f69;
  --ok: #8fc9a3; --warn: #e7b765; --bad: #e57f86;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(122, 34, 56, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(216, 178, 110, .07), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* grain subtil */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
em.gold, .gold { color: var(--gold); font-style: italic; }
.eyebrow { font: 600 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); border: 0; margin: 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); opacity: .8; margin: 8px 0 22px; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

/* ---------- boutons & champs ---------- */
.btn {
  --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.5em; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  transition: all .35s var(--ease); white-space: nowrap; min-height: 44px;
}
.btn:hover { border-color: var(--gold); color: var(--gold2); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--gold2), var(--gold) 55%, #b98f4b); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(216, 178, 110, .55); }
.btn.primary:hover { color: var(--gold-ink); filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(216, 178, 110, .75); }
.btn.wine { background: linear-gradient(135deg, var(--wine2), var(--wine)); border-color: transparent; color: #fff; }
.btn.ghost { border-color: transparent; }
.btn.sm { padding: .5em 1em; min-height: 36px; font-size: .82rem; }
.btn.icon { padding: 0; width: 44px; aspect-ratio: 1; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: rgba(216, 178, 110, .14); border-color: var(--gold); color: var(--gold2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label.field { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
label.field > span { font-weight: 600; letter-spacing: .02em; }
.input, select.input, textarea.input {
  width: 100%; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: .8em 1em; color: var(--text);
  transition: border-color .25s, background .25s; min-height: 46px;
}
.input:focus { outline: none; border-color: var(--gold); background: rgba(216, 178, 110, .05); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4em; }
select.input option { background: var(--surface); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: 0 0 20px; height: 20px; border: 1px solid var(--line2); border-radius: 6px; margin-top: 2px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: '✓'; color: var(--gold-ink); font-size: 13px; font-weight: 800; }
.form { display: grid; gap: 18px; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .25s; min-height: 36px; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: .45em .95em; border-radius: 999px; cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.seg button.on { background: var(--gold); color: var(--gold-ink); }

/* ---------- cartes ---------- */
.card { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow); }
.card-body { padding: 22px 22px 24px; }
.panel { background: linear-gradient(180deg, rgba(35, 26, 31, .8), rgba(21, 16, 20, .8)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); backdrop-filter: blur(8px); }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid.cards-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ---------- en-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); background: rgba(14, 10, 12, .72); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.65rem; letter-spacing: .04em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.brand b { font-weight: 600; } .brand i { color: var(--gold); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { padding: .55em .85em; border-radius: 999px; font-size: .84rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); transition: color .25s, background .25s; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(216, 178, 110, .08); }
.nav a.on { color: var(--gold2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.badge18 { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bad); color: #fff; font: 800 .72rem var(--sans); position: relative; flex: none; background: rgba(229, 127, 134, .12); }
.badge18::after { content: ''; position: absolute; width: 2px; height: 36px; background: var(--bad); transform: rotate(45deg); opacity: .0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--serif); color: var(--gold-ink); flex: none; background: linear-gradient(135deg, var(--gold2), var(--rose)); }
.avatar.lg { width: 92px; height: 92px; font-size: 2.4rem; }
.burger { display: none; }
.mnav { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mnav { display: block; position: fixed; inset: 72px 0 0; z-index: 49; background: rgba(14, 10, 12, .97); backdrop-filter: blur(10px); padding: 24px clamp(16px, 4vw, 40px); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); overflow-y: auto; }
  .mnav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mnav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.6rem; }
}
@media (max-width: 560px) { .brand span.word { display: none; } .top-actions .hide-xs { display: none; } .topbar .wrap { gap: 10px; } }

/* ---------- héro ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-stage { position: relative; aspect-ratio: 1.1; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 40%, rgba(122, 34, 56, .35), transparent 70%), var(--bg2); box-shadow: var(--shadow); }
.hero-stage .v3d { position: absolute; inset: 0; }
.hero-caption { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none; }
.hero-caption a { pointer-events: auto; }
.stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 38px; flex-wrap: wrap; }
.stat b { display: block; font: 400 2.2rem/1 var(--serif); color: var(--gold2); }
.stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-stage { aspect-ratio: 1.2; } }

/* ---------- niveaux ---------- */
.level { display: inline-flex; gap: 4px; align-items: center; }
.level i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); opacity: .5; }
.level i.on { background: var(--gold); opacity: 1; box-shadow: 0 0 8px rgba(216, 178, 110, .6); }
.level-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lv-1 { --lv: #9fd1b4; } .lv-2 { --lv: #c6d38e; } .lv-3 { --lv: #e7c36f; } .lv-4 { --lv: #e9956c; } .lv-5 { --lv: #e5677c; }
.levels-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.level-card { padding: 22px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.level-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--lv); }
.level-card b { font: 400 2.6rem/1 var(--serif); color: var(--lv); display: block; }
.level-card h4 { font-family: var(--sans); font-size: .92rem; font-weight: 700; margin: 8px 0 6px; letter-spacing: .02em; }
.level-card p { font-size: .84rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .levels-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* ---------- carte position ---------- */
.pos-card .thumb { aspect-ratio: 4/3; position: relative; background: radial-gradient(70% 70% at 50% 45%, rgba(122, 34, 56, .3), transparent 70%), var(--bg2); overflow: hidden; }
.pos-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; }
img[data-pose]:not(.ready) { opacity: 0; }
.pos-card:hover .thumb img { transform: scale(1.05); }
.pos-card .thumb .cat { position: absolute; top: 12px; left: 12px; }
.pos-card .thumb .photo-count { position: absolute; top: 12px; right: 12px; }
.pos-card h3 { font-size: 1.55rem; margin: 6px 0 4px; }
.pos-card .sub { font-size: .8rem; color: var(--faint); letter-spacing: .06em; margin-bottom: 10px; }
.pos-card .desc { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; }
.pos-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(14, 10, 12, .72); border: 1px solid var(--line2); color: var(--gold2); backdrop-filter: blur(6px); }
.pill.wine { background: rgba(122, 34, 56, .55); border-color: rgba(163, 58, 85, .7); color: #fff; }
.pill.ok { color: var(--ok); border-color: rgba(143, 201, 163, .4); }
.pill.warn { color: var(--warn); border-color: rgba(231, 183, 101, .4); }
.pill.bad { color: var(--bad); border-color: rgba(229, 127, 134, .4); }
.toolbar { display: grid; gap: 14px; margin-bottom: 30px; }
.toolbar-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input { padding-left: 2.6em; }
.search svg { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 16px; color: var(--faint); }

/* ---------- fiche position ---------- */
.pos-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding-top: 34px; }
@media (max-width: 980px) { .pos-hero { grid-template-columns: 1fr; } }
.crumbs { font-size: .8rem; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold); }
.viewer { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, rgba(122, 34, 56, .3), transparent 70%), linear-gradient(180deg, #1a1317, #100c0e); }
.viewer .v3d-box { position: relative; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.icon.sm { width: 36px; min-height: 36px; }
.viewer .v3d { position: relative; width: 100%; aspect-ratio: 16/11; }
.viewer .v3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer .v3d canvas:active { cursor: grabbing; }
.viewer-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; z-index: 3; pointer-events: none; flex-wrap: wrap; }
.viewer-top > * { pointer-events: auto; }
.viewer-top .seg { background: rgba(14, 10, 12, .7); backdrop-filter: blur(6px); }
.step-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; background: rgba(14, 10, 12, .78); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; transition: opacity .4s; }
.step-caption .num { font: 400 2rem/1 var(--serif); color: var(--gold); flex: none; width: 34px; text-align: center; }
.step-caption b { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold2); margin-bottom: 2px; }
.step-caption p { margin: 0; font-size: .9rem; line-height: 1.4; }
input[type=range] { accent-color: var(--gold); }
@media (max-width: 600px) { .viewer .v3d { aspect-ratio: 4/3.4; } .step-caption { position: static; border-radius: 0; border-width: 1px 0 0; } .step-caption p { font-size: .84rem; } }
.player { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(14, 10, 12, .6); flex-wrap: wrap; }
.timeline { flex: 1 1 200px; position: relative; height: 34px; display: flex; align-items: center; }
.timeline input[type=range] { width: 100%; appearance: none; background: transparent; height: 34px; margin: 0; position: relative; z-index: 2; cursor: pointer; }
.timeline input[type=range]::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.timeline input[type=range]::-moz-range-track { height: 3px; background: transparent; }
.timeline input[type=range]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold2); margin-top: -5.5px; box-shadow: 0 0 0 4px rgba(216, 178, 110, .25); }
.timeline input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--gold2); }
.timeline .track { position: absolute; left: 0; right: 0; height: 3px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; }
.timeline .track span { height: 100%; background: rgba(216, 178, 110, .2); border-radius: 2px; position: relative; overflow: hidden; }
.timeline .track span i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.player .time { font: 600 .78rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.steps-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: all .3s; }
.steps-list li:hover { background: rgba(255, 255, 255, .02); }
.steps-list li.on { border-color: var(--line2); background: rgba(216, 178, 110, .06); }
.steps-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 400 1.5rem/1 var(--serif); color: var(--gold); }
.steps-list b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.steps-list p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.v3d-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.v3d-label { position: absolute; left: 0; top: 0; transition: opacity .4s; white-space: nowrap; }
.v3d-label i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); left: -3.5px; top: -3.5px; box-shadow: 0 0 0 3px rgba(216, 178, 110, .25); }
.v3d-label span { position: absolute; left: 10px; top: -30px; padding: 4px 9px; font: 600 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold2); background: rgba(14, 10, 12, .8); border: 1px solid var(--line2); border-radius: 6px; }
.v3d-label span::before { content: ''; position: absolute; left: -7px; bottom: -14px; width: 14px; height: 1px; background: var(--gold); transform: rotate(-60deg); transform-origin: right; opacity: .7; }
.v3d-giver span { color: var(--rose2); } .v3d-receiver span { color: #c6d3e8; }
@media (max-width: 600px) { .v3d-label span { font-size: .6rem; } .v3d-motion, .v3d-foot { display: none; } }
.skill { display: grid; grid-template-columns: 110px 1fr 24px; gap: 12px; align-items: center; font-size: .84rem; color: var(--muted); }
.skill .bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.skill .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 3px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { background: var(--surface); padding: 14px 12px; text-align: center; }
.facts b { display: block; font: 400 1.6rem/1.1 var(--serif); color: var(--gold2); }
.facts span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; cursor: pointer; font-size: 1.35rem; color: var(--faint); padding: 0 2px; line-height: 1; transition: transform .2s, color .2s; }
.stars button.on, .stars button:hover { color: var(--gold); }
.stars button:hover { transform: scale(1.15); }
.prose { font-size: 1.04rem; color: #e6dbd3; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose strong { color: var(--gold2); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.drop { font: 400 1.25rem/1.6 var(--serif); color: var(--text); }
.drop::first-letter { float: left; font-size: 4.2em; line-height: .82; padding: .06em .1em 0 0; color: var(--gold); }
.tips { border-left: 2px solid var(--gold); padding: 6px 0 6px 18px; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.acc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; padding: .5em .9em; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; transition: border-color .3s; }
.acc-chip:hover { border-color: var(--gold); }

/* ---------- photos & galerie ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.photo img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .5s; }
.photo:hover img { transform: scale(1.03); }
.photo .ov { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); display: flex; justify-content: space-between; align-items: end; gap: 8px; font-size: .78rem; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: .35em .8em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(14, 10, 12, .55); cursor: pointer; font-weight: 700; font-size: .8rem; transition: all .25s; backdrop-filter: blur(6px); }
.vote:hover { border-color: var(--gold); }
.vote.on { background: var(--wine2); border-color: var(--wine2); color: #fff; }
.vote svg { width: 14px; height: 14px; }
.vote.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }
body.discreet .photo img, body.discreet .blurable { filter: blur(22px) saturate(.6); }
body.discreet .photo:hover img, body.discreet .photo.reveal img { filter: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 7, .94); display: grid; place-items: center; padding: 20px; animation: fade .3s; }
.lightbox img { max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .lb-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 16px; }
.lightbox .close { position: absolute; top: 16px; right: 16px; }
@keyframes fade { from { opacity: 0; } }
.dropzone { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 28px; text-align: center; cursor: pointer; transition: all .3s; color: var(--muted); }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(216, 178, 110, .05); }
.dropzone img { max-height: 220px; margin: 0 auto 10px; border-radius: 10px; }

/* ---------- commentaires ---------- */
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-size: .82rem; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment p { margin: 4px 0 0; color: #ddd1c9; font-size: .94rem; white-space: pre-line; }
.ptype { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.ptype.woman, .ptype.feetgirl { color: var(--rose2); border-color: rgba(232, 187, 165, .4); }
.ptype.couple { color: var(--gold2); }
.ptype.man { color: #c6d3e8; border-color: rgba(131, 150, 179, .45); }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.bdg { display: inline-flex; align-items: center; gap: 8px; padding: .4em .85em .4em .45em; border-radius: 999px; border: 1px solid var(--line2); background: rgba(216, 178, 110, .06); font-size: .78rem; font-weight: 700; }
.bdg i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: radial-gradient(circle at 30% 30%, var(--gold2), #9a7136); color: var(--gold-ink); font-size: .8rem; }
.bdg.locked { opacity: .35; filter: grayscale(1); }
.bdg.mini { padding: 0; border: 0; background: none; } .bdg.mini i { width: 18px; height: 18px; font-size: .6rem; }
.role-tag { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .2em .6em; border-radius: 4px; }
.role-tag.admin { background: var(--wine); color: #fff; } .role-tag.mod { background: #4b3a6b; color: #fff; } .role-tag.contributor { background: var(--gold); color: var(--gold-ink); }

/* ---------- progression ---------- */
.ring { --p: 0; width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .06) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 400 1.9rem var(--serif); color: var(--gold2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: .84rem; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--gold2); border-color: var(--gold); }
.tabs button .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wine2); color: #fff; font-size: .68rem; margin-left: 6px; }
table.list { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.list th { text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.lb-row { display: grid; grid-template-columns: 44px 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lb-row .rank { font: 400 1.6rem var(--serif); color: var(--gold); text-align: center; }
.lb-row:nth-child(1) .rank { color: #f3d27a; } .lb-row:nth-child(2) .rank { color: #d9dee6; } .lb-row:nth-child(3) .rank { color: #d39a6a; }

/* ---------- articles ---------- */
.art-card { display: flex; flex-direction: column; }
.art-card .art-cover { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(80% 80% at 30% 20%, rgba(216, 178, 110, .22), transparent 60%), radial-gradient(80% 80% at 80% 90%, rgba(122, 34, 56, .55), transparent 60%), var(--surface2); }
.art-card .art-cover svg { width: 64px; color: var(--gold); opacity: .85; }
.art-card h3 { font-size: 1.6rem; }
.article { max-width: 760px; margin: 0 auto; }
.article header { text-align: center; padding: 40px 0 20px; }
.article header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- jeux ---------- */
.game-card .gc-top { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 70% at 50% 40%, rgba(122, 34, 56, .55), transparent 70%), var(--bg2); }
.game-card .gc-top svg { width: 82px; color: var(--gold); filter: drop-shadow(0 6px 24px rgba(216, 178, 110, .35)); transition: transform .6s var(--ease); }
.game-card:hover .gc-top svg { transform: rotate(-8deg) scale(1.08); }
.game-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .game-shell { grid-template-columns: 1fr; } }
.stage { min-height: 420px; display: grid; place-items: center; text-align: center; position: relative; padding: clamp(20px, 4vw, 40px); }
.big-count { font: 300 clamp(5rem, 16vw, 9rem)/1 var(--serif); color: var(--gold2); font-variant-numeric: tabular-nums; }
.big-label { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.beat { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); margin: 14px auto; opacity: .25; transition: opacity .08s, transform .08s; }
.beat.on { opacity: 1; transform: scale(1.5); box-shadow: 0 0 22px var(--gold); }
.pyr { display: flex; gap: 6px; justify-content: center; align-items: end; height: 90px; margin: 18px 0; flex-wrap: wrap; }
.pyr span { width: 34px; border-radius: 6px 6px 2px 2px; background: rgba(216, 178, 110, .18); display: grid; place-items: end center; font-size: .7rem; font-weight: 700; padding-bottom: 4px; color: var(--muted); transition: all .3s; }
.pyr span.done { background: rgba(216, 178, 110, .45); color: var(--gold-ink); }
.pyr span.cur { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 20px rgba(216, 178, 110, .5); }
.dice { display: flex; gap: 18px; justify-content: center; perspective: 600px; }
.die { width: 86px; height: 86px; border-radius: 18px; background: linear-gradient(145deg, #fbf3e6, #dccbb0); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 14px 30px -10px rgba(0, 0, 0, .7); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14px; gap: 2px; }
.die i { width: 14px; height: 14px; border-radius: 50%; background: var(--wine); align-self: center; justify-self: center; visibility: hidden; }
.die i.v { visibility: visible; }
.die.rolling { animation: roll .7s var(--ease); }
.die.word { width: auto; min-width: 120px; padding: 12px 16px; display: grid; place-items: center; grid-template: 1fr / 1fr; font: 600 1.05rem var(--serif); color: var(--gold-ink); text-align: center; }
.die.word small { display: block; font: 700 .58rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
@keyframes roll { 0% { transform: rotateX(0) rotateZ(0); } 60% { transform: rotateX(540deg) rotateZ(200deg) translateY(-20px); } 100% { transform: rotateX(720deg) rotateZ(360deg); } }
.score { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.score b { font: 400 3.4rem/1 var(--serif); color: var(--gold2); }
.wheel-wrap { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; }
.wheel-wrap::after { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 14px solid transparent; border-top: 22px solid var(--gold2); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.cell { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); position: relative; display: grid; place-items: center; font: 600 .74rem var(--sans); color: var(--faint); }
.cell.t-oie { background: rgba(216, 178, 110, .16); color: var(--gold2); }
.cell.t-gage { background: rgba(122, 34, 56, .35); color: #f3c2cd; }
.cell.t-position { background: rgba(131, 150, 179, .18); color: #c6d3e8; }
.cell.t-back, .cell.t-start, .cell.t-wait { background: rgba(229, 127, 134, .12); color: var(--bad); }
.cell.t-action { background: rgba(232, 187, 165, .14); color: var(--rose2); }
.cell .tok { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); transition: all .3s; }
.cell .tok.p0 { background: var(--rose); top: 6%; left: 6%; } .cell .tok.p1 { background: var(--slate); bottom: 6%; right: 6%; }
.cell.goal { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--gold-ink); }
.rules { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; } .rules li { margin: .4em 0; } .rules li::marker { color: var(--gold); }
.safeword { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(229, 127, 134, .35); background: rgba(229, 127, 134, .07); font-size: .88rem; }
.safeword b { color: var(--bad); }
.reading-text { text-align: left; font: 400 1.3rem/1.75 var(--serif); max-width: 640px; }
.reading-text mark { background: rgba(229, 127, 134, .22); color: inherit; border-bottom: 1px dashed var(--bad); padding: 0 2px; }
.log { max-height: 220px; overflow-y: auto; font-size: .84rem; color: var(--muted); display: grid; gap: 6px; }
.log div { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.log .plus { color: var(--ok); } .log .minus { color: var(--bad); }

/* ---------- accessoires ---------- */
.acc-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px; }
.acc-card .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: radial-gradient(circle at 30% 30%, rgba(216, 178, 110, .25), rgba(122, 34, 56, .3)); border: 1px solid var(--line2); }
.acc-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.acc-card .safety { font-size: .84rem; color: var(--warn); margin-top: 8px; display: flex; gap: 8px; }

/* ---------- porte d'âge ---------- */
.agegate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 600px at 50% 0%, rgba(122, 34, 56, .55), transparent 60%), rgba(8, 6, 7, .97); backdrop-filter: blur(20px); overflow-y: auto; }
.agegate .box { max-width: 560px; width: 100%; text-align: center; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line2); border-radius: 28px; background: linear-gradient(180deg, rgba(35, 26, 31, .9), rgba(14, 10, 12, .9)); box-shadow: var(--shadow); animation: rise .8s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.sign18 { width: 116px; height: 116px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; border-radius: 50%; border: 9px solid #d8313f; background: #fff; color: #111; font: 800 2.4rem/1 var(--sans); letter-spacing: -.04em; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1), 0 20px 50px -10px rgba(216, 49, 63, .6); }
.sign18 small { position: absolute; bottom: 14px; font-size: .52rem; letter-spacing: .1em; font-weight: 800; }
.agegate h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.agegate p { color: var(--muted); font-size: .95rem; }
.agegate .btn-row { justify-content: center; margin-top: 26px; }
.agegate .legal { font-size: .74rem; color: var(--faint); margin-top: 22px; }

/* ---------- pied de page ---------- */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 60px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--gold2); }
.foot-grid a.brand { display: flex; font-size: 1.65rem; color: var(--text); padding: 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--faint); align-items: center; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- divers ---------- */
.toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 14px 18px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: .9rem; animation: rise .4s var(--ease); }
.toast.bad { border-color: rgba(229, 127, 134, .6); } .toast.ok { border-color: rgba(143, 201, 163, .6); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r-lg); }
.empty svg { width: 44px; color: var(--gold); margin: 0 auto 12px; opacity: .7; }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface2), var(--surface)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(8, 6, 7, .8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .25s; overflow: hidden; }
.modal { width: min(100%, 560px); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; } /* un seul ascenseur : celui de la fenêtre */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.sidebar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; } @media (max-width: 980px) { .sidebar-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 92px; }
.kv { display: grid; gap: 10px; }
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 40px 0 30px; }
.cta-band { border-radius: 28px; padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; border: 1px solid var(--line2); background: radial-gradient(600px 300px at 90% 120%, rgba(216, 178, 110, .2), transparent 60%), radial-gradient(500px 300px at 0% -20%, rgba(122, 34, 56, .6), transparent 60%), var(--surface); }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- effet pour lui ---------- */
.heat-pips { display: inline-flex; gap: 3px; align-items: center; }
.heat-pips i { width: 6px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.heat-pips i.on { background: var(--lv); box-shadow: 0 0 6px var(--lv); }
.effect-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; background: linear-gradient(135deg, rgba(122, 34, 56, .18), rgba(216, 178, 110, .04)); }
.effect-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.effect-scale { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .72rem; color: var(--faint); letter-spacing: .04em; }
.effect-scale .scale { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #9fd1b4, #e7c36f, #e5677c); }
.effect-scale .scale i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--gold); }
.effect-level { display: block; margin-top: 10px; font: 500 1.25rem var(--serif); color: var(--lv); }
.effect-vote { border-top: 1px solid var(--line); padding-top: 12px; }
.vote-bar { height: 8px; border-radius: 4px; background: rgba(159, 209, 180, .35); overflow: hidden; }
.vote-bar .hard { display: block; height: 100%; background: linear-gradient(90deg, #e9956c, #e5677c); transition: width .5s var(--ease); }
.vote-legend { display: flex; justify-content: space-between; font-size: .8rem; margin-top: 6px; color: var(--muted); }
.vote-legend b { color: var(--text); }

/* site pas encore installé */
.setup-banner { position: sticky; top: 0; z-index: 200; padding: 12px 16px; text-align: center; font-size: .9rem; background: #3a1820; color: #f3ebe5; border-bottom: 1px solid var(--gold, #d8b26e); }
.setup-banner a { color: var(--gold, #d8b26e); font-weight: 700; margin-left: 6px; }

/* page de maintenance */
.maintenance { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.maintenance .panel { width: min(100%, 520px); padding: clamp(28px, 5vw, 48px); display: grid; gap: 14px; justify-items: center; }
.maintenance h1 { font: 400 clamp(2.2rem, 6vw, 3rem) var(--serif); margin: 0; } .maintenance h1 i { color: var(--gold); }
.maintenance .logo-mark svg { width: 34px; height: 34px; color: var(--gold); }
