/* ====================================================================
   evergreen.css : KRACK SEO pages that sell the app, not a media site.
   Used by: faits-scientifiques, quiz-science, idees-recues-scientifiques
   ==================================================================== */

:root {
    --bg: #111116;
    --bg-soft: #181820;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.085);
    --border: rgba(255, 255, 255, 0.10);
    --text: #FFFFFF;
    --text-soft: #B5B5C3;
    --text-muted: #77778A;
    --accent: #A855F7;
    --accent-2: #EC4899;
    --accent-3: #F59E0B;
    --ok: #34D399;
    --danger: #F87171;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.12) 0%, rgba(17, 17, 22, 0) 380px),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, 980px);
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(168, 85, 247, 0.55);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.hero {
    padding: 64px 0 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
.display {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.45rem, 7vw, 4.8rem);
    line-height: 1.02;
    font-weight: 800;
}

.lead {
    max-width: 680px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    color: #fff;
}

.btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.proof-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.proof-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--text-soft);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
}

section {
    padding: 58px 0;
    border-top: 1px solid var(--border);
}

.section-kicker {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1.12;
    font-weight: 800;
}

.section-sub {
    max-width: 660px;
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

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

.card,
.demo-panel,
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.card {
    padding: 18px;
}

.card-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-3);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.card h3 {
    font-size: 1.05rem;
    line-height: 1.24;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-soft);
    font-size: 0.93rem;
}

.card p + p {
    margin-top: 8px;
}

.source {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.demo-panel {
    margin-top: 28px;
    overflow: hidden;
}

.demo-row {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.demo-row:last-child {
    border-bottom: 0;
}

.demo-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.demo-text {
    color: var(--text);
    font-weight: 700;
}

.demo-support {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.locked {
    position: relative;
    overflow: hidden;
}

.locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 24, 32, 0.78), rgba(24, 24, 32, 0.94));
}

.lock-note {
    position: absolute;
    z-index: 2;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.12);
}

.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.quiz-option {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 14px 16px;
    text-align: left;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus {
    border-color: rgba(168, 85, 247, 0.55);
}

.quiz-option:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.45);
    outline-offset: 3px;
}

.quiz-option.correct {
    border-color: rgba(52, 211, 153, 0.72);
    background: rgba(52, 211, 153, 0.10);
}

.quiz-option.wrong {
    border-color: rgba(248, 113, 113, 0.72);
    background: rgba(248, 113, 113, 0.10);
}

.result {
    display: none;
    margin-top: 16px;
    padding: 15px;
    border-radius: 8px;
    color: var(--text-soft);
    background: var(--surface-strong);
}

.result.visible {
    display: block;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 28px;
}

.contrast-box {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.contrast-box strong {
    display: block;
    margin-bottom: 8px;
}

.contrast-box p {
    color: var(--text-soft);
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.faq-item {
    padding: 18px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-soft);
    font-size: 0.93rem;
}

.final {
    text-align: center;
}

.final h2,
.final .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.footer {
    padding: 34px 0 46px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.footer-cta strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-cta span {
    color: var(--text-soft);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer a {
    color: var(--text-soft);
    text-decoration: none;
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 980px);
    }

    .nav {
        align-items: flex-start;
    }

    .nav-links {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 42px;
    }

    .grid,
    .grid.two,
    .split {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .lock-note {
        position: relative;
        display: inline-flex;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 12px;
    }
}
