/* =========================================================
   Wobblebot Studio - feuille de style unique
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg: #0a0b14;
    --bg-2: #10121f;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);

    --ink: #f2efe9;
    --ink-soft: #b9b7c9;
    --ink-dim: #85849a;

    --brand: #ff4a2e;
    --brand-soft: #ff7a5e;
    --gold: #ffc94a;

    --bb-1: #7c5cff;
    --bb-2: #29d3f0;
    --bb-accent: #f5d060;

    --av-1: #d9b25f;
    --av-2: #8a6a33;
    --av-ink: #f6e9cd;

    --radius-s: 12px;
    --radius: 18px;
    --radius-l: 26px;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);

    --wrap: 1140px;
    --font-title: "Fredoka", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* voile lumineux global */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(124, 92, 255, 0.18), transparent 60%),
        radial-gradient(760px 460px at 92% 4%, rgba(255, 74, 46, 0.14), transparent 62%),
        radial-gradient(900px 700px at 50% 110%, rgba(41, 211, 240, 0.08), transparent 65%);
}

body > * { 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-title);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
    width: min(100% - 40px, var(--wrap));
    margin-inline: auto;
}

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-soft);
    max-width: 62ch;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
}

.section-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: linear-gradient(135deg, var(--brand), #ff8a3d);
    color: #1a0d08;
    box-shadow: 0 10px 28px rgba(255, 74, 46, 0.32);
}

.btn--primary:hover { box-shadow: 0 16px 36px rgba(255, 74, 46, 0.42); }

.btn--ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover { background: var(--surface-2); }

.btn--play {
    background: #fff;
    color: #101322;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.16);
}

.btn--play svg { width: 20px; height: 20px; }

.btn[aria-disabled="true"] {
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    color: var(--ink-dim);
    cursor: default;
    box-shadow: none;
}

.btn[aria-disabled="true"]:hover { transform: none; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ---------- En-tete ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10, 11, 20, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}

.site-header.is-stuck {
    border-bottom-color: var(--line);
    background: rgba(10, 11, 20, 0.9);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-right: auto;
}

.brand img { width: 38px; height: 38px; }
.brand span { white-space: nowrap; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .96rem;
    color: var(--ink-soft);
    transition: color .18s ease, background .18s ease;
}

.nav a:hover { color: var(--ink); background: var(--surface); }

.nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-2);
}

.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.lang a {
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--ink-dim);
    transition: color .18s ease, background .18s ease;
}

.lang a:hover { color: var(--ink); }

.lang a[aria-current="true"] {
    background: var(--brand);
    color: #1a0d08;
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
}

.burger svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
    .burger { display: inline-flex; }

    .nav {
        position: absolute;
        inset: 74px 20px auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: rgba(14, 16, 28, 0.98);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.is-open { display: flex; }
    .nav a { padding: 12px 14px; }
}

/* ---------- Hero d'accueil ---------- */
.hero {
    position: relative;
    padding: clamp(48px, 8vw, 92px) 0 clamp(20px, 3vw, 34px);
    overflow: hidden;
}

.hero + .section { padding-top: clamp(40px, 6vw, 74px); }

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.hero h1 {
    background: linear-gradient(115deg, #fff 20%, #ffd9ae 55%, var(--brand-soft) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__robot {
    position: relative;
    justify-self: center;
    max-width: 420px;
    filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.55));
    animation: float 7s ease-in-out infinite;
}

.hero__robot::after {
    content: "";
    position: absolute;
    inset: 18% -12% -18%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 74, 46, 0.28), transparent 72%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__robot { animation: none; }
    html { scroll-behavior: auto; }
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.stat {
    flex: 1 1 130px;
}

.stat b {
    display: block;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat span {
    font-size: .85rem;
    color: var(--ink-dim);
}

@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-inline: auto; }
    .hero .btn-row { justify-content: center; }
    .hero__robot { max-width: 300px; order: -1; }
    .stats { text-align: left; }
}

/* ---------- Cartes de jeux ---------- */
.games {
    display: grid;
    gap: clamp(20px, 3vw, 30px);
}

.game-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--bg-2);
    box-shadow: var(--shadow);
    transition: transform .25s ease, border-color .25s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.game-card__media {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.game-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 40%, var(--bg-2) 96%);
}

.game-card--flip .game-card__media { order: 2; }
.game-card--flip .game-card__media::after {
    background: linear-gradient(270deg, transparent 40%, var(--bg-2) 96%);
}

.game-card__body {
    padding: clamp(26px, 3.4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.game-card__top img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.game-card h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin: 0;
}

.game-card__genre {
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.game-card p { color: var(--ink-soft); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 22px;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    color: var(--ink-soft);
    background: var(--surface);
}

@media (max-width: 820px) {
    .game-card { grid-template-columns: 1fr; }
    .game-card__media { min-height: 210px; order: -1 !important; }
    .game-card__media::after {
        background: linear-gradient(0deg, var(--bg-2) 4%, transparent 70%) !important;
    }
}

/* ---------- Badges d'etat ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.badge--live {
    color: #6ee7a8;
    background: rgba(110, 231, 168, 0.12);
    border: 1px solid rgba(110, 231, 168, 0.28);
}

.badge--soon {
    color: var(--gold);
    background: rgba(255, 201, 74, 0.1);
    border: 1px solid rgba(255, 201, 74, 0.26);
}

/* ---------- Grille de cartes generique ---------- */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.card {
    position: relative;
    overflow: hidden;
}

/* liseré d'accent, révélé au survol */
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}

.theme-bb .card::before { background: linear-gradient(90deg, var(--bb-1), var(--bb-2) 45%, transparent 80%); }
.theme-av .card::before { background: linear-gradient(90deg, var(--av-1), transparent 75%); }

.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-3px);
    background: var(--surface-2);
    border-color: var(--line-strong);
}

