/* ============================================================================
   Cycymulator Landing — pronocdm2026.fr
   Style dark + photo coupe du monde en hero
   ============================================================================ */

/* ============================================================================
   THEMES — Dark (par défaut) + Light
   ============================================================================ */
:root,
[data-theme="dark"] {
    --bg-primary: #0e1a2b;
    --bg-secondary: #16243a;
    --bg-card: #1a2942;
    --bg-card-hover: #21314f;
    --text-primary: #e8eef5;
    --text-secondary: #a0b3cc;
    --text-muted: #6b7d96;
    --gold: #ffd700;
    --gold-soft: #f0c040;
    --accent: #4a90e2;
    --highlight: rgba(255,215,0,0.08);
    --border: rgba(255,255,255,0.08);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.3);

    --topbar-bg: rgba(14,26,43,0.85);
    --hero-overlay-top: rgba(14,26,43,0.65);
    --hero-overlay-mid: rgba(14,26,43,0.85);
    --feature-bg: rgba(255,255,255,0.04);
    --badge-bg: rgba(255,255,255,0.10);
    --badge-border: rgba(255,255,255,0.15);
    --footer-link-bg: rgba(255,255,255,0.06);
    --footer-link-bg-hover: rgba(255,255,255,0.12);
    --hero-text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    --hero-text-shadow-sm: 0 2px 8px rgba(0,0,0,0.6);
    --hero-bg-filter: brightness(0.5) saturate(0.85);
    --gold-bg: rgba(255,215,0,0.10);
    --gold-bg-strong: rgba(255,215,0,0.20);
    --gold-bg-border: rgba(255,215,0,0.30);
}

[data-theme="light"] {
    --bg-primary: #f4f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #eef3f9;
    --text-primary: #1a2942;
    --text-secondary: #4a5a72;
    --text-muted: #7a8a9e;
    --gold: #c8961a;
    --gold-soft: #a47813;
    --accent: #2c5282;
    --highlight: rgba(200,150,26,0.10);
    --border: rgba(0,0,0,0.08);
    --shadow-card: 0 4px 20px rgba(26,41,66,0.12);

    --topbar-bg: rgba(255,255,255,0.92);
    --hero-overlay-top: rgba(14,26,43,0.55);
    --hero-overlay-mid: rgba(14,26,43,0.75);
    --feature-bg: rgba(0,0,0,0.025);
    --badge-bg: rgba(255,255,255,0.18);
    --badge-border: rgba(255,255,255,0.30);
    --footer-link-bg: rgba(0,0,0,0.04);
    --footer-link-bg-hover: rgba(0,0,0,0.08);
    --hero-text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    --hero-text-shadow-sm: 0 2px 8px rgba(0,0,0,0.6);
    --hero-bg-filter: brightness(0.6) saturate(0.9);
    --gold-bg: rgba(200,150,26,0.12);
    --gold-bg-strong: rgba(200,150,26,0.22);
    --gold-bg-border: rgba(200,150,26,0.40);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
   TOPBAR
   ============================================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.brand span { color: var(--text-primary); }
.lang-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.lang-select:focus { outline: 2px solid var(--gold-soft); }

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text-primary);
    transition: background 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.theme-toggle:focus { outline: 2px solid var(--gold-soft); }
/* Affiche la lune en mode sombre (clic = passer en clair) */
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark  { display: inline; }
/* Affiche le soleil en mode clair (clic = passer en sombre) */
[data-theme="light"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-dark  { display: none; }

/* ============================================================================
   HERO avec photo de fond
   ============================================================================ */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('https://images.unsplash.com/photo-1577471488278-16eec37ffcc2?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    filter: var(--hero-bg-filter);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
        var(--hero-overlay-top) 0%,
        var(--hero-overlay-mid) 60%,
        var(--bg-primary) 100%);
}
/* Le hero garde du texte clair lisible sur la photo, peu importe le thème */
.hero-tagline { color: #ffffff; }
.hero-subline,
.hero-meta { color: rgba(255,255,255,0.88); }
.hero .badge { color: #ffffff; }
.hero-content { position: relative; }
.hero-trophy {
    font-size: 4rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 20px rgba(255,215,0,0.5));
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-tagline {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-tagline strong {
    color: var(--gold);
    font-weight: 800;
}
.hero-subline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--badge-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--badge-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.hero-meta {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ============================================================================
   CTA
   ============================================================================ */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.cta-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}
.cta-large { padding: 20px 40px; font-size: 1.15rem; }

/* ============================================================================
   MESSAGE PAYS (entre hero et premier pitch — affiché si traduit)
   ============================================================================ */
.country-message {
    padding: 40px 0 0;
}
.country-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    display: flex;
    gap: 22px;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.country-visual {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: 2px solid var(--gold);
}
.country-flag {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.country-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.55;
    font-style: italic;
    margin: 0;
}
@media (max-width: 640px) {
    .country-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 14px;
    }
    .country-visual { width: 110px; height: 110px; }
}

/* ============================================================================
   PITCH SECTIONS
   ============================================================================ */
section.pitch {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}
.pitch-highlight {
    background: linear-gradient(180deg,
        var(--highlight) 0%,
        var(--bg-secondary) 100%);
    border-left: 4px solid var(--gold);
}
.pitch-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 14px;
    text-transform: uppercase;
}
section.pitch h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}
.pitch-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}
.pitch-lead strong { color: var(--gold-soft); }
.pitch-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 32px;
}
.pitch-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--feature-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
}
.pf-icon { font-size: 1.4rem; }

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card-hover) 100%);
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-subline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.cta-meta { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.link-subtle { color: var(--gold-soft); text-decoration: none; }
.link-subtle:hover { text-decoration: underline; }

/* ============================================================================
   COMMUNITY
   ============================================================================ */
.community {
    padding: 80px 0;
    background: var(--bg-secondary);
}
.community h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 800;
}
.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s ease;
}
.community-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.cc-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.community-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--gold);
}
.community-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.cc-link {
    display: inline-block;
    padding: 9px 18px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-bg-border);
    border-radius: 100px;
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.cc-link:hover { background: var(--gold-bg-strong); }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq {
    padding: 80px 0;
    background: var(--bg-primary);
}
.faq h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 32px;
    font-weight: 800;
}
.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: background 0.15s;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.faq details:hover { background: var(--bg-card-hover); }
.faq summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-soft);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.faq details a {
    color: var(--gold-soft);
    text-decoration: underline;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    text-align: center;
}
.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-soft);
    margin-bottom: 24px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.footer-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--footer-link-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}
.footer-link:hover {
    background: var(--footer-link-bg-hover);
    color: var(--text-primary);
}
.footer-disclaimer,
.footer-credits {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto 8px;
}
.footer-credits { font-style: italic; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 640px) {
    .hero { padding: 60px 0 80px; }
    section.pitch, .cta-section, .community, .faq { padding: 60px 0; }
    .pitch-features { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; align-items: stretch; }
    .footer-link { text-align: center; }
}
