/* Self-hosted fonts (perf + RGPD) — woff2 + @font-face live in ../fonts/ */
@import url("../fonts/fonts.44362aca744f.css");

:root {
    --bg:          #080604;
    --panel:       #110E07;
    --panel-2:     #1A1508;
    --text:        #e8dcc8;
    --muted:       #8a7d6b;
    --accent:      #C9A84C;
    --gold-light:  #F5D78A;
    --gold-dark:   #7A5A1A;
    --accent-2:    #4eb88a;
    --border:      #2A1E08;
    --text-muted:  #5A4A2A;
    --text-dim:    #3A2A10;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Spectral', Georgia, 'Times New Roman', serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, rgba(42,30,18,0.5) 1px, transparent 1px),
        radial-gradient(ellipse 70% 55% at 15% 30%, rgba(201,168,76,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 70%, rgba(120,40,60,0.12) 0%, transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Full-page card background ───────────────────────────────────── */
#cards-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-card {
    position: absolute;
    width: 100px;
    aspect-ratio: 5 / 7;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 10px 36px rgba(0,0,0,0.75), 0 2px 8px rgba(0,0,0,0.5);
    filter: brightness(0.45) saturate(0.6) sepia(0.35);
    opacity: 0.5;
    will-change: transform;
}
/* 63 cartes — grille 9×7 plein viewport, rotations dans tous les sens */
/* Ligne 0 */
.bg-card-1  { top: -3%; left:  0%;  width: 108px; transform: rotate(-142deg); }
.bg-card-2  { top:  1%; left: 11%;  width:  92px; transform: rotate(  68deg); }
.bg-card-3  { top: -2%; left: 22%;  width: 102px; transform: rotate( -22deg); }
.bg-card-4  { top:  2%; left: 33%;  width:  96px; transform: rotate( 157deg); }
.bg-card-5  { top: -1%; left: 44%;  width: 112px; transform: rotate( -75deg); }
.bg-card-6  { top:  1%; left: 55%;  width:  94px; transform: rotate( 114deg); }
.bg-card-7  { top: -3%; left: 66%;  width:  88px; transform: rotate( -38deg); }
.bg-card-8  { top:  2%; left: 77%;  width:  98px; transform: rotate(  47deg); }
.bg-card-9  { top: -1%; left: 88%;  width: 104px; transform: rotate(-163deg); }
/* Ligne 1 */
.bg-card-10 { top: 13%; left:  3%;  width:  92px; transform: rotate( 179deg); }
.bg-card-11 { top: 11%; left: 14%;  width: 102px; transform: rotate( -91deg); }
.bg-card-12 { top: 14%; left: 25%;  width:  86px; transform: rotate(  85deg); }
.bg-card-13 { top: 12%; left: 36%;  width: 110px; transform: rotate( -44deg); }
.bg-card-14 { top: 15%; left: 47%;  width:  94px; transform: rotate( 133deg); }
.bg-card-15 { top: 11%; left: 58%;  width:  84px; transform: rotate(-168deg); }
.bg-card-16 { top: 13%; left: 69%;  width:  96px; transform: rotate(  27deg); }
.bg-card-17 { top: 14%; left: 80%;  width: 102px; transform: rotate(-118deg); }
.bg-card-18 { top: 12%; left: 91%;  width:  90px; transform: rotate(  61deg); }
/* Ligne 2 */
.bg-card-19 { top: 27%; left:  1%;  width:  96px; transform: rotate(-148deg); }
.bg-card-20 { top: 25%; left: 12%;  width:  86px; transform: rotate( 172deg); }
.bg-card-21 { top: 28%; left: 23%;  width: 104px; transform: rotate( -57deg); }
.bg-card-22 { top: 26%; left: 34%;  width:  92px; transform: rotate( 140deg); }
.bg-card-23 { top: 29%; left: 45%;  width:  90px; transform: rotate( -29deg); }
.bg-card-24 { top: 26%; left: 56%;  width:  96px; transform: rotate(  98deg); }
.bg-card-25 { top: 28%; left: 67%;  width:  84px; transform: rotate(-155deg); }
.bg-card-26 { top: 27%; left: 78%;  width: 106px; transform: rotate(  42deg); }
.bg-card-27 { top: 25%; left: 89%;  width:  94px; transform: rotate( -83deg); }
/* Ligne 3 */
.bg-card-28 { top: 41%; left:  0%;  width: 100px; transform: rotate( 126deg); }
.bg-card-29 { top: 42%; left: 11%;  width:  90px; transform: rotate( -67deg); }
.bg-card-30 { top: 40%; left: 22%;  width: 106px; transform: rotate( 174deg); }
.bg-card-31 { top: 43%; left: 33%;  width:  84px; transform: rotate( -35deg); }
.bg-card-32 { top: 41%; left: 44%;  width:  98px; transform: rotate( 108deg); }
.bg-card-33 { top: 42%; left: 55%;  width:  92px; transform: rotate( -76deg); }
.bg-card-34 { top: 40%; left: 66%;  width:  90px; transform: rotate( 162deg); }
.bg-card-35 { top: 43%; left: 77%;  width: 102px; transform: rotate( -21deg); }
.bg-card-36 { top: 41%; left: 88%;  width:  86px; transform: rotate(  89deg); }
/* Ligne 4 */
.bg-card-37 { top: 56%; left:  3%;  width:  94px; transform: rotate(-138deg); }
.bg-card-38 { top: 54%; left: 14%;  width: 104px; transform: rotate(  53deg); }
.bg-card-39 { top: 57%; left: 25%;  width:  86px; transform: rotate(-177deg); }
.bg-card-40 { top: 55%; left: 36%;  width:  98px; transform: rotate(  71deg); }
.bg-card-41 { top: 58%; left: 47%;  width:  90px; transform: rotate(-117deg); }
.bg-card-42 { top: 56%; left: 58%;  width: 106px; transform: rotate(  34deg); }
.bg-card-43 { top: 54%; left: 69%;  width:  92px; transform: rotate(-159deg); }
.bg-card-44 { top: 57%; left: 80%;  width:  84px; transform: rotate(  78deg); }
.bg-card-45 { top: 55%; left: 91%;  width: 100px; transform: rotate( -46deg); }
/* Ligne 5 */
.bg-card-46 { top: 71%; left:  1%;  width:  96px; transform: rotate( 144deg); }
.bg-card-47 { top: 70%; left: 12%;  width:  90px; transform: rotate( -63deg); }
.bg-card-48 { top: 72%; left: 23%;  width: 102px; transform: rotate( 169deg); }
.bg-card-49 { top: 69%; left: 34%;  width:  86px; transform: rotate( -31deg); }
.bg-card-50 { top: 71%; left: 45%;  width: 100px; transform: rotate( 112deg); }
.bg-card-51 { top: 70%; left: 56%;  width:  92px; transform: rotate( -82deg); }
.bg-card-52 { top: 72%; left: 67%;  width:  90px; transform: rotate( 155deg); }
.bg-card-53 { top: 69%; left: 78%;  width: 106px; transform: rotate( -27deg); }
.bg-card-54 { top: 71%; left: 89%;  width:  84px; transform: rotate(  94deg); }
/* Ligne 6 */
.bg-card-55 { top: 86%; left:  2%;  width: 100px; transform: rotate(-146deg); }
.bg-card-56 { top: 85%; left: 13%;  width:  92px; transform: rotate(  57deg); }
.bg-card-57 { top: 87%; left: 24%;  width: 106px; transform: rotate(-175deg); }
.bg-card-58 { top: 84%; left: 35%;  width:  86px; transform: rotate(  69deg); }
.bg-card-59 { top: 86%; left: 46%;  width:  96px; transform: rotate(-123deg); }
.bg-card-60 { top: 85%; left: 57%;  width:  90px; transform: rotate(  41deg); }
.bg-card-61 { top: 87%; left: 68%;  width: 102px; transform: rotate(-162deg); }
.bg-card-62 { top: 84%; left: 79%;  width:  88px; transform: rotate(  78deg); }
.bg-card-63 { top: 86%; left: 90%;  width:  96px; transform: rotate( -38deg); }

.topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    height: 52px;
    width: 52px;
    flex-shrink: 0;
    border-radius: 7px;
    transition: filter 0.3s;
}
.brand:hover .brand-mark {
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.65));
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--accent) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.brand-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.52rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--muted);
    line-height: 1;
    text-transform: uppercase;
}
.topbar nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.topbar nav .nav-link { color: var(--text); text-decoration: none; padding: 0.25rem 0.1rem; white-space: nowrap; }
.topbar nav .nav-link:hover { color: var(--accent); }

