/* =====================================================================
   LANDING PAGE
   ===================================================================== */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background:
        radial-gradient(1200px 800px at 20% -10%, rgba(139,92,246,.18), transparent 60%),
        radial-gradient(1000px 700px at 100% 20%, rgba(245,181,68,.12), transparent 55%),
        var(--bg-900);
}

/* ---------- Décor animé ---------- */
.bg-decor {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    will-change: transform;
}
.blob-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--violet), transparent 70%);
    top: -120px; left: -100px;
    animation: float1 18s ease-in-out infinite;
}
.blob-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--amber), transparent 70%);
    bottom: -100px; right: -80px;
    animation: float2 22s ease-in-out infinite;
}
.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--emerald), transparent 70%);
    top: 50%; left: 55%;
    animation: float3 26s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-40px, 50px) scale(1.12); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Topbar ---------- */
.topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    transition: transform var(--t-base);
}
.brand:hover { transform: translateY(-1px); }

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px -8px rgba(139,92,246,.7),
                inset 0 1px 0 rgba(255,255,255,.2);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.05rem; }
.brand-text small  { color: var(--text-muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Grille principale ---------- */
.landing {
    position: relative;
    z-index: 5;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem) clamp(1.25rem, 4vw, 3rem) 4rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

/* ---------- Hero ---------- */
.hero { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(139,92,246,.3);
    color: var(--violet-soft);
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge i { font-size: .8rem; }

.hero-title {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.05;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.25rem;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2.25rem;
}
.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.hero-features strong {
    display: block;
    font-family: var(--ff-head);
    font-size: 1.02rem;
    margin-bottom: .1rem;
}
.hero-features p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    border: 1px solid var(--border-strong);
}
.icon-amber   { background: rgba(245,181,68,.12);  color: var(--amber);  border-color: rgba(245,181,68,.3); }
.icon-violet  { background: rgba(139,92,246,.12);  color: var(--violet-soft); border-color: rgba(139,92,246,.3); }
.icon-emerald { background: rgba(16,185,129,.12);  color: var(--emerald); border-color: rgba(16,185,129,.3); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    max-width: max-content;
    flex-wrap: wrap;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat strong {
    font-family: var(--ff-head);
    font-size: 1.3rem;
    color: var(--amber);
    font-weight: 700;
}
.hero-stats .stat span { color: var(--text-muted); font-size: .8rem; }
.stat-divider { width: 1px; height: 32px; background: var(--border-strong); }

/* ---------- Carte de connexion ---------- */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 440px;
    width: 100%;
    justify-self: end;
}

.auth-card {
    position: relative;
    width: 100%;
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(30,30,53,.85) 0%, rgba(16,16,30,.9) 100%);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-glow {
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(139,92,246,.18), transparent 50%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.05); }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.auth-icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--violet) 0%, #6d28d9 100%);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 32px -10px rgba(139,92,246,.8);
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: .35rem;
    font-weight: 700;
}
.auth-header p { color: var(--text-muted); font-size: .92rem; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
}
.auth-footer p { color: var(--text-muted); font-size: .88rem; margin-bottom: .35rem; }

.auth-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-dim);
    font-size: .8rem;
}
.auth-note i { color: var(--emerald); }

/* ---------- Pied de page ---------- */
.landing-footer {
    position: relative;
    z-index: 5;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: .82rem;
    border-top: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.footer-version { font-family: monospace; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .landing {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 1rem;
    }
    .hero { max-width: 100%; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-features { text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
    .hero-stats { margin-left: auto; margin-right: auto; justify-content: center; }
    .auth-wrapper { justify-self: center; }
    .auth-card { padding: 2rem 1.5rem; }
}

@media (max-width: 560px) {
    .topbar-actions .btn span { display: none; }
    .topbar-actions .btn { padding: .7rem .9rem; }
    .hero-stats { gap: 1rem; padding: 1rem; }
    .stat-divider { display: none; }
    .landing-footer { flex-direction: column; gap: .35rem; text-align: center; }
    .toast-container { top: .75rem; right: .75rem; left: .75rem; max-width: none; }
}