/* ============================================
   LANDINGS RÉSEAUX SOCIAUX — /rejoindre et /top-serveur (js/pages/rejoindre.js)
   Mobile-first, uniquement les tokens de base.css (thème clair et sombre automatiques).
   Préfixe .lp- : n'interfère avec aucune autre page.
   ============================================ */

.lp-page {
    overflow-x: clip;
}

/* --- Hero --- */
.lp-hero {
    position: relative;
    padding: calc(var(--navbar-height) + var(--space-2xl)) 0 var(--space-2xl);
    min-height: 78vh;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 0%, var(--red-subtle), transparent 65%), var(--bg-secondary);
}

.lp-hero--compact {
    min-height: 0;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.lp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 0%, var(--bg-primary) 96%),
        linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
    opacity: 0.92;
}

.lp-hero-inner {
    position: relative;
    max-width: 760px;
    margin-left: 0;
}

@media (min-width: 1200px) {
    .lp-hero-inner {
        margin-left: calc((100vw - 1200px) / 2);
    }
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    background: var(--red-subtle);
    color: var(--red-bright);
    border: 1px solid var(--red-glow);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.lp-badge .pulse-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 0 0 var(--red-glow);
    animation: lp-pulse 2s infinite;
}

@keyframes lp-pulse {
    0% { box-shadow: 0 0 0 0 var(--red-glow); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.lp-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 9vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    overflow-wrap: anywhere;
}

.lp-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.lp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.lp-cta-row--hero {
    margin-top: 0;
}

.lp-cta-row .btn {
    flex: 1 1 100%;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

@media (min-width: 560px) {
    .lp-cta-row .btn {
        flex: 0 1 auto;
    }
}

.lp-hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.lp-hero-facts i {
    color: var(--red-bright);
    margin-right: 4px;
}

.lp-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-md);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lp-live[hidden] {
    display: none;
}

.lp-launch-line {
    margin-top: var(--space-md);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* --- Sections --- */
.lp-body {
    padding-bottom: var(--space-3xl);
}

.lp-section {
    padding: var(--space-2xl) 0;
    scroll-margin-top: calc(var(--navbar-height) + var(--space-md));
}

.lp-section-head {
    max-width: 680px;
    margin-bottom: var(--space-xl);
}

.lp-section-head h2,
.lp-launcher h2,
.lp-reward h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--text-primary);
    margin: var(--space-xs) 0 var(--space-sm);
}

.lp-section-head p,
.lp-launcher p,
.lp-reward p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red-bright);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-fineprint {
    margin-top: var(--space-md);
    color: var(--text-tertiary);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* --- Étapes --- */
.lp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    counter-reset: none;
}

@media (min-width: 900px) {
    .lp-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    .lp-steps--compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lp-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 0;
}

.lp-step-num {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-bright));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.lp-step-body {
    min-width: 0;
}

.lp-step-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lp-step-body h3 i {
    color: var(--red-bright);
    margin-right: 4px;
}

.lp-step-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.lp-step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    color: var(--red-bright);
    font-weight: 600;
    font-size: 0.88rem;
}

.lp-step-link:hover {
    color: var(--text-primary);
}

/* --- Cartes pitch --- */
.lp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .lp-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .lp-cards { grid-template-columns: repeat(4, 1fr); }
}

.lp-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 0;
}

.lp-card > i {
    font-size: 1.4rem;
    color: var(--red-bright);
    margin-bottom: var(--space-sm);
}

.lp-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lp-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* --- Factions --- */
.lp-factions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .lp-factions { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .lp-factions { grid-template-columns: repeat(4, 1fr); }
}

.lp-faction {
    --lp-faction: var(--red-bright);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--lp-faction);
    color: var(--text-primary);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    min-width: 0;
}

.lp-faction:hover {
    transform: translateY(-2px);
    background: var(--bg-glass-hover);
}

.lp-faction > i {
    flex: none;
    font-size: 1.3rem;
    color: var(--lp-faction);
    width: 28px;
    text-align: center;
}

.lp-faction > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-faction strong {
    font-size: 0.98rem;
}

.lp-faction span span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.lp-faction--civil { --lp-faction: var(--faction-civil); }
.lp-faction--illegal { --lp-faction: var(--faction-illegal); }
.lp-faction--sheriff { --lp-faction: var(--faction-emergency); }
.lp-faction--medecin { --lp-faction: var(--red-bright); }