/* Barre de recherche dans la navbar */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 0.3rem 0 0.75rem;
    transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.85rem;
    width: 160px;
    padding: 0.3rem 0;
}
.nav-search input[type="search"]::placeholder { color: var(--muted); }
.nav-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.2rem;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.7;
}
.nav-search button:hover { opacity: 1; }
@media (max-width: 700px) {
    .nav-search input[type="search"] { width: 100px; }
}
.btn-register {
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 6px;
    font-size: 0.88rem;
}
.btn-register:hover { background: var(--accent); color: #fff !important; }

/* ── Navbar dropdowns ─────────────────────────────────────────────── */
.nav-item { position: relative; }
.nav-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0.25rem 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.nav-toggle:hover { color: var(--accent); }
.caret { font-size: 0.65em; transition: transform 0.2s; display: inline-block; }
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 170px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}
.dropdown-menu.dropdown-right { left: auto; right: 0; }
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.dropdown-menu a,
.dropdown-menu .dropdown-item-btn {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}
.dropdown-menu a:hover,
.dropdown-menu .dropdown-item-btn:hover { background: var(--border); color: var(--accent); }
.dropdown-menu form { display: block; margin: 0; padding: 0; }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.3rem 0; }

.lang-switch {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-left: 0.4rem;
}
.lang-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    white-space: nowrap;
    line-height: 1.6;
}
.lang-pill-active {
    background: var(--accent);
    color: #fff;
}
.lang-pill-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
}
.lang-pill-btn:hover { color: var(--text); }

.container { max-width: 1180px; margin: 0 auto; padding: 1.5rem; position: relative; z-index: 1; }

.footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--panel);
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}
.footer-mark {
    height: 36px;
    width: 36px;
    border-radius: 5px;
    opacity: 0.65;
    transition: opacity 0.25s;
}
.footer-brand:hover .footer-mark { opacity: 0.95; }
.footer-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.75;
}
.footer-tagline { margin: 0; }
.footer-version { margin: 0; font-size: 0.7rem; opacity: 0.4; }
.footer-legal {
    margin: 0.8rem 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: center;
    align-items: center;
}
.footer-legal a,
.footer-legal-btn {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.footer-legal a:hover,
.footer-legal-btn:hover { color: var(--accent); text-decoration: underline; }

.inline { display: inline; }
.linklike {
    background: none; border: none; color: var(--accent);
    cursor: pointer; font: inherit; padding: 0;
}
.btn-admin {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--accent-2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-admin:hover { background: var(--border); text-decoration: none; }

.messages { list-style: none; padding: 0; }
.msg { padding: 0.7rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; background: var(--panel-2); }
.msg.success { border-left: 4px solid var(--accent-2); }
.msg.error { border-left: 4px solid #ff6b6b; }
.msg.warning { border-left: 4px solid #ffcc66; }
.msg.info { border-left: 4px solid var(--accent); }

.hero { text-align: center; padding: 2rem 0; }
.hero h1 { font-size: 2.2rem; margin: 0.2rem 0; }
.hero p { color: var(--muted); font-size: 1.1rem; }

.btn {
    display: inline-block; background: linear-gradient(180deg, #E2BE6A, #A8801F); color: #1A1206;
    padding: 0.6rem 1.2rem; border-radius: 8px; border: none;
    cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid rgba(201,168,76,0.3); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.card-tile {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.6rem; text-align: center;
}
.card-tile img { width: 100%; border-radius: 6px; aspect-ratio: 3/4; object-fit: cover; }
.card-tile .name { font-weight: 600; font-size: 0.9rem; margin-top: 0.4rem; }
.card-tile .meta { color: var(--muted); font-size: 0.78rem; }

/* ── Catalog breadcrumb (vue par jeu) ────────────────────────────── */
.catalog-breadcrumb { margin-bottom: 1.2rem; }
.catalog-breadcrumb h1 { margin: 0.3rem 0 0; font-size: 1.6rem; }
.back-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }

/* ── Games grid (page catalogue sans requête) ─────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}
.game-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,168,76,0.12);
    text-decoration: none;
}
/* Conteneur logo à hauteur fixe pour aligner les tuiles quelle que soit la proportion */
.game-tile__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
}
.game-tile__icon {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.game-tile__name { font-weight: 700; font-size: 0.9rem; }
.game-tile__count { font-size: 0.78rem; color: var(--muted); }
.game-heading-icon { vertical-align: middle; margin-right: 0.4rem; }

.panel {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tr.reference { background: rgba(201,168,76,0.12); }

.tag {
    display: inline-block; background: var(--panel-2); color: var(--muted);
    border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.78rem;
}
.price { font-weight: 700; color: var(--accent-2); }

.finish-badge {
    display: inline-block; border-radius: 999px;
    padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.finish-normal  { background: rgba(107,114,128,0.18); color: #9ca3af; }
.finish-foil    { background: rgba(201,168,76,0.22);  color: var(--accent); }
.finish-etched  { background: rgba(167,139,250,0.22); color: #a78bfa; }
.finish-reverse { background: rgba(96,165,250,0.22);  color: #60a5fa; }
.finish-legend  { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }

form.stack { display: flex; flex-direction: column; gap: 0.8rem; max-width: 420px; }
form.stack label { font-weight: 600; }
form.stack input, form.stack select {
    width: 100%; padding: 0.5rem; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.searchbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.searchbar input, .searchbar select { padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }

.detail { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }
.detail img.cardimg { width: 100%; border-radius: 12px; }
@media (max-width: 700px) { .detail { grid-template-columns: 1fr; } }

/* Recherche avancée */
.search-form { margin-bottom: 1.2rem; }
.filters-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; margin-top: 0.6rem; }
.filters-toggle { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 0.9rem; list-style: none; }
.filters-toggle::marker, .filters-toggle::-webkit-details-marker { display: none; }
.filters-toggle::before { content: "▶ "; font-size: 0.7rem; }
details[open] .filters-toggle::before { content: "▼ "; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.filters-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filters-grid input, .filters-grid select { padding: 0.4rem 0.6rem; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; }
.clear-filters { display: inline-block; margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.result-count { margin-bottom: 0.5rem; }

/* Sparkline / charts */
.chart-wrap { position: relative; height: 180px; margin-top: 1rem; }

/* Gain/perte collection */
.gain { color: var(--accent-2); font-weight: 700; }
.loss { color: #ff6b6b; font-weight: 700; }

/* Marketplace */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.listing-tile { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; }
.listing-tile .card-name { font-weight: 600; }
.listing-tile .price-big { font-size: 1.3rem; font-weight: 700; color: var(--accent-2); }

/* Plans abonnement */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.plan-card { background: var(--panel); border: 2px solid var(--border); border-radius: 14px; padding: 1.5rem; text-align: center; }
.plan-card.current { border-color: var(--accent); }
.plan-card .plan-price { font-size: 2rem; font-weight: 700; color: var(--accent-2); margin: 0.5rem 0; }
.plan-card ul { text-align: left; padding-left: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.plan-card ul li { margin-bottom: 0.3rem; }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────── */
.home-hero {
    margin: -1.5rem -1.5rem 2.5rem;
    padding: 4.5rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 55% at 15% 30%, rgba(201,168,76,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 70%, rgba(120,40,60,0.13) 0%, transparent 55%),
        rgba(12,10,8,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Side card walls (3 columns each) */
.hero-side-cards {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
    z-index: 0;
    width: 360px;
}
.hero-side-left  { left: -60px; }
.hero-side-right { right: -60px; }

/* Each column is a vertical stack */
.hsc-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.hsc-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.65);
    margin-top: -20px;
    opacity: 0.55;
    display: block;
}
.hsc-col .hsc-img:first-child { margin-top: 0; }

/* Rotate each column slightly */
.hero-side-left  .hsc-col:nth-child(1) { transform: rotate(-6deg)  translateY(-10px); }
.hero-side-left  .hsc-col:nth-child(2) { transform: rotate(-2deg); }
.hero-side-left  .hsc-col:nth-child(3) { transform: rotate(3deg)   translateY(10px); }

.hero-side-right .hsc-col:nth-child(1) { transform: rotate(-3deg)  translateY(10px); }
.hero-side-right .hsc-col:nth-child(2) { transform: rotate(2deg); }
.hero-side-right .hsc-col:nth-child(3) { transform: rotate(6deg)   translateY(-10px); }

/* Fade top/bottom edges of each stack */
.hero-side-cards::before,
.hero-side-cards::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 70px;
    z-index: 2;
    pointer-events: none;
}
.hero-side-cards::before { top: 0;    background: linear-gradient(to bottom, var(--bg), transparent); }
.hero-side-cards::after  { bottom: 0; background: linear-gradient(to top,    var(--bg), transparent); }

/* Hero full logo */
.hero-full-logo {
    width: min(520px, 90vw);
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 32px rgba(201,168,76,0.35))
            drop-shadow(0 8px 24px rgba(0,0,0,0.70));
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, black 55%, transparent 100%);
    mask-image:         radial-gradient(ellipse 88% 82% at 50% 50%, black 55%, transparent 100%);
    animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s both,
               markFloat 6s ease-in-out 0.8s infinite;
}
/* Hero logo mark (kept for other pages) */
.hero-mark {
    height: 78px;
    width: auto;
    margin-bottom: 1.4rem;
    filter: drop-shadow(0 0 18px rgba(201,168,76,0.50))
            drop-shadow(0 4px 12px rgba(0,0,0,0.55));
    animation: markFloat 5s ease-in-out infinite;
}
@keyframes markFloat {
    0%, 100% { transform: translateY(0);    filter: drop-shadow(0 0 18px rgba(201,168,76,0.50)) drop-shadow(0 4px 12px rgba(0,0,0,0.55)); }
    50%       { transform: translateY(-5px); filter: drop-shadow(0 0 28px rgba(201,168,76,0.70)) drop-shadow(0 8px 18px rgba(0,0,0,0.50)); }
}

/* Badge */
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
    letter-spacing: 0.05em;
}

/* Title */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.gradient-text {
    background: linear-gradient(125deg, #e8c86a 0%, #c9a84c 30%, #8b6914 50%, #c9a84c 70%, #e8c86a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 5s linear infinite;
}

/* Sub-title */
.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* CTA row */
.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Glowing primary button */
.btn-glow {
    box-shadow: 0 0 20px rgba(201,168,76,0.35), 0 4px 14px rgba(0,0,0,0.35);
    transition: box-shadow 0.2s, transform 0.15s, opacity 0.15s;
}
.btn-glow:hover {
    box-shadow: 0 0 32px rgba(201,168,76,0.55), 0 8px 24px rgba(0,0,0,0.4);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}

/* Stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat         { display: flex; flex-direction: column; align-items: center; }
.stat-num     { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label   { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.02em; }
.stat-divider { width: 1px; height: 2.5rem; background: var(--border); }

/* ── Section label ────────────────────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.8rem;
}

/* ── Feature cards ────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(201,168,76,0.13);
    text-decoration: none;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; display: block; width: 48px; height: 48px; }
.feature-icon img { width: 48px; height: 48px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--text); }
.feature-card p  { color: var(--muted); font-size: 0.87rem; margin: 0; line-height: 1.55; }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps-panel h2 { margin-top: 0; margin-bottom: 1.2rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}
.step { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-num {
    flex-shrink: 0;
    width: 2.1rem; height: 2.1rem;
    background: linear-gradient(180deg, #E2BE6A, #8A6A22);
    color: #14100c;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(201,168,76,0.25);
    transition: box-shadow 0.25s, transform 0.25s;
}
.step-body h4 { margin: 0.1rem 0 0.25rem; font-size: 0.95rem; }
.step-body p  { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* ── Panel header ─────────────────────────────────────────────────── */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.panel-header h2 { margin: 0; }
.badge-count {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
}

/* ── Games grid ───────────────────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
@media (max-width: 900px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games-grid { grid-template-columns: 1fr; } }
.game-tile {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color 0.2s;
}
.game-tile:hover { border-color: var(--accent); }
.game-icon  { font-size: 1.6rem; flex-shrink: 0; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.game-icon img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }
.game-name  { font-weight: 600; font-size: 0.9rem; }
.game-count { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }
.empty-hint { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; }

/* ── CTA banner ───────────────────────────────────────────────────── */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(125deg, rgba(201,168,76,0.22) 0%, rgba(120,40,60,0.16) 100%);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
}
.cta-content h2 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.cta-content p  { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cta-actions    { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .home-hero { padding: 3rem 1.5rem 2.5rem; }
    .hero-side-cards { display: none; }
    .hero-stats { gap: 1.2rem; }
    .stat-divider { display: none; }
    .steps { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════
   HOMEPAGE MOTION
   ═══════════════════════════════════════════════════════════════════ */

/* ── Background card drift (9 columns, each its own phase & speed) ── */
@keyframes drift1 { 0%,100%{translate:0px 0px} 25%{translate:6px 10px}  50%{translate:-4px 14px} 75%{translate:-8px 5px} }
@keyframes drift2 { 0%,100%{translate:0px 0px} 33%{translate:-6px 8px}  66%{translate:5px 15px} }
@keyframes drift3 { 0%,100%{translate:0px 0px} 40%{translate:8px -6px}  80%{translate:-5px 10px} }
@keyframes drift4 { 0%,100%{translate:0px 0px} 30%{translate:-7px 12px} 60%{translate:4px 6px} }
@keyframes drift5 { 0%,100%{translate:0px 0px} 45%{translate:6px -8px}  75%{translate:-4px 12px} }

.bg-card-1,.bg-card-10,.bg-card-19,.bg-card-28,.bg-card-37,.bg-card-46,.bg-card-55
  { animation: drift1 18s ease-in-out infinite; }
.bg-card-2,.bg-card-11,.bg-card-20,.bg-card-29,.bg-card-38,.bg-card-47,.bg-card-56
  { animation: drift2 22s ease-in-out infinite 3s; }
.bg-card-3,.bg-card-12,.bg-card-21,.bg-card-30,.bg-card-39,.bg-card-48,.bg-card-57
  { animation: drift3 16s ease-in-out infinite 1.5s; }
.bg-card-4,.bg-card-13,.bg-card-22,.bg-card-31,.bg-card-40,.bg-card-49,.bg-card-58
  { animation: drift4 20s ease-in-out infinite 5s; }
.bg-card-5,.bg-card-14,.bg-card-23,.bg-card-32,.bg-card-41,.bg-card-50,.bg-card-59
  { animation: drift5 24s ease-in-out infinite 2s; }
.bg-card-6,.bg-card-15,.bg-card-24,.bg-card-33,.bg-card-42,.bg-card-51,.bg-card-60
  { animation: drift1 19s ease-in-out infinite 7s; }
.bg-card-7,.bg-card-16,.bg-card-25,.bg-card-34,.bg-card-43,.bg-card-52,.bg-card-61
  { animation: drift2 21s ease-in-out infinite 4s; }
.bg-card-8,.bg-card-17,.bg-card-26,.bg-card-35,.bg-card-44,.bg-card-53,.bg-card-62
  { animation: drift3 17s ease-in-out infinite 9s; }
.bg-card-9,.bg-card-18,.bg-card-27,.bg-card-36,.bg-card-45,.bg-card-54,.bg-card-63
  { animation: drift4 23s ease-in-out infinite 6s; }

/* ── Hero text entrance ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title   { animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s  both; }
.hero-sub     { animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both; }
.hero-actions { animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s  both; }
.hero-stats   { animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.65s both; }

/* ── Gradient text shimmer ──────────────────────────────────────── */
@keyframes gradientShimmer {
    from { background-position: 0% center; }
    to   { background-position: 200% center; }
}

/* ── Step number hover glow ────────────────────────────────────── */
.step:hover .step-num {
    transform: scale(1.15);
    box-shadow: 0 0 22px rgba(201,168,76,0.5);
}

/* ── CTA banner light sweep ────────────────────────────────────── */
@keyframes ctaSweep {
    from { transform: translateX(-100%); }
    to   { transform: translateX(500%); }
}
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 20%;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.16), transparent);
    animation: ctaSweep 5s ease-in-out infinite 2s;
    pointer-events: none;
}

/* ── Scroll-reveal ─────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }

/* ── Accessibility: respect reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bg-card { animation: none !important; }
    .hero-full-logo { animation: none !important; }
    .hero-title, .hero-sub, .hero-actions, .hero-stats { animation: none !important; }
    .gradient-text { animation: none !important; background-size: auto; }
    .cta-banner::before { animation: none; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── KPI cards (Portfolio dashboard) ─────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.kpi-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.kpi-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.kpi-card {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover {
    border-color: rgba(201,168,76,0.3);
    box-shadow: 0 6px 22px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.kpi-value.gain { color: var(--accent-2); }
.kpi-value.loss { color: #ff6b6b; }

/* ════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — COMPOSANTS INNER PAGES
   ═══════════════════════════════════════════════════════════════════ */

/* ── Global form controls ─────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a7d6b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.2rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(201,168,76,0.7);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.6; }
textarea { resize: vertical; min-height: 7rem; }
select option { background: var(--panel-2); }

/* ── Inner page title (H1 hors hero) ─────────────────────────────── */
main h1:not(.hero-title) {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
main h1:not(.hero-title)::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 52px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}
/* Annuler dans les conteneurs flex qui gèrent leur propre espacement */
.panel-header h1,
.page-header h1 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    position: static !important;
}
.panel-header h1::after,
.page-header h1::after { display: none !important; }

/* ── Page header (titre + actions) ───────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 52px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}
.page-header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* ── Searchbar — flex row inputs + bouton ────────────────────────── */
.searchbar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}
.searchbar > input[type="text"],
.searchbar > input[type="search"] { flex: 1 1 220px; }
.searchbar > select              { flex: 0 1 180px; }

/* ── Form stack (label + input empilés) ──────────────────────────── */
form.stack label,
form.stack p > label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
form.stack p { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }

/* ── Auth pages ───────────────────────────────────────────────────── */
.auth-box { max-width: 400px; margin: 0 auto; }
.oauth-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.4rem; }
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.oauth-btn:hover { background: var(--panel-2); text-decoration: none; }
.oauth-btn-google:hover  { border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,0.12); }
.oauth-btn-discord:hover { border-color: #5865F2; box-shadow: 0 0 0 3px rgba(88,101,242,0.12); }
.divider-or {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.6rem 0;
}
.divider-or hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.divider-or span { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

/* ── Card actions (boutons sous l'image carte) ───────────────────── */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ── Trend section (sélecteur + badge) ──────────────────────────── */
.trend-section { margin-bottom: 1rem; }
.trend-period-bar {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.5rem; flex-wrap: wrap;
}
.trend-period-label { color: var(--muted); font-size: 0.82rem; }
.trend-btn {
    background: var(--panel-2); border: 1px solid var(--border);
    color: var(--muted); font-size: 0.78rem; padding: 0.2rem 0.6rem;
    border-radius: 4px; cursor: pointer; transition: all 0.15s;
}
.trend-btn:hover { border-color: var(--accent); color: var(--accent); }
.trend-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ── Trend badge (prédiction de prix) ───────────────────────────── */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.trend-badge.up   { border-color: rgba(78,184,138,0.35); }
.trend-badge.down { border-color: rgba(255,107,107,0.35); }
.trend-badge .trend-val        { font-weight: 700; }
.trend-badge .trend-val.up     { color: var(--accent-2); }
.trend-badge .trend-val.down   { color: #ff6b6b; }
.trend-badge .trend-val.stable { color: var(--muted); }
.trend-badge .trend-pred       { color: var(--text); font-size: 0.9rem; }
.trend-badge .trend-vol        { color: var(--muted); font-size: 0.8rem; font-style: italic; }
.trend-badge .trend-pts        { color: var(--muted); font-size: 0.78rem; }

/* ── Detail page image hover ─────────────────────────────────────── */
.detail .cardimg {
    box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.10);
    transition: box-shadow 0.3s, transform 0.3s;
}
.detail .cardimg:hover {
    box-shadow: 0 16px 60px rgba(0,0,0,0.75), 0 0 28px rgba(201,168,76,0.18);
    transform: scale(1.02);
}
.detail > div:first-child { position: sticky; top: 1rem; align-self: start; }

/* ── Listing tile hover ──────────────────────────────────────────── */
.listing-tile {
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.listing-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.listing-tile img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: filter 0.25s;
}
.listing-tile:hover img { filter: brightness(1.08); }
.listing-tile .card-name  { font-weight: 600; margin-top: 0.5rem; }
.listing-tile .price-big  { font-size: 1.35rem; font-weight: 800; color: var(--accent-2); margin-top: 0.25rem; }
.listing-tile .seller-tag { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

/* ── Card tile hover shimmer ─────────────────────────────────────── */
.card-tile {
    position: relative;
    overflow: hidden;
}
.card-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    border-radius: inherit;
}
.card-tile:hover::after { opacity: 1; }
.card-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,76,0.35);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,168,76,0.12);
    text-decoration: none;
}
/* card-tile avait déjà transition: aucune → on l'ajoute */
.card-tile { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card-tile.trend-up  { border-color: rgba(78,184,138,0.35); }
.card-tile.trend-down { border-color: rgba(255,107,107,0.35); }
.trend-icon { font-size: 0.75rem; margin-left: 0.3rem; color: var(--accent-2); vertical-align: middle; }
.trend-icon--down { color: #ff6b6b; }

/* ── Table row hover ─────────────────────────────────────────────── */
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(201,168,76,0.04); }

/* ── Panel table (table collée bords du panel) ───────────────────── */
.panel-table {
    padding: 0;
    overflow: hidden;
}
.panel-table > .panel-table-head {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}
.panel-table table { margin: 0; }
.panel-table thead th:first-child,
.panel-table tbody td:first-child { padding-left: 1.2rem; }
.panel-table thead th:last-child,
.panel-table tbody td:last-child  { padding-right: 1.2rem; }

/* ── Two-column page layout ──────────────────────────────────────── */
.page-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
@media (max-width: 700px) { .page-cols { grid-template-columns: 1fr; } }

/* ── Rank number (numéro de classement) ──────────────────────────── */
.rank { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

/* ── Cell meta / small text ──────────────────────────────────────── */
.cell-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* ── Back link ───────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 1.2rem;
    transition: color 0.15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ── Button row ──────────────────────────────────────────────────── */
.btn-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── TGC News carousel ───────────────────────────────────────────── */
.news-section { margin-bottom: 2rem; }

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.news-header .section-label { margin: 0; }

.news-arrows { display: flex; gap: 0.4rem; }
.news-arrow {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 2rem; height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, color 0.15s;
}
.news-arrow:hover { border-color: var(--accent); color: var(--accent); }

.news-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* overflow-x:auto force overflow-y:auto → on réserve de la marge en haut/bas
       pour que le soulèvement + l'ombre au survol ne soient pas rognés */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }

.news-card {
    /* Toujours 4 cartes visibles : largeur = (100% - 3 gaps de 0.9rem) / 4.
       -1px par carte = marge anti-débordement (arrondi sous-pixel) */
    flex: 0 0 calc((100% - 2.7rem) / 4 - 1px);
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    /* Anneau doré net (inset) + lueur — visible même par-dessus l'image */
    box-shadow: inset 0 0 0 1px var(--accent), 0 8px 24px rgba(201,168,76,0.2);
    text-decoration: none;
}

.news-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--panel-2);
    flex-shrink: 0;
    position: relative;
}
/* Image de l'article : affichée en entier (contain), bandes comblées par le fond */
.news-card-img > img:not(.news-game-bg) {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
/* Image de carte du jeu en fond flou + icône en surimpression */
.news-game-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(3px) brightness(0.35) saturate(0.7);
    transform: scale(1.08);
    transition: filter 0.3s;
}
.news-card:hover .news-game-bg {
    filter: blur(2px) brightness(0.45) saturate(0.85);
}
.news-game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.news-overlay-icon {
    width: 62%;
    max-width: 150px;
    min-width: 96px;
    height: auto;
    opacity: 0.75;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
    transition: opacity 0.2s, transform 0.2s;
}
.news-card:hover .news-overlay-icon {
    opacity: 0.95;
    transform: scale(1.08);
}

/* Bannière colorée quand pas d'image article */
.news-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--badge-color) 22%, var(--panel-2)) 0%,
        var(--panel-2) 100%);
}
.news-placeholder-icon {
    width: 72px;
    height: 72px;
    opacity: 0.55;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    transition: opacity 0.2s;
}
.news-card:hover .news-placeholder-icon { opacity: 0.8; }
.news-placeholder-badge {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--badge-color);
    opacity: 0.85;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.news-card-img.no-img { background: var(--panel-2); }

.news-card-body {
    padding: 0.9rem 0.95rem 0.55rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Date repoussée à droite, badge à gauche */
.news-card-meta .news-date { margin-left: auto; }
.news-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--badge-color) 18%, transparent);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 35%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}
.news-date {
    font-size: 0.72rem;
    color: var(--muted);
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: block;
    text-align: right;
    padding: 0.5rem 0.9rem 0.75rem;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 600px) {
    .news-card { flex: 0 0 220px; }
    .news-card-img { height: 150px; }
}

