/* ==========================================================================
   RIVO — rivoo.casino
   Shell de casino (sidebar + topbar) fidèle à rivo.casino, avec quelques
   variantes propres à ce domaine : onglets de catégories, carrousels de jeux
   et sommaire collant sur les pages longues.
   Palette Rivo (vert forêt + or). Aucune ressource externe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICE
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Inter-Bold.woff2') format('woff2'); }

/* --------------------------------------------------------------------------
   2. VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --bg: #04180f;
    --bg-side: #05271b;
    --bg-elev: #072d1f;
    --panel: #093626;
    --panel-2: #0c4531;
    --bar: rgba(4, 24, 15, .93);

    --gold: #e3bd6a;
    --gold-bright: #f7e2a8;
    --gold-dim: #8a6f33;
    --line: rgba(227, 189, 106, .3);
    --line-soft: rgba(227, 189, 106, .14);

    --green: #2fbf5f;
    --green-dark: #17803c;
    --green-bright: #56e089;
    --glow: rgba(47, 191, 95, .34);

    --text: #eef7f2;
    --text-2: #b4d2c4;
    --text-muted: #84a696;
    --text-dim: #5e7e6f;

    --warn: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --pill: 999px;

    --side-w: 252px;
    --bar-h: 66px;
    --wrap: 1260px;

    --shadow: 0 6px 22px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);

    --t-fast: 140ms ease;
    --t: 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1150px 540px at 80% -8%, rgba(22, 100, 70, .5) 0%, transparent 62%),
        radial-gradient(820px 470px at 4% 106%, rgba(13, 74, 56, .42) 0%, transparent 62%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-bright); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a, button, input, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    padding: 10px 18px; border-radius: var(--r);
    background: var(--green); color: #04150f; font-weight: 700;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 8px; color: #04150f; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--text { max-width: 1080px; }

/* --------------------------------------------------------------------------
   4. ORNEMENT OR
   -------------------------------------------------------------------------- */
