﻿:root {
    --bg: #0b1220;
    --card: #111a2e;
    --text: #e8eefc;
    --muted: #a9b6d6;
    --line: rgba(255,255,255,.08);
    --accent: #6ea8ff;
    --ok: #2ecc71;
    --no: #ff5c5c;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: radial-gradient(900px 500px at 20% 0%, rgba(110,168,255,.20), transparent 50%), radial-gradient(900px 500px at 80% 0%, rgba(46,204,113,.10), transparent 55%), var(--bg);
    color: var(--text);
}

    /* ✅ Sticky footer */
    body.layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.row {
    margin-bottom: 1.25rem; /* espace avant le texte SEO */
}

/* =========================
   TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(11,18,32,.75);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    font-weight: 800;
    letter-spacing: .2px;
}

.nav {
    display: flex;
    gap: 14px
}

.nav-link {
    color: var(--muted)
}

    .nav-link:hover {
        color: var(--text)
    }

/* =========================
   MAIN
========================= */
.main {
    padding: 26px 0 50px;
    flex: 1; /* ✅ pousse le footer en bas */
}

/* =========================
   UI
========================= */
.faq{
    margin-top: 10px;
}
    .faq details {
        margin-top: 0.75rem;
    }

    .faq summary {
        cursor: pointer;
        font-weight: 600;
        margin-bottom: 0.4rem;
    }

    .faq details[open] summary {
        margin-bottom: 0.6rem;
    }

    .faq details p {
        margin-left: 0.5rem;
        line-height: 1.6;
        opacity: 0.9;
    }

    .faq details {
        transition: all 0.2s ease;
    }

.card {
    background: rgba(17,26,46,.85);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.p {
    color: var(--muted);
    margin: 0 0 18px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input {
    flex: 1;
    min-width: 240px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
    outline: none;
}

.btn {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(110,168,255,.18);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

    .btn:hover {
        background: rgba(110,168,255,.26)
    }

/* badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 800;
    font-size: 13px;
}

    .badge span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .badge.ok {
        background: rgba(46,204,113,.12);
        color: var(--text)
    }

        .badge.ok span {
            background: var(--ok)
        }

    .badge.no {
        background: rgba(255,92,92,.12);
        color: var(--text)
    }

        .badge.no span {
            background: var(--no)
        }

    /* status badge (ouvert/fermé/?) */
    .badge.status {
        font-weight: 900;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.04);
    }

        .badge.status span {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            display: inline-block;
            margin-right: 8px;
            background: rgba(255,255,255,.35);
        }

        .badge.status.ok {
            border-color: rgba(46,204,113,.35);
            background: rgba(46,204,113,.12);
        }

            .badge.status.ok span {
                background: rgba(46,204,113,1)
            }

        .badge.status.no {
            border-color: rgba(255,92,92,.35);
            background: rgba(255,92,92,.12);
        }

            .badge.status.no span {
                background: rgba(255,92,92,1)
            }

        .badge.status.unk {
            opacity: .85
        }

/* bouton retour */
.btn-back {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.18);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

    .btn-back:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.35);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15);
    }

    .btn-back:active {
        transform: translateY(0);
        box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
    }

/* =========================
   AUTOCOMPLETE
========================= */
.ac {
    position: relative;
    flex: 1;
    min-width: 240px;
}

    .ac .input {
        width: 100%
    }

.ac-dd {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(17,26,46,.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    z-index: 50;
}

.ac-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .ac-item:hover,
    .ac-item.active {
        background: rgba(110,168,255,.14);
    }

.ac-loading {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* =========================
   RADIUS
========================= */
.radius {
    margin-top: 12px;
    width: 100%
}

.radius-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.radius-label {
    color: var(--muted)
}

.radius-value {
    font-weight: 700;
    color: var(--text)
}

.radius-range {
    width: 100%;
    accent-color: var(--accent)
}

.radius-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* =========================
   ARTICLE (pages légales)
========================= */
.article {
    background: radial-gradient(circle at top left, rgba(15,23,42,.9), rgba(2,6,23,.98));
    border-radius: 28px;
    padding: 36px 32px 40px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    margin-top: 18px;
}

.article-header h1 {
    margin-top: 10px;
    margin-bottom: 8px;
}

.article h2 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.article h3 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.article p {
    margin: 8px 0;
    color: var(--muted);
    font-size: .96rem;
}

.article ul,
.article ol {
    margin: 8px 0 16px 18px;
    padding-left: 10px;
    color: var(--muted);
    font-size: .94rem;
}

/* =========================
   FOOTER (unique, sans doublons)
========================= */
.site-footer {
    border-top: 1px solid rgba(15,23,42,.85);
    padding: 26px 0 34px;
    background: radial-gradient(circle at top, rgba(15,23,42,.9), rgba(15,23,42,.95), #020617 100%);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

.footer-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--muted);
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.footer-note {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    max-width: 720px;
}

/* =========================
   Mobile spacing fixes
========================= */
@media (max-width: 900px) {
    .topbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .main {
        padding: 2rem 1.5rem 1.75rem;
    }

    .card {
        padding: 16px;
        border-radius: 14px;
    }

    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-inner {
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
        line-height: 1.4;
    }
}
