/* ═══════════════ Yumelia — identité Sakura (blanc · noir · rose) ═══════════════ */
:root {
  --bg: #fffafc;
  --bg-2: #fff1f6;
  --surface: rgba(255, 255, 255, .78);
  --solid: #ffffff;
  --border: rgba(26, 20, 24, .09);
  --border-2: rgba(26, 20, 24, .16);
  --text: #1a1418;
  --muted: #6d5f68;
  --ink: #1a1418;
  --ink-2: #2a1f26;
  --pearl: #efeaee;
  --pink: #e0457b;          /* rose Sakura (accent principal) */
  --pink-2: #ff7aa8;        /* rose vif */
  --pink-3: #ffc2d6;        /* rose pastel */
  --pink-4: #fff0f5;        /* rose très pâle */
  --powder: #f4a6c1;        /* rose poudré */
  --cherry: #c2185b;        /* rose cerisier */
  --ok: #1f9d6b;
  --warn: #b7791f;
  --grad: linear-gradient(135deg, #ff9bbd 0%, #e0457b 100%);
  --grad-text: linear-gradient(120deg, #ff7aa8 0%, #e0457b 45%, #c2185b 100%);
  --grad-btn: linear-gradient(135deg, #ff6b9d 0%, #d6336c 100%);
  --radius: 22px;
  --shadow: 0 18px 50px -22px rgba(224, 69, 123, .45);
  --shadow-sm: 0 8px 26px -14px rgba(26, 20, 24, .28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Sora', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, var(--bg-2) 100%) fixed;
  display: flex; flex-direction: column;
}
main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; background: var(--pink-4); color: var(--cherry); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
::selection { background: var(--pink-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
button { font-family: inherit; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(840px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.mt { margin-top: 2.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───── Fond : pétales + halos ───── */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 26s ease-in-out infinite alternate; }
.glow i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -16vw; background: rgba(255, 170, 200, .5); }
.glow i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 14vh; background: rgba(255, 205, 222, .55); animation-delay: -9s; }
.glow i:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; bottom: -22vw; background: rgba(244, 166, 193, .35); animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(4vw, 5vh, 0) scale(1.12); } }

/* ───── Barre démo / toasts ───── */
.demo-bar { position: relative; z-index: 60; text-align: center; padding: 8px 16px; font-size: .84rem; background: var(--ink); color: var(--pink-3); }
.demo-bar code { background: rgba(255,255,255,.12); color: #fff; }
.toasts { position: fixed; z-index: 200; top: 84px; right: 18px; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 16px; background: var(--solid); border: 1px solid var(--border-2); box-shadow: 0 18px 44px -16px rgba(26,20,24,.35); animation: toastIn .45s cubic-bezier(.2,.9,.3,1.2); border-left: 4px solid var(--pink); font-size: .94rem; }
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: #d6224f; }
.toast.out { opacity: 0; transform: translateX(20px); transition: .35s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } }

/* ───── Navigation ───── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.5); border-color: var(--border); box-shadow: 0 10px 30px -22px rgba(224, 69, 123, .5); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links > a, .more > summary { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .93rem; transition: color .2s, background .2s; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.nav-links > a:hover, .more > summary:hover { color: var(--ink); background: var(--pink-4); }
.nav-links > a.active, .more.active > summary { color: var(--cherry); background: var(--pink-4); box-shadow: inset 0 0 0 1px var(--pink-3); }
.more { position: relative; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--solid); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-2); background: var(--solid); color: var(--ink); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s; font-size: 1rem; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--pink-2); color: var(--pink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--pink-3); border-color: var(--ink); }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 700 .68rem/18px var(--font); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
.coin-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.coin-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(224, 69, 123, .6); }
.coin-chip b { font-variant-numeric: tabular-nums; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--solid); cursor: pointer; font-weight: 500; font-size: .9rem; transition: border-color .2s; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { border-color: var(--pink-2); }
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 18px; background: var(--solid); border: 1px solid var(--border-2); box-shadow: 0 26px 60px -20px rgba(26, 20, 24, .4); animation: pop .2s ease; z-index: 70; }
.more .menu-pop { right: auto; left: 0; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 11px; color: var(--ink); background: none; border: 0; font: inherit; font-size: .92rem; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover, .menu-pop a.active { background: var(--pink-4); color: var(--cherry); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.nav-motion { display: none; margin-top: 6px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--pearl); color: var(--ink); font: 500 1rem var(--font); text-align: left; cursor: pointer; }
.nav-motion[aria-pressed="true"] { background: var(--ink); color: var(--pink-3); }

/* ───── Avatars ───── */
.avatar { border-radius: 50%; object-fit: cover; background: var(--pink-4); width: 44px; height: 44px; flex: none; }
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 124px; height: 124px; }
.avatar.ring-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rc, var(--pink)), 0 12px 28px -8px var(--rc, var(--pink)); }

/* ───── Boutons ───── */
.btn { --h: 46px; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 .94rem var(--font); cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s, color .25s; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 1rem; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .86rem; }
.btn-xs { --h: 32px; padding: 0 14px; font-size: .8rem; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 28px -10px rgba(214, 51, 108, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow: 0 16px 38px -10px rgba(214, 51, 108, .9), 0 0 0 4px rgba(255, 122, 168, .22); }
.btn-dark, .btn-discord { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -12px rgba(26,20,24,.6); }
.btn-dark:hover, .btn-discord:hover { background: var(--ink-2); box-shadow: 0 14px 32px -12px rgba(26,20,24,.7), 0 0 0 4px rgba(26,20,24,.08); }
.btn-ghost { background: var(--solid); border-color: var(--border-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pink-2); color: var(--cherry); background: var(--pink-4); }
.btn-white { background: #fff; color: var(--cherry); }
.btn-white:hover { box-shadow: 0 14px 34px -8px rgba(255,255,255,.6); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.18); }
.btn-ok { background: #e7f8f0; border-color: #a6e3c8; color: #167a54; }
.btn-danger { background: #fff0f3; border-color: #f4a7b9; color: #b3173f; }

/* ───── Hero ───── */
.hero { padding: clamp(40px, 7vw, 100px) 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--solid); border: 1px solid var(--pink-3); font-size: .84rem; color: var(--muted); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.badge b { color: var(--ink); font-weight: 600; }
.pulse, .dot-on { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.pulse::after, .dot-on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 58ch; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.center-row { justify-content: center; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font: 800 2rem var(--font-h); letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: .86rem; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.server-card { width: min(380px, 100%); border-radius: 28px; background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow), 0 2px 0 rgba(255,255,255,.8) inset; overflow: hidden; transition: transform .15s ease-out; transform-style: preserve-3d; }
.sc-banner { height: 108px; background: var(--grad); position: relative; }
.sc-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 18% 130%, rgba(26,20,24,.28), transparent 60%), radial-gradient(circle at 85% -20%, rgba(255,255,255,.6), transparent 50%); }
.sc-head { display: flex; align-items: center; gap: 14px; padding: 0 22px; margin-top: -30px; position: relative; }
.sc-icon { width: 66px; height: 66px; border-radius: 20px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; overflow: hidden; flex: none; }
.sc-icon img { width: 100%; height: 100%; object-fit: cover; }
.sc-head strong { font: 700 1.2rem var(--font-h); display: block; margin-top: 26px; }
.sc-sub { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sc-channels { list-style: none; margin: 22px 0 8px; padding: 0 14px; display: grid; gap: 3px; }
.sc-channels li { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .92rem; }
.sc-channels li span { opacity: .5; width: 14px; text-align: center; }
.sc-channels li.on { background: var(--pink-4); color: var(--cherry); }
.sc-avatars { display: flex; align-items: center; padding: 14px 22px 22px; }
.sc-avatars .avatar { width: 34px; height: 34px; margin-left: -8px; border: 2px solid #fff; }
.sc-avatars .avatar:first-child { margin-left: 0; }
.sc-avatars span { margin-left: 12px; font-size: .82rem; color: var(--muted); }
.float-chip { position: absolute; padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--solid); border: 1px solid var(--pink-3); box-shadow: 0 14px 30px -14px rgba(224,69,123,.55); animation: floaty 6s ease-in-out infinite; white-space: nowrap; }
.fc1 { top: 6%; right: -2%; } .fc2 { bottom: 20%; left: -6%; animation-delay: -2s; } .fc3 { bottom: 2%; right: 4%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ───── Sections ───── */
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section.tight { padding-top: 24px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 .76rem var(--font); text-transform: uppercase; letter-spacing: .18em; color: var(--pink); margin-bottom: 14px; }
.section-head p { font-size: 1.06rem; }
.page-hero { padding: clamp(46px, 7vw, 88px) 0 28px; }
.page-hero.compact { padding-bottom: 6px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero .lead { margin-inline: auto; }
.err-code { font: 800 clamp(5rem, 16vw, 9rem) var(--font-h); line-height: 1; margin-bottom: 10px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: grid; gap: 16px; }
.grid > *, .stack > * { min-width: 0; }
.empty { color: var(--muted); padding: 30px 0; }

/* ───── Cartes (surfaces) ───── */
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 26px; backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s; }
.card h2 { font-size: 1.3rem; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 168, .16), transparent 45%); }
.spot:hover::before { opacity: 1; }
a.card:hover, .spot:hover { transform: translateY(-4px); border-color: var(--pink-3); box-shadow: var(--shadow); }
.feature .f-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; margin-bottom: 18px; background: var(--pink-4); border: 1px solid var(--pink-3); }
.feature p { margin: 0; }

/* ───── Actus ───── */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--pink-4); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-img-fallback { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255, 122, 168, .35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(255, 194, 214, .6), transparent 55%), var(--pink-4); }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { margin-bottom: .45em; }
.news-body p { font-size: .94rem; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.dotsep { opacity: .5; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--pearl); border: 1px solid var(--border-2); color: var(--muted); width: fit-content; }
.chip-pin { color: var(--cherry); border-color: var(--pink-3); background: var(--pink-4); margin-bottom: 10px; }
.chip-live { color: #167a54; border-color: #a6e3c8; background: #e7f8f0; }
.chip-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.2s infinite; }
.chip-ok { color: #167a54; border-color: #a6e3c8; background: #e7f8f0; }
.chip-no { color: #b3173f; border-color: #f4a7b9; background: #fff0f3; }
.chip-pink { color: var(--cherry); border-color: var(--pink-3); background: var(--pink-4); }
.chip-dark { color: #fff; border-color: var(--ink); background: var(--ink); }
@keyframes blink { 50% { opacity: .25; } }

.article { padding: 0; overflow: hidden; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; }
.article-pad { padding: clamp(24px, 4vw, 44px); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { margin-top: 26px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.prose pre { background: var(--ink); color: #fff; padding: 14px; border-radius: 12px; overflow-x: auto; }
.prose .emoji { display: inline; width: 1.4em; height: 1.4em; vertical-align: -.3em; }
.mention { color: var(--cherry); background: var(--pink-4); padding: 0 .3em; border-radius: 5px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.back:hover { color: var(--pink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }

/* ───── Événements ───── */
.event-card { display: flex; gap: 22px; align-items: flex-start; }
.event-date { flex: none; width: 76px; padding: 12px 0; border-radius: 18px; text-align: center; background: var(--grad-btn); box-shadow: 0 12px 26px -10px rgba(214, 51, 108, .7); color: #fff; line-height: 1; }
.event-date b { display: block; font: 800 1.9rem var(--font-h); }
.event-date span { text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; opacity: .95; }
.event-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.event-body h3 { margin-bottom: .35em; }
.event-body p { font-size: .94rem; margin-bottom: .8em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--muted); }

/* ───── Podium ───── */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 20px; justify-content: center; align-items: end; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 24px; text-align: center; border-radius: var(--radius); background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.podium-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.podium-item .bar { width: 80%; margin-top: 8px; }
.podium-item.p1 { padding-block: 40px 32px; background: linear-gradient(180deg, var(--pink-4), #fff); border-color: var(--pink-2); box-shadow: var(--shadow); }
.medal { font-size: 1.9rem; }
.podium-item strong { font: 700 1.1rem var(--font-h); }

/* ───── Barres ───── */
.bar { height: 8px; border-radius: 99px; background: var(--pearl); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar.big { height: 12px; }

/* ───── Classement ───── */
.lb { display: grid; gap: 10px; }
.lb-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; background: var(--solid); }
.lb-row.top1 { border-color: var(--pink-2); background: linear-gradient(90deg, var(--pink-4), #fff); }
.lb-row.top2, .lb-row.top3 { border-color: var(--pink-3); }
.lb-row.me { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), var(--shadow); }
.lb-rank { width: 44px; text-align: center; font: 700 1.05rem var(--font-h); color: var(--muted); }
.lb-main { flex: 1; min-width: 0; display: grid; gap: 7px; }
.lb-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stats { text-align: right; display: grid; }
.lb-stats b { font: 700 1rem var(--font-h); }
.me-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; padding: 16px 24px; border-color: var(--pink); background: var(--pink-4); }
.me-card b { font: 800 1.6rem var(--font-h); }

/* ───── Équipe ───── */
.staff-group { margin-bottom: 52px; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 1rem; margin-bottom: 20px; }
.group-title small { color: var(--muted); font: 500 .85rem var(--font); }
.role-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 600 .86rem var(--font); color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--rc) 40%, #fff); }
.role-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 18px 24px; }
.member .avatar { margin-bottom: 12px; }
.member strong { font: 700 1.08rem var(--font-h); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───── Règlement / FAQ / notices ───── */
.rules { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; }
.rule { display: flex; gap: 22px; align-items: flex-start; padding: 24px 28px; }
.rule-n { font: 800 2.1rem var(--font-h); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; padding-top: 4px; flex: none; min-width: 52px; }
.rule h3 { margin-bottom: .3em; }
.rule p { margin: 0; }
.notice { padding: 18px 22px; border-radius: 16px; background: var(--pink-4); border: 1px solid var(--pink-3); color: var(--ink-2); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.notice.warn { background: #fff7e6; border-color: #f1d28b; margin-bottom: 22px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--solid); border: 1px solid var(--border); padding: 0 24px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--pink-3); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 1.02rem var(--font-h); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--pink); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; }

/* ───── Bandeau CTA ───── */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(32px, 5vw, 58px); border-radius: 30px; position: relative; overflow: hidden; background: linear-gradient(120deg, #ff7aa8 0%, #e0457b 55%, #b01357 100%); box-shadow: 0 36px 70px -30px rgba(224, 69, 123, .8); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.4), transparent 45%), radial-gradient(circle at 0 100%, rgba(26,20,24,.3), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2, .cta-band h3 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .cta-row { margin: 0; }
.cta-band.slim { padding: 30px 38px; border-radius: 24px; margin-top: 10px; }

/* ───── Profil ───── */
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.profile-main { display: grid; gap: 22px; }
.profile-card { text-align: center; padding: 0 26px 28px; overflow: hidden; }
.pc-banner { height: 120px; margin: 0 -26px; background: var(--grad); position: relative; }
.pc-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% -10%, rgba(255,255,255,.55), transparent 50%); }
.profile-card .avatar-xl { margin: 0; position: relative; }
.profile-card .pframe { margin: -66px auto 14px; position: relative; }
.profile-card h1 { font-size: 1.7rem; margin-bottom: .1em; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.badges .chip { margin: 0; }
.facts { margin: 18px 0 0; display: grid; gap: 12px; text-align: left; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.pc-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.level-card { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.ring-wrap { position: relative; width: 160px; height: 160px; flex: none; }
.ring { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--pearl); stroke-width: 9; }
.ring-fg { fill: none; stroke: url(#rg); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(224, 69, 123, .45)); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.ring-text b { font: 800 2.9rem var(--font-h); line-height: 1; }
.level-info { flex: 1; min-width: 240px; }
.level-info h2 { margin-bottom: .2em; }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 20px; }
.stat-row b { display: block; font: 800 1.5rem var(--font-h); }
.stat-row span { color: var(--muted); font-size: .82rem; }
.quick { display: flex; gap: 16px; align-items: center; padding: 20px 24px; }
.quick > span { font-size: 1.8rem; }
.quick strong { font-family: var(--font-h); }
.quick p { margin: 0; font-size: .9rem; }

/* ───── Formulaires ───── */
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 38px); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; }
.field label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border-2); background: #fff; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 122, 168, .25); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--pink); padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.gate { text-align: center; padding: 48px 28px; }
.gate .btn { margin-top: 10px; }
.app-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; flex-wrap: wrap; }
.app-line > div:first-child { display: grid; }

/* ───── Admin (base) ───── */
.tabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.tabs a { padding: 9px 18px; border-radius: 999px; background: var(--solid); border: 1px solid var(--border-2); color: var(--muted); font-weight: 500; font-size: .9rem; display: inline-flex; gap: 10px; align-items: center; transition: .2s; }
.tabs a:hover { color: var(--cherry); border-color: var(--pink-2); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs b { background: var(--pink); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 8px; }
.admin-split { grid-template-columns: 420px 1fr; align-items: start; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }
.app-full header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.app-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0 0 18px; }
.app-dl .wide { grid-column: 1 / -1; }
.app-dl dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.app-dl dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.checklist .ok > span { background: #e7f8f0; color: #167a54; }
.checklist .ko > span { background: #fff0f3; color: #b3173f; }
.checklist small { display: block; color: var(--muted); font-family: ui-monospace, monospace; font-size: .76rem; }

/* ───── Footer ───── */
.footer { position: relative; z-index: 1; margin-top: 60px; background: var(--ink); color: #e9e1e6; padding-top: 56px; }
.footer p { color: #b9aab3; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 40ch; margin: 14px 0 18px; font-size: .94rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--pink-3); margin-bottom: 14px; font-family: var(--font); }
.footer-grid > div a:not(.btn):not(.brand) { display: block; padding: 5px 0; color: #d8ccd3; font-size: .94rem; transition: color .2s, transform .2s; }
.footer-grid > div a:not(.btn):not(.brand):hover { color: var(--pink-2); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 28px 0 34px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); color: #9c8d96; font-size: .85rem; }

/* ───── Apparition au scroll ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ───── Animations réduites (préférence utilisateur ou système) ───── */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-motion="reduced"] .reveal { opacity: 1; transform: none; }
html[data-motion="reduced"] #petals, html[data-motion="reduced"] .glow i { display: none; }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .nav-links > a, .more > summary { padding: 8px 10px; font-size: .88rem; }
  .user-name { display: none; }
  .user-menu summary { padding-right: 10px; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-top: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .profile-grid, .admin-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; margin: 0; padding: 14px 20px 24px; gap: 4px; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: 0 30px 50px -30px rgba(26,20,24,.4); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a, .more > summary { padding: 14px 16px; font-size: 1.02rem; }
  .more .menu-pop { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; animation: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .podium-item.p1 { order: -1; }
  .row2, .app-dl { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
  .lb-row { padding: 12px 14px; gap: 10px; }
  .lb-rank { width: 34px; font-size: .92rem; }
  .lb-row .avatar { width: 38px; height: 38px; }
  .float-chip { display: none; }
  .rule { flex-direction: column; gap: 8px; }
  .hero-stats { gap: 26px; }
  .nav-inner { gap: 8px; }
  .nav-right { margin-left: auto; gap: 7px; }
  .nav-right .btn-primary { padding: 0 12px; font-size: .8rem; }
  .nav-right .btn-primary svg { display: none; }
  .brand { font-size: 1.2rem; }
  .coin-chip { padding: 0 11px; height: 38px; }
  .nav-right .icon-btn[href="/notifications"] { display: none; }
  .user-menu summary { padding: 3px; }
  .user-menu summary > svg { display: none; }
  #motion-toggle { display: none; }
  .nav-motion { display: block; }
  .toasts { top: 78px; }
}
