/* =============================================
   DominoEnLigne.net - CSS Global
   ============================================= */

/* --- Variables --- */
:root {
    --primary: #1B998B;
    --primary-dark: #158277;
    --primary-rgb: 27, 153, 139;
    --secondary: #E84855;
    --secondary-dark: #d63843;
    --accent: #F9DC5C;
    --dark: #2C3E50;
    --darker: #1a252f;
    --light: #F7F9FC;
    --white: #FFFFFF;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;

    --gradient-fun: linear-gradient(135deg, #1B998B, #F9DC5C, #E84855);
    --gradient-hero: linear-gradient(180deg, #1a252f 0%, #2C3E50 100%);

    --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-card: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(27,153,139,0.3);

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
    line-height: 1.2;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #595959;
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 600;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 37, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 2px;
}

.nav-logo span {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle::after {
    content: '';
    border: solid rgba(255,255,255,0.85);
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: var(--transition);
    margin-top: -3px;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 8px;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--dark);
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

/* CTA Nav */
.nav-cta {
    background: var(--gradient-fun) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(27,153,139,0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(27,153,139,0.5) !important;
    background: var(--gradient-fun) !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 37, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-mobile a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-mobile-separator {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 8px 0;
}

.nav-mobile .nav-cta {
    margin-top: 16px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-fun);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(27,153,139,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27,153,139,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-domino {
    position: absolute;
    top: var(--y, 20%);
    width: var(--size, 80px);
    color: rgba(27,153,139,0.25);
    transform: rotate(var(--rotate, 0deg));
    animation: floatDomino 14s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 4px 20px rgba(27,153,139,0.15));
    transition: color 0.5s ease, filter 0.5s ease;
    will-change: transform;
}
.hero-domino:hover {
    color: rgba(27,153,139,0.5);
    filter: drop-shadow(0 4px 30px rgba(27,153,139,0.4));
}

.hero-domino svg {
    width: 100%;
    height: auto;
}

.hero-domino--left:nth-child(1) {
    left: 5%;
}

.hero-domino--left:nth-child(2) {
    left: 12%;
}

.hero-domino--left:nth-child(3) {
    left: 4%;
}

.hero-domino--right:nth-child(4) {
    right: 6%;
}

.hero-domino--right:nth-child(5) {
    right: 12%;
}

.hero-domino--right:nth-child(6) {
    right: 4%;
}

@keyframes floatDomino {
    0%, 100% {
        transform: rotate(var(--rotate, 0deg)) translateY(0);
    }
    33% {
        transform: rotate(calc(var(--rotate, 0deg) + 6deg)) translateY(-25px);
    }
    66% {
        transform: rotate(calc(var(--rotate, 0deg) - 4deg)) translateY(-12px);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27,153,139,0.2);
    border: 1px solid rgba(27,153,139,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27,153,139,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(27,153,139,0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero h1 .highlight {
    background: var(--gradient-fun);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    min-height: 60px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============================================
   GAME FRAME
   ============================================= */
.game-section {
    padding: 80px 0;
    background: var(--light);
}

.game-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.game-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-fun);
    border-radius: calc(var(--radius-lg) + 8px);
    opacity: 0.15;
    filter: blur(30px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.02); }
}

.game-frame {
    position: relative;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.game-header,
.game-benefits {
    overflow: hidden;
}

.game-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.game-benefits {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--darker);
    color: var(--white);
}

.game-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.game-live-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.game-players {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.game-container {
    background: var(--light);
}

.game-container #msmbgamecontainer {
    width: 100%;
}

.game-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    border: none;
}

.game-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 20px;
    background: var(--darker);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 700;
}

.game-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================
   CARDS
   ============================================= */

/* Mode cards */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.modes-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mode-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-fun);
    transform: scaleX(0);
    transition: var(--transition);
}

.mode-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(27,153,139,0.3);
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-card-badge.badge-warning {
    background: var(--accent);
    color: var(--dark);
}

.mode-card-badge.badge-danger {
    background: var(--secondary);
}

.mode-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.mode-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.mode-card p {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonial cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    color: rgba(27,153,139,0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-fun);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.testimonial-info h4,
.testimonial-info .testimonial-name {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-fun);
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 32px;
}

/* =============================================
   SEO CONTENT
   ============================================= */
.seo-section {
    padding: 80px 0;
    background: var(--white);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.seo-article {
    border-left: 4px solid var(--primary);
    padding: 24px 24px 24px 28px;
    background: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: var(--transition);
}

.seo-article:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.seo-article h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.seo-article p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-article a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.seo-article a:hover {
    color: var(--primary-dark);
}

/* =============================================
   PAGE HERO (Pages internes)
   ============================================= */
.page-hero {
    background: var(--gradient-hero);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 700;
}

/* =============================================
   CONTENT PAGES (Regles, Strategies)
   ============================================= */
.content-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--dark);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.content-wrapper h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 32px 0 12px;
}

.content-wrapper p {
    font-size: 1.05rem;
    color: #444;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-wrapper ul, .content-wrapper ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-wrapper ul {
    list-style: disc;
}

.content-wrapper ol {
    list-style: decimal;
}

.content-wrapper li {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Info box */
.info-box {
    background: rgba(27,153,139,0.08);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.info-box p {
    margin-bottom: 0;
    color: var(--dark);
}

/* Table of contents */
.toc {
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.06);
}

.toc h3 {
    font-size: 1.2rem;
    margin: 0 0 16px;
    color: var(--dark);
}

.toc ul {
    list-style: none !important;
    padding: 0 !important;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--primary-dark);
}

/* Level badges */
.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.level-badge.beginner {
    background: rgba(39,174,96,0.15);
    color: var(--success);
}

.level-badge.intermediate {
    background: rgba(243,156,18,0.15);
    color: var(--warning);
}

.level-badge.advanced {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
}

/* Domino pieces display */
.domino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.domino-piece {
    background: var(--white);
    border: 2px solid var(--dark);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
    padding: 60px 0;
}

.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(27,153,139,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--primary);
    font-weight: 700;
}

