/* ==========================================================================
   RIVO — feuille de style du site miroir (rivo.bingo)
   Reproduit le shell de rivo.casino : vert forêt "chasse au trésor" + or.
   Aucune ressource externe : polices auto-hébergées, ornements en SVG inline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICE INTER (auto-hébergée)
   -------------------------------------------------------------------------- */
@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 {
    /* Fonds — vert forêt */
    --bg: #041a14;
    --bg-sidebar: #052a20;
    --bg-elev: #073026;
    --panel: #0a3a2c;
    --panel-2: #0d4636;
    --bg-topbar: rgba(4, 26, 20, 0.92);

    /* Or */
    --gold: #e3bd6a;
    --gold-bright: #f7e2a8;
    --gold-dim: #8a6f33;
    --gold-line: rgba(227, 189, 106, 0.35);

    /* Vert d'action (boutons "S'inscrire" / "Inscription rapide") */
    --green: #2fbf5f;
    --green-dark: #17803c;
    --green-bright: #56e089;
    --green-glow: rgba(47, 191, 95, 0.35);

    /* Texte */
    --text: #eef7f2;
    --text-2: #b6d3c6;
    --text-muted: #86a89a;
    --text-dim: #628476;

    /* Sémantique */
    --danger: #f87171;
    --warn: #fbbf24;
    --info: #38bdf8;

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

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

    --sidebar-w: 264px;
    --topbar-h: 68px;
    --wrap: 1240px;

    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

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

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

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

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

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    /* Voile radial vert : rappelle la profondeur de la caverne au trésor */
    background-image:
        radial-gradient(1200px 600px at 78% -10%, rgba(20, 92, 66, 0.55) 0%, transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(13, 70, 54, 0.45) 0%, transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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, select, textarea, 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: 1000;
    padding: 10px 18px; border-radius: var(--radius);
    background: var(--green); color: #04150f; font-weight: 700;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 8px; color: #04150f; }

/* --------------------------------------------------------------------------
   4. ORNEMENTS OR (séparateurs et cadres, comme sur rivo.casino)
   -------------------------------------------------------------------------- */
.ornament {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0;
}
.ornament::before,
.ornament::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.ornament__gem {
    width: 8px; height: 8px; flex: 0 0 auto;
    background: var(--gold); transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(227, 189, 106, 0.6);
}

/* Cadre or réutilisable — bandeaux, panneaux, hero */
.gilded {
    position: relative;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(227, 189, 106, 0.14);
}
/* Coins dorés */
.gilded::before,
.gilded::after {
    content: ''; position: absolute; width: 14px; height: 14px;
    border: 2px solid var(--gold); opacity: 0.75; pointer-events: none;
}
.gilded::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.gilded::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* --------------------------------------------------------------------------
   5. STRUCTURE — sidebar + colonne principale
   -------------------------------------------------------------------------- */
.layout { display: flex; min-height: 100vh; }

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

.sidebar__logo { display: block; margin: 0 auto 18px; width: 132px; }
.sidebar__logo img { width: 100%; }

.sidebar__close {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: var(--text-2);
}
.sidebar__close svg { width: 18px; height: 18px; }

/* Pastille promo "Packs de bienvenue sur mesure" */
.promo-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--gold-line);
    background: linear-gradient(90deg, #0d4636 0%, #0a3a2c 100%);
    color: var(--text);
    font-size: 0.78rem; font-weight: 700; line-height: 1.25;
    text-transform: uppercase; letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(227, 189, 106, 0.18);
}
.promo-pill:hover { color: var(--text); border-color: var(--gold); }
.promo-pill__icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--gold); }

.sidebar__nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar__link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius-pill);
    color: var(--text-2); font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.sidebar__link svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold); }
.sidebar__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.sidebar__link[aria-current="page"] {
    color: var(--text);
    border-color: var(--gold);
    background: linear-gradient(90deg, rgba(227, 189, 106, 0.16) 0%, rgba(227, 189, 106, 0.03) 100%);
}

