/* =========================================================
   Aureane Studio — feuille de style du site
   ========================================================= */
:root {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --panel: #141418;
  --panel-2: #1b1b20;
  --hover: #22222a;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f1f1f3;
  --text-2: #c6c6cd;
  --muted: #8b8b95;
  --dim: #5d5d68;
  --green: #5bbf2a;
  --green-h: #6bd136;
  --gold: #d9b45a;
  --gold-2: #f0d48f;
  --red: #e5484d;
  --blue: #4f8fe0;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(91, 191, 42, .35); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.h1 { font-size: clamp(2.5rem, 6.2vw, 4.8rem); letter-spacing: -.03em; line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(9, 9, 11, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(9, 9, 11, .88); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 400; color: var(--muted); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-size: .94rem; font-weight: 500; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; }
.menu-toggle:hover { background: var(--panel); }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); transition: background .15s; }
.user-chip:hover { background: var(--panel); }
.user-chip .name { font-size: .9rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .2s, color .15s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #0b1305; }
.btn-primary:hover { background: var(--green-h); box-shadow: 0 10px 30px -10px rgba(91, 191, 42, .7); }
.btn-light { background: var(--text); color: #0b0b0d; }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .22); }
.btn-danger { border-color: rgba(229, 72, 77, .4); color: #ff8a8d; background: rgba(229, 72, 77, .08); }
.btn-danger:hover { background: rgba(229, 72, 77, .16); }
.btn-sm { padding: 8px 15px; font-size: .88rem; border-radius: 9px; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn-lg svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { color: var(--green); font-weight: 500; }
.link:hover { text-decoration: underline; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: .95rem; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .15s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------- hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; padding: 140px 0 90px; margin-top: calc(var(--header-h) * -1); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #0d0d10 center/cover no-repeat; transform: scale(1.04); transition: opacity .8s; }
.hero-bg.loaded { animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, .55) 0%, rgba(9, 9, 11, .15) 35%, rgba(9, 9, 11, .75) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 9, 11, .85) 0%, rgba(9, 9, 11, .2) 65%);
}
.hero-content { max-width: 980px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

.page-hero { padding: 80px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 0% 0%, rgba(91, 191, 42, .08), transparent 60%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.025em; margin: 14px 0 12px; }
.page-hero p { color: var(--text-2); max-width: 640px; font-size: 1.08rem; }

/* ---------------------------------------------------------- sections */
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 10px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.stat { padding: 28px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------- cartes projets */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .25s;
}
.project-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.project-card .media { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--panel-2); }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .media img { transform: scale(1.05); }
.project-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 20, 24, .9)); }
.project-card .kind { position: absolute; top: 16px; left: 16px; z-index: 1; }
.project-card .body { padding: 6px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card h3 { font-size: 1.7rem; }
.project-card h3 small { display: block; font-family: var(--font); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.project-card p { color: var(--text-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; background: rgba(9, 9, 11, .7); border: 1px solid var(--line-2); backdrop-filter: blur(8px); color: var(--text); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pill.gold .dot { background: var(--gold); }
.pill.blue .dot { background: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; padding: 4px 10px; border-radius: 7px; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); }

/* ---------------------------------------------------------- actus */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .25s; }
.news-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.news-card .media { aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .media img { transform: scale(1.04); }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.news-meta .t { color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.news-card h3 { font-size: 1.18rem; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); margin-bottom: 28px; transition: border-color .2s; }
.news-featured:hover { border-color: var(--line-2); }
.news-featured .media { min-height: 320px; background: var(--panel-2) center/cover; }
.news-featured .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.news-featured h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.news-featured p { color: var(--text-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--text-2); transition: all .15s; }
.chip:hover { color: var(--text); background: var(--panel); }
.chip.on { background: var(--text); color: #0b0b0d; border-color: var(--text); }

/* article */
.article-hero { aspect-ratio: 21 / 9; max-height: 520px; width: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 34px 0 40px; background: var(--panel); }
.prose { font-size: 1.06rem; color: var(--text-2); }
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); transform: rotate(45deg); }
.prose h2 { color: var(--text); font-size: 1.5rem; margin: 40px 0 16px; }
.prose a { color: var(--green); }
.prose strong { color: var(--text); }

/* ---------------------------------------------------------- launcher showcase */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.feature-list { list-style: none; display: grid; gap: 22px; margin: 32px 0 36px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(91, 191, 42, .1); color: var(--green); border: 1px solid rgba(91, 191, 42, .2); }
.feature-list .ic svg { width: 21px; height: 21px; }
.feature-list b { display: block; font-weight: 600; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: .94rem; }

.mock { position: relative; border-radius: 18px; background: #0c0c0e; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; display: grid; grid-template-columns: 58px 1fr; aspect-ratio: 16 / 10.5; width: 100%; max-width: 680px; margin: 0 auto; }
.mock::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(91, 191, 42, .18), transparent); z-index: -1; }
.mock-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.mock-side img { width: 26px; height: 26px; margin-bottom: 10px; }
.mock-side i { width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2); }
.mock-side i.on { background: var(--hover); box-shadow: inset 2px 0 0 var(--green); }
.mock-main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mock-banner { flex: 1; background: var(--panel) center/cover; position: relative; }
.mock-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #0c0c0e 100%); }
.mock-info { position: absolute; left: 22px; right: 22px; bottom: 72px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.mock-info b { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); display: block; line-height: 1.1; }
.mock-info small { color: var(--muted); font-size: .78rem; }
.mock-play { background: var(--green); color: #0b1305; font-weight: 700; font-size: .82rem; padding: 10px 22px; border-radius: 9px; }
.mock-tabs { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.mock-tabs span { height: 34px; flex: 1; border-radius: 8px; background: var(--panel) center/cover; opacity: .55; border: 1px solid var(--line); }
.mock-tabs span.on { opacity: 1; border-color: rgba(91, 191, 42, .6); }

/* ---------------------------------------------------------- cartes génériques */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--green); border: 1px solid var(--line); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }
.card-num { font-family: var(--display); font-size: .85rem; font-weight: 700; color: var(--green); margin-bottom: 14px; letter-spacing: .1em; }

