/* Listes éditoriales Surfeurs Avertis — variantes sa-list--* dans .article-content */

.article-content .sa-list {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0 1.75rem;
}

.article-content .sa-list > li {
    margin: 0;
}

.article-content .sa-list > li + li {
    margin-top: 0.65rem;
}

/* —— Cartes empilées —— */
.article-content .sa-list--cards > li {
    padding: 0.85rem 1rem 0.9rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.55));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.article-content .sa-list--cards > li::marker {
    content: none;
}

/* —— Numéro en coin (ol) —— */
.article-content .sa-list--corner-num {
    counter-reset: sa-corner;
}

.article-content .sa-list--corner-num > li {
    position: relative;
    padding: 1rem 1rem 1rem 1.25rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(249, 115, 22, 0.25);
    background: rgba(15, 23, 42, 0.65);
    overflow: hidden;
    counter-increment: sa-corner;
}

.article-content .sa-list--corner-num > li::before {
    content: counter(sa-corner, decimal);
    position: absolute;
    top: -0.35rem;
    right: 0.65rem;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(249, 115, 22, 0.22);
    pointer-events: none;
}

/* —— Barre d’accent —— */
.article-content .sa-list--accent-bar > li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1rem;
    border-left: 3px solid #4ade80;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.08), transparent 70%);
}

.article-content .sa-list--accent-bar > li:nth-child(even) {
    border-left-color: #fb923c;
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.08), transparent 70%);
}

/* —— Coches —— */
.article-content .sa-list--check > li {
    position: relative;
    padding-left: 1.65rem;
}

.article-content .sa-list--check > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.3rem;
    border-left: 2px solid #4ade80;
    border-bottom: 2px solid #4ade80;
    transform: rotate(-45deg);
}

/* —— Étapes reliées (ol) —— */
.article-content .sa-list--steps {
    counter-reset: sa-step;
    padding-left: 0.25rem;
}

.article-content .sa-list--steps > li {
    position: relative;
    padding: 0.35rem 0 0.85rem 2.5rem;
    counter-increment: sa-step;
}

.article-content .sa-list--steps > li::before {
    content: counter(sa-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 9999px;
    line-height: 1.65rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.article-content .sa-list--steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 1.85rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.5), rgba(74, 222, 128, 0.05));
}

/* —— Pastilles —— */
.article-content .sa-list--pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.article-content .sa-list--pills > li {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.92em;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(30, 41, 59, 0.75);
}

.article-content .sa-list--pills > li + li {
    margin-top: 0;
}

/* —— Losanges —— */
.article-content .sa-list--diamond > li {
    position: relative;
    padding-left: 1.35rem;
}

.article-content .sa-list--diamond > li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    background: #f97316;
    transform: rotate(45deg);
    border-radius: 1px;
}

/* —— Grille 2 colonnes —— */
@media (min-width: 640px) {
    .article-content .sa-list--split {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1rem;
    }

    .article-content .sa-list--split > li + li {
        margin-top: 0;
    }
}

.article-content .sa-list--split > li {
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

/* —— Tirets discrets —— */
.article-content .sa-list--minimal-dash > li {
    position: relative;
    padding-left: 1.1rem;
    color: #cbd5e1;
}

.article-content .sa-list--minimal-dash > li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-weight: 600;
}

/* Admin (fond clair) */
.article-content.sa-list-admin-context .sa-list--cards > li {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.article-content.sa-list-admin-context .sa-list--corner-num > li {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #1e293b;
}

.article-content.sa-list-admin-context .sa-list--accent-bar > li {
    color: #334155;
}

.article-content.sa-list-admin-context .sa-list--steps > li::before {
    color: #fff;
}

.article-content.sa-list-admin-context .sa-list--pills > li {
    background: #f1f5f9;
    color: #334155;
}

.article-content.sa-list-admin-context .sa-list--split > li {
    background: #f8fafc;
    color: #334155;
}
