/* ============================================
   5turbo.org - Blackjack en Ligne CSS Theme
   ============================================ */

:root {
    --bj-dark: #0f1923;
    --bj-darker: #0a1118;
    --bj-primary: #1b6b3a;
    --bj-primary-light: #27a95b;
    --bj-gold: #d4a843;
    --bj-gold-light: #f0d078;
    --bj-red: #c0392b;
    --bj-red-light: #e74c3c;
    --bj-text: #2c3e50;
    --bj-text-light: #7f8c8d;
    --bj-light: #f8f9fa;
    --bj-white: #ffffff;
    --bj-border: #e0e0e0;
    --bj-card-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --bj-radius: 12px;
    --bj-transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--bj-text);
    background: var(--bj-light);
}

/* --- HEADER --- */
.bj-header {
    background: linear-gradient(135deg, var(--bj-dark) 0%, #1a2a3a 100%);
    color: var(--bj-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.bj-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
}

.bj-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bj-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bj-logo span { color: var(--bj-gold); }

/* --- NAVIGATION --- */
.bj-nav {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.bj-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--bj-transition);
}

.bj-nav a:hover, .bj-nav a.active {
    color: var(--bj-gold);
    background: rgba(255,255,255,0.08);
}

.bj-mobile-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 1001;
}

/* Mobile nav close button (slide-out panel) */
.bj-nav-close {
    display: none;
    background: none;
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    align-self: flex-end;
    margin-right: 0.5rem;
}
@media (max-width: 768px) {
    .bj-nav.active .bj-nav-close { display: block; }
}

/* Body scroll lock when mobile nav is open */
body.bj-nav-open {
    overflow: hidden;
    touch-action: none;
}

/* --- DROPDOWN NAVIGATION --- */
.bj-dropdown {
    position: relative;
}

.bj-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bj-dropdown > a::after {
    content: '';
    border: 4px solid transparent;
    border-top-color: rgba(255,255,255,0.6);
    margin-top: 3px;
    transition: var(--bj-transition);
}

.bj-dropdown:hover > a::after {
    border-top-color: var(--bj-gold);
}

.bj-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bj-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 260px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
}

.bj-dropdown:hover .bj-dropdown-menu {
    display: block;
}

.bj-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.84rem;
    border-radius: 0;
    white-space: nowrap;
}

.bj-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--bj-gold);
}

.bj-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.4rem 0;
}

.bj-dropdown-label {
    padding: 0.5rem 1.2rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bj-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- REVIEW PAGE SPECIFIC --- */
.bj-review-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bj-review-badge {
    background: var(--bj-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.bj-review-title h1 { font-size: 2rem; margin-bottom: 0.3rem; }
.bj-review-title .bj-stars { font-size: 1.3rem; }

.bj-review-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bj-light);
    border-radius: var(--bj-radius);
}

.bj-review-stat {
    text-align: center;
}

.bj-review-stat .label {
    font-size: 0.78rem;
    color: var(--bj-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bj-review-stat .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bj-dark);
}

.bj-step-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.bj-step-list li {
    counter-increment: steps;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    background: var(--bj-light);
    border-radius: 8px;
}

.bj-step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--bj-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Guide card styles */
.bj-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bj-guide-card {
    background: var(--bj-white);
    border: 2px solid var(--bj-border);
    border-radius: var(--bj-radius);
    overflow: hidden;
    transition: var(--bj-transition);
    text-decoration: none;
    color: var(--bj-text);
}

.bj-guide-card:hover {
    border-color: var(--bj-primary);
    box-shadow: var(--bj-card-shadow);
    transform: translateY(-3px);
    text-decoration: none;
}

.bj-guide-card-body {
    padding: 1.5rem;
}

.bj-guide-card-body h3 {
    font-size: 1.1rem;
    color: var(--bj-dark);
    margin-bottom: 0.5rem;
}

.bj-guide-card-body p {
    font-size: 0.88rem;
    color: var(--bj-text-light);
    margin: 0 0 0.8rem;
    line-height: 1.5;
}

.bj-guide-tag {
    display: inline-block;
    background: var(--bj-light);
    color: var(--bj-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- HERO --- */
.bj-hero {
    background: linear-gradient(135deg, var(--bj-darker) 0%, var(--bj-dark) 40%, #1a3a2a 100%);
    color: var(--bj-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bj-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(27,107,58,0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bj-hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.bj-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bj-hero h1 .highlight { color: var(--bj-gold); }

.bj-hero .subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bj-hero-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.bj-hero-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* --- BREADCRUMBS --- */
.bj-breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--bj-text-light);
}

.bj-breadcrumbs a { color: var(--bj-primary); text-decoration: none; }
.bj-breadcrumbs a:hover { text-decoration: underline; }
.bj-breadcrumbs span { margin: 0 0.4rem; }

/* --- MAIN LAYOUT --- */
.bj-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.bj-content { min-width: 0; }

.bj-sidebar {
    position: sticky;
    top: 80px;
}

/* --- CONTENT --- */
.bj-article {
    background: var(--bj-white);
    border-radius: var(--bj-radius);
    padding: 2.5rem;
    box-shadow: var(--bj-card-shadow);
    margin-bottom: 2rem;
}

.bj-article h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--bj-dark);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bj-gold);
}

.bj-article h2:first-child { margin-top: 0; }

.bj-article h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bj-dark);
    margin: 2rem 0 0.8rem;
}