.sidebar__heading {
    margin: 4px 0 10px; padding-left: 6px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* Cartes "Jeux populaires" */
.mini-game {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; margin-bottom: 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(227, 189, 106, 0.14);
}
.mini-game:hover { border-color: var(--gold); }
.mini-game__thumb {
    width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 8px; background: var(--panel-2); overflow: hidden;
}
.mini-game__thumb svg { width: 24px; height: 24px; color: var(--gold); }
.mini-game__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-game__body { min-width: 0; flex: 1; }
.mini-game__name {
    display: block;
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-game__provider { display: block; font-size: 0.75rem; color: var(--text-dim); }
.mini-game__play {
    width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 50%; background: var(--green); color: #04150f;
}
.mini-game__play svg { width: 13px; height: 13px; }

.sidebar__foot { margin-top: auto; padding-top: 18px; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--gold-line); background: rgba(0, 0, 0, 0.25);
    color: var(--text); font-size: 0.88rem; font-weight: 600;
}
.lang__btn:hover { border-color: var(--gold); }
.lang__flag { width: 20px; height: 14px; border-radius: 2px; flex: 0 0 auto; }
.lang__chevron { width: 14px; height: 14px; margin-left: auto; transition: transform var(--t-fast); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }
.lang__menu {
    position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
    padding: 6px; border-radius: var(--radius);
    background: var(--panel-2); border: 1px solid var(--gold-line);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__opt {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--text-2); font-size: 0.88rem; font-weight: 500;
}
.lang__opt:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang__opt[aria-current="true"] { color: var(--gold); background: rgba(227, 189, 106, 0.12); }

/* Colonne principale */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   6. TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px;
    background: var(--bg-topbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-line);
}

.burger {
    width: 40px; height: 40px; flex: 0 0 auto;
    display: grid; place-items: center; border-radius: var(--radius-sm);
    border: 1px solid var(--gold-line); color: var(--gold);
}
.burger svg { width: 20px; height: 20px; }

.topbar__logo { width: 92px; flex: 0 0 auto; }

/* min-width:0 — sans quoi la largeur intrinsèque de l'<input> empêche
   le champ de rétrécir et fait déborder le topbar sur petit écran. */
.search { position: relative; flex: 1; min-width: 0; max-width: 460px; }
.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(--radius-pill);
    border: 1px solid var(--gold-line);
    background: rgba(0, 0, 0, 0.3); color: var(--text);
    font-size: 0.92rem;
}
.search__input::placeholder { color: var(--text-dim); }
.search__input:focus { outline: none; border-color: var(--gold); }

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

/* --------------------------------------------------------------------------
   7. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-pill);
    font-size: 0.88rem; font-weight: 700; letter-spacing: 0.03em;
    text-transform: uppercase; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background 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, 0.55);
    box-shadow: 0 4px 16px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { color: #04150f; box-shadow: 0 8px 24px var(--green-glow); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold-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, 0.25);
}
.btn--gold:hover { color: #1c1305; }

.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   8. CONTENU — largeur et rythme
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 860px; }

.section { padding: 34px 0; }
.section--tight { padding: 20px 0; }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-head__icon { width: 30px; height: 30px; flex: 0 0 auto; color: var(--gold); }
.section-head__title {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700;
    letter-spacing: 0.01em; color: var(--text);
}
.section-head__rule {
    flex: 1; height: 1px; min-width: 20px;
    background: linear-gradient(90deg, var(--gold-line), transparent);
}

/* --------------------------------------------------------------------------
   9. FIL D'ARIANE
   -------------------------------------------------------------------------- */
/* Marge horizontale conservée : .breadcrumb est posée sur .wrap et sa
   règle raccourcie écraserait sinon le padding latéral de celle-ci. */