/* ---------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 70px 60px; isolation: isolate;
  background: linear-gradient(135deg, #12160f, #0f0f12 60%); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 191, 42, .28), transparent); z-index: -1; }
.cta img.mark { position: absolute; right: 40px; bottom: -60px; width: 260px; opacity: .06; z-index: -1; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.cta p { color: var(--text-2); max-width: 520px; }

/* ---------------------------------------------------------- téléchargement */
.dl-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.dl-main { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.dl-main .os { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.dl-main .os svg { width: 22px; height: 22px; color: var(--text); }
.dl-specs { background: var(--bg-2); border-left: 1px solid var(--line); padding: 40px; }
.spec-list { list-style: none; display: grid; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-list li:last-child { border-bottom: none; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { text-align: right; font-weight: 500; }
.hash { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .74rem; color: var(--muted); word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }

/* ---------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--green); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------------------------------------------------------- formulaires */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(91, 191, 42, .18); }
.field .hint { font-size: .8rem; color: var(--dim); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: .9rem; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.form-msg.error { background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .3); color: #ff9b9e; }
.form-msg.ok { background: rgba(91, 191, 42, .1); border: 1px solid rgba(91, 191, 42, .3); color: #a6e57f; }

/* ---------------------------------------------------------- authentification */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: #0d0d10 center/cover; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; isolation: isolate; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 11, .2), rgba(9, 9, 11, .9)); }
.auth-art h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 440px; }
.auth-art p { color: var(--text-2); margin-top: 12px; max-width: 420px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-box > p { color: var(--muted); margin-bottom: 30px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.tabs button { padding: 10px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .15s; }
.tabs button.on { background: var(--hover); color: var(--text); }
.auth-foot { margin-top: 22px; font-size: .86rem; color: var(--muted); text-align: center; }
.sync-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); margin-top: 24px; }
.sync-note svg { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }

/* ---------------------------------------------------------- espace compte */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-top: 50px; padding-bottom: 100px; align-items: start; }
.acc-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.acc-id { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.acc-id b { display: block; font-size: 1rem; line-height: 1.25; word-break: break-word; }
.acc-id b em { font-style: normal; color: var(--dim); font-weight: 500; }
.acc-id small { color: var(--muted); font-size: .8rem; }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .94rem; transition: all .15s; }
.acc-nav a svg { width: 19px; height: 19px; color: var(--dim); }
.acc-nav a:hover { background: var(--panel); color: var(--text); }
.acc-nav a.on { background: var(--panel-2); color: var(--text); }
.acc-nav a.on svg { color: var(--green); }
.acc-nav .count { margin-left: auto; background: var(--green); color: #0b1305; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.acc-main { min-width: 0; }
.acc-main > h1 { font-size: 2rem; margin-bottom: 6px; }
.acc-main > .sub { color: var(--muted); margin-bottom: 32px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 6px; }
.panel > p.muted { font-size: .92rem; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.kv > div { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div:nth-last-child(-n+2) { border-bottom: none; }
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.ov { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ov small { color: var(--muted); font-size: .82rem; display: block; margin-bottom: 8px; }
.ov b { font-family: var(--display); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); display: inline-block; }
.status-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(91, 191, 42, .18); }
.status-dot.playing { background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 143, 224, .2); }

/* avatar (identique au launcher) */
.av { position: relative; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(145deg, var(--c), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-family: var(--display); line-height: 1; }
.av svg { width: 56%; height: 56%; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--dim); border: 2px solid var(--panel); }
.av .dot.on { background: var(--green); }
.av .dot.playing { background: var(--blue); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 2px solid transparent; outline: 2px solid transparent; transition: transform .12s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { outline-color: var(--text); border-color: var(--panel); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.icon-opt { aspect-ratio: 1; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: all .12s; font-family: var(--display); font-weight: 700; }
.icon-opt svg { width: 22px; height: 22px; }
.icon-opt:hover { background: var(--hover); color: var(--text); }
.icon-opt.on { border-color: var(--green); color: var(--text); background: rgba(91, 191, 42, .12); }
.profile-preview { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 26px; }
.profile-preview b { font-family: var(--display); font-size: 1.4rem; }
.profile-preview b em { font-style: normal; color: var(--dim); font-weight: 500; }

/* bibliothèque */
.library { display: grid; gap: 14px; }
.lib-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 22px; align-items: center; padding: 14px; padding-right: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lib-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--panel-2); }
.lib-item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.lib-item p { color: var(--muted); font-size: .88rem; }
.lib-item .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* amis */
.people { display: grid; gap: 2px; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background .12s; }
.person:hover { background: var(--panel-2); }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-size: .95rem; }
.person .who b em { font-style: normal; color: var(--dim); font-weight: 500; }
.person .who small { color: var(--muted); font-size: .82rem; }
.person .acts { display: flex; gap: 6px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .94rem; border: 1px dashed var(--line-2); border-radius: 12px; }
.add-friend { display: flex; gap: 10px; }
.add-friend .input { flex: 1; }

/* appareils */
.device { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: none; }
.device .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); }
.device .ic svg { width: 22px; height: 22px; }
.device .info { flex: 1; min-width: 0; }
.device .info b { display: flex; align-items: center; gap: 8px; font-size: .96rem; flex-wrap: wrap; }
.device .info small { color: var(--muted); font-size: .84rem; }
.badge { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(91, 191, 42, .14); color: var(--green); letter-spacing: .03em; }
.badge.blue { background: rgba(79, 143, 224, .15); color: #8db8f0; }
.badge.grey { background: var(--panel-2); color: var(--muted); }

/* ---------------------------------------------------------- détail projet */
.project-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; padding: 140px 0 60px; margin-top: calc(var(--header-h) * -1); isolation: isolate; overflow: hidden; }
.project-hero .bg { position: absolute; inset: 0; z-index: -2; background: #0d0d10 center/cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 11, .4), rgba(9, 9, 11, .3) 40%, var(--bg)); }
.project-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.035em; margin: 16px 0 8px; }
.project-hero .sub { font-size: 1.2rem; color: var(--text-2); }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; padding-top: 50px; padding-bottom: 100px; align-items: start; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 16px; }