.bj-article h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bj-text);
    margin: 1.5rem 0 0.6rem;
}

.bj-article p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.bj-article ul, .bj-article ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.bj-article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.bj-article a {
    color: var(--bj-primary);
    text-decoration: none;
    font-weight: 500;
}

.bj-article a:hover { text-decoration: underline; }

/* --- AUTHOR BOX --- */
.bj-author-box {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bj-light);
    border-radius: var(--bj-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--bj-gold);
}

.bj-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bj-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}
img.bj-author-avatar {
    object-fit: cover;
    border: 3px solid var(--bj-gold);
    display: block;
}

.bj-author-info h4 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--bj-dark); }
.bj-author-info .role { font-size: 0.85rem; color: var(--bj-primary); font-weight: 500; margin-bottom: 0.4rem; }
.bj-author-info p { font-size: 0.88rem; color: var(--bj-text-light); margin: 0; line-height: 1.5; }

/* --- CASINO CARD --- */
.bj-casino-card {
    background: var(--bj-white);
    border: 2px solid var(--bj-border);
    border-radius: var(--bj-radius);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--bj-transition);
    position: relative;
}

.bj-casino-card:hover {
    border-color: var(--bj-gold);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.bj-casino-card.featured {
    border-color: var(--bj-gold);
    background: linear-gradient(to bottom, #fffbf0, var(--bj-white));
}

.bj-casino-card.featured::before {
    content: 'CHOIX #1';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--bj-gold);
    color: var(--bj-dark);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.05em;
}

.bj-casino-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bj-casino-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bj-dark);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.bj-casino-logo {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bj-dark);
    border-radius: 8px;
    padding: 6px 10px;
}
@media (max-width: 640px) {
    .bj-casino-logo { height: 48px; max-width: 140px; padding: 5px 8px; }
}

.bj-casino-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bj-stars { color: var(--bj-gold); font-size: 1.1rem; letter-spacing: 2px; }

.bj-rating-num {
    background: var(--bj-primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.bj-casino-bonus {
    background: linear-gradient(135deg, var(--bj-primary) 0%, var(--bj-primary-light) 100%);
    color: var(--bj-white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    text-align: center;
}

.bj-casino-bonus .amount {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.bj-casino-bonus .desc {
    font-size: 0.88rem;
    opacity: 0.9;
}

.bj-casino-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.bj-casino-features .feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bj-text);
}

.bj-casino-features .check { color: var(--bj-primary-light); font-weight: bold; }

.bj-casino-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bj-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: var(--bj-transition);
    cursor: pointer;
    border: none;
}

.bj-btn-primary {
    background: linear-gradient(135deg, var(--bj-gold) 0%, #e8b84d 100%);
    color: var(--bj-dark);
}

.bj-btn-primary:hover {
    background: linear-gradient(135deg, #e8b84d 0%, var(--bj-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212,168,67,0.4);
    text-decoration: none;
}

.bj-btn-secondary {
    background: transparent;
    color: var(--bj-primary);
    border: 2px solid var(--bj-primary);
}

.bj-btn-secondary:hover {
    background: var(--bj-primary);
    color: white;
    text-decoration: none;
}

.bj-btn-red {
    background: linear-gradient(135deg, var(--bj-red) 0%, var(--bj-red-light) 100%);
    color: white;
}

.bj-btn-red:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(192,57,43,0.4);
    text-decoration: none;
}

.bj-casino-terms {
    font-size: 0.78rem;
    color: var(--bj-text-light);
    margin-top: 0.8rem;
}

/* --- TABLE OF CONTENTS --- */
.bj-toc {
    background: var(--bj-white);
    border-radius: var(--bj-radius);
    padding: 1.5rem;
    box-shadow: var(--bj-card-shadow);
    margin-bottom: 1.5rem;
}

.bj-toc h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bj-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bj-gold);
}

.bj-toc ul { list-style: none; margin: 0; padding: 0; }

.bj-toc li { margin-bottom: 0.4rem; }

.bj-toc a {
    color: var(--bj-text);
    text-decoration: none;
    font-size: 0.88rem;
    display: block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--bj-transition);
}

.bj-toc a:hover {
    background: var(--bj-light);
    color: var(--bj-primary);
}

/* --- SIDEBAR WIDGETS --- */
.bj-widget {
    background: var(--bj-white);
    border-radius: var(--bj-radius);
    padding: 1.5rem;
    box-shadow: var(--bj-card-shadow);
    margin-bottom: 1.5rem;
}

.bj-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bj-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bj-gold);
}

.bj-widget ul { list-style: none; margin: 0; padding: 0; }

.bj-widget li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bj-border);
}

.bj-widget li:last-child { border-bottom: none; }

.bj-widget a {
    color: var(--bj-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--bj-transition);
}

.bj-widget a:hover { color: var(--bj-primary); }

