/* ===== Programme bêta ===== */
.bt-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px 32px;
    margin: 8px 0 30px;
    padding: 30px 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(124, 77, 255, .14), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(0, 186, 124, .10), transparent 50%),
        var(--surface);
}

.bt-hero-texte {
    flex: 1 1 520px;
    max-width: 720px;
}

.bt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent5);
    background: rgba(124, 77, 255, .1);
    border: 1px solid rgba(124, 77, 255, .25);
}

.bt-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.bt-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent), var(--accent5));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bt-hero p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.65;
}

.bt-hero .bt-hero-note {
    margin-top: 14px;
    color: var(--text);
}

.bt-chiffres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bt-chiffres span {
    display: flex;
    flex-direction: column;
    min-width: 108px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface2);
    font-size: 12px;
    color: var(--text-dim);
}

.bt-chiffres strong {
    font-size: 22px;
    color: var(--text);
}

.bt-section {
    margin: 0 0 34px;
}

.bt-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 20px;
}

.bt-section h2 .mdi {
    color: var(--accent);
}

.bt-section-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.bt-section-tete h2 {
    margin: 0;
}

/* choix de la version */
.bt-versions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bt-version {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 2px solid var(--border2);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.bt-version:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.bt-version:focus-visible {
    outline: 3px solid rgba(29, 155, 240, .35);
    outline-offset: 2px;
}

.bt-version.is-choisie {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(29, 155, 240, .12);
}

.bt-version.is-beta.is-choisie {
    border-color: var(--accent5);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .14);
}

.bt-version strong {
    font-size: 17px;
}

.bt-version-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bt-coche {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border2);
    border-radius: 50%;
    color: transparent;
    font-size: 14px;
}

.bt-version.is-choisie .bt-coche {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.bt-version.is-beta.is-choisie .bt-coche {
    background: var(--accent5);
}

.bt-version-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.bt-version-pied {
    margin-top: auto;
    padding-top: 4px;
    font-size: 12px;
    color: var(--text-dimmer);
}

.bt-pastille {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.bt-pastille.is-stable {
    color: #008a5c;
    background: rgba(0, 186, 124, .12);
}

.bt-pastille.is-beta {
    color: var(--accent5);
    background: rgba(124, 77, 255, .12);
}

.bt-panneau {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.bt-panneau.is-beta {
    border-color: rgba(124, 77, 255, .3);
}

.bt-panneau[hidden] {
    display: none;
}

.bt-panneau-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 14px;
}

.bt-panneau h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 20px;
}

.bt-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
}

.bt-panneau > p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 13px;
}

.bt-acces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-avertissement {
    margin: 0 0 16px;
}

.bt-notes {
    padding: 4px 2px 6px;
}

.bt-panneau-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.bt-empreinte {
    flex: 1 1 260px;
    min-width: 0;
    font-size: 11px;
    color: var(--text-dimmer);
    overflow-wrap: anywhere;
}

.bt-empreinte code {
    font-size: 11px;
}

.bt-vide {
    margin-bottom: 16px;
}

/* signalements */
.bt-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.bt-filtres .form-input {
    width: auto;
    min-width: 0;
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 13px;
}

.bt-filtres input[type="search"] {
    flex: 1 1 200px;
}

.bt-case {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    cursor: pointer;
}

.bt-case input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.bt-compte {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.bt-ligne.is-traite .fr-ligne-titre {
    color: var(--text-dim);
}

.bt-gravite-ico {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 19px;
}

.bt-gravite-ico.is-bloquant { color: #c4141e; background: rgba(244, 33, 46, .1); }
.bt-gravite-ico.is-majeur { color: #c25f00; background: rgba(255, 122, 0, .12); }
.bt-gravite-ico.is-mineur { color: var(--text-dim); background: var(--surface3); }
.bt-gravite-ico.is-suggestion { color: #5b34d1; background: rgba(124, 77, 255, .1); }

.bt-badge .mdi {
    font-size: 13px;
}

.bt-module,
.bt-num {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--text-dim);
    background: var(--surface3);
}

.bt-num {
    font-weight: 600;
    color: var(--accent5);
    background: rgba(124, 77, 255, .08);
}

.bt-votes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--accent);
}

.bt-votes.is-zero {
    font-weight: 400;
    color: var(--text-dimmer);
}

.bt-archives {
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
}

.bt-admin-lien {
    text-align: right;
    font-size: 13px;
}

/* formulaire de signalement */
.bt-gravites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.bt-gravites legend {
    grid-column: 1 / -1;
    margin-bottom: 6px;
}

.bt-gravite {
    position: relative;
    cursor: pointer;
}

.bt-gravite input {
    position: absolute;
    opacity: 0;
}

.bt-gravite > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 7px;
    height: 100%;
    padding: 11px 13px;
    box-sizing: border-box;
    border: 2px solid var(--border2);
    border-radius: 12px;
    transition: border-color .15s, background .15s;
}