.orn { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.orn::before, .orn::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.orn__gem {
    width: 8px; height: 8px; flex: 0 0 auto; background: var(--gold);
    transform: rotate(45deg); box-shadow: 0 0 8px rgba(227, 189, 106, .6);
}

/* --------------------------------------------------------------------------
   5. SHELL : sidebar + colonne principale
   -------------------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.side {
    position: fixed; inset: 0 auto 0 0; z-index: 120;
    width: var(--side-w);
    display: flex; flex-direction: column;
    padding: 16px 12px 14px;
    background: linear-gradient(180deg, #06301f 0%, #04211a 100%);
    border-right: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-100%); transition: transform var(--t);
}
.side.is-open { transform: translateX(0); }

.side__logo { display: block; width: 126px; margin: 0 auto 16px; }
.side__close {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(0, 0, 0, .35); color: var(--text-2);
}
.side__close svg { width: 17px; height: 17px; }

/* Carte promo en tête de sidebar */
.side-promo {
    display: block; padding: 14px; margin-bottom: 4px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(227, 189, 106, .18);
}
.side-promo:hover { border-color: var(--gold); }
.side-promo__label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.side-promo__value {
    display: block; margin: 2px 0 6px; font-size: 1.5rem; font-weight: 700; line-height: 1.1;
    background: linear-gradient(180deg, #fff6ef 0%, #eecb8c 55%, #c9992f 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold);
}
.side-promo__sub { display: block; font-size: .74rem; color: var(--text-2); }

.side__nav { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.side__link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px; border-radius: var(--pill);
    color: var(--text-2); font-weight: 600; font-size: .93rem;
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.side__link svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--gold); }
.side__link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side__link[aria-current] {
    color: var(--text); border-color: var(--gold);
    background: linear-gradient(90deg, rgba(227, 189, 106, .17) 0%, rgba(227, 189, 106, .03) 100%);
}
/* Sous-rubriques du silo, en retrait */
.side__sub { list-style: none; margin: 2px 0 2px 16px; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.side__sublink {
    display: block; padding: 7px 10px; border-radius: var(--r-sm);
    color: var(--text-muted); font-size: .85rem; font-weight: 500;
}
.side__sublink:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side__sublink[aria-current] { color: var(--gold); }

.side__heading {
    margin: 2px 0 8px; padding-left: 6px;
    font-size: .76rem; font-weight: 600; color: var(--text-muted);
}
.side__foot { margin-top: auto; padding-top: 16px; }
.side__note { font-size: .74rem; color: var(--text-dim); text-align: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   6. BARRE SUPÉRIEURE
   -------------------------------------------------------------------------- */
.bar {
    position: sticky; top: 0; z-index: 110;
    height: var(--bar-h); display: flex; align-items: center; gap: 12px;
    padding: 0 16px; background: var(--bar); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.burger {
    width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--gold);
}
.burger svg { width: 20px; height: 20px; }
.bar__logo { width: 92px; flex: 0 0 auto; }

.search { position: relative; flex: 1; min-width: 0; max-width: 440px; }
.search__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-dim); pointer-events: none;
}
.search__input {
    width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: var(--pill);
    border: 1px solid var(--line); background: rgba(0, 0, 0, .32);
    color: var(--text); font-size: .92rem;
}
.search__input::placeholder { color: var(--text-dim); }
.search__input:focus { outline: none; border-color: var(--gold); }

.bar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.scrim {
    position: fixed; inset: 0; z-index: 115; background: rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.scrim.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--pill);
    font-size: .87rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; white-space: nowrap; border: 1px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: linear-gradient(180deg, var(--green-bright) 0%, var(--green) 45%, var(--green-dark) 100%);
    color: #04150f; border-color: rgba(227, 189, 106, .5);
    box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { color: #04150f; box-shadow: 0 8px 26px var(--glow); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--gold {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dim) 100%);
    color: #1c1305; border-color: rgba(255, 255, 255, .22);
}
.btn--gold:hover { color: #1c1305; }
.btn--lg { padding: 15px 32px; font-size: .96rem; }
.btn--sm { padding: 8px 15px; font-size: .78rem; }
.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative; margin-top: 18px; padding: 30px 22px; overflow: hidden;
    display: grid; gap: 22px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(227, 189, 106, .14);
}
.hero::before, .hero::after {
    content: ''; position: absolute; width: 14px; height: 14px;
    border: 2px solid var(--gold); opacity: .75; pointer-events: none;
}
.hero::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hero::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.hero__body { text-align: center; min-width: 0; }
.hero__h1 {
    margin-bottom: 12px; font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
}
.hero__kicker {
    display: inline-block; margin-bottom: 4px; font-size: .82rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.hero__figure {
    font-size: clamp(3.4rem, 11vw, 6.4rem); font-weight: 700; line-height: .94; letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff6ef 0%, #f0d49a 38%, #d9a83f 68%, #a97c22 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}
.hero__upto { font-size: .9rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.hero__amount {
    font-size: clamp(1.8rem, 5.6vw, 2.9rem); font-weight: 700; line-height: 1.1;
    background: linear-gradient(180deg, #fff6ef 0%, #f0d49a 45%, #c9992f 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero__lead { margin: 14px auto 18px; max-width: 46ch; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__legal { margin-top: 14px; font-size: .78rem; color: var(--text-muted); }
.hero__art { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

.paylist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.paylist__item {
    padding: 6px 12px; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .07); border: 1px solid var(--line-soft);
    font-size: .77rem; font-weight: 600; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   9. CHIFFRES CLÉS
   -------------------------------------------------------------------------- */
.keyfacts {
    display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr);
    margin-top: 18px; background: var(--line-soft);
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.keyfact { padding: 15px 12px; text-align: center; background: var(--panel); }
.keyfact__value { font-size: 1.12rem; font-weight: 700; color: var(--gold); }
.keyfact__label { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. ONGLETS DE CATÉGORIES (variante propre à ce domaine)
   -------------------------------------------------------------------------- */
.tabs {
    display: flex; gap: 8px; margin: 26px 0 18px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    padding: 9px 16px; border-radius: var(--pill);
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
    color: var(--text-2); font-size: .88rem; font-weight: 600;
}
.tab svg { width: 17px; height: 17px; color: var(--gold); }
.tab:hover { color: var(--text); border-color: var(--gold); }
.tab[aria-current] {
    color: var(--text); border-color: var(--gold);
    background: linear-gradient(180deg, rgba(227, 189, 106, .2), rgba(227, 189, 106, .06));
}

/* --------------------------------------------------------------------------
   11. TITRES DE SECTION
   -------------------------------------------------------------------------- */
.section { padding: 28px 0; }
.section__head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.section__icon { width: 28px; height: 28px; flex: 0 0 auto; color: var(--gold); }
.section__title { font-size: clamp(1.22rem, 2.5vw, 1.6rem); font-weight: 700; }
.section__rule { flex: 1; min-width: 16px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section__more { flex: 0 0 auto; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   12. JEUX : carrousel horizontal + grille
   -------------------------------------------------------------------------- */
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.game-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

.game {
    display: block; overflow: hidden; border-radius: var(--r);
    border: 1px solid var(--line); background: var(--panel-2);
    transition: transform var(--t-fast), border-color var(--t-fast);
}
.game:hover { transform: translateY(-3px); border-color: var(--gold); }
.game__art { aspect-ratio: 1/1; overflow: hidden; display: grid; place-items: center; }
.game__art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.game__art svg { width: 44%; height: 44%; color: var(--gold); opacity: .9; }
.game:hover .game__art img { transform: scale(1.05); }
.game__body { display: block; padding: 9px 11px 11px; border-top: 1px solid var(--line-soft); }
.game__name { display: block; font-size: .86rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__studio { display: block; font-size: .74rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------------------------
   13. CARTES DE RUBRIQUE (maillage interne)
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 13px; grid-template-columns: 1fr; }
.card {
    display: block; padding: 19px; border-radius: var(--r-lg);
    border: 1px solid var(--line); background: var(--panel);
    transition: transform var(--t-fast), border-color var(--t-fast);
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card__icon { width: 32px; height: 32px; margin-bottom: 11px; color: var(--gold); }
.card__title { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.card__text { margin-top: 6px; font-size: .9rem; color: var(--text-2); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-size: .83rem; font-weight: 600; color: var(--gold); }
.card__more svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   14. OFFRES BONUS
   -------------------------------------------------------------------------- */
.offers { display: grid; gap: 13px; grid-template-columns: 1fr; }
.offer {
    padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
}
.offer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.offer__wager {
    padding: 3px 10px; border-radius: var(--pill);
    background: rgba(227, 189, 106, .14); border: 1px solid var(--line);
    font-size: .72rem; font-weight: 700; color: var(--gold);
}
.offer__value {
    margin: 7px 0 4px; font-size: 1.42rem; font-weight: 700; line-height: 1.15;
    background: linear-gradient(180deg, #fff6ef 0%, #ecc887 55%, #c9992f 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold);
}
.offer__desc { font-size: .89rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   15. GABARIT ARTICLE : sommaire collant
   -------------------------------------------------------------------------- */
.layout { display: grid; gap: 26px; padding: 22px 0 10px; align-items: start; }
/* min-width:0 — sans quoi la colonne se cale sur la largeur minimale du plus
   large descendant (les tableaux à min-width) et déborde sur petit écran. */
.layout > * { min-width: 0; }
.table-scroll { max-width: 100%; }

.toc { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.toc__title { margin-bottom: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc__link {
    display: block; padding: 7px 10px; border-radius: var(--r-sm);
    color: var(--text-2); font-size: .87rem; line-height: 1.4;
    border-left: 2px solid transparent;
}
.toc__link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.toc__link.is-active { color: var(--gold); border-left-color: var(--gold); background: rgba(227, 189, 106, .09); }

/* --------------------------------------------------------------------------
   16. TEXTE ÉDITORIAL
   -------------------------------------------------------------------------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--text); font-weight: 700; line-height: 1.25; }
.prose h2 {
    margin-top: 2em; margin-bottom: .6em; font-size: clamp(1.35rem, 3vw, 1.75rem);
    padding-bottom: .4em; border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--bar-h) + 20px);
}
.prose h3 { margin-top: 1.7em; margin-bottom: .5em; font-size: clamp(1.08rem, 2.2vw, 1.26rem); color: var(--gold); }
.prose h4 { margin-top: 1.4em; margin-bottom: .4em; font-size: 1.01rem; color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--text); }

.page-head { padding: 20px 0 4px; }
.page-head__title { font-size: clamp(1.85rem, 4.6vw, 2.6rem); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; }
.page-head__lead { margin-top: 13px; max-width: 70ch; font-size: 1.05rem; color: var(--text-2); }
.page-head__meta { margin-top: 11px; font-size: .8rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17. FIL D'ARIANE
   -------------------------------------------------------------------------- */
.crumbs { padding-top: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.crumbs li + li::before { content: '/'; color: var(--text-dim); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }

/* --------------------------------------------------------------------------
   18. ENCARTS
   -------------------------------------------------------------------------- */
.note {
    display: flex; gap: 13px; padding: 15px 17px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: rgba(227, 189, 106, .07); font-size: .95rem; color: var(--text-2);
}
.note__icon { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; color: var(--gold); }
.note strong { color: var(--text); }
.note--warn { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.note--warn .note__icon { color: var(--warn); }
.note--info { border-color: rgba(56, 189, 248, .34); background: rgba(56, 189, 248, .07); }
.note--info .note__icon { color: var(--info); }

/* Réponse directe : le bloc que les moteurs reprennent volontiers */
.answer {
    padding: 17px 19px; border-radius: var(--r);
    border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel);
}
.answer__label {
    display: block; margin-bottom: 5px; font-size: .73rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--gold);
}
.answer p { color: var(--text); font-size: 1.01rem; }

/* --------------------------------------------------------------------------
   19. TABLEAUX
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; min-width: 440px; font-size: .92rem; background: var(--panel); }
table.data th, table.data td { padding: 12px 16px; text-align: left; }
table.data thead th {
    background: var(--panel-2); color: var(--gold); white-space: nowrap;
    font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
table.data tbody tr + tr { border-top: 1px solid var(--line-soft); }
table.data tbody td { color: var(--text-2); }
table.data tbody th { color: var(--text); font-weight: 600; }
table.data tbody td strong { color: var(--text); }
table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }

/* --------------------------------------------------------------------------
   20. FAQ
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.faq__q { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 17px; text-align: left; font-size: .99rem; font-weight: 600; color: var(--text); }
.faq__q:hover { background: rgba(255, 255, 255, .03); }
.faq__chevron { width: 18px; height: 18px; margin-left: auto; flex: 0 0 auto; color: var(--gold); transition: transform var(--t-fast); }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 17px 15px; font-size: .95rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   21. PUCES, ÉTAPES
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft);
    font-size: .83rem; color: var(--text-2);
}

.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li {
    counter-increment: s; position: relative; padding: 15px 18px 15px 62px;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text-2);
}
.steps li::before {
    content: counter(s); position: absolute; left: 16px; top: 15px;
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
    color: #1c1305; font-weight: 700; font-size: .91rem;
}
.steps strong { display: block; color: var(--text); margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   22. BAS DE PAGE D'ARTICLE
   -------------------------------------------------------------------------- */
.cta-band {
    margin-top: 32px; padding: 26px 22px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
}
.cta-band__title { font-size: clamp(1.22rem, 2.8vw, 1.55rem); font-weight: 700; }
.cta-band__text { margin: 10px auto 17px; max-width: 54ch; color: var(--text-2); }

.related { margin-top: 32px; }
.related__title { margin-bottom: 13px; font-size: .79rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.related__list { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; }
.related__link {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
    color: var(--text); font-weight: 600; font-size: .92rem;
}
.related__link:hover { border-color: var(--gold); color: var(--text); }
.related__link svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); }

/* --------------------------------------------------------------------------
   23. PIED DE PAGE
   -------------------------------------------------------------------------- */
.footer {
    margin-top: 44px; padding: 38px 0 92px;
    background: var(--bg-side); border-top: 1px solid var(--line);
    content-visibility: auto; contain-intrinsic-size: auto 600px;
}
.footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.footer__logo { width: 106px; margin-bottom: 11px; }
.footer__about { font-size: .88rem; color: var(--text-muted); max-width: 44ch; }
.footer h2 { margin-bottom: 11px; font-size: .79rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-2); font-size: .88rem; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--text-muted); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge18 {
    display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
    border-radius: 50%; border: 2px solid var(--danger); color: var(--danger);
    font-weight: 700; font-size: .83rem;
}
.footer__copy { margin-top: 12px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   24. CTA COLLANT MOBILE
   -------------------------------------------------------------------------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 105;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bar); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   25. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 620px) {
    .keyfacts { grid-template-columns: repeat(4, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .offers { grid-template-columns: repeat(2, 1fr); }
    .related__list { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .side { transform: none; }
    .scrim, .burger, .side__close, .bar__logo { display: none; }
    .main { margin-left: var(--side-w); }
    .bar, .wrap { padding-left: 24px; padding-right: 24px; }
    .sticky-cta { display: none; }
    .footer { padding-bottom: 40px; }
    .hero { grid-template-columns: 1.05fr .95fr; padding: 38px; gap: 32px; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .offers { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    /* Le sommaire accompagne la lecture des pages longues */
    .layout--toc { grid-template-columns: 250px minmax(0, 1fr); gap: 38px; }
    .layout--toc .toc { position: sticky; top: calc(var(--bar-h) + 20px); max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; }
}

@media (max-width: 1023px) {
    .search { display: none; }
    .bar__actions .btn--ghost { display: none; }
}

@media (max-width: 520px) {
    .hero { padding: 26px 16px; }
}

@media print {
    .side, .bar, .sticky-cta, .scrim, .toc, .cta-band, .related { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; color: #000; }
}