/* --- INFO BOX --- */
.bj-info-box {
    padding: 1.5rem;
    border-radius: var(--bj-radius);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.bj-info-box.tip {
    background: #e8f5e9;
    border-left: 4px solid var(--bj-primary);
}

.bj-info-box.warning {
    background: #fff3e0;
    border-left: 4px solid #f39c12;
}

.bj-info-box.danger {
    background: #ffebee;
    border-left: 4px solid var(--bj-red);
}

.bj-info-box.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.bj-info-box strong { display: block; margin-bottom: 0.5rem; }

/* --- STRATEGY TABLE --- */
.bj-strategy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.bj-strategy-table thead th {
    background: var(--bj-dark);
    color: var(--bj-white);
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.bj-strategy-table tbody td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--bj-border);
    font-weight: 600;
}

.bj-strategy-table .row-header {
    background: var(--bj-dark);
    color: var(--bj-white);
    font-weight: 700;
    min-width: 50px;
}

.cell-hit { background: #ffcdd2; color: #b71c1c; }
.cell-stand { background: #c8e6c9; color: #1b5e20; }
.cell-double { background: #fff9c4; color: #f57f17; }
.cell-split { background: #bbdefb; color: #0d47a1; }
.cell-surrender { background: #e1bee7; color: #6a1b9a; }

/* --- COMPARISON TABLE --- */
.bj-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bj-white);
    border-radius: var(--bj-radius);
    overflow: hidden;
}

.bj-compare-table th {
    background: var(--bj-dark);
    color: var(--bj-white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.bj-compare-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--bj-border);
    font-size: 0.9rem;
}

.bj-compare-table tr:hover { background: var(--bj-light); }

.bj-compare-table .casino-name { font-weight: 700; color: var(--bj-dark); }

/* --- FAQ --- */
.bj-faq { margin: 2rem 0; }

.bj-faq-item {
    border: 1px solid var(--bj-border);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.bj-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: var(--bj-white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bj-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--bj-transition);
}

.bj-faq-question:hover { background: var(--bj-light); }

.bj-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--bj-gold);
    transition: var(--bj-transition);
}

.bj-faq-item.open .bj-faq-question::after {
    content: '-';
}

.bj-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--bj-text);
    display: none;
}

.bj-faq-item.open .bj-faq-answer { display: block; }

/* --- RESPONSIBLE GAMBLING --- */
.bj-responsible {
    background: var(--bj-dark);
    color: rgba(255,255,255,0.7);
    padding: 2rem;
    border-radius: var(--bj-radius);
    margin: 2rem 0;
    text-align: center;
    font-size: 0.88rem;
}

.bj-responsible h3 {
    color: var(--bj-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bj-responsible a { color: var(--bj-gold); }

/* --- FOOTER --- */
.bj-footer {
    background: var(--bj-darker);
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
}

.bj-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.bj-footer h4 {
    color: var(--bj-gold);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bj-footer ul { list-style: none; padding: 0; margin: 0; }

.bj-footer li { margin-bottom: 0.5rem; }

.bj-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--bj-transition);
}

.bj-footer a:hover { color: var(--bj-gold); }

.bj-footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
}

.bj-footer-bottom p { margin-bottom: 0.5rem; }

/* --- LINK GRID --- */
.bj-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bj-link-card {
    background: var(--bj-white);
    border: 2px solid var(--bj-border);
    border-radius: var(--bj-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--bj-text);
    transition: var(--bj-transition);
}

.bj-link-card:hover {
    border-color: var(--bj-primary);
    box-shadow: var(--bj-card-shadow);
    transform: translateY(-3px);
    text-decoration: none;
}

.bj-link-card h3 {
    font-size: 1.1rem;
    color: var(--bj-dark);
    margin-bottom: 0.5rem;
}

.bj-link-card p {
    font-size: 0.88rem;
    color: var(--bj-text-light);
    margin: 0;
}

/* --- PROS/CONS --- */
.bj-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.bj-pros, .bj-cons {
    padding: 1.2rem;
    border-radius: var(--bj-radius);
}

