/* ============================================================
   EuroMillions Dream - Style Premium Mobile-First
   Design luxueux, onirique, bleu nuit & doré
   Optimisé pour smartphones, tablettes et desktop
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111133;
    --bg-card: #151530;
    --bg-card-hover: #1a1a40;
    --gold: #d4a742;
    --gold-light: #f0d060;
    --gold-dark: #b8861e;
    --blue-accent: #4fc3f7;
    --blue-deep: #1a2a5e;
    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #8888aa;
    --border: #2a2a4a;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #2ecc71;
    --nav-height: 56px;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Étoiles d'arrière-plan animées ---- */
.stars-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star-bg {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.5); }
}

/* ============================================================
   NAVIGATION - Mobile First
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10,10,30,0.99) 0%, rgba(15,15,40,0.97) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,167,66,0.3);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: var(--nav-height);
}

/* --- Brand --- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-brand .logo-icon {
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.nav-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.nav-brand .brand-tagline {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Mobile Toggle (hamburger) --- */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    color: var(--gold-light);
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:active {
    background: rgba(212,167,66,0.15);
    border-color: var(--gold);
}

/* --- Navigation Links (mobile: hidden by default) --- */
.nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0d0d2a;
    border-bottom: 2px solid var(--gold);
    padding: 8px;
    gap: 2px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 999;
}

.nav-links.open {
    display: flex;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a:active {
    background: rgba(212,167,66,0.15);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
    background: rgba(212,167,66,0.1);
}

/* --- Language Selector (mobile) --- */
.lang-selector {
    position: relative;
    margin-left: 6px;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:active {
    border-color: var(--gold);
    background: rgba(212,167,66,0.12);
}

.lang-btn .globe-icon { font-size: 14px; }
.lang-btn .current-flag { font-size: 14px; }
.lang-btn .arrow { font-size: 8px; transition: transform 0.3s; }

.lang-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #131330;
    border: 1px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0,0,0,0.9);
    min-width: 260px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2000;
    padding: 8px 0;
}

.lang-dropdown.open {
    display: block;
    animation: modalPop 0.2s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Overlay quand le dropdown langue est ouvert (mobile) */
.lang-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
}

.lang-overlay.open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
    text-align: left;
}

.lang-option:active {
    background: rgba(212,167,66,0.15);
    color: var(--gold-light);
}

.lang-option.active {
    background: rgba(212,167,66,0.15);
    color: var(--gold-light);
    font-weight: 600;
}

.lang-option .flag { font-size: 22px; }
.lang-option .check { margin-left: auto; color: var(--gold); font-weight: 700; }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ============================================================
   HERO SECTION - Mobile First
   ============================================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 40px 10px 35px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(212,167,66,0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(2%, -1%); }
    50%      { transform: translate(0, 2%); }
    75%      { transform: translate(-2%, 0); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,167,66,0.15);
    border: 1px solid rgba(212,167,66,0.3);
    color: var(--gold-light);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0e0 40%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 22px;
    line-height: 1.6;
    padding: 0 5px;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a1a;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(212,167,66,0.25);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 350px;
}

.hero-cta:active {
    transform: scale(0.97);
}

.hero-warning {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255,152,0,0.08);
    border: 1px solid rgba(255,152,0,0.2);
    border-radius: 10px;
    color: #ffb74d;
    font-size: 13px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ---- Floating balls ---- */
.floating-balls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 22px 0;
    flex-wrap: wrap;
}

.float-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    animation: ballFloat 3s ease-in-out infinite;
}

.float-ball:nth-child(odd)  { animation-delay: 0s; }
.float-ball:nth-child(even) { animation-delay: 1.5s; }

.float-ball.num {
    background: radial-gradient(circle at 35% 35%, #3a7bd5, #1a3a6e);
    color: #aad4ff;
}

.float-ball.star {
    background: radial-gradient(circle at 35% 35%, #c084dc, #6b21a8);
    color: #e9d5ff;
    width: 34px;
    height: 34px;
    font-size: 13px;
    position: relative;
    opacity: 1;
}

@keyframes ballFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-8px) rotate(3deg); }
    75%      { transform: translateY(4px) rotate(-3deg); }
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section {
    padding: 35px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 5px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
    transition: all 0.3s ease;
}

