:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light dark;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #e5e7eb;
}

.hidden {
    display: none !important;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #facc15, #22c55e 45%, #0ea5e9 100%);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.brand-title {
    font-weight: 650;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
}

.btn-primary {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.15);
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #0b1120;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.45);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.55);
    filter: brightness(1.05);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 3rem;
}

.hero {
    max-width: 960px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    header {
        padding-inline: 1.25rem;
    }
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    background: linear-gradient(120deg, #22c55e, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1rem;
    max-width: 36rem;
    color: #cbd5f5;
    margin-bottom: 1.5rem;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.bullet {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22c55e, #0ea5e9);
}

.hero-card {
    border-radius: 1.25rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 60%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 55%),
                rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
}

.hero-card p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0;
}

.hero-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.9rem;
}

.hero-stat span {
    color: #9ca3af;
}

.hero-stat strong {
    font-size: 1.1rem;
}

footer {
    padding: 0.85rem 1.75rem 1.3rem;
    font-size: 0.78rem;
    color: #6b7280;
    border-top: 1px solid rgba(30, 64, 175, 0.65);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 60%),
                #020617;
}

/* Modal d'authentification (page publique) */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal {
    width: 100%;
    max-width: 420px;
    margin: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 55%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 55%),
                #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
    padding: 1.5rem 1.5rem 1.25rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
}

.modal-close:hover {
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
}

.auth-tabs {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.12rem;
    margin-bottom: 1rem;
}

.auth-tab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
}

.auth-tab--active {
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-field label {
    font-size: 0.8rem;
    color: #cbd5f5;
}

.auth-field input {
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

.auth-field input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.auth-submit {
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #020617;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.05);
}

.auth-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    max-width: 16rem;
}

.auth-message {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    min-height: 1.1rem;
}

.auth-message--error {
    color: #f97373;
}

.auth-message--success {
    color: #4ade80;
}

