/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2176ff;
    --secondary-color: #1d6ce2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 1200px;
}

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

/* Header et Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: visible;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.logo img {
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
}

nav {
    position: relative;
    overflow: visible;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: visible;
}

nav ul li {
    position: relative;
    overflow: visible;
}

nav ul li.has-dropdown {
    overflow: visible;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Dropdown menu */
nav ul li.has-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

nav ul li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1002;
    list-style: none;
    overflow: visible;
    white-space: nowrap;
}

nav ul li.has-dropdown:hover .sub-menu,
nav ul li.has-dropdown.dropdown-open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu li a {
    padding: 0.75rem 1.5rem;
    display: block;
    white-space: nowrap;
    pointer-events: auto;
}

.sub-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Bouton CTA */
nav .cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav .cta-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

/* Main content */
main {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p,
.footer-column ul {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

/* Newsletter */
.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #34495e;
    border-radius: 4px;
    background-color: #34495e;
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #95a5a6;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #95a5a6;
    margin: 0;
}

.footer-bottom a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #95a5a6;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1001;
        position: relative;
    }

    header {
        position: relative;
    }

    .header-container {
        position: relative;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    nav.active {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 2rem;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 1rem 0;
    }

    /* Style pour les items avec dropdown sur mobile */
    nav ul li.has-dropdown > a::after {
        content: '▶';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    nav ul li.has-dropdown.mobile-open > a::after {
        content: '▼';
        transform: rotate(0deg);
    }

    /* Sous-menus masqués par défaut sur mobile */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        margin-top: 0;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Afficher les sous-menus quand mobile-open est activé */
    nav ul li.has-dropdown.mobile-open .sub-menu {
        max-height: 500px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .header-container {
        padding: 1rem;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .footer-container {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Styles pour le contenu */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ===== inline CSS migrated from index.html ===== */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f5f5f5;
            overflow-x: hidden;
            max-width: 100%;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            background: white;
            width: 100%;
            box-sizing: border-box;
        }
        img {
            max-width: 100%;
            height: auto;
        }
        .casino-banner {
            width: 100%;
            max-width: 100%;
            max-height: 150px;
            height: 150px;
            object-fit: cover;
            object-position: center;
            margin: 20px 0;
            border-radius: 8px;
            display: block;
            aspect-ratio: 16 / 9;
        }
        h1 {
            font-size: 2.5em;
            margin-bottom: 20px;
            color: #1a1a1a;
        }
        h2 {
            font-size: 1.8em;
            margin-top: 40px;
            margin-bottom: 20px;
            color: #2c3e50;
            border-bottom: 3px solid #3498db;
            padding-bottom: 10px;
        }
        h3 {
            font-size: 1.4em;
            margin-top: 30px;
            margin-bottom: 15px;
            color: #34495e;
        }
        h4 {
            font-size: 1.2em;
            margin-top: 20px;
            margin-bottom: 10px;
            color: #555;
        }
        .intro {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 10px;
            margin-bottom: 30px;
            font-size: 1.1em;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background: #3498db;
            color: white;
            font-weight: bold;
        }
        tr:hover {
            background: #f5f5f5;
        }
        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 30px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin: 20px 0;
            transition: transform 0.3s;
        }
        .cta-button:hover {
            transform: scale(1.05);
        }
        .summary {
            background: #e8f4f8;
            padding: 20px;
            border-radius: 8px;
            margin: 30px 0;
        }
        .summary ul {
            list-style: none;
            padding-left: 0;
        }
        .summary li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
        }
        .summary li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
        }
        .author-block {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin: 40px 0;
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .author-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;
        }
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .author-info h4 {
            margin: 0 0 10px 0;
        }
        .modification-date {
            color: #7f8c8d;
            font-size: 0.9em;
            margin: 20px 0;
            min-height: 80px;
        }
        .advantages, .disadvantages {
            margin: 15px 0;
        }
        .advantages ul, .disadvantages ul {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
            padding-left: 0;
            margin: 10px 0;
        }
        .advantages li, .disadvantages li {
            flex: 1 1 calc(50% - 10px);
            min-width: 200px;
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 4px;
            font-size: 0.9em;
        }
        .advantages li:before {
            content: "✅ ";
            margin-right: 5px;
        }
        .disadvantages li:before {
            content: "❌ ";
            margin-right: 5px;
        }
        .comparator-shortcode {
            background: #f0f0f0;
            padding: 20px;
            border-radius: 8px;
            margin: 30px 0;
            text-align: center;
        }
        .casino-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        .feature-box {
            background: white;
            padding: 15px;
            border-radius: 5px;
            border: 1px solid #ddd;
            text-align: center;
        }
        .feature-box strong {
            display: block;
            color: #3498db;
            margin-bottom: 5px;
        }
        .casino-logo {
            max-width: 200px;
            height: auto;
            margin: 20px auto;
            display: block;
        }
        html {
            overflow-x: hidden;
            max-width: 100%;
        }
        body {
            overflow-x: hidden;
        }
        @media (max-width: 768px) {
            h1 {
                font-size: 1.8em;
            }
            h2 {
                font-size: 1.4em;
            }
            .container {
                padding: 10px;
            }
            table {
                font-size: 0.9em;
                display: block;
                overflow-x: auto;
            }
            .advantages li, .disadvantages li {
                flex: 1 1 100%;
            }
        }

/* Speed: reserve space to avoid CLS on comparator iframe + product-img defaults */
#comparator-shortcode { min-height: 620px; display: block; }
.comparator-shortcode { min-height: 620px; }
img.product-img,
.product-img { width: 138px; height: auto; max-width: 100%; aspect-ratio: 138 / 98; }
img.casino-banner { aspect-ratio: 8 / 1; }