.card-gold {
    border-color: rgba(212,167,66,0.3);
    background: linear-gradient(135deg, rgba(212,167,66,0.05), rgba(212,167,66,0.02));
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
    word-break: break-word;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   DREAM SECTION
   ============================================================ */
.dream-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dream-image {
    order: -1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    line-height: 0;
}

.dream-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.dream-text { order: 0; }

.dream-text h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--gold-light);
}

.dream-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ============================================================
   WINNERS GRID
   ============================================================ */
.winners-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.winner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.winner-card-header {
    background: linear-gradient(135deg, #1a1a3e, #151530);
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.winner-card-header .winner-avatar {
    font-size: 50px;
    display: block;
    margin-bottom: 8px;
}

.winner-card-header .winner-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.winner-card-header .winner-name {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
}

.winner-card-header .winner-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.winner-card-body {
    padding: 16px;
}

.winner-card-body p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section {
    text-align: center;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 25px;
}

.trust-feature {
    text-align: center;
    padding: 20px 16px;
}

.trust-feature .feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.trust-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.trust-feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   METHOD PAGE
   ============================================================ */
.method-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: step;
}

.method-step {
    position: relative;
    padding: 22px 18px;
}

.method-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 40px;
    font-weight: 700;
    color: rgba(212,167,66,0.1);
    font-family: var(--font-heading);
}

.method-step .step-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.method-step h4 {
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.method-step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ============================================================
   RULES LIST / GENERATOR-STYLE CARDS
   ============================================================ */
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.rule-section-label {
    color: #4fc3f7;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    padding: 4px 0 0 4px;
}

.rule-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    position: relative;
}

.rule-card:hover {
    border-color: #4fc3f7;
    background: #1a2744;
}

.rule-card .rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.rule-card .rule-content strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.rule-card .rule-content small {
    display: block;
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}

/* Help icon on rules */
.rule-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
    border: 1px solid rgba(79, 195, 247, 0.3);
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.rule-help-icon:hover {
    background: rgba(79, 195, 247, 0.35);
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.3);
}

/* Help popup modal */
.help-popup-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.help-popup-overlay.active { display: flex; }

.help-popup-box {
    background: #1a1a2e;
    border: 1px solid #4fc3f7;
    border-radius: 18px;
    padding: 28px 30px;
    max-width: 580px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(79,195,247,0.15), 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    animation: helpFadeIn 0.25s ease-out;
}