.card h3 { margin-bottom: .35em; }

.card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .96rem;
}

.card__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
}

.card__emoji {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 14px;
}

/* ---------- Page jeu ---------- */
.game-hero {
    position: relative;
    padding: clamp(44px, 7vw, 84px) 0 clamp(34px, 5vw, 60px);
    overflow: hidden;
}

.game-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .30;
    filter: saturate(1.05);
}

.game-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 11, 20, .55) 0%, rgba(10, 11, 20, .86) 62%, var(--bg) 100%);
}

.game-hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(22px, 3.5vw, 40px);
}

.game-hero__icon {
    width: clamp(96px, 13vw, 132px);
    height: clamp(96px, 13vw, 132px);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line-strong);
}

.game-hero__text { flex: 1 1 380px; }
.game-hero h1 { margin-bottom: .25em; }
.game-hero .lead { margin-bottom: 26px; }

.theme-bb h1 {
    background: linear-gradient(110deg, #fff 10%, var(--bb-2) 55%, var(--bb-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-bb .btn--primary {
    background: linear-gradient(135deg, var(--bb-1), var(--bb-2));
    color: #06121a;
    box-shadow: 0 10px 30px rgba(124, 92, 255, .34);
}

.theme-av h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: .02em;
    background: linear-gradient(110deg, #fff6e0 15%, var(--av-1) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-av .btn--primary {
    background: linear-gradient(135deg, var(--av-1), #f0d89a);
    color: #2a2015;
    box-shadow: 0 10px 30px rgba(217, 178, 95, .28);
}

.theme-av .eyebrow::before { background: linear-gradient(90deg, var(--av-1), transparent); }
.theme-bb .eyebrow::before { background: linear-gradient(90deg, var(--bb-2), transparent); }

/* ---------- Carrousel de captures ---------- */
.shots-wrap {
    position: relative;
}

/* fondu a droite : il reste des captures a faire defiler */
.shots-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 22px;
    width: 90px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bg) 92%);
}

@media (max-width: 720px) {
    .shots-wrap::after { width: 46px; }
}

.shots {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
}

.shot {
    flex: 0 0 auto;
    width: clamp(190px, 24vw, 250px);
    scroll-snap-align: center;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #000;
    box-shadow: var(--shadow);
    transition: transform .22s ease;
}

.shot:hover { transform: translateY(-6px) scale(1.015); }
.shot img { width: 100%; height: auto; }

.shots-hint {
    font-size: .85rem;
    color: var(--ink-dim);
    margin-top: -8px;
}

/* ---------- Bande de fonctionnalites en ligne ---------- */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pills li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .93rem;
}

.pills img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Encart citation ---------- */
.quote {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: linear-gradient(160deg, rgba(217, 178, 95, .10), transparent 70%);
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    line-height: 1.4;
    text-align: center;
    color: var(--av-ink);
}

/* ---------- Bandeau d'appel ---------- */
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 66px);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background:
        radial-gradient(600px 320px at 20% 0%, rgba(255, 74, 46, .18), transparent 65%),
        radial-gradient(600px 320px at 90% 100%, rgba(124, 92, 255, .18), transparent 60%),
        var(--bg-2);
    text-align: center;
}

.cta h2 { margin-bottom: .4em; }
.cta .lead { margin-inline: auto; margin-bottom: 26px; }
.cta .btn-row { justify-content: center; }

/* ---------- Changelog ---------- */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    margin-bottom: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.tabs button {
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-title);
    font-size: .96rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.tabs button:hover { color: var(--ink); }

.tabs button[aria-selected="true"] {
    background: var(--ink);
    color: #10121f;
}

.log { display: grid; gap: 16px; }
.log[hidden] { display: none; }

.release {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: clamp(12px, 3vw, 34px);
    padding: 24px clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.release--latest {
    border-color: rgba(255, 201, 74, .3);
    background: linear-gradient(140deg, rgba(255, 201, 74, .07), var(--surface) 60%);
}

.release__meta { position: relative; }

.release__version {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
}

.release__date {
    display: block;
    font-size: .86rem;
    color: var(--ink-dim);
}

.release__tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 201, 74, .15);
    border: 1px solid rgba(255, 201, 74, .3);
    color: var(--gold);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.release ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.release li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--ink-soft);
    font-size: .97rem;
}

.release li span:first-child { line-height: 1.5; }

@media (max-width: 680px) {
    .release { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer {
    margin-top: clamp(40px, 7vw, 90px);
    padding: clamp(40px, 6vw, 64px) 0 34px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    margin-bottom: 34px;
}

.footer-grid h4 {
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 14px;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.footer-grid a {
    color: var(--ink-soft);
    font-size: .95rem;
    transition: color .18s ease;
}

.footer-grid a:hover { color: var(--ink); }

.footer-brand img { width: 150px; margin-bottom: 14px; }

.footer-brand p {
    color: var(--ink-dim);
    font-size: .93rem;
    max-width: 34ch;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--ink-dim);
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Apparition au defilement ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
