/* ============================================================
   Ashura Project — feuille de style publique
   Palette ONI : encre, rouge braise, papier.
   ============================================================ */

:root {
    --ink: #07070a;
    --ink-2: #0b0b0f;
    --surface: #111116;
    --surface-2: #17171d;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --red: #cf1f29;
    --red-bright: #ff3846;
    --red-deep: #7c0a12;
    --paper: #f2ece5;
    --muted: #9c958e;
    --muted-2: #6d6864;

    --font-display: 'Yuji Syuku', 'Shippori Mincho B1', serif;
    --font-serif: 'Shippori Mincho B1', Georgia, serif;
    --font-ui: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 18px;
    --radius-sm: 11px;
    --maxw: 1200px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.site {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 600px at 78% -10%, rgba(207, 31, 41, .16), transparent 62%),
        radial-gradient(700px 500px at 8% 12%, rgba(207, 31, 41, .07), transparent 60%),
        linear-gradient(180deg, #07070a 0%, #08080b 40%, #06060a 100%);
    background-attachment: fixed;
}

body.site--plain {
    display: grid;
    place-items: center;
    background-image:
        radial-gradient(700px 520px at 50% -10%, rgba(207, 31, 41, .22), transparent 65%),
        linear-gradient(180deg, #08080b, #050508);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .9em; color: #e7b9b9; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(207, 31, 41, .45); color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: -60px; left: 16px; z-index: 10000;
    background: var(--red); color: #fff; padding: 10px 18px; border-radius: 8px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 780px); }

/* ---------- Grain & curseur ---------- */
.grain {
    position: fixed; inset: -50%; z-index: 9997; pointer-events: none;
    opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -2%); }
    80% { transform: translate(3%, 1%); }
}

.cursor-glow {
    position: fixed; z-index: 1; width: 520px; height: 520px; left: 0; top: 0;
    border-radius: 50%; pointer-events: none; opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(207, 31, 41, .13), transparent 62%);
    transition: opacity .4s ease;
    will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }

.scroll-progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 9999;
    background: rgba(255, 255, 255, .05);
}
.scroll-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
    box-shadow: 0 0 14px rgba(255, 56, 70, .8);
}