.form-checkbox label a:hover {
    color: var(--primary-dark);
}

/* Form messages */
.form-message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: rgba(39,174,96,0.1);
    color: var(--success);
    border: 1px solid rgba(39,174,96,0.2);
}

.form-message.error {
    background: rgba(231,76,60,0.1);
    color: var(--danger);
    border: 1px solid rgba(231,76,60,0.2);
}

.form-message.show {
    display: block;
}

.form-btn {
    width: 100%;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-section {
    padding: 60px 0;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-wrapper h2 {
    font-size: 1.6rem;
    color: var(--dark);
    margin: 40px 0 16px;
}

.legal-wrapper h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 24px 0 12px;
}

.legal-wrapper p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-wrapper ul {
    list-style: disc;
    padding-left: 24px;
    margin: 12px 0;
}

.legal-wrapper li {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-wrapper a {
    color: var(--primary);
    font-weight: 700;
}

.legal-wrapper a:hover {
    color: var(--primary-dark);
}

.legal-updated {
    font-size: 0.85rem;
    color: #999;
    font-weight: 700;
    margin-bottom: 32px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--darker);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-logo span {
    font-size: 1.8rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    line-height: 1.6;
}

.footer-column h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    line-height: 1.7;
}

/* =============================================
   ANIMATIONS (scroll reveal)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Le game-wrapper ne doit PAS avoir de transform une fois visible,
   car transform crée un containing block qui emprisonne les
   éléments position:fixed (iframe MSMB fullscreen) */
.game-wrapper.reveal.visible {
    transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablette */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-domino {
        width: calc(var(--size, 80px) * 0.7);
        opacity: 0.7;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-domino {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .modes-grid,
    .modes-grid-3 {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }


    .game-benefits {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

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