/* PalaKitmap : thème clair moderne (barre flottante, cartes arrondies, pastels), couleurs orange et soleil. */
:root {
    --bg: #fffaf6;
    --bg-soft: #fff3ea;
    --white: #fff;
    --text: #2a2230;
    --body: #5c5461;
    --muted: #8a8290;
    --panel-muted: #8a8290;
    --line: #f1e4da;
    --orange: #ff6a00;
    --orange-d: #c94c00;
    --orange-soft: #fff0e5;
    --gold-d: #cf8a00;
    --discord: #5865f2;
    --discord-d: #3a45c9;
    --green: #22c55e;
    --red: #e5484d;
    --grad: linear-gradient(90deg, #ff6a00, #ff3d6e);
    --shadow: 0 10px 30px rgba(110, 60, 30, .08), 0 2px 6px rgba(110, 60, 30, .05);
    --font: 'Poppins', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--text); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
code, kbd {
    font-family: var(--mono); font-size: .86em; font-weight: 500; white-space: nowrap;
    background: var(--orange-soft); color: #c2410c; padding: .1em .4em; border-radius: 6px;
}
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; }
.bg-soft { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.bg-white { background: #fff; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 18px; height: 18px; flex: none; }

/* ─── Barre de navigation flottante ─── */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav-inner {
    pointer-events: auto; position: relative; max-width: 1200px; margin: 0 auto; height: 64px;
    display: flex; align-items: center; gap: 16px; padding: 0 10px 0 16px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; box-shadow: 0 8px 30px rgba(60, 30, 20, .12);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; color: var(--text); white-space: nowrap; }
.logo img { width: 34px; height: 34px; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav-links a { color: var(--body); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: #f7f1ec; text-decoration: none; }
.nav-links a.active { color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; }
.nav-toggle {
    display: none; width: 42px; height: 42px; place-items: center; cursor: pointer; font-size: 1.2rem;
    background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
}
@media (max-width: 880px) {
    .nav-toggle { display: grid; }
    .nav-actions { margin-left: auto; }
    .nav-actions .btn.gold { display: none; }
    .nav-links {
        display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(60, 30, 20, .15);
    }
    .nav-links.open { display: flex; }
}
@media (max-width: 400px) { .logo b { display: none; } }

/* ─── Boutons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 1rem var(--font); color: #fff; padding: 12px 24px; border-radius: 12px; border: 0; cursor: pointer;
    background: linear-gradient(180deg, #ff8a1f, #ff6200);
    box-shadow: 0 4px 0 var(--orange-d), 0 8px 18px rgba(255, 106, 0, .25);
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-d); }
.btn.gold { background: linear-gradient(180deg, #ffd75e, #ffb800); color: #4a2f00; box-shadow: 0 4px 0 var(--gold-d), 0 8px 18px rgba(255, 184, 0, .25); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-d); }
.btn.discord { background: linear-gradient(180deg, #6b77ff, #5865f2); box-shadow: 0 4px 0 var(--discord-d), 0 8px 18px rgba(88, 101, 242, .25); }
.btn.discord:active { box-shadow: 0 1px 0 var(--discord-d); }
.btn.ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 4px 0 #eadbd0; }
.btn.ghost:active { box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 #eadbd0; }
.btn.small { padding: 8px 16px; font-size: .92rem; border-radius: 10px; }

/* ─── En-tête de l'accueil ─── */
.hero {
    position: relative; overflow: hidden; display: flex; align-items: center;
    min-height: min(100vh, 920px); padding: 140px 0 170px; color: #fff;
    background: url(/img/scene.png) 50% 80% / cover no-repeat, #ff5a63; image-rendering: pixelated;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45, 12, 22, .66) 0%, rgba(45, 12, 22, .35) 50%, rgba(45, 12, 22, .05) 85%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(255, 243, 234, 0), var(--bg-soft)); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 660px; image-rendering: auto; }
.pill-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; margin-bottom: 24px;
    border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px); font-size: .9rem; font-weight: 500; color: #fff;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); flex: none; }
.hero h1 { color: #fff; text-shadow: 0 4px 24px rgba(40, 10, 20, .35); }
.hero h1 .grad { background: linear-gradient(90deg, #ffd35a, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .93); max-width: 560px; margin: 0 0 32px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 110px; translate: -50% 0; color: var(--text); opacity: .6; animation: bob 1.8s ease-in-out infinite; }
.scroll-hint svg { width: 28px; height: 28px; }
@keyframes bob { 50% { translate: -50% 6px; } }

/* ─── Titres de section ─── */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head p { margin: 0; font-size: 1.02rem; }
.eyebrow {
    display: inline-block; padding: 5px 16px; margin-bottom: 16px; border-radius: 999px;
    background: var(--orange-soft); border: 1px solid #ffd4b8; color: var(--orange);
    font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ─── Aperçu : grandes cartes illustrées ─── */
.preview { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 78px; gap: 22px; max-width: 1000px; margin: 0 auto; }
.shot {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 26px; border-radius: 24px; border: 4px solid #fff; color: #fff; box-shadow: 0 14px 40px rgba(110, 50, 30, .16);
}
.shot::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(25, 8, 16, 0) 30%, rgba(25, 8, 16, .72)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 18px);
}
.shot .big-ico { position: absolute; z-index: -1; right: 30px; top: 26px; width: 128px; height: 128px; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .2)); transition: transform .35s; }
.shot:hover .big-ico { transform: rotate(-8deg) scale(1.08); }
.shot .label { align-self: flex-start; padding: 4px 14px; margin-bottom: 10px; border-radius: 10px; font-weight: 700; font-size: 1.15rem; background: var(--grad); box-shadow: 0 4px 12px rgba(255, 61, 110, .3); }
.shot p { margin: 0; max-width: 440px; color: rgba(255, 255, 255, .93); font-size: .95rem; }
.p1 { grid-column: 1; grid-row: 1 / span 4; background: linear-gradient(140deg, #ff9a3d, #e8336b); }
.p2 { grid-column: 2; grid-row: 1 / span 3; background: linear-gradient(140deg, #7a5cff, #2f3fb8); }
.p3 { grid-column: 1; grid-row: 5 / span 3; background: linear-gradient(140deg, #3cc47c, #11706b); }
.p4 { grid-column: 2; grid-row: 4 / span 4; background: linear-gradient(140deg, #ffc23d, #ff6a00); }
@media (max-width: 760px) {
    .preview { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .p1, .p2, .p3, .p4 { grid-column: auto; grid-row: auto; min-height: 270px; }
}

/* ─── Chiffres ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.stat { text-align: center; padding: 30px 18px 26px; border-radius: 22px; border: 1px solid; box-shadow: var(--shadow); }
.stat .s-ico { height: 76px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .s-ico img { width: 64px; height: 64px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .12)); }
.stat .num { display: inline-block; padding: 6px 18px; border-radius: 14px; background: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.stat .lbl { display: block; margin-top: 12px; font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--body); }
.stat .s-ico.chips, .chips { display: flex; align-items: center; gap: 10px; justify-content: center; }
.chip { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: #15803d; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.chip svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Pastels */
.c-orange { background: linear-gradient(180deg, #fff3e8, #ffe4d0); border-color: #ffd3b4; } .c-orange .num { color: #e85d00; }
.c-pink { background: linear-gradient(180deg, #fff1f5, #ffe1eb); border-color: #ffcadb; } .c-pink .num { color: #d6336c; }
.c-blue { background: linear-gradient(180deg, #eff6ff, #dcebff); border-color: #c6dcfa; } .c-blue .num { color: #1c64c8; }
.c-green { background: linear-gradient(180deg, #edfbf3, #d8f5e4); border-color: #bfe9cf; } .c-green .num { color: #15803d; }
.c-yellow { background: linear-gradient(180deg, #fffae8, #fff0c4); border-color: #ffe39a; } .c-yellow .num { color: #b7791f; }
.c-lav { background: linear-gradient(180deg, #f7f2ff, #ebe2ff); border-color: #ddd0fb; } .c-lav .num { color: #6d4bd1; }

/* ─── Modes de jeu ─── */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { padding: 26px; border-radius: 22px; border: 1px solid; transition: transform .2s, box-shadow .2s; }
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.m-ico { width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.m-ico img { width: 32px; height: 32px; }
.mode h3 { margin-bottom: 8px; }
.mode p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }

/* ─── Onglets et étapes ─── */
.tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: max-content; max-width: 100%;
    margin: 0 auto 26px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.tabs button { display: flex; align-items: center; gap: 8px; font: 500 .95rem var(--font); color: var(--body); background: none; border: 0; padding: 10px 18px; border-radius: 12px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--orange-soft); color: var(--orange); font-weight: 600; }
.tab-panel[hidden] { display: none; }
.join-card { max-width: 660px; margin: 0 auto; padding: 24px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.join-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.status { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.code-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-radius: 12px; background: #f6f0eb; color: var(--text); font: 700 1.02rem var(--mono); cursor: pointer; }
.code-chip:hover { background: #efe4db; }
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { position: relative; padding-left: 58px; min-height: 42px; }
.step::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
    display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 700;
    background: linear-gradient(180deg, #ff8a1f, #ff6200); box-shadow: 0 3px 0 var(--orange-d);
}
.step h3 { margin: 7px 0 3px; font-size: 1rem; }
.step p { margin: 0; font-size: .94rem; }
.center-link { text-align: center; margin-top: 24px; }

/* ─── Soutien / boutique ─── */
.support {
    display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto;
    padding: 36px 44px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
.support h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .3em; }
.support p { margin: 0; }
.gems { position: relative; width: 190px; height: 150px; }
.gems img { position: absolute; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .15)); animation: float 3.2s ease-in-out infinite; }
.gems .g1 { width: 120px; left: 30px; top: 10px; }
.gems .g2 { width: 64px; left: 0; top: 80px; animation-delay: -1s; }
.gems .g3 { width: 70px; right: 0; top: 70px; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -8px; } }
@media (max-width: 820px) { .support { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; } .gems { margin: 0 auto; } }

/* ─── FAQ et cartes ─── */
.faq { max-width: 740px; margin: 0 auto; display: grid; gap: 12px; }
.faq details, details.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin: 0 0 12px; box-shadow: 0 2px 10px rgba(110, 60, 30, .04); }
.faq details { margin: 0; }
.faq summary, details.card summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 0; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker, details.card summary::-webkit-details-marker { display: none; }
.faq summary::after, details.card summary::after {
    content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
    background: #f6f0eb; color: var(--body); font-weight: 500; font-size: 1.1rem; transition: transform .2s;
}
.faq details[open] summary::after, details[open].card summary::after { transform: rotate(45deg); background: var(--orange-soft); color: var(--orange); }
.faq details p, details.card p { margin: 0 0 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.note { background: #fff8e6; border: 1px solid #ffe2a6; border-radius: 12px; padding: 12px 16px; margin: 16px 0; color: #7a5a12; font-size: .95rem; }

/* ─── En-tête des autres pages ─── */
.page-head {
    position: relative; overflow: hidden; padding: 160px 0 120px; color: #fff;
    background: url(/img/scene.png) 50% 75% / cover no-repeat, #ff5a63; image-rendering: pixelated;
}
.page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45, 12, 22, .62), rgba(45, 12, 22, .2)); }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(180deg, rgba(255, 250, 246, 0), var(--bg)); }
.page-head .wrap { position: relative; z-index: 2; image-rendering: auto; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); text-shadow: 0 4px 24px rgba(40, 10, 20, .35); }
.page-head p { color: rgba(255, 255, 255, .93); max-width: 640px; margin: 0; font-size: 1.08rem; }

/* Ligne « serveur » (page Rejoindre) */
.server-entry { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 660px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.server-entry > img { width: 52px; height: 52px; }
.server-entry .info { flex: 1; min-width: 180px; line-height: 1.4; }
.server-entry .name { font-weight: 700; color: var(--text); }
.server-entry .motd { display: block; font-size: .9rem; }
.server-entry .motd b { color: var(--orange); font-family: var(--mono); }
.ping { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.ping i { width: 4px; border-radius: 1px; background: var(--green); }
.ping i:nth-child(1) { height: 20%; } .ping i:nth-child(2) { height: 40%; } .ping i:nth-child(3) { height: 60%; }
.ping i:nth-child(4) { height: 80%; } .ping i:nth-child(5) { height: 100%; }
.server-entry .status-text { color: #15803d; font-weight: 600; }
.server-entry.offline .status-text { color: var(--muted); }
.offline .dot { background: var(--muted); box-shadow: 0 0 0 3px rgba(138, 130, 144, .22); }
.offline .ping i { background: #ddd3cc; }
.add-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px !important; }
.add-link span { font-size: .86rem; color: var(--muted); }
.tab-note { font-size: .92rem; color: var(--muted); }

/* ─── Wiki ─── */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 20px 0 96px; }
.wiki aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.wiki aside a { color: var(--body); font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 10px; }
.wiki aside a:hover { background: var(--orange-soft); color: var(--orange); text-decoration: none; }
.wiki article { display: grid; gap: 24px; min-width: 0; }
.wiki article section { scroll-margin-top: 100px; padding: 30px 32px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.wiki article h2 { font-size: 1.6rem; }
@media (max-width: 860px) {
    .wiki { grid-template-columns: 1fr; }
    .wiki aside { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .wiki article section { padding: 22px 20px; }
}
.search {
    width: 100%; padding: 12px 16px; margin-bottom: 16px; font: 500 .95rem var(--font); color: var(--text);
    background: #fbf7f3; border: 1px solid var(--line); border-radius: 12px; outline: none;
}
.search:focus, .checkout input[type=text]:focus { border-color: #ffb27a; box-shadow: 0 0 0 4px var(--orange-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 16px; vertical-align: top; }
th { background: #fff6ef; color: var(--text); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
td { border-top: 1px solid var(--line); }
tr:hover td { background: #fffaf6; }

/* ─── Boutique ─── */
.packs { display: grid; gap: 26px 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .packs { grid-template-columns: 1fr; } }
.pack {
    position: relative; text-align: center; cursor: pointer; font: inherit; color: var(--text);
    padding: 28px 18px 22px; background: #fff; border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pack:hover { transform: translateY(-4px); border-color: #ffc9a3; }
.pack.selected { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow); }
.pack:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.slot { position: relative; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #fff6ee, #ffe4cf); }
.pack .slot { width: 120px; height: 120px; margin: 0 auto; }
.pack .slot img { width: 96px; height: 96px; object-fit: contain; }
.pack .count { position: absolute; right: -6px; bottom: -6px; padding: 3px 10px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; font-size: .8rem; }
.pack .amount { font-weight: 700; font-size: 1.2rem; margin: 18px 0 12px; }
.pack .price { display: inline-block; padding: 8px 20px; border-radius: 12px; color: #fff; font-weight: 700; background: linear-gradient(180deg, #ff8a1f, #ff6200); box-shadow: 0 3px 0 var(--orange-d); }
.pack .tag { position: absolute; top: -12px; right: 16px; padding: 4px 12px; border-radius: 999px; color: #4a2f00; font-weight: 700; font-size: .8rem; background: linear-gradient(180deg, #ffd75e, #ffb800); box-shadow: 0 3px 8px rgba(255, 184, 0, .3); }
.pack .sold { margin-top: 8px; color: var(--red); font-weight: 600; font-size: .9rem; }
.checkout { max-width: 580px; margin: 40px auto 0; }
.checkout label { display: block; font-weight: 600; color: var(--text); margin: 18px 0 6px; }
.checkout input[type=text] { width: 100%; padding: 12px 16px; font: 500 1rem var(--font); color: var(--text); background: #fbf7f3; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem; color: var(--body) !important; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
#paypal-buttons { margin-top: 22px; min-height: 50px; }
#paypal-buttons:empty { display: none; }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: .95rem; }
.msg.err { background: #fff0f0; color: #c53030; border: 1px solid #ffd0d0; }
.msg.info { background: #fff8e6; color: #8a5a00; border: 1px solid #ffe2a6; }
.result { text-align: center; }
.pseudo-check { min-height: 1.3em; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.pseudo-check.ok { color: #15803d; font-weight: 600; }
.pseudo-check.err { color: #c53030; }
.delivery { margin: 14px 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.delivery.wait { background: #fff8e6; color: #8a5a00; border: 1px solid #ffe2a6; }
.delivery.ok { background: #effaf2; color: #15803d; border: 1px solid #bfe9cc; }
.code-box { display: inline-block; margin: 14px 0; padding: 14px 22px; border-radius: 14px; background: #fffaf6; border: 2px dashed #ffb27a; color: var(--text); font: 700 clamp(1rem, 4vw, 1.4rem) var(--mono); word-break: break-all; }

/* ─── Textes longs ─── */
.prose { max-width: 780px; }
.prose h3 { margin-top: 1.6em; }

/* ─── Pied de page ─── */
footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .93rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot p { margin: 12px 0 16px; max-width: 280px; }
.foot h4 { font-size: .95rem; font-weight: 600; margin: 0 0 12px; letter-spacing: 0; }
.foot a:not(.btn):not(.logo) { display: block; padding: 3px 0; color: var(--body); }
.foot a:not(.btn):not(.logo):hover { color: var(--orange); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ─── Apparition au défilement ─── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .gems img, .scroll-hint { animation: none; } }

/* ─── Mascotte 3D (mascot.js) ─── */
/* Compagnon : le canvas est plus grand que la mascotte (place pour les effets au-dessus de sa tête), seul .mascot-hit est cliquable */
.mascot { position: fixed; right: 4px; bottom: 0; z-index: 40; width: 250px; height: 192px; pointer-events: none; transition: transform .45s cubic-bezier(.5, -.35, .5, 1.35); }
.mascot.is-hidden { transform: translateY(110%); }
.mascot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot-hit { position: absolute; left: 24%; right: 22%; bottom: 0; height: 66%; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascot-x { position: absolute; top: -8px; right: -10px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--text); box-shadow: var(--shadow); font: 600 17px/26px var(--font); cursor: pointer; opacity: 0; transition: opacity .2s; }
.mascot-hit:hover .mascot-x, .mascot-x:focus-visible { opacity: 1; }
@media (hover: none) { .mascot-x { opacity: .9; } }
.mascot-restore { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 48px; height: 48px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--orange-soft); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.mascot-restore[hidden] { display: none; }
.mascot-restore:hover { transform: translateY(-3px); }
.mascot-restore canvas { width: 32px; height: 22px; image-rendering: pixelated; border-radius: 3px; }
@media (max-width: 640px) { .mascot { width: 166px; height: 128px; right: 0; } }
/* Scène fixe (page 404) : le buste s'efface vers le bas */
.mascot-stage { position: relative; width: min(340px, 80vw); aspect-ratio: 1.3; margin: -40px auto -24px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.mascot-stage canvas { display: block; width: 100%; height: 100%; }