/* ---------- Boutons ---------- */
.btn {
    --btn-bg: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
    background: var(--btn-bg); color: var(--paper);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, var(--red-bright), var(--red) 45%, #8f1019);
    color: #fff; box-shadow: 0 14px 34px -16px rgba(207, 31, 41, .95);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(255, 56, 70, .9); }
.btn--ghost { border-color: var(--line-strong); color: var(--paper); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255, 56, 70, .55); color: #fff; background: rgba(207, 31, 41, .1); transform: translateY(-2px); }
.btn--danger { background: rgba(207, 31, 41, .16); border-color: rgba(255, 56, 70, .4); color: #ffb9bd; }
.btn--danger:hover { background: rgba(207, 31, 41, .3); }
.btn--sm { padding: 10px 18px; font-size: .7rem; }
.btn--xs { padding: 6px 12px; font-size: .62rem; letter-spacing: .1em; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--paper); font-weight: 700;
}
.link-arrow span { transition: transform .3s var(--ease); color: var(--red-bright); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow:hover { color: #fff; }

/* ---------- Tags & pills ---------- */
.tag {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
    font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.tag--ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--paper); }
.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
}
.pill--live { color: #ff8e95; border-color: rgba(255, 56, 70, .45); background: rgba(207, 31, 41, .16); }
.pill--soon { color: #ffd08a; border-color: rgba(255, 190, 90, .35); background: rgba(255, 170, 60, .12); }
.pill--done { color: #9ff0c4; border-color: rgba(90, 220, 150, .32); background: rgba(60, 200, 130, .12); }
.pill--muted { color: var(--muted); }
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .6rem; font-style: normal;
    letter-spacing: .12em; text-transform: uppercase; background: rgba(207, 31, 41, .22);
    border: 1px solid rgba(255, 56, 70, .4); color: #ffb3b8; vertical-align: middle;
}
.badge--gold { background: rgba(255, 196, 90, .14); border-color: rgba(255, 196, 90, .4); color: #ffd08a; }

.avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--line-strong); background: var(--surface-2); flex: 0 0 auto;
}
.avatar--sm { width: 30px; height: 30px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 108px; height: 108px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    backdrop-filter: blur(18px) saturate(120%);
    background: rgba(7, 7, 10, .72);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(7, 7, 10, .92); border-bottom-color: var(--line); }
.site-header__inner {
    width: min(100% - 40px, 1320px); margin-inline: auto;
    display: flex; align-items: center; gap: 26px; height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__seal {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 56, 70, .55);
    background: radial-gradient(circle at 30% 25%, rgba(207, 31, 41, .4), rgba(12, 12, 16, .9));
    box-shadow: 0 0 0 4px rgba(207, 31, 41, .08), inset 0 0 14px rgba(207, 31, 41, .3);
}
.brand__kanji { font-family: var(--font-display); font-size: 1.2rem; color: #ffd9db; line-height: 1; }
.brand__logo {
    width: 46px; height: 46px; flex: 0 0 auto; display: block; object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(207, 31, 41, .35));
    transition: transform .4s var(--ease), filter .4s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); filter: drop-shadow(0 0 18px rgba(255, 56, 70, .55)); }
.brand--footer .brand__logo { width: 40px; height: 40px; }
.brand--center .brand__logo { width: 84px; height: 84px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-size: 1.42rem; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.brand__text small { font-size: .56rem; letter-spacing: .34em; text-transform: uppercase; color: var(--red-bright); }
.brand--center { flex-direction: column; text-align: center; gap: 14px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 13px; border-radius: 9px; font-size: .82rem; font-weight: 500;
    color: #ddd5ce; transition: color .25s, background .25s;
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: #fff; background: rgba(255, 255, 255, .05); }
.nav__item.is-active > .nav__link::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}
.nav__caret {
    width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg) translateY(-2px); opacity: .65; transition: transform .25s var(--ease);
}
.nav__item.is-open .nav__caret { transform: rotate(225deg) translateY(-1px); }

.nav__sub {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px; z-index: 20;
    padding: 10px; border-radius: 14px;
    background: rgba(14, 14, 19, .97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    backdrop-filter: blur(20px);
}
.nav__sub::before {
    content: ''; position: absolute; inset: -1px -1px auto -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
    font-size: .84rem; color: #cfc7c0; transition: background .2s, color .2s, padding-left .2s;
}
.nav__sub a:hover { background: rgba(207, 31, 41, .13); color: #fff; padding-left: 16px; }
.nav__sub-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red-bright); opacity: .7; }
.nav__expand { display: none; }

.nav__footer { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-login { font-size: .82rem; color: #cfc7c0; padding: 8px; }
.header-login:hover { color: #fff; }
.icon-btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: #fff; border-color: rgba(255, 56, 70, .5); }
.icon-btn--danger:hover { color: #ff8e95; }

.account { position: relative; }
.account__btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px;
    border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    cursor: pointer; font-size: .8rem;
}
.account__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 30;
    padding: 8px; border-radius: 14px; background: rgba(14, 14, 19, .98);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.account.is-open .account__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account__menu a, .account__menu button {
    display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
    font-size: .85rem; color: #d6cec7; background: none; border: 0; cursor: pointer;
}
.account__menu a:hover, .account__menu button:hover { background: rgba(207, 31, 41, .14); color: #fff; }
.account__menu form { margin: 0; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }

.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03); cursor: pointer; padding: 11px 9px;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.6px; background: var(--paper); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 90vh; display: grid; align-items: center;
    padding: 96px 0 110px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .85; }
.hero__aura {
    position: absolute; z-index: -2; width: 720px; height: 720px; right: -120px; top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 31, 41, .3), rgba(120, 10, 18, .12) 45%, transparent 68%);
    filter: blur(10px); animation: auraPulse 9s ease-in-out infinite;
}
@keyframes auraPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.hero__kanji {
    position: absolute; z-index: -1; right: 2vw; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-size: clamp(240px, 34vw, 520px); line-height: .8;
    color: transparent; -webkit-text-stroke: 1px rgba(207, 31, 41, .28);
    text-shadow: 0 0 80px rgba(207, 31, 41, .18); user-select: none; pointer-events: none;
}
.hero__ring {
    position: absolute; z-index: -1; right: 6vw; top: 50%; transform: translateY(-50%);
    width: min(46vw, 520px); aspect-ratio: 1; border-radius: 50%;
    border: 1px solid rgba(255, 56, 70, .16);
    box-shadow: inset 0 0 90px rgba(207, 31, 41, .08);
    animation: ringSpin 40s linear infinite;
}
@keyframes ringSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
    font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
    color: #d8cfc7;
}
.hero__dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright);
    box-shadow: 0 0 0 4px rgba(255, 56, 70, .16); animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 56, 70, .05); } }