.bj-pros {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.bj-cons {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.bj-pros h4, .bj-cons h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.bj-pros h4 { color: #1b5e20; }
.bj-cons h4 { color: #b71c1c; }

.bj-pros ul, .bj-cons ul { list-style: none; padding: 0; margin: 0; }

.bj-pros li::before { content: '+ '; color: #1b5e20; font-weight: 700; }
.bj-cons li::before { content: '- '; color: #b71c1c; font-weight: 700; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bj-main {
        grid-template-columns: 1fr;
    }
    .bj-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bj-hero { padding: 0.15rem 1rem 0; }
    .bj-hero h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
    .bj-hero .subtitle { font-size: 0.85rem; margin-bottom: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .bj-atf-hero .bj-atf-table-inner { padding: 0.8rem 0 1rem; }
    .bj-atf-hero .bj-atf-title { font-size: 0.95rem; margin-bottom: 0.5rem; }
    .bj-atf-hero p { display: none; }
    .bj-article { padding: 1.5rem; }
    .bj-article h2 { font-size: 1.4rem; }
    .bj-casino-features { grid-template-columns: 1fr; }
    .bj-pros-cons { grid-template-columns: 1fr; }
    .bj-header-inner { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }
    .bj-nav { display: none; flex-direction: column; width: 100%; text-align: center; }
    .bj-nav.active { display: flex; }
    .bj-mobile-toggle { display: block; }
    .bj-hero-meta { flex-direction: column; gap: 0.4rem; align-items: center; }
    .bj-hero-meta span { justify-content: center; text-align: center; font-size: 0.8rem; line-height: 1.4; }
    .bj-footer-inner { grid-template-columns: 1fr; }
}

/* --- JAVASCRIPT INTERACTIONS --- */
.bj-faq-item.open .bj-faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Full-width variant (no sidebar) */
.bj-main.full-width {
    grid-template-columns: 1fr;
    max-width: 900px;
}

/* --- ABOVE-THE-FOLD COMPARISON TABLE --- */
.bj-atf-table-wrap {
    background: var(--bj-white);
    border-bottom: 1px solid var(--bj-border);
}

.bj-atf-hero {
    background: linear-gradient(180deg, var(--bj-dark) 0%, #1a2a3a 100%);
    border-bottom: none;
}

.bj-atf-hero .bj-atf-title {
    color: var(--bj-white);
}

.bj-atf-hero p {
    color: rgba(255,255,255,0.6) !important;
}

.bj-atf-hero p strong {
    color: var(--bj-gold);
}

.bj-atf-hero .bj-atf-table {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
}

.bj-atf-hero .bj-atf-table thead th {
    background: rgba(255,255,255,0.08);
    color: var(--bj-gold);
}

.bj-atf-hero .bj-atf-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bj-atf-hero .bj-atf-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.bj-atf-hero .bj-atf-table tbody td {
    color: rgba(255,255,255,0.85);
}

.bj-atf-hero .bj-atf-table tbody td strong {
    color: var(--bj-white);
}

.bj-atf-hero .atf-name {
    color: var(--bj-white);
}

.bj-atf-hero .atf-logo-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.bj-atf-table-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
}

.bj-atf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bj-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.bj-atf-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bj-atf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.bj-atf-table thead th {
    background: var(--bj-dark);
    color: var(--bj-white);
    padding: 0.75rem 0.8rem;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.bj-atf-table thead th:last-child {
    text-align: center;
}

.bj-atf-table tbody tr {
    border-bottom: 1px solid var(--bj-border);
    transition: background 0.15s ease;
}

.bj-atf-table tbody tr:hover {
    background: #f8faf8;
}

.bj-atf-table tbody td {
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
    vertical-align: middle;
    color: var(--bj-text);
}

.bj-atf-table tbody td strong {
    color: var(--bj-dark);
}

.atf-casino {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--bj-dark);
    white-space: nowrap;
    min-width: 130px;
    position: relative;
}

/* Rank counter — global so it works on every viewport */
.bj-atf-table tbody { counter-reset: bj-rank; }
.bj-atf-table tbody tr { counter-increment: bj-rank; }

/* Desktop rank badge: gold pill in the top-left of each casino cell */
@media (min-width: 769px) {
    .bj-atf-table tbody td.atf-casino::before {
        content: '#' counter(bj-rank);
        position: absolute;
        top: 0;
        left: 0;
        background: var(--bj-gold);
        color: var(--bj-dark);
        font-weight: 800;
        padding: 0.18rem 0.5rem;
        border-radius: 5px;
        font-size: 0.78rem;
        line-height: 1.1;
        letter-spacing: 0.02em;
        z-index: 2;
        box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }
    .bj-atf-hero .bj-atf-table tbody td.atf-casino::before {
        box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
}

.atf-logo-box {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bj-dark);
    border-radius: 8px;
    padding: 8px 12px;
    overflow: hidden;
}

.atf-logo {
    max-height: 64px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.atf-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bj-dark);
    text-align: center;
    line-height: 1.2;
}

.atf-cta {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    white-space: nowrap;
    border-radius: 8px !important;
    background: linear-gradient(180deg, var(--bj-primary-light) 0%, var(--bj-primary) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(27,107,58,0.32), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    letter-spacing: 0.02em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.atf-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27,107,58,0.42), inset 0 1px 0 rgba(255,255,255,0.18) !important;
    filter: brightness(1.05);
}
.atf-cta:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

/* --- ATF MOBILE: box-card layout matching desktop dark theme --- */
@media (max-width: 768px) {
    .bj-atf-table-inner { padding: 1rem; }
    .bj-atf-title { font-size: 1.1rem; }

    .bj-atf-scroll { overflow-x: visible; }
    .bj-atf-table { min-width: 0; background: transparent; }
    .bj-atf-table thead { display: none; }

    /* Rank counter scoped to the table body */
    .bj-atf-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.95rem;
        counter-reset: bj-rank;
    }

    /* Each row becomes a dark box matching desktop colors */
    .bj-atf-table tbody tr {
        display: block;
        background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 14px;
        padding: 1rem 1rem 1.05rem;
        box-shadow: 0 4px 14px rgba(0,0,0,0.25);
        position: relative;
        counter-increment: bj-rank;
    }
    .bj-atf-table tbody tr:hover { border-color: var(--bj-gold); }

    /* Rank badge top-left */
    .bj-atf-table tbody tr::before {
        content: '#' counter(bj-rank);
        position: absolute;
        top: 0.85rem;
        left: 1rem;
        background: var(--bj-gold);
        color: var(--bj-dark);
        font-weight: 800;
        padding: 0.2rem 0.55rem;
        border-radius: 6px;
        font-size: 0.82rem;
        line-height: 1.1;
        letter-spacing: 0.02em;
    }

    .bj-atf-table tbody td { color: rgba(255,255,255,0.85); padding: 0; }
    .bj-atf-table tbody td strong { color: #fff; }

    /* Casino cell: logo + name on the top row, indented past the #rank */
    .bj-atf-table tbody td.atf-casino {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        padding-left: 3rem;
        margin-bottom: 0.85rem;
        min-width: 0;
    }
    .bj-atf-table tbody td.atf-casino .atf-logo-box {
        width: 100px;
        height: 64px;
        padding: 6px 10px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .bj-atf-table tbody td.atf-casino .atf-logo {
        max-height: 52px;
        max-width: 86px;
    }
    .bj-atf-table tbody td.atf-casino .atf-name {
        font-size: 1.05rem;
        color: #fff;
        font-weight: 700;
        text-align: left;
        line-height: 1.2;
    }

    /* Hide Note (rating) — replaced by #rank badge */
    .bj-atf-table tbody td:nth-child(2) { display: none; }

    /* Bonus: attractive gold callout */
    .bj-atf-table tbody td:nth-child(3) {
        display: block;
        font-weight: 700;
        color: var(--bj-gold);
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
        line-height: 1.25;
    }
    .bj-atf-table tbody td:nth-child(3)::before {
        content: 'Bonus de bienvenue';
        display: block;
        font-weight: 500;
        color: rgba(255,255,255,0.55);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.18rem;
    }

    /* Feature tags: show Jeux (4), RTP (5), Live Casino (7) as chips */
    .bj-atf-table tbody td:nth-child(4),
    .bj-atf-table tbody td:nth-child(5),
    .bj-atf-table tbody td:nth-child(7) {
        display: inline-block;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.14);
        color: rgba(255,255,255,0.9);
        border-radius: 999px;
        padding: 0.28rem 0.75rem;
        font-size: 0.78rem;
        margin: 0 0.35rem 0.85rem 0;
        font-weight: 500;
        line-height: 1.1;
    }
    .bj-atf-table tbody td:nth-child(4)::before { content: '🎮 '; }
    .bj-atf-table tbody td:nth-child(5)::before { content: 'RTP '; color: rgba(255,255,255,0.55); font-weight: 400; }
    .bj-atf-table tbody td:nth-child(7)::before { content: '🎬 Live '; color: rgba(255,255,255,0.55); font-weight: 400; }

    /* Hide Retrait (6) and Mobile (8) cells on mobile */
    .bj-atf-table tbody td:nth-child(6),
    .bj-atf-table tbody td:nth-child(8) { display: none; }

    /* CTA: full-width button */
    .bj-atf-table tbody td:nth-child(9) {
        display: block;
        padding-top: 0.2rem;
    }
    .atf-cta {
        width: 100% !important;
        display: block !important;
        padding: 0.85rem 1rem !important;
        font-size: 0.98rem !important;
        text-align: center !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em;
    }

    /* "Le mieux pour : X" tagline below CTA, fed by data-best-for on <tr> */
    .bj-atf-table tbody tr[data-best-for]::after {
        content: '★ Le mieux pour : ' attr(data-best-for);
        display: block;
        text-align: center;
        margin-top: 0.65rem;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
        font-style: italic;
        letter-spacing: 0.01em;
    }
}

/* ====================================================== */
/* SECTION SPACING TIGHTEN (sitewide, post-launch trim)   */
/* ====================================================== */

/* Hero: trim vertical padding + tighten internal gaps */
.bj-hero { padding: 2rem 2rem 1.4rem; }
.bj-hero h1 { margin-bottom: 0.5rem; }
.bj-hero .subtitle { margin-bottom: 1rem; }
.bj-hero-meta { gap: 1.2rem; }
.bj-hero-cta { margin-bottom: 0.8rem; }

/* Breadcrumbs: compact band */
.bj-breadcrumbs { padding: 0.5rem 2rem; }

/* Main grid: tighter gutter + bottom padding */
.bj-main { padding: 1.2rem 2rem 1.5rem; gap: 1.5rem; }

/* Article cards: reduce padding + inter-card margin */
.bj-article { padding: 1.5rem 1.8rem; margin-bottom: 1rem; }

/* Heading rhythm inside articles */
.bj-article h2 { margin: 1.5rem 0 0.6rem; padding-bottom: 0.4rem; }
.bj-article h2:first-child { margin-top: 0; }
.bj-article h3 { margin: 1.1rem 0 0.5rem; }
.bj-article h4 { margin: 0.9rem 0 0.4rem; }
.bj-article p { margin: 0 0 0.7rem; }
.bj-article ul, .bj-article ol { margin: 0 0 0.8rem 1.2rem; }
.bj-article li { margin-bottom: 0.25rem; }

/* Info-box callouts: tighter padding */
.bj-info-box { padding: 0.9rem 1rem; margin: 0.8rem 0 1rem; }

/* Casino card list: cards closer together */
.bj-casino-card { margin-bottom: 1rem; padding: 1.2rem 1.4rem; }

/* Comparison tables: trim vertical breathing room */
.bj-compare-table, .bj-strategy-table, .bj-atf-table { margin: 0.6rem 0 1rem; }
.bj-compare-table td, .bj-compare-table th { padding: 0.5rem 0.7rem; }

/* Mobile: even tighter */
@media (max-width: 768px) {
    .bj-hero { padding: 1.2rem 1rem 1rem; }
    .bj-main { padding: 0.8rem 1rem 1.2rem; gap: 1rem; }
    .bj-article { padding: 1.2rem 1.1rem; margin-bottom: 0.7rem; }
    .bj-article h2 { margin: 1.1rem 0 0.5rem; }
    .bj-article h3 { margin: 0.9rem 0 0.4rem; }
    .bj-article h4 { margin: 0.7rem 0 0.3rem; }
    .bj-breadcrumbs { padding: 0.4rem 1rem; }
    .bj-casino-card { margin-bottom: 0.7rem; padding: 1rem; }
}

/* ====================================================== */
/* MOBILE HERO — 50% size reduction (sitewide, every page)*/
/* ====================================================== */
@media (max-width: 768px) {
    .bj-hero { padding: 0.6rem 0.9rem 0.55rem !important; }
    .bj-hero h1 { font-size: 1.05rem !important; line-height: 1.25 !important; margin-bottom: 0.3rem !important; }
    .bj-hero .subtitle {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.45rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .bj-hero-cta { margin: 0.35rem 0 0.4rem !important; }
    .bj-hero-cta .bj-btn { padding: 0.45rem 0.9rem !important; font-size: 0.82rem !important; }
    .bj-hero-meta { gap: 0.15rem !important; font-size: 0.66rem !important; margin-top: 0.25rem !important; }
    .bj-hero-meta span { font-size: 0.66rem !important; line-height: 1.25 !important; }
    /* Inline-style hero backgrounds set fixed bg images — keep them but shrink height impact */
    .bj-hero, .bj-hero[style] { background-size: cover !important; background-position: center !important; }
    /* Breadcrumbs inside the hero stay tight */
    .bj-hero .bj-breadcrumbs { padding: 0.3rem 0 0 !important; font-size: 0.72rem !important; }
}

/* Phones <=380px: trim a hair more so the H1+CTA still fit above the toplist */
@media (max-width: 380px) {
    .bj-hero h1 { font-size: 0.98rem !important; }
    .bj-hero .subtitle { font-size: 0.7rem !important; -webkit-line-clamp: 1 !important; }
    .bj-hero-meta { font-size: 0.62rem !important; }
}

/* ====================================================== */
/* AUTHOR CHIP — portrait next to byline in hero          */
/* ====================================================== */
.bj-hero-meta .bj-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.bj-hero-meta .bj-author-portrait {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bj-gold);
    flex-shrink: 0;
    background: var(--bj-dark);
}
@media (max-width: 768px) {
    .bj-hero-meta .bj-author-portrait {
        width: 22px;
        height: 22px;
        border-width: 1.5px;
    }
}
/* Larger version for author hub hero */
.bj-hero .bj-author-portrait-large {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bj-gold);
    margin: 0 auto 0.8rem;
    background: var(--bj-dark);
}
@media (max-width: 768px) {
    .bj-hero .bj-author-portrait-large {
        width: 64px;
        height: 64px;
        border-width: 2px;
        margin-bottom: 0.5rem;
    }
}

/* ====================================================== */
/* BONUS EMPHASIS — make the bonus stand out in toplists  */
/* ====================================================== */

/* ATF table — desktop: gold banner on the bonus cell (3rd column), not a button */
.bj-atf-table tbody td:nth-child(3) {
    color: var(--bj-dark) !important;
    background: linear-gradient(135deg, var(--bj-gold) 0%, var(--bj-gold-light) 100%);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    box-shadow: none;
    border: none;
    text-align: center;
    white-space: nowrap;
}
/* On dark hero variant: keep the gold pill — already legible */
.bj-atf-hero .bj-atf-table tbody td:nth-child(3) {
    color: var(--bj-dark) !important;
}

/* Mobile ATF — bonus cell is already the "Bonus" row; pill background */
@media (max-width: 768px) {
    .bj-atf-table tbody td:nth-child(3) {
        background: linear-gradient(135deg, var(--bj-gold) 0%, var(--bj-gold-light) 100%) !important;
        color: var(--bj-dark) !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        padding: 0.5rem 0.7rem !important;
        border-radius: 6px;
        text-align: center;
        margin-top: 0.2rem;
        justify-self: stretch;
    }
    .bj-atf-table tbody td:nth-child(3)::before {
        content: '🎁 ' !important;
        color: var(--bj-dark) !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
    }
}

/* Comparison table (homepage lower table + sub-pages) — bonus column = 3rd */
.bj-compare-table td:nth-child(3) {
    background: linear-gradient(135deg, var(--bj-gold) 0%, var(--bj-gold-light) 100%);
    color: var(--bj-dark);
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    border-radius: 4px;
}

/* Casino detail cards: punch up the .amount headline */
.bj-casino-bonus {
    background: linear-gradient(135deg, var(--bj-primary) 0%, var(--bj-primary-light) 100%);
    box-shadow: 0 4px 14px rgba(27,107,58,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    border: 1px solid rgba(212,168,67,0.35);
}
.bj-casino-bonus .amount {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 0 rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    color: var(--bj-gold-light);
}
.bj-casino-bonus .desc { font-size: 0.92rem; opacity: 0.95; }
@media (max-width: 768px) {
    .bj-casino-bonus .amount { font-size: 1.5rem !important; }
}

/* Featured (top-1) casino card: make the bonus pop even more */
.bj-casino-card.featured .bj-casino-bonus {
    background: linear-gradient(135deg, #1b6b3a 0%, #27a95b 60%, #d4a843 130%);
}
.bj-casino-card.featured .bj-casino-bonus .amount {
    font-size: 2.05rem !important;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 0 16px rgba(212,168,67,0.45);
}
@media (max-width: 768px) {
    .bj-casino-card.featured .bj-casino-bonus .amount { font-size: 1.65rem !important; }
}

/* ====================================================== */
/* REFERENCE-STYLE TOPLIST CARDS                          */
/* Mimic the Texas Best 8 "Top Pick" card layout          */
/* ====================================================== */

/* === Landing-page detail cards (.bj-casino-card) ===
   Restyle to a clean white centered card with rank badge,
   gold bonus pill, feature chips, single big CTA. */
.bj-casino-card {
    position: relative;
    background: #fff;
    border: 2px solid rgba(212,168,67,0.55);
    border-radius: 14px;
    padding: 1.4rem 1.2rem 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 22px rgba(15,25,35,0.08);
    text-align: center;
    overflow: visible;
}
.bj-casino-card.featured {
    border-color: var(--bj-red);
    box-shadow: 0 8px 28px rgba(192,57,43,0.18);
}
/* TOP PICK badge for the featured card */
.bj-casino-card.featured::before {
    content: 'TOP PICK';
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--bj-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(192,57,43,0.4);
    z-index: 2;
}
/* Rank label "#N" pulled from the existing "N. Brand" name */
.bj-casino-card .bj-casino-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0.6rem;
}
.bj-casino-card .bj-casino-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bj-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.bj-casino-card .bj-casino-rating {
    justify-content: center !important;
}
.bj-casino-card .bj-stars { color: var(--bj-gold); }
.bj-casino-card .bj-rating-num {
    color: var(--bj-text-light);
    font-size: 0.92rem;
    font-weight: 600;
}
/* Bonus pill — label/banner style, NOT a button (no shadow, no 3D inner highlight) */
.bj-casino-card .bj-casino-bonus {
    background: linear-gradient(135deg, #d4a843 0%, #f0d078 100%) !important;
    color: var(--bj-dark) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 4px;
    margin: 0.8rem auto;
    padding: 0.6rem 1rem;
    max-width: 320px;
}
.bj-casino-card .bj-casino-bonus .amount {
    color: var(--bj-dark) !important;
    font-size: 1.55rem !important;
    text-shadow: none !important;
}
.bj-casino-card .bj-casino-bonus .desc {
    color: rgba(15,25,35,0.7) !important;
    font-size: 0.82rem;
    opacity: 1;
}
.bj-casino-card.featured .bj-casino-bonus {
    background: linear-gradient(135deg, #d4a843 0%, #e9be58 50%, #f0d078 100%) !important;
}
.bj-casino-card.featured .bj-casino-bonus .amount {
    color: var(--bj-dark) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3) !important;
}
/* Features turn into chip row */
.bj-casino-card .bj-casino-features {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem !important;
    margin: 0.7rem 0 0.8rem;
    grid-template-columns: none !important;
}
.bj-casino-card .feat {
    background: #f7f4ec;
    color: var(--bj-text);
    border: 1px solid rgba(212,168,67,0.4);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
}
.bj-casino-card .feat .check { display: none; }
/* CTA: single dominant button, full width like reference */
.bj-casino-card .bj-casino-cta {
    flex-direction: column !important;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.bj-casino-card .bj-casino-cta a.bj-btn-primary {
    background: var(--bj-red) !important;
    background-image: linear-gradient(180deg, #e74c3c 0%, var(--bj-red) 100%) !important;
    color: #fff !important;
    border: none !important;
    width: 100%;
    padding: 0.85rem 1rem !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(192,57,43,0.35);
}
.bj-casino-card .bj-casino-cta a.bj-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(192,57,43,0.45);
}
.bj-casino-card .bj-casino-cta a.bj-btn-secondary {
    background: transparent !important;
    color: var(--bj-primary) !important;
    border: 1px solid var(--bj-primary) !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem !important;
    width: 100%;
}
.bj-casino-card .bj-casino-terms {
    font-size: 0.74rem;
    color: var(--bj-text-light);
    font-style: italic;
    margin-top: 0.8rem;
}

/* === Mobile ATF box cards — dark theme matching desktop hero === */
@media (max-width: 768px) {
    /* Reset prior table behavior so the dark box wins */
    .bj-atf-table tbody tr {
        display: block !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)) !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        border-radius: 14px !important;
        padding: 1.1rem 1rem 1.1rem !important;
        box-shadow: 0 6px 22px rgba(0,0,0,0.28) !important;
        position: relative;
        margin-bottom: 0.95rem;
    }
    /* First row: TOP PICK green highlight */
    .bj-atf-table tbody tr:first-child {
        border-color: var(--bj-primary-light) !important;
        box-shadow: 0 8px 28px rgba(39,169,91,0.30) !important;
    }
    .bj-atf-table tbody tr:first-child > td.atf-casino::after {
        content: 'TOP PICK';
        position: absolute;
        top: -10px;
        right: 14px;
        left: auto;
        background: var(--bj-primary-light);
        color: #fff;
        font-weight: 800;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        padding: 0.3rem 0.7rem;
        border-radius: 5px;
        box-shadow: 0 2px 6px rgba(39,169,91,0.45);
    }

    /* Rank badge — top-left gold */
    .bj-atf-table tbody tr::before {
        content: '#' counter(bj-rank);
        position: absolute;
        top: 0.85rem;
        left: 0.9rem;
        background: var(--bj-gold);
        color: var(--bj-dark);
        font-weight: 800;
        padding: 0.2rem 0.55rem;
        border-radius: 6px;
        font-size: 0.82rem;
        line-height: 1.1;
        z-index: 1;
    }

    /* Casino cell: logo centered above the name, both centered horizontally */
    .bj-atf-table tbody td.atf-casino {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.55rem;
        padding-left: 0 !important;
        padding-top: 2.6rem !important;
        margin-bottom: 1rem;
        text-align: center !important;
        min-width: 0;
        background: transparent !important;
    }
    .bj-atf-table tbody td.atf-casino .atf-logo-box {
        width: 140px !important;
        height: 84px !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        flex-shrink: 0;
        margin: 0 auto !important;
        box-shadow: none !important;
    }
    .bj-atf-table tbody td.atf-casino .atf-logo {
        max-height: 68px !important;
        max-width: 116px !important;
    }
    .bj-atf-table tbody td.atf-casino .atf-name {
        color: #fff !important;
        font-size: 1.1rem !important;
        font-weight: 800;
        text-align: center !important;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    /* Hide Note (replaced by #rank badge) */
    .bj-atf-table tbody td:nth-child(2) { display: none !important; }

    /* Bonus: gold banner, centered */
    .bj-atf-table tbody td:nth-child(3) {
        display: block !important;
        background: linear-gradient(135deg, #d4a843 0%, #f0d078 100%) !important;
        color: var(--bj-dark) !important;
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        padding: 0.55rem 1rem !important;
        border-radius: 6px !important;
        margin: 0 auto 0.85rem !important;
        max-width: 290px;
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        white-space: normal !important;
        line-height: 1.25;
    }
    .bj-atf-table tbody td:nth-child(3)::before {
        content: '🎁 ' !important;
        font-size: 1rem !important;
        color: var(--bj-dark) !important;
        font-weight: 800;
    }

    /* Feature chips: Jeux (4), RTP (5), Live (7) */
    .bj-atf-table tbody td:nth-child(4),
    .bj-atf-table tbody td:nth-child(5),
    .bj-atf-table tbody td:nth-child(7) {
        display: inline-block !important;
        background: rgba(255,255,255,0.07) !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        color: rgba(255,255,255,0.92) !important;
        border-radius: 999px !important;
        padding: 0.3rem 0.75rem !important;
        font-size: 0.78rem !important;
        margin: 0 0.35rem 0.85rem 0 !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        text-align: left !important;
    }
    .bj-atf-table tbody td:nth-child(4)::before { content: '🎮 '; }
    .bj-atf-table tbody td:nth-child(5)::before { content: 'RTP '; color: rgba(255,255,255,0.55); font-weight: 400; }
    .bj-atf-table tbody td:nth-child(7)::before { content: '🎬 Live '; color: rgba(255,255,255,0.55); font-weight: 400; }

    /* Hide Retrait (6), Mobile (8) */
    .bj-atf-table tbody td:nth-child(6),
    .bj-atf-table tbody td:nth-child(8) { display: none !important; }

    /* CTA — red full-width */
    .bj-atf-table tbody td:nth-child(9) {
        display: block !important;
        padding-top: 0.2rem !important;
    }
    .bj-atf-table tbody .atf-cta {
        background: linear-gradient(180deg, var(--bj-primary-light) 0%, var(--bj-primary) 100%) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em;
        padding: 0.85rem 1rem !important;
        box-shadow: 0 4px 12px rgba(27,107,58,0.35) !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* "Le mieux pour : X" caption under CTA */
    .bj-atf-table tbody tr[data-best-for]::after {
        content: '★ Le mieux pour : ' attr(data-best-for);
        display: block;
        text-align: center;
        margin-top: 0.65rem;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
        font-style: italic;
        letter-spacing: 0.01em;
    }
}

/* === Mobile nav: larger logo + attractive CTA === */
@media (max-width: 768px) {
    .bj-header { padding: 0.5rem 1rem !important; }
    .bj-header-inner { gap: 0.6rem; align-items: center; }
    .bj-logo img { height: 52px !important; }
    /* Make the CTA inside the slide-out panel pop */
    .nav-cta, .bj-nav .bj-btn-primary, .bj-nav a.cta {
        display: block;
        margin: 1rem 1.2rem 0;
        background: linear-gradient(180deg, var(--bj-primary-light) 0%, var(--bj-primary) 100%);
        color: #fff !important;
        text-align: center;
        font-weight: 800;
        padding: 0.85rem 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(27,107,58,0.45);
        text-decoration: none;
    }
}