/* ---------------------------------------------------------- légal */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding-top: 60px; padding-bottom: 100px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.legal-nav a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.legal-nav a:hover { color: var(--text); background: var(--panel); }
.legal-nav a.on { color: var(--text); background: var(--panel-2); }
.legal-doc h2 { font-size: 1.35rem; color: var(--text); margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text-2); margin-bottom: 12px; font-size: .98rem; }
.legal-doc ul { padding-left: 22px; margin-bottom: 14px; }
.legal-doc a { color: var(--green); }
.legal-doc strong { color: var(--text); }
.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.info-box p { margin-bottom: 4px !important; }
.todo { background: rgba(217, 180, 90, .14); color: var(--gold-2); padding: 1px 7px; border-radius: 5px; font-size: .92em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal-table th { color: var(--text); font-weight: 600; background: var(--panel); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.table-wrap .legal-table { margin: 0; }

/* ---------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 34px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 16px 0 22px; max-width: 300px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); transition: all .15s; }
.socials a:hover { color: var(--text); border-color: var(--line-2); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: .93rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; color: var(--dim); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-2); }

/* ---------------------------------------------------------- divers */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--green); padding: 13px 18px; border-radius: 10px; font-size: .92rem; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); animation: toastIn .25s ease-out; max-width: 380px; }
.toast.error { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius-lg); }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: grid; place-items: center; padding: 120px 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 50px; }
  .project-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .account { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-nav { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; padding-bottom: 4px; }
}
@media (max-width: 980px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(9, 9, 11, .98); border-bottom: 1px solid var(--line); padding: 10px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; font-size: 1rem; }
  .menu-toggle { display: grid; }
  .site-header .container { gap: 12px; }
  .brand { flex: 1; }
  .header-actions .hide-m { display: none; }
}
@media (max-width: 860px) {
  .projects, .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .news-featured, .dl-box, .auth-wrap { grid-template-columns: 1fr; }
  .dl-specs { border-left: none; border-top: 1px solid var(--line); }
  .auth-art { min-height: 260px; padding: 32px 24px; }
  .cta { grid-template-columns: 1fr; padding: 44px 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .overview { grid-template-columns: 1fr; }
  .lib-item { grid-template-columns: 1fr; padding: 14px; }
  .lib-item .actions { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: none; font-size: .82rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 60px; }
  .news-featured .body, .dl-main, .dl-specs { padding: 26px; }
  .panel { padding: 20px; }
  .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .add-friend { flex-direction: column; }
  .user-chip .name { display: none; }
  .user-chip { padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