@keyframes helpFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.help-popup-box .help-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.help-popup-box .help-close:hover { color: #fff; }

.help-popup-box h2 {
    color: #4fc3f7;
    font-size: 18px;
    margin: 0 0 18px 0;
    padding-right: 30px;
    line-height: 1.3;
}

.help-popup-box .help-content {
    color: #c0c0d0;
    font-size: 14px;
    line-height: 1.7;
}

.help-popup-box .help-content p {
    margin: 0 0 14px 0;
}

.help-popup-box .help-content strong {
    color: #4fc3f7;
}

.help-popup-box .help-content .help-checked {
    color: #66bb6a;
    font-weight: 600;
}

.help-popup-box .help-content .help-unchecked {
    color: #ef5350;
    font-weight: 600;
}

.help-popup-box::-webkit-scrollbar { width: 4px; }
.help-popup-box::-webkit-scrollbar-thumb { background: #3a3a5a; border-radius: 2px; }

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer-box {
    background: rgba(255,152,0,0.08);
    border: 2px solid rgba(255,152,0,0.3);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 25px;
}

.disclaimer-box p {
    color: #ffb74d;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    text-align: center;
    padding: 30px 18px;
    background: linear-gradient(135deg, rgba(212,167,66,0.05), rgba(212,167,66,0.02));
    border: 1px solid rgba(212,167,66,0.2);
    border-radius: 16px;
    margin: 30px 0;
}

.cta-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================================
   AD PLACEHOLDER
   ============================================================ */
.ad-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.ad-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.ad-placeholder {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border);
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 12px;
    word-break: break-word;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0a0a1e;
    border-top: 1px solid rgba(212,167,66,0.2);
    padding: 25px 16px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer .footer-warning {
    color: #ffb74d;
    font-weight: 500;
    font-size: 12px;
    padding: 10px 16px;
    background: rgba(255,152,0,0.08);
    border-radius: 8px;
    display: inline-block;
    margin: 8px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.footer-links a:active {
    color: var(--gold-light);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Réduire les animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---- Séparateur or ---- */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

/* ============================================================
   BREAKPOINT: TABLETTES (768px+)
   ============================================================ */
@media (min-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .navbar-inner {
        padding: 0 20px;
    }

    .nav-brand .logo-icon { font-size: 28px; }
    .nav-brand .brand-name { font-size: 19px; }
    .nav-brand .brand-tagline { font-size: 10px; }

    .mobile-toggle { display: none; }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        border-bottom: none;
        padding: 0;
        box-shadow: none;
        gap: 3px;
    }

    .nav-links a {
        padding: 8px 14px;
        font-size: 13px;
        width: auto;
        border-radius: 8px;
        text-align: left;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
        height: 38px;
    }

    .lang-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        bottom: auto;
        transform: none;
        min-width: 170px;
        max-height: none;
        border: 1px solid var(--border);
    }

    .lang-dropdown.open {
        animation: slideDown 0.2s ease;
    }

    @keyframes modalPop {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

    .lang-overlay { display: none !important; }

    .lang-option {
        padding: 10px 16px;
        font-size: 14px;
    }

    .lang-option .flag { font-size: 18px; }

    .main-content { padding: 0 20px; }

    .hero { padding: 55px 20px 45px; }
    .hero h1 { font-size: 34px; }
    .hero-subtitle { font-size: 17px; }
    .hero-cta {
        width: auto;
        max-width: none;
        padding: 15px 36px;
        font-size: 17px;
    }

    .float-ball { width: 48px; height: 48px; font-size: 16px; }
    .float-ball.star { width: 40px; height: 40px; font-size: 14px; }
    .floating-balls { gap: 12px; }

    .section { padding: 45px 0; }
    .section-header h2 { font-size: 28px; }
    .section-header p { font-size: 15px; }
    .section-header { margin-bottom: 35px; }

    .card { padding: 24px 20px; border-radius: 16px; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card { padding: 20px 16px; }
    .stat-icon { font-size: 32px; }
    .stat-value { font-size: 26px; }
    .stat-label { font-size: 12px; }

    .dream-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        align-items: center;
    }

    .dream-image { order: 0; min-height: 300px; }
    .dream-text h3 { font-size: 24px; }
    .dream-text p { font-size: 15px; }

    .winners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .method-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .rules-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cta-section { padding: 40px 25px; }
    .cta-section h3 { font-size: 24px; }
    .disclaimer-box { padding: 20px 22px; }

    .ad-placeholder { min-height: 80px; font-size: 13px; }
    .footer { padding: 30px 20px 25px; }
}

/* ============================================================
   BREAKPOINT: DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    :root {
        --nav-height: 65px;
    }

    .navbar-inner { padding: 0 25px; }
    .nav-brand .logo-icon { font-size: 32px; }
    .nav-brand .brand-name { font-size: 22px; }
    .nav-brand .brand-tagline { font-size: 11px; letter-spacing: 2px; }

    .nav-links a { padding: 10px 18px; font-size: 14px; }

    .lang-btn { padding: 8px 14px; font-size: 13px; }

    .main-content { padding: 0 25px; }

    .hero { padding: 80px 20px 60px; }
    .hero h1 { font-size: clamp(32px, 6vw, 56px); }
    .hero-subtitle { font-size: 18px; }
    .hero-cta { padding: 16px 40px; font-size: 17px; }
    .hero-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(212,167,66,0.5);
        background: linear-gradient(135deg, var(--gold-light), var(--gold));
    }

    .float-ball { width: 55px; height: 55px; font-size: 18px; }
    .float-ball.star { width: 45px; height: 45px; font-size: 16px; }
    .floating-balls { gap: 15px; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: clamp(28px, 4vw, 40px); }
    .section-header { margin-bottom: 50px; }

    .card { padding: 30px 24px; border-radius: 16px; }
    .card:hover {
        border-color: rgba(212,167,66,0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .stat-card { padding: 25px 20px; }
    .stat-card:hover {
        border-color: var(--gold);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .stat-icon { font-size: 36px; }
    .stat-value { font-size: 32px; }

    .dream-section { gap: 50px; }
    .dream-image { min-height: 350px; }
    .dream-text h3 { font-size: 28px; }
    .dream-text p { font-size: 16px; line-height: 1.8; }

    .winners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .winner-card:hover {
        border-color: var(--gold);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(212,167,66,0.1);
    }

    .winner-card-header .winner-avatar { font-size: 70px; }
    .winner-card-header .winner-amount { font-size: 28px; }
    .winner-card-header .winner-name { font-size: 18px; }
    .winner-card-body p { font-size: 14px; }

    .trust-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .trust-feature .feature-icon { font-size: 45px; }
    .trust-feature h4 { font-size: 17px; }

    .method-steps { gap: 25px; }
    .method-step { padding: 30px 25px; }
    .method-step::before { font-size: 48px; }
    .method-step .step-icon { font-size: 40px; }
    .method-step h4 { font-size: 18px; }

    .rules-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .rule-card:hover { border-color: rgba(79,195,247,0.4); }

    .cta-section { padding: 50px 30px; }
    .cta-section h3 { font-size: 28px; }
    .cta-section p { font-size: 16px; }
    .disclaimer-box { padding: 25px 30px; }

    .ad-container { margin: 30px 0; padding: 20px; }
    .ad-placeholder { min-height: 90px; font-size: 13px; }
    .ad-placeholder:hover {
        border-color: rgba(212,167,66,0.3);
        background: rgba(255,255,255,0.05);
    }

    .footer { padding: 40px 25px 30px; margin-top: 60px; }
    .footer p { font-size: 13px; }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--gold-light);
        background: rgba(212,167,66,0.08);
    }

    .lang-btn:hover {
        border-color: var(--gold);
        color: var(--gold-light);
        background: rgba(212,167,66,0.08);
    }

    .lang-option:hover {
        background: rgba(212,167,66,0.1);
        color: var(--gold-light);
    }

    .footer-links a:hover { color: var(--gold-light); }
}

/* ============================================================
   PETITS SMARTPHONES (< 380px)
   ============================================================ */
@media (max-width: 380px) {
    .nav-brand .brand-name { font-size: 14px; }
    .nav-brand .logo-icon { font-size: 20px; }
    .nav-brand .brand-tagline { font-size: 9px; letter-spacing: 1px; }
    .lang-btn { padding: 6px 8px; font-size: 11px; height: 36px; }
    .lang-btn .current-lang { display: none; }
    .mobile-toggle { width: 36px; height: 36px; }

    .hero h1 { font-size: 22px; }
    .hero-subtitle { font-size: 14px; }
    .hero-cta { padding: 13px 20px; font-size: 15px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-icon { font-size: 24px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }

    .float-ball { width: 34px; height: 34px; font-size: 12px; }
    .float-ball.star { width: 28px; height: 28px; font-size: 11px; }
    .floating-balls { gap: 6px; }

    .section-header h2 { font-size: 20px; }
    .card { padding: 16px 12px; }
    .winner-card-header .winner-amount { font-size: 19px; }

    .footer { padding: 20px 12px 16px; }
    .footer .footer-warning { font-size: 11px; padding: 8px 12px; }
}

/* ============================================
   Boutons de partage social
   ============================================ */
.share-block {
    text-align: center;
    padding: 20px 0 10px;
}
.share-label {
    font-size: 1.05rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.share-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
    filter: brightness(1.12);
}
.share-facebook  { background: #1877f2; }
.share-twitter   { background: #000000; }
.share-whatsapp  { background: #25d366; }
.share-linkedin  { background: #0a66c2; }
.share-telegram  { background: #229ed9; }
.share-messenger { background: linear-gradient(135deg, #0084ff, #a334fa); }

@media (max-width: 600px) {
    .share-btn { padding: 9px 14px; font-size: 0.82rem; }
    .share-buttons { gap: 8px; }
}

/* ---- Overlay pour le dropdown langue mobile ---- */
@media (max-width: 767px) {
    .lang-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 250px;
        border: 1px solid var(--gold);
    }
    .lang-dropdown.open {
        animation: modalPop 0.2s ease;
    }
}
