/* Pages ville (site v2) : un article du blog, ouvert par une fiche chiffrée et ponctué de deux mini tableaux de bord.
 * Charte : un seul orange (#fc8822) et son surlignage pâle (#ffb877). L'orange contraste mal sur fond clair :
 * jamais de texte orange sur blanc, les chiffres restent en marine. */

/* Site v2 : le hero est celui des articles (css/v2-blog.css) ; ses deux pastilles, puis la fiche chiffrée en tête d'article */
.ville-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ville-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--t-titre) 9%, transparent); color: var(--t-sub); font: 500 13.5px/1.3 var(--texte); }
.ville-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ville-badges .ville-ico { width: 15px; height: 15px; color: #fc8822; }

/* Fiche chiffrée : une feuille blanche, trois chiffres */
.ville-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin: 0 0 40px; padding: 8px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(19, 40, 75, .1), 0 8px 0 var(--rebord); }
.ville-mini__ligne { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 0; }
.blog-content .ville-mini__ligne p { margin: 0; }
.ville-mini__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(252, 136, 34, .12); color: #c4600c; }
.ville-mini__ligne strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; color: #13284b; font-variant-numeric: tabular-nums; }
.ville-mini__ligne small { display: block; font-size: 13px; line-height: 1.35; color: #3f5870; }
.ville-mini__ligne--accent .ville-mini__ic { background: #fc8822; color: #13284b; }

/* Ouverture de section : un grand chiffre, une phrase */
.blog-content .ville-ouverture {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 8px 0 20px;
}

.ville-ouverture strong {
    font-family: var(--titre);
    font-size: clamp(36px, 4vw, 46px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--s-txt);
}

.ville-ouverture span {
    font-size: 16.5px;
    color: var(--s-doux);
}

/* Graphiques en HTML : le texte garde sa taille sur mobile, contrairement à un SVG mis à l'échelle. */
.blog-content .ville-graphe__titre {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.blog-content .ville-barres,
.blog-content .ville-legende {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-content ul.ville-barres li {
    display: grid;
    grid-template-columns: 7rem 1fr 2.5rem;
    gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    padding: 0;
    font-size: 0.9rem;
    color: #13284b;
}


.ville-barres b {
    height: 22px;
    border-radius: 6px;
    background: #cbd5e1;
}

.ville-barres b.is-accent {
    background: #fc8822;
}

.ville-barres strong {
    font-weight: 800;
}

.blog-content .ville-graphe svg {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.blog-content .ville-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 14px;
}

.blog-content ul.ville-legende li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.ville-legende i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.ville-legende strong {
    color: #13284b;
}

/* Second mini tableau de bord : les échéances, même grammaire de lignes que la fiche */
.ville-echeances {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    margin: 24px 0;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 220, 215, 0.4);
    box-shadow: 0 4px 24px rgba(19, 40, 75, 0.06);
}

.ville-echeances__anneau {
    position: relative;
    width: 150px;
    height: 150px;
}

.ville-echeances__anneau svg {
    width: 100%;
    height: 100%;
}

.ville-echeances__anneau p {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    margin: 0;
    text-align: center;
}

.ville-echeances__anneau strong {
    font-size: 1.7rem;
    font-weight: 800;
    color: #13284b;
}

.ville-echeances__anneau small {
    font-size: 0.8rem;
    color: #64748b;
}

.ville-echeances__alertes {
    display: grid;
}

.blog-content .ville-echeances__alerte {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #eef1f5;
    color: #475569;
}

.blog-content .ville-echeances__alerte:first-child {
    border-top: 0;
}

.blog-content .ville-echeances__note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.ville-echeances__alerte .ville-ico {
    color: #c4600c;
}

.ville-echeances__alerte strong {
    font-size: 1.2rem;
    color: #13284b;
}

.ville-echeances .btn {
    justify-self: start;
    margin-top: 12px;
}

/* Les autres villes : la page se lit comme une série de fiches */
.ville-autres {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.ville-autres h2 {
    margin: 0 0 20px;
    font-family: var(--titre);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: var(--titre-poids);
    letter-spacing: -0.02em;
    color: var(--s-txt);
    text-align: left;
}

/* Carte blanche du site : bordure grise, ombre douce. */
.ville-feuille {
    background: #fff;
    border: 1px solid rgba(226, 220, 215, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(19, 40, 75, 0.06);
    color: #13284b;
}

.ville-autres__liste {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ville-autres__carte {
    display: block;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ville-autres__carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(19, 40, 75, 0.1);
}

.ville-autres__nom {
    display: block;
    padding: 18px 18px 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.ville-autres__corps {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 18px 6px;
}

.ville-autres__france {
    width: 64px;
    height: 64px;
}

.ville-autres__france path {
    fill: #dce5ed;
}

.ville-autres__france circle {
    fill: #fc8822;
    stroke: #fff;
    stroke-width: 2.5;
}

.ville-autres__valeurs {
    display: grid;
    gap: 8px;
}

.ville-autres__valeurs span {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.ville-autres__valeurs small,
.ville-autres__mandats span {
    font-size: 12px;
    color: #64748b;
}

.ville-autres__valeurs b,
.ville-autres__mandats b {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: #13284b;
}

.ville-autres__mandats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 18px 8px;
}

.ville-autres__mandats i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 2px;
    background: #fc8822;
}

.ville-autres__barre {
    display: block;
    height: 6px;
    margin: 0 18px 18px;
    border-radius: 3px;
    background: #dce5ed;
    overflow: hidden;
}

.ville-autres__barre i {
    display: block;
    height: 100%;
    background: #fc8822;
}

@media (prefers-reduced-motion: reduce) {
    .ville-autres__carte {
        transition: none;
    }
}

@media (max-width: 960px) {
    .ville-autres__liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ville-mini {
        grid-template-columns: 1fr;
        padding: 4px 18px;
        margin-bottom: 32px;
    }

    .ville-mini__ligne {
        padding: 10px 0;
    }

    .ville-mini__ligne + .ville-mini__ligne {
        border-top: 1px solid #eef1f5;
    }

    .ville-mini__ligne strong {
        font-size: 20px;
    }

    .ville-echeances {
        grid-template-columns: 1fr;
    }

    .ville-autres {
        padding: 16px 16px 48px;
    }


    .ville-echeances__anneau {
        justify-self: center;
        width: 128px;
        height: 128px;
    }

    .ville-echeances .btn {
        justify-self: stretch;
        text-align: center;
    }

    .blog-content .ville-ouverture {
        flex-direction: column;
        gap: 6px;
    }
}

/* Grand écran : l'article est une grille (css/v2-blog.css) ; les autres villes s'étendent sous le texte et le sommaire */
@media (min-width: 871px) {
    .blog-suite:has(> .blog-article-wrapper) > .ville-autres { grid-column: 2 / 4; max-width: none; margin: 0; padding: 0 0 clamp(72px, 8vw, 120px); }
}