/* --- Launcher / bloc mis en avant --- */
.lp-launcher {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--red-subtle), transparent 70%), var(--bg-card);
    border: 1px solid var(--glass-border);
}

.lp-launcher .lp-cta-row {
    margin-top: 0;
}

@media (min-width: 900px) {
    .lp-launcher {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-2xl);
    }
    .lp-launcher-text {
        max-width: 640px;
    }
}

.lp-launcher > .btn {
    align-self: stretch;
}

@media (min-width: 560px) {
    .lp-launcher > .btn { align-self: flex-start; }
}

@media (min-width: 900px) {
    .lp-launcher > .btn { align-self: center; }
}

/* --- Suivre --- */
.lp-follow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 720px) {
    .lp-follow-grid { grid-template-columns: repeat(3, 1fr); }
}

.lp-follow-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    min-width: 0;
}

.lp-follow-card:hover {
    transform: translateY(-2px);
    border-color: var(--red-primary);
}

.lp-follow-card i {
    grid-row: 1 / span 2;
    font-size: 1.5rem;
    color: var(--red-bright);
}

.lp-follow-card strong {
    font-size: 0.98rem;
}

.lp-follow-card span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lp-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.lp-social[hidden] {
    display: none;
}

.lp-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border-hover);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.lp-social-link:hover {
    border-color: var(--red-primary);
    color: var(--red-bright);
}

/* --- Avis --- */
.lp-reviews {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.lp-trustbox {
    min-height: 24px;
    margin-bottom: var(--space-md);
}

.lp-trustbox[hidden] {
    display: none;
}

.lp-reviews .lp-cta-row {
    margin-top: 0;
}

.lp-reviews .btn[hidden] {
    display: none;
}

/* --- FAQ --- */
.lp-faq {
    display: grid;
    gap: var(--space-sm);
    max-width: 820px;
}

.lp-faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.lp-faq-item summary {
    cursor: pointer;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: '+';
    color: var(--red-bright);
    font-weight: 700;
    flex: none;
}

.lp-faq-item[open] summary::after {
    content: '−';
}

.lp-faq-item p {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.92rem;
}

/* --- /top-serveur : bannière + récompense --- */
.lp-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(100deg, var(--bg-primary) 20%, transparent 100%),
        url('/images/hero/hero-sunset.webp') center / cover,
        var(--bg-tertiary);
    border: 1px solid var(--glass-border-hover);
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
}

.lp-banner:hover {
    border-color: var(--red-primary);
}

.lp-banner-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: none;
}

.lp-banner-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
    min-width: 0;
}

.lp-banner-text strong {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
}

.lp-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lp-banner-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.lp-banner-cta {
    color: var(--red-bright);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-reward {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--red-subtle), transparent 70%), var(--bg-card);
    border: 1px solid var(--red-glow);
}

@media (min-width: 720px) {
    .lp-reward {
        flex-direction: row;
        align-items: center;
        padding: var(--space-2xl);
    }
}

.lp-reward-points {
    flex: none;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-primary), var(--red-bright));
    color: #fff;
    box-shadow: 0 8px 30px var(--red-glow);
    text-align: center;
}

.lp-reward-points strong {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.lp-reward-points span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
    .lp-badge .pulse-dot { animation: none; }
    .lp-faction, .lp-follow-card { transition: none; }
}

/* --- Launcher : version teaser (public-config.json launcher_mode = "teaser") --- */
.lp-launcher--teaser .lp-step-link { display: inline-flex; margin-top: var(--space-sm); }
.lp-launcher-teaser {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-launcher-teaser-blur {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 28% 1fr;
    grid-template-rows: 14% 1fr;
    gap: 8px;
    padding: 8px;
    filter: blur(7px);
    transform: scale(1.06);
    pointer-events: none;
}
.lp-tz-bar { grid-column: 1 / -1; background: rgba(230, 5, 62, 0.45); border-radius: 6px; }
.lp-tz-side { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.lp-tz-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: end; background: linear-gradient(135deg, rgba(246, 207, 152, 0.35), rgba(230, 5, 62, 0.25)); border-radius: 8px; padding: 8px; }
.lp-tz-main i { display: block; height: 34px; background: rgba(255, 255, 255, 0.18); border-radius: 6px; }
.lp-launcher-teaser-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(5, 5, 7, 0.8);
    border: 1px solid rgba(230, 5, 62, 0.55);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.lp-launcher-teaser-badge i { color: #e6053e; font-size: 0.85em; }
