/* PEREBOURRASSE — Design System v4 Premium Streamer */

:root {
    --bg: #030504;
    --bg-card: #0a100c;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.09);
    --line-glow: rgba(83, 252, 24, 0.45);
    --text: #f2fff4;
    --muted: #8fa892;
    --green: #53fc18;
    --green-2: #7dff4a;
    --green-dim: rgba(83, 252, 24, 0.14);
    --green-glow: rgba(83, 252, 24, 0.35);
    --danger: #ff5555;
    --success: #4ade80;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --max: 1180px;
    --font: 'Inter', system-ui, sans-serif;
    --display: 'Bebas Neue', Impact, sans-serif;
    --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site-body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(83, 252, 24, 0.11), transparent 55%),
        radial-gradient(circle at 100% 50%, rgba(83, 252, 24, 0.04), transparent 40%),
        linear-gradient(180deg, #030504 0%, #070b08 50%, #030504 100%);
}

body.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(83, 252, 24, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 252, 24, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(180deg, black, transparent 85%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(var(--max), calc(100% - 24px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(3, 5, 4, 0.88);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--line-glow);
    box-shadow: 0 0 20px var(--green-glow);
}

.brand-name {
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--green);
    text-shadow: 0 0 30px var(--green-glow);
}

.brand-tag {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid transparent;
    transition: var(--ease);
}

.main-nav a:hover {
    color: var(--text);
    background: var(--green-dim);
    border-color: var(--line-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ── Glass panels ── */
.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.glass-glow {
    position: relative;
}

.glass-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(83,252,24,0.35), transparent 40%, rgba(83,252,24,0.15));
    z-index: -1;
    opacity: 0.6;
}

/* ── Hero / Live ── */
.hero-section { padding: 20px 0 8px; }

.hero-panel {
    padding: 24px 22px;
    overflow: hidden;
    position: relative;
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--green-dim);
    border: 1px solid var(--line-glow);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--green-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: livePulse 1.8s ease infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--display);
    font-size: clamp(2.4rem, 10vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    margin: 14px 0 10px;
}

.hero-title .accent {
    color: var(--green);
    text-shadow: 0 0 40px var(--green-glow);
}

.hero-desc {
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 18px;
    font-size: 0.92rem;
}

.live-frame-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-glow);
    box-shadow: 0 0 50px var(--green-glow), var(--shadow);
}

.kick-frame {
    width: 100%;
    height: min(680px, 62vh);
    border: 0;
    display: block;
    background: #000;
}

/* ── Sections ── */
.section { margin: 14px auto; }

.section-head {
    padding: 22px 22px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.section-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1;
}

.section-title .accent { color: var(--green); }

.section-lead {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 0.88rem;
    max-width: 520px;
}

.section-body { padding: 18px 22px 22px; }

/* ── Buttons ── */
.btn {
    appearance: none;
    border: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    color: #030504;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 6px 24px var(--green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(83, 252, 24, 0.45);
}

.btn-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--line-glow);
    background: var(--green-dim);
}

.btn-block { width: 100%; }

/* ── Social ── */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    min-height: 88px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: var(--ease);
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.social-card > * { position: relative; z-index: 1; }

.social-title { margin: 0 0 2px; font-weight: 800; font-size: 0.95rem; }
.social-desc { margin: 0; color: var(--muted); font-size: 0.78rem; }

.social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--line);
    font-weight: 900;
    font-size: 0.7rem;
}