.hero__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 90px rgba(207, 31, 41, .18);
}
.hero__title em { font-style: normal; color: var(--red-bright); }
.hero__lede { margin-top: 26px; max-width: 56ch; font-size: 1.02rem; color: #b8b0a9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__counters {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
    margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 620px;
}
.hero__counters dt { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.hero__counters dd {
    margin: 6px 0 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff;
}
.hero__counters dd::after { content: ''; display: block; width: 22px; height: 1px; margin-top: 8px; background: var(--red); }
.hero__scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2);
}
.hero__scroll span {
    width: 1px; height: 46px; background: linear-gradient(180deg, var(--red-bright), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(.2); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(.2); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee {
    border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0;
    background: rgba(255, 255, 255, .015);
}
.marquee__track {
    display: flex; align-items: center; gap: 34px; width: max-content;
    animation: marquee 38s linear infinite;
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .18em; color: #b8b0a9;
}
.marquee__track .dot { color: var(--red); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--cta { padding-top: 40px; }
.section__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-bottom: 42px; flex-wrap: wrap;
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__eyebrow {
    width: 100%; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--red-bright); margin-bottom: 10px;
}
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: #fff; }
.section__title--sm { font-size: 1.35rem; margin-bottom: 22px; }
.section__title span { color: var(--muted-2); font-size: .8em; }
.section__link { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 8px; }
.section__link:hover { color: #fff; }
.section__link span { color: var(--red-bright); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ---------- Cartes ---------- */
.card {
    display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface), #0d0d12);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 56, 70, .34); box-shadow: 0 34px 60px -34px rgba(207, 31, 41, .34); }
.card__media {
    position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(207, 31, 41, .3), #0a0a0e 70%);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__pattern {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 6rem; color: rgba(255, 255, 255, .08);
}
.card__media .tag { position: absolute; top: 12px; left: 12px; z-index: 2; backdrop-filter: blur(8px); }
.card__media .pill { position: absolute; top: 12px; left: 12px; z-index: 2; backdrop-filter: blur(8px); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }
.card__title { font-size: 1.16rem; color: #fff; }
.card__title a:hover { color: #ffd9db; }
.card__text { font-size: .9rem; color: #a8a19a; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.tech { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

.progress { position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); box-shadow: 0 0 12px rgba(255, 56, 70, .55); }
.progress--lg { height: 6px; }
.progress__label { font-size: .68rem; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- Vidéos ---------- */
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0e; }
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .video-thumb img, .card:hover .video-thumb video { transform: scale(1.05); }
.video-thumb__play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: rgba(207, 31, 41, .82); border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 0 40px rgba(207, 31, 41, .6); transition: transform .3s var(--ease), background .3s;
}
.card:hover .video-thumb__play { transform: scale(1.08); background: var(--red-bright); }
.video-thumb__fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 4rem; color: rgba(255, 255, 255, .12);
    background: radial-gradient(circle at 50% 40%, rgba(207, 31, 41, .25), #08080c 72%);
}
.video-thumb__provider { position: absolute; bottom: 10px; right: 10px; z-index: 2; }

.player { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.player video, .player iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.watch { padding: 40px 0 90px; }
.watch__head { margin-top: 26px; }
.watch__head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.watch__meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.watch__more { margin-top: 56px; }
.watch__more h2 { font-size: 1.3rem; margin-bottom: 20px; }

/* ---------- Page head ---------- */
.page-head {
    position: relative; padding: 110px 0 52px; overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(600px 320px at 85% 0%, rgba(207, 31, 41, .16), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}
.page-head--compact { padding: 76px 0 40px; }
.page-head__kanji {
    position: absolute; right: 3vw; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-size: clamp(140px, 20vw, 300px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 56, 70, .16); pointer-events: none;
}
.page-head__eyebrow { font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 14px; }
.page-head__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.9rem); color: #fff; }
.page-head__lede { margin-top: 14px; max-width: 62ch; color: #ada59e; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-body { padding: 48px 0 96px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--red); }

/* ---------- Toolbar / chips / search ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
    font-size: .74rem; letter-spacing: .06em; color: #c6beb7; background: rgba(255, 255, 255, .02);
    transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: #fff; border-color: rgba(255, 56, 70, .4); }
.chip.is-active { background: rgba(207, 31, 41, .18); border-color: rgba(255, 56, 70, .5); color: #fff; }

.search { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.search input { border: 0; background: transparent; padding: 10px 16px; color: var(--paper); font: inherit; font-size: .85rem; min-width: 210px; }
.search input:focus { outline: none; }
.search button { border: 0; background: rgba(207, 31, 41, .2); color: #fff; padding: 10px 16px; cursor: pointer; }
.search button:hover { background: var(--red); }
.search--wide { max-width: 460px; margin-bottom: 34px; }

/* ---------- Downloads ---------- */
.download-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl-card {
    display: flex; flex-direction: column; gap: 10px; padding: 24px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(207, 31, 41, .08), rgba(255, 255, 255, .015) 40%, transparent);
    transition: transform .4s var(--ease), border-color .3s;
}
.dl-card:hover { transform: translateY(-5px); border-color: rgba(255, 56, 70, .35); }
.dl-card__top { display: flex; align-items: center; justify-content: space-between; }
.dl-card__version { font-family: var(--font-serif); font-size: .8rem; color: var(--red-bright); }
.dl-card h2, .dl-card h3 { font-size: 1.12rem; color: #fff; }
.dl-card h2 a:hover, .dl-card h3 a:hover { color: #ffd9db; }
.dl-card p { font-size: .86rem; color: #a8a19a; }
.dl-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: auto; }
.dl-card .btn { align-self: flex-start; margin-top: 6px; }

.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.download-note { margin-top: 34px; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px dashed rgba(255, 56, 70, .35); background: rgba(207, 31, 41, .06); }
.download-note p { color: #b7afa8; font-size: .9rem; margin-top: 6px; }

/* ---------- Prose / article ---------- */
.prose { max-width: 72ch; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; color: #c3bbb4; }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; color: #fff; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: #ff9aa1; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--red); color: #d7cfc8; font-style: italic; }

.article { padding-bottom: 40px; }
.article__head { position: relative; padding: 92px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line); }
.article__kanji {
    position: absolute; right: 4vw; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-size: clamp(160px, 22vw, 320px); color: transparent;
    -webkit-text-stroke: 1px rgba(255, 56, 70, .14);
}
.article__head-inner { position: relative; }
.article__title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.6rem); color: #fff; max-width: 22ch; }
.article__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.article__cover { margin-top: 34px; }
.article__cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); max-height: 60vh; object-fit: cover; }
.article__body-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding-top: 42px; align-items: start; }
.article__excerpt { font-family: var(--font-serif); font-size: 1.22rem; color: #ded6cf; line-height: 1.6; margin-bottom: 1.4em !important; }
.article__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

.aside-card {
    padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), #0c0c11);
}
.aside-card h2 { font-size: 1rem; margin-bottom: 14px; color: #fff; }
.aside-card p { font-size: .88rem; color: #a8a19a; margin-bottom: 10px; }
.aside-card--ink {
    position: relative; overflow: hidden;
    background: radial-gradient(circle at 85% 15%, rgba(207, 31, 41, .28), #0b0b10 70%);
    border-color: rgba(255, 56, 70, .22);
}
.aside-ink {
    position: absolute; right: -8px; bottom: -22px; font-family: var(--font-display);
    font-size: 6rem; color: rgba(255, 255, 255, .05); pointer-events: none;
}
.aside-list { display: flex; flex-direction: column; gap: 12px; }
.aside-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-list a { font-size: .9rem; color: #ded6cf; }
.aside-list a:hover { color: #fff; }
.aside-list span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.aside-strong { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin: 10px 0 16px; }
.aside-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-top: 12px; }
.meta-list { display: flex; flex-direction: column; gap: 0; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.meta-list div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--muted-2); }
.meta-list dd { margin: 0; color: #e6ded7; }
.aside-card--download .btn { margin-top: 18px; }

/* ---------- Projet ---------- */
.project-hero { position: relative; padding: 92px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-hero--live { background: radial-gradient(700px 380px at 80% 0%, rgba(207, 31, 41, .2), transparent 70%); }
.project-hero--soon { background: radial-gradient(700px 380px at 80% 0%, rgba(255, 180, 70, .13), transparent 70%); }
.project-hero--done { background: radial-gradient(700px 380px at 80% 0%, rgba(70, 210, 150, .1), transparent 70%); }
.project-hero__kanji {
    position: absolute; right: 3vw; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-size: clamp(180px, 26vw, 380px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
}
.project-hero__inner { position: relative; }
.project-hero__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; margin-top: 14px; }
.project-hero__lede { margin-top: 14px; max-width: 60ch; color: #b6aea7; }
.project-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.project-layout__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.project-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 32px; }
.project-block { margin-top: 40px; }
.project-block h2 { font-size: 1.3rem; margin-bottom: 18px; }
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.file-list strong { display: block; font-size: .95rem; }
.file-list span { font-size: .72rem; letter-spacing: .06em; color: var(--muted-2); }

/* ---------- Réseau / CTA ---------- */
.network-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.network-card {
    position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent 60%);
    display: flex; flex-direction: column; gap: 8px; overflow: hidden;
    transition: border-color .3s, transform .4s var(--ease);
}
.network-card:hover { border-color: rgba(255, 56, 70, .4); transform: translateY(-4px); }
.network-card__kanji { position: absolute; right: 10px; top: 6px; font-family: var(--font-display); font-size: 3.4rem; color: rgba(255, 255, 255, .06); }
.network-card strong { font-size: .95rem; color: #fff; }
.network-card span { font-size: .82rem; color: var(--muted); }
.network-card em { margin-top: 12px; font-style: normal; color: var(--red-bright); }

.cta-panel {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: 46px; border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(255, 56, 70, .26);
    background: radial-gradient(600px 300px at 90% 20%, rgba(207, 31, 41, .28), #0c0c11 70%);
}
.cta-panel--flat { margin-top: 40px; }
.cta-panel__kanji { position: absolute; right: 18px; bottom: -34px; font-family: var(--font-display); font-size: 9rem; color: rgba(255, 255, 255, .05); }
.cta-panel h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.cta-panel p { color: #b3aba4; margin-top: 8px; max-width: 52ch; }

/* ---------- Flux social ---------- */
.feed-preview { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mini-post { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.mini-post__head { display: flex; align-items: baseline; gap: 8px; font-size: .84rem; }
.mini-post__head span { font-size: .68rem; color: var(--muted-2); }
.mini-post__body { font-size: .86rem; color: #aaa29b; margin-top: 4px; }

.social-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.social-layout__feed { display: flex; flex-direction: column; gap: 18px; }
.social-layout__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

.composer { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #0c0c11); }
.composer__top { display: flex; gap: 14px; align-items: flex-start; }
.composer textarea { flex: 1; background: transparent; border: 0; resize: vertical; min-height: 74px; color: var(--paper); font: inherit; font-size: .95rem; }
.composer textarea:focus { outline: none; }
.composer__more { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.composer__more summary { cursor: pointer; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; color: var(--muted); }
.composer__more summary:hover { color: #fff; }
.composer__fields { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.composer__fields input[type="file"], .composer__fields input[type="url"] { width: 100%; }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.composer__hint { font-size: .72rem; color: var(--muted-2); }
.composer--guest p { font-size: .92rem; color: #b0a8a1; }

.post { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #0c0c11); }
.post__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.post__author { display: inline-flex; gap: 12px; align-items: center; }
.post__author span { display: flex; flex-direction: column; }
.post__author strong { font-size: .92rem; color: #fff; }
.post__author small { font-size: .7rem; color: var(--muted-2); }
.post__body { margin-top: 14px; font-size: .95rem; color: #cfc7c0; white-space: pre-line; }
.post__media { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.post__media img, .post__media video, .post__media iframe { width: 100%; max-height: 520px; object-fit: cover; display: block; border: 0; }
.post__media iframe { aspect-ratio: 16 / 9; max-height: none; }
.post__actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.like { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: .82rem; color: var(--muted); }
.like__heart { font-size: 1rem; transition: transform .25s var(--ease), color .2s; }
.like:hover { color: #fff; }
.like.is-liked { color: #ff8e95; }
.like.is-liked .like__heart { transform: scale(1.18); }
.like:disabled { opacity: .45; cursor: default; }
.post__count { font-size: .76rem; color: var(--muted-2); }
.post__comments { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.post__comments li { font-size: .85rem; color: #b9b1aa; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.post__comments a { color: #fff; }
.post__comments time { display: block; font-size: .66rem; color: var(--muted-2); margin-top: 2px; }
.post__comment-form { display: flex; gap: 8px; margin-top: 12px; }
.post__comment-form input { flex: 1; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--paper); font: inherit; font-size: .85rem; }
.post__comment-form input:focus { outline: none; border-color: rgba(255, 56, 70, .45); }
.post__comment-form button { width: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(207, 31, 41, .2); cursor: pointer; }

/* ---------- Membres / profil ---------- */
.member-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.member-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), #0c0c11);
    transition: transform .35s var(--ease), border-color .3s;
}
.member-card:hover { transform: translateY(-4px); border-color: rgba(255, 56, 70, .35); }
.member-card strong { font-size: .95rem; color: #fff; }
.member-card span, .member-card small { font-size: .72rem; color: var(--muted-2); }

.profile-head { position: relative; padding: 92px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(650px 340px at 15% 0%, rgba(207, 31, 41, .18), transparent 70%); }
.profile-head__kanji { position: absolute; right: 4vw; top: 30px; font-family: var(--font-display); font-size: clamp(140px, 22vw, 280px); color: transparent; -webkit-text-stroke: 1px rgba(255, 56, 70, .14); }
.profile-head__inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.profile-head__id h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.profile-head__meta { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.profile-head__meta a { color: #ff9aa1; }
.profile-head__bio { margin-top: 12px; max-width: 58ch; color: #b3aba4; font-size: .92rem; }
.profile-head__actions { margin-left: auto; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin: 32px 0 0; padding: 22px 0; border-top: 1px solid var(--line); }
.profile-stats dt { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.profile-stats dd { margin: 4px 0 0; font-family: var(--font-serif); font-size: 1.4rem; color: #fff; }
.profile-posts { display: grid; gap: 18px; max-width: 780px; }

.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

/* ---------- Forum ---------- */
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.forum-layout__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.forum-row {
    display: grid; grid-template-columns: 56px minmax(0, 1.6fr) 140px minmax(0, 1.2fr);
    gap: 18px; align-items: center; padding: 20px;
    border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent);
    transition: border-color .3s, transform .3s var(--ease);
}
.forum-row:hover { border-color: rgba(255, 56, 70, .35); transform: translateX(4px); }
.forum-row__kanji { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255, 56, 70, .3); background: rgba(207, 31, 41, .12); font-family: var(--font-display); font-size: 1.4rem; color: #ffd9db; }
.forum-row__main h2 { font-size: 1.05rem; color: #fff; }
.forum-row__main p { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.forum-row__stats { display: grid; grid-template-columns: auto auto; gap: 0 8px; font-size: .7rem; color: var(--muted-2); }
.forum-row__stats strong { font-family: var(--font-serif); font-size: 1rem; color: #e6ded7; }
.forum-row__latest { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; }
.forum-row__latest strong { color: #d6cec7; font-weight: 500; }
.forum-row__latest span { font-size: .7rem; color: var(--muted-2); }

.topic-list { display: flex; flex-direction: column; gap: 10px; }
.topic-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.topic-row:hover { border-color: rgba(255, 56, 70, .3); }
.topic-row__main a { display: block; font-size: .95rem; color: #eae2db; }
.topic-row__main a:hover { color: #fff; }
.topic-row__main span { font-size: .7rem; color: var(--muted-2); }
.topic-row__stats { display: flex; gap: 6px; align-items: baseline; font-size: .7rem; color: var(--muted-2); }
.topic-row__stats strong { font-family: var(--font-serif); color: #e6ded7; }
.topic-row__activity { font-size: .7rem; color: var(--muted-2); }

.forum-post { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #0c0c11); margin-bottom: 16px; }
.forum-post--op { border-color: rgba(255, 56, 70, .28); }
.forum-post header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.forum-post header strong { font-size: .92rem; color: #fff; }
.forum-post header span { display: block; font-size: .7rem; color: var(--muted-2); }
.reply-form { margin-top: 26px; }

/* ---------- Auth / erreurs ---------- */
.auth { padding: 60px 0; width: 100%; }
.auth__card {
    position: relative; width: min(100% - 32px, 460px); margin-inline: auto; padding: 40px 34px;
    border-radius: 22px; border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), #0a0a0f);
    box-shadow: var(--shadow); overflow: hidden;
}
.auth__card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.auth__kanji { position: absolute; right: -10px; top: -10px; font-family: var(--font-display); font-size: 7rem; color: rgba(255, 255, 255, .04); pointer-events: none; }
.auth__card h1 { font-family: var(--font-display); font-size: 2rem; color: #fff; margin-bottom: 8px; }
.auth__lede { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.auth__foot { margin-top: 20px; text-align: center; font-size: .8rem; color: var(--muted); }
.auth__foot a { color: #ff9aa1; }
.auth .form { margin-top: 4px; }
.plain-shell { width: 100%; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.plain-shell__foot a { font-size: .78rem; color: var(--muted); }
.plain-shell__foot a:hover { color: #fff; }

.error-page { position: relative; padding: 120px 0; text-align: center; max-width: 620px; margin-inline: auto; }
.error-page__kanji { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); font-family: var(--font-display); font-size: 15rem; color: rgba(255, 255, 255, .04); pointer-events: none; }
.error-page__code { position: relative; font-family: var(--font-serif); font-size: .9rem; letter-spacing: .5em; color: var(--red-bright); }
.error-page h1 { position: relative; font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; margin: 10px 0 14px; }
.error-page p { position: relative; color: var(--muted); }
.error-page__actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form--tight { gap: 12px; margin-top: 14px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #b8b0a9; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 15px; border-radius: 11px; font: inherit; font-size: .92rem;
    color: var(--paper); background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(255, 56, 70, .55); background: rgba(255, 255, 255, .05); }
.field input:disabled { opacity: .55; }
.field input[type="file"] { padding: 9px 12px; font-size: .8rem; }
.field__hint { font-size: .7rem; color: var(--muted-2); }
.field__error { font-size: .74rem; color: #ff9aa1; }
.field__error--block { display: block; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 56, 70, .35); background: rgba(207, 31, 41, .12); margin-bottom: 16px; font-size: .82rem; }
.form__hint { font-size: .72rem; color: var(--muted-2); }
.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: #c3bbb4; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .88rem; color: #b9b1aa; }
.notice a { color: #ff9aa1; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; right: 18px; bottom: 18px; z-index: 9500; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.flash {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    border-radius: 12px; border: 1px solid var(--line);
    background: rgba(16, 16, 21, .97); box-shadow: var(--shadow);
    font-size: .85rem; animation: flashIn .4s var(--ease) both;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(10px); } }
.flash__mark { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; background: var(--muted); flex: 0 0 auto; }
.flash p { flex: 1; color: #ded6cf; }
.flash--success { border-color: rgba(90, 220, 150, .35); }
.flash--success .flash__mark { background: #5adc96; box-shadow: 0 0 10px #5adc96; }
.flash--error { border-color: rgba(255, 56, 70, .4); }
.flash--error .flash__mark { background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }
.flash--info .flash__mark { background: #7db4ff; box-shadow: 0 0 10px #7db4ff; }
.flash__close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.pagination__step { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #c6beb7; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.pagination__step:hover { border-color: rgba(255, 56, 70, .4); color: #fff; }
.pagination__step.is-disabled { opacity: .35; }
.pagination__pages { display: flex; align-items: center; gap: 6px; }
.pagination__pages a, .pagination__pages span {
    min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px;
    font-size: .8rem; color: #c6beb7; border: 1px solid transparent;
}
.pagination__pages a:hover { border-color: var(--line-strong); color: #fff; }
.pagination__pages .is-current { background: rgba(207, 31, 41, .2); border-color: rgba(255, 56, 70, .45); color: #fff; }
.pagination__ellipsis { color: var(--muted-2); }

/* ---------- Empty ---------- */
.empty-state { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state__kanji { font-family: var(--font-display); font-size: 3.4rem; color: rgba(255, 255, 255, .08); display: block; margin-bottom: 8px; }
.empty-state h3 { font-size: 1.2rem; color: #eee6df; }
.empty-state p { margin: 8px auto 18px; color: var(--muted); font-size: .9rem; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 60px; padding-top: 72px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, #07070a, #050508); }
.site-footer__glow { position: absolute; inset: auto 0 -200px; height: 320px; background: radial-gradient(400px 200px at 50% 100%, rgba(207, 31, 41, .22), transparent 70%); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 0.8fr 0.9fr; padding-bottom: 56px; }
.site-footer__pitch { margin-top: 16px; font-size: .86rem; color: var(--muted); max-width: 40ch; }
.site-footer__brand .socials { margin-top: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .7rem; letter-spacing: .08em; color: #c6beb7; }
.socials a:hover { border-color: rgba(255, 56, 70, .45); color: #fff; }
.footer-title { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px; font-family: var(--font-ui); font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links strong { display: block; font-size: .86rem; color: #e6ded7; font-weight: 500; }
.footer-links span { display: block; font-size: .7rem; color: var(--muted-2); }
.footer-links a:hover strong { color: #fff; }
.footer-links--simple a { font-size: .84rem; color: #a8a19a; }
.footer-links--simple a:hover { color: #fff; }
.footer-ink { margin-top: 20px; font-family: var(--font-display); font-size: 3rem; color: rgba(255, 255, 255, .05); line-height: 1; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted-2); flex-wrap: wrap; }
.site-footer__seal { font-family: var(--font-display); letter-spacing: .3em; color: rgba(255, 255, 255, .18); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.contact-layout__aside { display: flex; flex-direction: column; gap: 18px; }
.about-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.about-counters dt { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.about-counters dd { margin: 6px 0 0; font-family: var(--font-serif); font-size: 2rem; color: #fff; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .article__body-wrap, .project-layout, .social-layout, .forum-layout,
    .download-layout, .account-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .article__aside, .project-layout__aside, .social-layout__aside, .forum-layout__aside { position: static; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .nav-toggle { display: flex; order: 3; }
    .header-actions { margin-left: auto; }
    .nav {
        position: fixed; inset: 74px 0 auto 0; z-index: 800;
        background: rgba(8, 8, 12, .98); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        max-height: calc(100vh - 74px); overflow-y: auto;
        padding: 12px 20px 26px;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { padding: 14px 10px; font-size: .95rem; border-radius: 10px; justify-content: space-between; }
    .nav__item.has-children > .nav__link { padding-right: 52px; }
    .nav__item.has-children { position: relative; }
    .nav__expand {
        display: block; position: absolute; top: 0; right: 0; width: 48px; height: 48px;
        background: none; border: 0; cursor: pointer;
    }
    .nav__expand::after {
        content: ''; display: block; width: 8px; height: 8px; margin: auto;
        border-right: 1.5px solid #b9b1aa; border-bottom: 1.5px solid #b9b1aa;
        transform: rotate(45deg); transition: transform .25s var(--ease);
    }
    .nav__item.is-open .nav__expand::after { transform: rotate(225deg); }
    .nav__item.is-active > .nav__link::after { display: none; }
    .nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border: 0; background: rgba(255, 255, 255, .02);
        padding: 4px 0 8px 14px; margin-top: 2px;
    }
    .nav__sub::before { display: none; }
    .nav__item.is-open > .nav__sub { display: block; }
    .nav__caret { display: none; }
    .nav__footer { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
    .nav__footer .btn { width: 100%; }
    .header-login { display: none; }
    .hero { min-height: auto; padding: 72px 0 84px; }
    .hero__kanji { font-size: 44vw; right: -6vw; opacity: .7; }
    .hero__ring { display: none; }
    .hero__counters { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .section { padding: 68px 0; }
    .page-head { padding: 76px 0 40px; }
    .page-head__kanji { font-size: 34vw; right: -4vw; }
}

@media (max-width: 760px) {
    body.site { font-size: 15.5px; }
    .site-header__inner { height: 66px; }
    .brand__text small { display: none; }
    .account__name { display: none; }
    .header-join { display: none; }
    .nav { top: 66px; max-height: calc(100vh - 66px); }
    .article__title { font-size: 2rem; }
    .forum-row { grid-template-columns: 44px minmax(0, 1fr); }
    .forum-row__stats, .forum-row__latest { grid-column: 2; }
    .forum-row__latest { border-top: 1px solid var(--line); padding-top: 8px; }
    .topic-row { grid-template-columns: 36px minmax(0, 1fr); }
    .topic-row__stats, .topic-row__activity { grid-column: 2; }
    .form__row { grid-template-columns: 1fr; }
    .cta-panel { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .profile-head { padding-top: 68px; }
    .profile-head__inner { gap: 18px; }
    .profile-head__actions { margin-left: 0; width: 100%; }
    .about-counters { grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { flex: 1; }
    .watch { padding-top: 20px; }
    .flash-stack { left: 18px; right: 18px; width: auto; }
}

@media (max-width: 480px) {
    .container, .container--narrow { width: calc(100% - 28px); }
    .hero__title { font-size: 2.5rem; }
    .hero__counters { margin-top: 40px; }
    .dl-card, .card__body, .post { padding: 18px; }
    .auth__card { padding: 30px 22px; }
    .pagination__pages li:not(.pagination__ellipsis) a:not(:first-child):not(:last-child) { display: none; }
}

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

@media (max-width: 520px) {
    .brand__text strong { font-size: 1.14rem; }
    .brand__text small { font-size: .5rem; letter-spacing: .26em; }
}


/* --- Galerie projet --- */
.project-gallery { margin-top: 3rem; }
.project-gallery h2 { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .9rem;
}
.project-gallery__item { margin: 0; overflow: hidden; border: 1px solid var(--line, rgba(255,255,255,.1)); background: #0d0d0f; }
.project-gallery__item img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.project-gallery__item:hover img { transform: scale(1.04); }