.breadcrumb { padding: 16px 16px 0; }
@media (min-width: 1024px) { .breadcrumb { padding: 16px 24px 0; } }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; color: var(--text-dim); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero {
    margin-top: 20px; padding: 34px 22px; overflow: hidden;
    display: grid; gap: 24px; align-items: center;
}
.hero__inner { text-align: center; min-width: 0; }
.hero__art {
    width: 100%; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.hero__h1 {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 700; line-height: 1.25;
    letter-spacing: -0.01em; color: var(--text);
}
.hero__kicker {
    display: inline-block; margin-bottom: 6px;
    font-size: 0.86rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
}
/* Le chiffre-clé, traité comme le lettrage doré du site officiel */
.hero__figure {
    font-size: clamp(3.6rem, 12vw, 7rem);
    font-weight: 700; line-height: 0.92; letter-spacing: -0.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, 0.5));
}
.hero__upto {
    margin: 6px 0 2px; font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2);
}
.hero__amount {
    font-size: clamp(1.9rem, 6vw, 3.1rem); 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__sub { margin: 16px auto 20px; max-width: 46ch; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__note { margin-top: 16px; font-size: 0.8rem; color: var(--text-muted); }

/* Bandeau des moyens de paiement sous le hero */
.paylist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.paylist__item {
    padding: 6px 12px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(227, 189, 106, 0.18);
    font-size: 0.78rem; font-weight: 600; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   11. BANDEAU DE POINTS FORTS (3 panneaux du site officiel)
   -------------------------------------------------------------------------- */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.feature__icon { width: 44px; height: 44px; flex: 0 0 auto; color: var(--gold); }
.feature__text { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* --------------------------------------------------------------------------
   12. GRILLES DE JEUX
   -------------------------------------------------------------------------- */
.game-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.game-card {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--gold-line);
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--bg-elev) 100%);
    transition: transform var(--t-fast), border-color var(--t-fast);
}
.game-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.game-card__art {
    aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(227, 189, 106, 0.18), transparent 65%);
}
.game-card__art svg { width: 46%; height: 46%; color: var(--gold); opacity: 0.9; }
.game-card__art img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t);
}
.game-card:hover .game-card__art img { transform: scale(1.05); }
.game-card__body {
    display: block; padding: 10px 12px 12px;
    border-top: 1px solid rgba(227, 189, 106, 0.16);
}
.game-card__name {
    display: block;
    font-size: 0.88rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card__provider {
    display: block; font-size: 0.75rem; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   13. CARTES D'OFFRES BONUS
   -------------------------------------------------------------------------- */
.offers { display: grid; gap: 14px; grid-template-columns: 1fr; }
.offer { padding: 18px 20px; }
.offer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offer__label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted);
}
.offer__wager {
    padding: 3px 10px; border-radius: var(--radius-pill);
    background: rgba(227, 189, 106, 0.14); border: 1px solid var(--gold-line);
    font-size: 0.74rem; font-weight: 700; color: var(--gold);
}
.offer__value {
    margin: 8px 0 4px; font-size: 1.5rem; 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: 0.9rem; color: var(--text-2); }
.offer__cta { margin-top: 14px; }

/* --------------------------------------------------------------------------
   14. TEXTE ÉDITORIAL (SEO)
   -------------------------------------------------------------------------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }

.prose h2, .prose h3, .prose h4 {
    color: var(--text); line-height: 1.25; font-weight: 700;
    margin-top: 1.9em; margin-bottom: 0.6em;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    padding-bottom: 0.4em; border-bottom: 1px solid var(--gold-line);
}
.prose h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--gold); }
.prose h4 { font-size: 1.02rem; 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: 0.5em; }
.prose li::marker { color: var(--gold); }

.lead { font-size: 1.12rem; color: var(--text); }

/* Page hero (pages internes) */
.page-hero { padding: 26px 0 6px; }
.page-hero__title {
    font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 700;
    line-height: 1.2; letter-spacing: -0.01em;
}
.page-hero__sub { margin-top: 12px; max-width: 68ch; color: var(--text-2); font-size: 1.05rem; }
.page-hero__meta { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. ENCARTS
   -------------------------------------------------------------------------- */
.note {
    display: flex; gap: 14px; padding: 16px 18px;
    border-radius: var(--radius); border: 1px solid var(--gold-line);
    background: rgba(227, 189, 106, 0.08);
    font-size: 0.95rem; color: var(--text-2);
}
.note__icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.note strong { color: var(--text); }
.note--warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.09); }
.note--warn .note__icon { color: var(--warn); }
.note--info { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08); }
.note--info .note__icon { color: var(--info); }