.tiktok::before { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.youtube::before { background: linear-gradient(135deg, #ff0033, #ff6b6b); }
.kick::before { background: linear-gradient(135deg, #53fc18, #baff9d); }
.instagram::before { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.snapchat::before { background: linear-gradient(135deg, #fffc00, #fff38a); }

.video-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: var(--radius);
    background: #000;
    border: 1px solid var(--line);
}

/* ── Pokémon Cards ── */
.cards-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--green-dim);
    border: 1px solid var(--line-glow);
    color: var(--green-2);
    font-size: 0.82rem;
    font-weight: 800;
}

.cards-wrap.hidden { display: none; }

.season-block { margin-top: 20px; }

.season-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.season-title {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

/* Grille cartes — image entière visible */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.card-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: var(--ease);
}

.card-item:hover {
    transform: translateY(-3px);
    border-color: var(--line-glow);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 20px var(--green-glow);
}

.card-media {
    aspect-ratio: 3/4;
    padding: 8px;
    background:
        linear-gradient(145deg, rgba(83,252,24,0.06), rgba(0,0,0,0.3)),
        #060806;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; flex: 1; }

.card-title {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    color: var(--text);
}

.card-actions { margin-top: auto; }
.card-actions .btn { width: 100%; min-height: 36px; font-size: 0.76rem; padding: 0 10px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    font-size: 0.82rem;
    transition: var(--ease);
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #030504;
    border-color: transparent;
}

.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-info {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 8px;
    font-weight: 600;
}

/* ── Audio ── */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.audio-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: var(--ease);
}

.audio-card:hover { border-color: var(--line-glow); transform: translateY(-2px); }

.audio-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-dim);
    border: 1px solid var(--line-glow);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.audio-title { font-weight: 800; font-size: 0.88rem; line-height: 1.35; flex: 1; }

/* ── Forms ── */
.cta-box {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
}

.cta-box p { color: var(--muted); margin: 0 0 14px; font-size: 0.9rem; }

.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.field {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    font-size: 0.88rem;
    transition: var(--ease);
}

.field:focus {
    border-color: var(--line-glow);
    box-shadow: 0 0 0 3px rgba(83, 252, 24, 0.1);
}

textarea.field { padding: 12px 14px; min-height: 90px; resize: vertical; }
input[type=file].field { padding: 10px 14px; }

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.field-group label .req { color: var(--danger); }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-pill:has(input:checked) {
    border-color: var(--line-glow);
    background: var(--green-dim);
    color: var(--green-2);
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 0.86rem;
}

.alert-danger { color: #ffcaca; background: rgba(255,85,85,0.12); border: 1px solid rgba(255,85,85,0.3); }
.alert-success { color: #b8ffd0; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); }

.info-box {
    padding: 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.small-note { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }

/* ── Pages internes ── */
.page-main { padding: 20px 0 36px; }

.page-hero {
    padding: 28px 22px;
    margin-bottom: 16px;
    text-align: center;
}

.page-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--green-dim);
    border: 1px solid var(--line-glow);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--green-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    line-height: 1;
}

.page-desc { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 0.9rem; }

.form-panel { padding: 24px 22px; }

.form-hint { display: block; margin: 4px 0 8px; font-size: 0.78rem; color: var(--muted); }
.form-hint ul { margin: 4px 0 0; padding-left: 16px; }

.steps-grid { display: grid; gap: 14px; }

.step-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #030504;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 12px;
}

.step-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.step-card p { color: var(--muted); margin: 0 0 14px; font-size: 0.88rem; }

.fake-screen { background: rgba(0,0,0,0.35); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.screen-box { background: var(--surface-2); padding: 12px; border-radius: 8px; margin-bottom: 6px; color: var(--muted); font-size: 0.84rem; }
.screen-btn-subscribe { background: var(--green); color: #030504; font-weight: 800; text-align: center; padding: 12px; border-radius: 8px; margin-top: 6px; }
.screen-btn-gift { background: var(--surface); color: var(--muted); text-align: center; padding: 12px; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line); }

.warning-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,85,85,0.1);
    border: 1px solid rgba(255,85,85,0.28);
    color: #ffcaca;
    font-weight: 700;
    font-size: 0.88rem;
}

.summary-box { padding: 22px; margin-top: 16px; }
.summary-box h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 12px; }
.summary-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }

/* ── Footer ── */
.site-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-brand strong {
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--green);
    letter-spacing: 0.05em;
}

.footer-brand span { color: var(--muted); font-size: 0.82rem; }

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.footer-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--ease);
}

.footer-links a:hover { color: var(--green); }

.footer-copy { margin: 0; color: var(--muted); font-size: 0.75rem; opacity: 0.65; }

/* ── Responsive mobile ── */
@media (max-width: 900px) {
    .social-grid, .audio-grid { grid-template-columns: repeat(2, 1fr); }
    .upload-form { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}

@media (max-width: 680px) {
    body.site-body { font-size: 14px; }

    .container { width: calc(100% - 16px); }

    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px;
        background: rgba(3, 5, 4, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
    }

    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; text-align: center; font-size: 0.85rem; padding: 10px; }

    .header-inner { position: relative; flex-wrap: wrap; }
    .brand-tag { display: none; }

    .hero-panel { padding: 18px 14px; }
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 0.84rem; }
    .kick-frame { height: 220px; }

    .section-head, .section-body { padding-left: 14px; padding-right: 14px; }
    .section-title { font-size: 1.5rem; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-media { padding: 6px; }
    .card-body { padding: 8px; }
    .card-title { font-size: 0.72rem; min-height: 2.2em; }
    .card-actions .btn { min-height: 32px; font-size: 0.7rem; }

    .cards-toolbar { flex-direction: column; align-items: stretch; }
    .cards-toolbar .btn, .cards-toolbar .stats-badge { width: 100%; justify-content: center; }

    .social-grid, .audio-grid { grid-template-columns: 1fr; }
    .social-card { min-height: 76px; padding: 14px; }

    .form-row { grid-template-columns: 1fr; }
    .form-panel { padding: 18px 14px; }
    .page-hero { padding: 20px 14px; }

    .btn { min-height: 40px; font-size: 0.8rem; }
    .page-btn { min-width: 34px; height: 34px; font-size: 0.76rem; }
}

@media (max-width: 360px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-name { font-size: 1.2rem; }
}

@media (min-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(6, 1fr); }
}
