:root {
    --bg: #F6F7FB;
    --ink: #1D1D1F;
    --ink-soft: #6E6E73;
    --line: rgba(29,29,31,0.08);
    --accent-1: #2B5CFF;
    --accent-2: #7B2FF7;
    --accent-grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    --up: #10b981;
    --radius: 20px;
    --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

h1, h2, h3, .wordmark { font-family: 'Space Grotesk', 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }

/* --- Fond décoratif : taches de couleur douces --- */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}
.blob-1 { width: 480px; height: 480px; top: -160px; left: -120px; background: #6E8CFF; }
.blob-2 { width: 420px; height: 420px; top: 20%; right: -140px; background: #B98CFF; }
.blob-3 { width: 380px; height: 380px; bottom: -160px; left: 30%; background: #8CD9FF; opacity: 0.25; }

/* --- Effet verre commun --- */
.glass {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(31,38,135,0.08);
}

/* --- Nav --- */
.topnav {
    position: sticky;
    top: 16px;
    z-index: 50;
    margin: 16px clamp(16px,4vw,48px) 0;
    height: var(--nav-h);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 22px;
}

.wordmark { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.wordmark span {
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

nav ul { list-style: none; display: flex; gap: clamp(16px,3vw,32px); }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
nav a:hover { color: var(--ink); }

/* Le lien de connexion est volontairement discret : juste une icône,
   sans libellé "Connexion" ni couleur d'accent — il se fond dans la nav. */
.access-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.access-btn:hover { background: rgba(29,29,31,0.05); color: var(--ink); border-color: var(--line); }

/* --- Hero --- */
.hero {
    max-width: 780px;
    margin: clamp(50px,9vh,110px) auto 0;
    padding: 0 20px;
    text-align: center;
}

.eyebrow {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-1);
}

.hero h1 {
    margin-top: 16px;
    font-size: clamp(2.2rem, 5.6vw, 3.6rem);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}

.grad {
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.subhead {
    margin: 22px auto 0;
    max-width: 560px;
    font-size: clamp(1rem,1.6vw,1.1rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

/* --- Maquette de statut (visuel produit, sans SVG) --- */
.status-mock {
    max-width: 380px;
    margin: 44px auto 0;
    padding: 22px 24px;
    border-radius: var(--radius);
    text-align: left;
}

.status-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0;
    font-size: 0.92rem;
}

.status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.up { background: var(--up); box-shadow: 0 0 0 4px rgba(16,185,129,0.15); }

.status-name { font-weight: 600; flex: 1; }
.status-val { color: var(--ink-soft); font-size: 0.82rem; }

.status-footline {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem; color: var(--ink-soft);
}

/* --- Features --- */
.features {
    max-width: 1080px;
    margin: clamp(70px,10vh,120px) auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 30px 26px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,38,135,0.12); }

.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* --- Steps --- */
.steps-section {
    max-width: 1080px;
    margin: clamp(70px,10vh,120px) auto 0;
    padding: 0 20px;
}

.section-head { text-align: center; max-width: 520px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem,3.4vw,2.2rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step { padding: 28px 24px; border-radius: var(--radius); }
.step .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--accent-1); }
.step h3 { margin-top: 10px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }

/* --- Footer --- */
.site-footer {
    max-width: 1080px;
    margin: clamp(70px,10vh,110px) auto 40px;
    padding: 24px 20px 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    font-size: 0.82rem; color: var(--ink-soft);
}

.footer-access {
    background: none; border: none; color: var(--ink-soft);
    font-size: 0.78rem; cursor: pointer; text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}
.footer-access:hover { text-decoration-color: var(--ink-soft); }

/* --- Modal de connexion --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(20,20,30,0.28);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 200;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-card {
    width: 100%; max-width: 380px;
    border-radius: 22px;
    padding: 34px 30px;
    position: relative;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
    background: rgba(255,255,255,0.85);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 14px; right: 16px;
    width: 30px; height: 30px; border-radius: 50%;
    border: none; background: transparent;
    font-size: 1.3rem; line-height: 1; color: var(--ink-soft);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(29,29,31,0.06); color: var(--ink); }

.modal-card h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 22px; }

.modal-card form label {
    display: block; font-size: 0.8rem; color: var(--ink-soft); margin: 14px 0 6px;
}
.modal-card form label:first-of-type { margin-top: 0; }

.modal-card input[type="text"], .modal-card input[type="password"] {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line); border-radius: 10px;
    font-size: 0.95rem; color: var(--ink);
    font-family: inherit;
}
.modal-card input:focus { outline: none; border-color: var(--accent-1); }

.modal-card button[type="submit"] {
    width: 100%; margin-top: 20px; padding: 12px;
    background: var(--accent-grad); color: #fff; border: none; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: transform 0.2s ease;
}
.modal-card button[type="submit"]:hover { transform: translateY(-1px); }

.alert {
    padding: 11px 13px; border-radius: 10px; font-size: 0.85rem;
}
.alert-error { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.25); }

@media (max-width: 700px) {
    .steps { grid-template-columns: 1fr; }
    nav ul { display: none; }
}
