/* ==========================================================================
   TopCazzinosEnLigne.fr - Clean Modern Design System & Stylesheet
   Ultra-Clean Midnight & Emerald Aesthetic (Zero AI Slop / No Blur / No Glow)
   ========================================================================== */

:root {
    --bg-dark: #0b131e;
    --bg-darker: #060b12;
    --bg-card: #0f1c2a;
    --bg-card-hover: #142438;
    --bg-card-border: rgba(16, 185, 129, 0.4);
    --bg-card-border-hover: rgba(6, 182, 212, 0.7);
    
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    
    --gold-primary: #fbbf24;
    --gold-secondary: #f59e0b;
    
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.88);
    --text-dim: rgba(255, 255, 255, 0.65);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-emerald);
    color: #000000;
    padding: 8px 16px;
    font-weight: 700;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Top 18+ Regulatory Notice Bar
   ========================================================================== */
.top-notice-bar {
    background: #060b12;
    color: #ffffff;
    border-bottom: 1px solid rgba(16, 185, 129, 0.35);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 50;
}

.top-notice-bar img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.top-notice-bar span {
    color: rgba(255, 255, 255, 0.92);
}

.top-notice-bar strong {
    color: #ef4444;
    font-weight: 700;
}

/* ==========================================================================
   Header & Navbar Navigation
   ========================================================================== */
.navbar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: #0b131e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-emerald);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-emerald);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Mobile Navigation Overlay Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #060b12;
    border-left: 1px solid rgba(16, 185, 129, 0.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 40px 30px;
    gap: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Header Section (Solid Clean Typography - No Text Gradients)
   ========================================================================== */
.hero-section {
    padding: 50px 20px 35px 20px;
    text-align: center;
    position: relative;
    background: #0b131e;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-title span {
    color: var(--accent-emerald);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 740px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-emerald);
    margin: 28px auto 0 auto;
    border-radius: 3px;
}

/* ==========================================================================
   Rearranged Casino Cards Grid Section
   Order: 1. Brand Icon Box | 2. Rank Badge | 3. Description Body | 4. Score Box | 5. CTA Button
   ========================================================================== */
.main-content {
    flex: 1;
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card Block Styling (Solid Dark Background - No Blur - Neutral Shadows) */
.tcel-card-action {
    cursor: pointer;
    user-select: none;
}

.exact-casino-card {
    position: relative;
    background: var(--bg-card);
    border: 1.5px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 140px 56px 1fr 90px 220px;
    align-items: center;
    gap: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.exact-casino-card:hover {
    transform: translateY(-3px);
    border-color: var(--bg-card-border-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

/* Element 1: Brand Icon Box */
.brand-icon-box {
    width: 135px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.25s ease, border-color 0.25s ease;
    margin: 0;
}

.exact-casino-card:hover .brand-icon-box {
    transform: scale(1.04);
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.brand-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Element 2: Rank Number Badge */
.card-number-badge {
    width: 52px;
    height: 52px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 1.5rem;
    font-weight: 900;
}

.exact-casino-card:nth-child(1) .card-number-badge {
    background: var(--gold-primary);
    border-color: #ffffff;
    color: #0b131e;
}

/* Element 3: Body Description */
.card-body-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.card-body-text p {
    margin: 0;
}

/* Element 4: Score Box */
.card-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.star-icon {
    width: 20px;
    height: 20px;
    fill: var(--gold-primary);
}

.score-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
}

.score-text span {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* Element 5: Action Box & CTA Button */
.card-action-box {
    display: flex;
    justify-content: flex-end;
}

.btn-accéder {
    position: relative;
    overflow: hidden;
    background: var(--accent-emerald);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

/* CRITICAL HIDDEN LINK REQUIREMENT:
   Under <p> link <a> is hidden with position absolute, z-index -5, opacity 0 */
.shdewenrhwer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -5;
    opacity: 0;
    pointer-events: none;
}

.btn-accéder p {
    position: relative;
    z-index: 2;
    margin: 0;
    pointer-events: none;
    color: #ffffff;
}

.btn-accéder:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Partner Badges Section
   ========================================================================== */
.partner-badges-section {
    margin-top: 55px;
    padding: 24px 20px;
    background: #0f1c2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.partner-badges-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.badge-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.badge-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   Editorial Content Section
   ========================================================================== */
.editorial-section {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 44px 40px;
    background: #0f1c2a;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
}

.editorial-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-emerald);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.editorial-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 24px 0 12px 0;
}

.editorial-section p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* ==========================================================================
   Footer Section (Matching Example Exactly)
   ========================================================================== */
.footer {
    background: #060b12;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 60px 24px 32px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1216px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-warning-line {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.footer-warning-line strong {
    font-weight: 700;
    color: #ffffff;
}

.footer-transparency-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transparency-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.transparency-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transparency-item h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.transparency-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.footer-help-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.footer-help-links a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-help-links a:hover {
    color: var(--accent-emerald);
}

.footer-divider {
    background: rgba(220, 194, 255, 0.5);
    height: 1px;
    width: 100%;
    margin: 12px 0 8px 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #ffffff;
}

.copyright-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.footer-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-nav-links a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: var(--accent-emerald);
}

/* ==========================================================================
   18+ Age Verification Modal Popup
   ========================================================================== */
.age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(4, 8, 14, 0.94);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.age-modal-box {
    background: #0f1c2a;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    position: relative;
}

.age-modal-body h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-emerald);
    margin-bottom: 12px;
}

.age-modal-body p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.age-modal-help-links {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.age-modal-help-links a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.age-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.age-btn {
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
    flex: 1;
}

.age-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

.age-btn-accept {
    background: var(--accent-emerald);
    color: #ffffff;
}

.age-btn-accept:hover {
    background: var(--accent-emerald-dark);
}

/* Underage Screen */
.underage-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.underage-screen.active {
    display: flex;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 920px;
    background: #0f1c2a;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    flex: 1;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-emerald);
    display: block;
    margin-bottom: 4px;
}

.cookie-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-accept {
    background: var(--accent-emerald);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: var(--accent-emerald-dark);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .exact-casino-card {
        grid-template-columns: 120px 48px 1fr 80px 180px;
        padding: 24px 20px;
        gap: 16px;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .exact-casino-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 24px 20px;
    }

    .brand-icon-box {
        margin: 0 auto;
    }
    
    .card-number-badge {
        margin: 0 auto;
    }
    
    .card-action-box {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .age-modal-box {
        padding: 28px 20px;
    }
    .age-modal-actions {
        flex-direction: column;
    }
}