/* ── Légende des finitions ────────────────────────────────────────── */
.finish-legend {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.finish-legend-title { font-weight: 600; color: var(--text); white-space: nowrap; }
.finish-item { display: flex; align-items: baseline; gap: 0.3rem; }
.finish-icon { font-size: 0.9rem; }
.finish-normal .finish-icon { color: #c9a84c; }
.finish-foil   .finish-icon { color: #a78bfa; }
.finish-normal strong { color: #c9a84c; }
.finish-foil   strong { color: #a78bfa; }

/* ── Responsive additions ─────────────────────────────────────────── */
@media (max-width: 700px) {
    main h1:not(.hero-title) { font-size: 1.4rem; }
    .detail > div:first-child { position: static; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .auth-box { padding: 0 0.5rem; }
}


/* ════════════════════════════════════════════════════════════════════
   GRIMOIRE — affinages (radii nets, chiffres mono, titres Cormorant)
   ═══════════════════════════════════════════════════════════════════ */
.btn, .btn.secondary, .btn-register, .btn-admin { border-radius: 6px; white-space: nowrap; }
.badge-count, .hero-badge, .s-cta { white-space: nowrap; }
.card-tile, .listing-tile, .game-tile, .feature-card, .panel, .kpi-card,
.plan-card, .filters-panel, .oauth-btn, .msg, .trend-badge,
.dropdown-menu { border-radius: 7px; }
.cta-banner { border-radius: 10px; }
/* Chiffres en monospace — lecture d'argus précise */
.stat-num, .kpi-value, .plan-price, .price, .price-big,
.listing-tile .price-big, td.num, .trend-val, .stat .stat-num {
    font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em;
}
/* Labels techniques en mono */
.section-label, .kpi-label { font-family: 'JetBrains Mono', monospace; }
/* Titres Cormorant — graisse et interlettrage soignés */
.hero-title, main h1:not(.hero-title), .steps-panel h2,
.panel-header h2, .cta-content h2, .plan-card h3 {
    font-family: 'Cormorant Garamond', serif; font-weight: 700; letter-spacing: 0.01em;
}


/* ════════════════════════════════════════════════════════════════════
   Page JEU — en-tête (emblème + titre) et sélecteur de jeux
   ═══════════════════════════════════════════════════════════════════ */
.game-head { display: flex; align-items: center; gap: 1rem; }
.game-head h1 { border: none; padding: 0; margin: 0; }
.game-emblem {
    width: 62px; height: 62px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1.8rem; overflow: hidden;
    background: var(--panel-2); border: 1px solid var(--border);
    box-shadow: 0 0 16px rgba(200,162,74,.18);
}
.game-emblem img { width: 70%; height: 70%; object-fit: contain; }
.game-switch { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.game-switch a {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--panel);
    color: var(--muted); font-size: .88rem; text-decoration: none;
    transition: border-color .15s, color .15s;
}
.game-switch a:hover { border-color: var(--accent); color: var(--accent); }
.game-switch a.on { background: var(--accent); color: #1A1206; border-color: transparent; font-weight: 600; }
.game-switch img { width: 16px; height: 16px; object-fit: contain; }


/* ════════════════════════════════════════════════════════════════════
   Carte holographique — image de fiche en relief 3D + reflet foil
   (interaction pilotée par static/js/holo-card.js via variables CSS)
   ═══════════════════════════════════════════════════════════════════ */
.holo-card {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    --bgx: 50%; --bgy: 50%; --shine-o: 0; --glare-o: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 63 / 88;
    border-radius: 16px;
    transform-style: preserve-3d;
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .5s ease;
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(200,162,74,.14);
    cursor: grab;
    will-change: transform;
}
.holo-card.is-active {
    transition: transform .08s ease-out, box-shadow .2s ease;
    box-shadow: 0 34px 70px rgba(0,0,0,.6), 0 0 38px rgba(200,162,74,.28), 0 0 0 1px rgba(241,215,143,.5);
    z-index: 5;
}
.holo-card__inner { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--panel-2); }
.holo-card img.cardimg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: inherit; box-shadow: none; transition: none;
}
.holo-card img.cardimg:hover { transform: none; }
/* Reflet holographique arc-en-ciel */
.holo-card__shine {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    z-index: 4; opacity: var(--shine-o); mix-blend-mode: color-dodge;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,82,170,.55) 0%, rgba(108,156,255,.55) 9%, rgba(96,255,202,.55) 18%, rgba(255,232,120,.55) 27%, rgba(255,82,170,.55) 36%),
        repeating-linear-gradient(60deg, rgba(255,255,255,.10) 0 6px, transparent 6px 14px);
    background-size: 220% 220%, 180% 180%;
    background-position: var(--bgx) var(--bgy), var(--bgy) var(--bgx);
    background-blend-mode: screen;
    filter: brightness(.95) contrast(1.45) saturate(1.2);
    transition: opacity .4s ease;
}
/* Paillettes */
.holo-card__sparkle {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    z-index: 5; opacity: calc(var(--shine-o) * .9); mix-blend-mode: color-dodge;
    background-image:
        radial-gradient(rgba(255,255,255,.85) 1px, transparent 1.6px),
        radial-gradient(rgba(241,215,143,.7) 1px, transparent 1.6px);
    background-size: 19px 19px, 31px 31px;
    background-position: var(--bgx) var(--bgy), var(--bgy) var(--bgx);
    transition: opacity .4s ease;
}
/* Halo lumineux suivant le curseur */
.holo-card__glare {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    z-index: 7; opacity: var(--glare-o); mix-blend-mode: overlay;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 55%);
    transition: opacity .4s ease;
}
/* Cadre doré */
.holo-card__frame {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
    box-shadow: inset 0 0 0 2px rgba(241,215,143,.45), inset 0 0 0 5px rgba(16,10,20,.55), inset 0 0 22px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) {
    .holo-card { transition: none; transform: none; }
}

/* Scène d'accueil du composant « Ouverture de booster » (BoosterOpening) */
.booster-stage { display: flex; min-height: 440px; }
.booster-stage > * { flex: 1; }


/* ════════════════════════════════════════════════════════════════════
   Recherche — sidebar de filtres + puces actives + résultats
   (partagé par la recherche avancée et la page jeu)
   ═══════════════════════════════════════════════════════════════════ */
.cs-search { max-width: 720px; margin-bottom: 1.4rem; }
.cs-layout { display: grid; grid-template-columns: 252px 1fr; gap: 1.6rem; align-items: start; }
.cs-side {
    position: sticky; top: 1rem;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.15rem 1.2rem;
    display: flex; flex-direction: column; gap: 1.1rem;
}
.cs-side-head { display: flex; align-items: baseline; justify-content: space-between; }
.cs-side-head h3 {
    margin: 0; font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
}
.cs-fg { display: flex; flex-direction: column; gap: 0.4rem; }
.cs-lab {
    font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.cs-fg select, .cs-price input { width: 100%; }
.cs-price { display: flex; gap: 0.5rem; align-items: center; }
.cs-price span { color: var(--text-muted); }
.cs-clear {
    background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
    border-radius: 8px; padding: 0.5rem; font: inherit; font-size: 0.82rem;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cs-clear:hover { border-color: var(--accent); color: var(--accent); }

.cs-langbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.1rem; }
.cs-langbtn {
    padding: 0.42rem 0.95rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--panel);
    color: var(--muted); font-size: 0.85rem; cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cs-langbtn:hover { border-color: var(--accent); color: var(--accent); }
.cs-langbtn.on { background: var(--accent); color: #1A1206; border-color: transparent; font-weight: 600; }

.cs-count { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
.cs-count b { color: var(--text); }

.cs-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cs-chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--accent);
    border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.8rem;
    text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.cs-chip:hover { background: rgba(201,168,76,0.2); }

.cs-empty {
    padding: 3.5rem 2rem; text-align: center; color: var(--muted);
    border: 1px dashed var(--border); border-radius: 14px;
}

@media (max-width: 720px) {
    .cs-layout { grid-template-columns: 1fr; }
    .cs-side { position: static; }
}

/* Hero en deux colonnes : contenu à gauche, animation booster à droite */
.home-hero .hero-grid {
    position: relative; z-index: 1;
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.02fr 0.98fr;
    gap: 2.4rem; align-items: center;
}
.home-hero.hero-split { text-align: left; }
.home-hero.hero-split .hero-actions,
.home-hero.hero-split .hero-stats { justify-content: flex-start; }
.home-hero .hero-visual { min-width: 0; }
.home-hero .hero-visual .booster-stage { min-height: 0; }
@media (max-width: 880px) {
    .home-hero .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .home-hero.hero-split,
    .home-hero.hero-split .hero-content { text-align: center; }
    .home-hero.hero-split .hero-actions,
    .home-hero.hero-split .hero-stats { justify-content: center; }
}

/* Logo One Piece : noir sur fond transparent → forcé en blanc pur pour rester
   lisible sur le thème sombre (brightness(0) normalise l'anti-aliasing avant invert) */
img[src*="game-onepiece"] {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