/* --------------------------------------------------------------------------
   16. TABLEAUX
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gold-line); }
table.data {
    width: 100%; border-collapse: collapse; min-width: 460px;
    font-size: 0.93rem; background: var(--bg-elev);
}
table.data th, table.data td { padding: 12px 16px; text-align: left; }
table.data thead th {
    background: var(--panel-2); color: var(--gold);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    white-space: nowrap;
}
table.data tbody tr + tr { border-top: 1px solid rgba(227, 189, 106, 0.16); }
table.data tbody td { color: var(--text-2); }
table.data tbody td strong { color: var(--text); }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
    border-radius: var(--radius); border: 1px solid var(--gold-line);
    background: var(--bg-elev); overflow: hidden;
}
.faq__q {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 16px 18px; text-align: left;
    font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq__q:hover { background: rgba(255, 255, 255, 0.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 18px 16px; color: var(--text-2); font-size: 0.96rem; }
.faq__a p + p { padding-top: 0; }

/* --------------------------------------------------------------------------
   18. LISTES DE MARQUES (providers / paiements)
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(227, 189, 106, 0.2);
    font-size: 0.84rem; font-weight: 500; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   19. ÉTAPES NUMÉROTÉES
   -------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li {
    counter-increment: step; position: relative;
    padding: 16px 18px 16px 66px;
    border-radius: var(--radius); border: 1px solid var(--gold-line);
    background: var(--bg-elev); color: var(--text-2);
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 18px; top: 16px;
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; font-weight: 700; font-size: 0.95rem;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim)); color: #1c1305;
}
.steps strong { display: block; color: var(--text); margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   20. NAVIGATION PRÉCÉDENT / SUIVANT
   -------------------------------------------------------------------------- */
.pager { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 34px; }
.pager__link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius);
    border: 1px solid var(--gold-line); background: var(--bg-elev);
    color: var(--text);
}
.pager__link:hover { border-color: var(--gold); color: var(--text); }
.pager__link svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--gold); }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__label {
    display: block; font-size: 0.74rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted);
}
.pager__title { font-weight: 600; }

/* --------------------------------------------------------------------------
   21. APPEL À L'ACTION DE BAS DE PAGE
   -------------------------------------------------------------------------- */
.cta { margin-top: 36px; padding: 30px 24px; text-align: center; }
.cta__title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
.cta__text { margin: 10px auto 20px; max-width: 56ch; color: var(--text-2); }

/* --------------------------------------------------------------------------
   22. PIED DE PAGE
   -------------------------------------------------------------------------- */
.footer {
    margin-top: 50px; padding: 40px 0 100px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--gold-line);
    content-visibility: auto; contain-intrinsic-size: auto 600px;
}
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer__logo { width: 110px; margin-bottom: 12px; }
.footer__about { font-size: 0.9rem; color: var(--text-muted); max-width: 44ch; }
.footer h2 {
    margin-bottom: 12px; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.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: 0.9rem; }
.footer ul a:hover { color: var(--gold); }

.footer__bottom {
    margin-top: 32px; padding-top: 22px;
    border-top: 1px solid rgba(227, 189, 106, 0.18);
    font-size: 0.82rem; color: var(--text-muted);
}
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.badge18 {
    display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 50%; border: 2px solid var(--danger);
    color: var(--danger); font-weight: 700; font-size: 0.86rem;
}
.footer__disclaimer { max-width: 90ch; }
.footer__copy { margin-top: 14px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   23. CTA COLLANT (mobile)
   -------------------------------------------------------------------------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-topbar); backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold-line);
}

/* Voile sombre derrière la sidebar ouverte */
.scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(0, 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; }

/* --------------------------------------------------------------------------
   24. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .features { grid-template-columns: repeat(3, 1fr); }
    .offers { grid-template-columns: repeat(2, 1fr); }
    .pager { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (min-width: 1024px) {
    .sidebar { transform: none; }
    .scrim { display: none; }
    .burger, .sidebar__close, .topbar__logo { display: none; }
    .main { margin-left: var(--sidebar-w); }
    .topbar { padding: 0 24px; }
    .wrap { padding: 0 24px; }
    .offers { grid-template-columns: repeat(4, 1fr); }
    .hero { grid-template-columns: 1.05fr 0.95fr; padding: 40px; gap: 34px; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .sticky-cta { display: none; }
    .footer { padding-bottom: 40px; }
}

@media (max-width: 1023px) {
    /* Sous 1024px le topbar se réduit à burger + logo + inscription :
       la recherche et le bouton secondaire ne tiennent pas sans déborder.
       Le CTA collant prend le relais en bas d'écran. */
    .search { display: none; }
    .topbar__actions .btn--ghost { display: none; }
    .topbar__actions .btn { padding: 10px 16px; font-size: 0.82rem; }
}

@media (max-width: 520px) {
    .hero { padding: 30px 16px; }
    .feature { flex-direction: column; text-align: center; }
    .topbar { gap: 8px; }
}

@media print {
    .sidebar, .topbar, .sticky-cta, .scrim, .pager, .cta { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; color: #000; }
}