.bt-gravite small {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
}

.bt-gravite .mdi {
    font-size: 18px;
}

.bt-gravite input:focus-visible + span {
    outline: 3px solid rgba(29, 155, 240, .35);
    outline-offset: 2px;
}

.bt-gravite.is-bloquant .mdi { color: #c4141e; }
.bt-gravite.is-majeur .mdi { color: #c25f00; }
.bt-gravite.is-mineur .mdi { color: var(--text-dim); }
.bt-gravite.is-suggestion .mdi { color: #5b34d1; }
.bt-gravite.is-bloquant input:checked + span { border-color: #f4212e; background: rgba(244, 33, 46, .06); }
.bt-gravite.is-majeur input:checked + span { border-color: #ff7a00; background: rgba(255, 122, 0, .07); }
.bt-gravite.is-mineur input:checked + span { border-color: var(--text-dim); background: var(--surface2); }
.bt-gravite.is-suggestion input:checked + span { border-color: var(--accent5); background: rgba(124, 77, 255, .06); }

.bt-code {
    font-family: var(--font-mono);
    font-size: 13px;
    tab-size: 2;
    white-space: pre;
}

.bt-prive {
    align-items: flex-start;
    margin-top: 4px;
}

.bt-prive input {
    margin-top: 3px;
    flex: none;
}

.bt-prive small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.bt-capture-apercu {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.bt-capture-apercu[hidden] {
    display: none;
}

/* page d'un signalement */
.bt-rapport-tete h1 {
    margin: 10px 0 6px;
}

.bt-id {
    color: var(--text-dimmer);
    font-weight: 500;
}

.bt-vote-zone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.bt-vote:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.bt-vote.is-on {
    border-color: var(--accent);
    background: rgba(29, 155, 240, .1);
    color: var(--accent);
}

.bt-vote.is-lecture {
    cursor: default;
}

.bt-vote .mdi {
    font-size: 18px;
}

.bt-rapport section + section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.bt-rapport h2,
.bt-admin-statut h2,
.bt-fil > h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-size: 15px;
}

.bt-rapport h2 .mdi,
.bt-fil > h2 .mdi {
    color: var(--accent);
}

.bt-admin-statut h2 .mdi {
    color: var(--accent5);
}

.bt-capture {
    display: inline-block;
    max-width: 100%;
}

.bt-capture img {
    display: block;
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    cursor: zoom-in;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.bt-admin-statut {
    border-color: rgba(124, 77, 255, .3);
}

.bt-fil {
    margin-top: 26px;
}

.bt-fil-vide {
    margin: 0 0 14px;
}

.bt-evenement {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.bt-evenement .mdi {
    color: var(--accent5);
}

.bt-evenement span {
    font-weight: 400;
    color: var(--text-dimmer);
}

.bt-message-admin {
    border-color: rgba(124, 77, 255, .3);
}

/* administration */
.bt-adm-onglets {
    display: flex;
    gap: 6px;
    margin: 0 0 16px;
}

.bt-adm-onglets a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.bt-adm-onglets a.is-active {
    border-color: var(--accent);
    background: rgba(29, 155, 240, .1);
    color: var(--accent);
}

.bt-adm-fichier {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.bt-adm-statut {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bt-adm-statut .form-input {
    width: auto;
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 12px;
}

.bt-adm-statut input[type="text"] {
    width: 120px;
}

@media (max-width: 640px) {
    .bt-hero {
        padding: 22px 18px;
    }

    .bt-panneau {
        padding: 18px 16px;
    }

    .bt-panneau-tete .btn,
    .bt-acces,
    .bt-acces .btn {
        width: 100%;
        justify-content: center;
    }

    .bt-filtres .form-input {
        flex: 1 1 45%;
    }

    .bt-adm-statut {
        flex-wrap: wrap;
    }
}

.bt-panneau.is-beta .bt-telecharger {
    background: var(--accent5);
    border-color: var(--accent5);
}
