/* === BIATHLONLIVE ATLAS — design tokens (port styles.css) === */
/* Les pages /sites/{slug}/ sont désormais rendues DANS le conteneur de contenu
   du thème (.entry-content), donc plus besoin d'un wrapper .bsites-shell dédié.
   On garde le sélecteur pour la rétro-compat des tokens. */
.bsites-root, .bsites-shell {
    --bsites-red: #cf000f;
    --bsites-red-dark: #a8000c;
    --bsites-red-50: #fff1f2;
    --bsites-red-100: #ffe2e4;

    --bsites-ink: #0e1116;
    --bsites-ink-2: #2a2f38;
    --bsites-muted: #6a7382;
    --bsites-muted-2: #93a0b0;

    --bsites-snow: #fbfbf9;
    --bsites-snow-2: #f4f3ee;
    --bsites-snow-3: #ebe9e1;
    --bsites-line: #e6e2d6;
    --bsites-line-2: #d9d4c4;

    --bsites-ice: #d8e7f0;
    --bsites-ice-2: #b9d2e0;
    --bsites-ice-3: #7a9fb3;
    --bsites-ice-4: #345a73;

    --bsites-sans: 'Ubuntu', system-ui, -apple-system, sans-serif;
    --bsites-mono: 'Ubuntu Mono', ui-monospace, monospace;

    --bsites-r-s: 6px;
    --bsites-r-m: 10px;
    --bsites-r-l: 16px;
    --bsites-r-xl: 22px;
}

.bsites-root, .bsites-root * { box-sizing: border-box; }
/* Neutralise le a:hover{text-decoration:underline} du thème WP : chaque lien
   gère déjà son propre style (bordure, fond…), le soulignement fait doublon.
   !important nécessaire : à spécificité égale, l'ordre d'impression entre le
   CSS du thème et celui du plugin n'est pas garanti (les deux s'accrochent à
   wp_enqueue_scripts en priorité par défaut). */
.bsites-root a,
.bsites-root a:hover,
.bsites-root a:focus,
.bsites-root a:active { text-decoration: none !important; }
.bsites-root {
    font-family: var(--bsites-sans);
    color: var(--bsites-ink);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Fond transparent — le fond de la page WP (thème) est visible en dessous.
   La div .bsites-bg est conservée dans l'atlas.js mais n'a plus de style. */
.bsites-root .bsites-bg { display: none; }
.bsites-root > * { position: relative; z-index: 1; }

/* Buttons & chips */
.bsites-root .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--bsites-line);
    background: #fff;
    color: var(--bsites-ink);
    font-family: var(--bsites-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease;
    letter-spacing: -0.005em;
    text-decoration: none;
}
.bsites-root .btn:hover { border-color: var(--bsites-ink); }
.bsites-root .btn.primary { background: var(--bsites-red); color: #fff; border-color: var(--bsites-red); }
.bsites-root .btn.primary:hover { background: var(--bsites-red-dark); border-color: var(--bsites-red-dark); }
.bsites-root .btn.ghost { background: transparent; }
.bsites-root .btn:focus-visible { outline: 2px solid var(--bsites-red); outline-offset: 2px; }

/* Bulle style aligné sur le plugin biathlon-classements (.cb-tab-btn).
   Bord gris épais, texte gris, hover rouge, active rouge plein. */
.bsites-root .chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 20px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    /* Ubuntu explicite — les <button> n'héritent pas de la font parent par défaut.
       Aligné sur .cb-tab-btn du plugin biathlon-classements. */
    font-family: 'Ubuntu', var(--bsites-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    user-select: none;
    white-space: nowrap;
}
.bsites-root .chip:hover { border-color: var(--bsites-red); color: var(--bsites-red); background: #fff; }
.bsites-root .chip.active {
    background: var(--bsites-red);
    border-color: var(--bsites-red);
    color: #fff;
    font-weight: 600;
}
.bsites-root .chip.active:hover { background: var(--bsites-red); color: #fff; }

.bsites-root .eyebrow {
    font-family: var(--bsites-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bsites-muted);
}

.bsites-root .h-display {
    font-family: var(--bsites-sans);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.bsites-root .card {
    background: #fff;
    border: 1px solid var(--bsites-line);
    border-radius: var(--bsites-r-l);
}

.bsites-root .stat .label {
    font-family: var(--bsites-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bsites-muted);
    margin-bottom: 6px;
}
.bsites-root .stat .value {
    font-family: var(--bsites-sans);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.025em;
}
.bsites-root .stat .value sup { font-size: 14px; color: var(--bsites-muted); margin-left: 4px; }

/* Animations */
.bsites-root .reveal { animation: bsites-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes bsites-reveal {
    from { opacity: 0.001; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bars */
.bsites-root .bar-track {
    height: 6px;
    background: var(--bsites-snow-3);
    border-radius: 999px;
    overflow: hidden;
}
.bsites-root .bar-fill {
    height: 100%;
    background: var(--bsites-ink);
    border-radius: 999px;
    transform-origin: left;
    animation: bsites-barGrow 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bsites-barGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Leaflet map container */
.bsites-root .bsites-map {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: var(--bsites-r-l);
}
.bsites-root .bsites-map .leaflet-container {
    background: #d8e9f3;
    font-family: var(--bsites-sans);
    border-radius: var(--bsites-r-l);
}
.bsites-root .bsites-map .bsites-marker {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bsites-red);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(14,17,22,0.18), 0 2px 6px rgba(14,17,22,0.18);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bsites-root .bsites-map .bsites-marker:hover { transform: scale(1.25); }
.bsites-root .bsites-map .bsites-marker.selected::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid var(--bsites-red);
    animation: bsites-pulseRing 1800ms ease-out infinite;
}
@keyframes bsites-pulseRing {
    0%   { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}
/* Leaflet tooltip override (we want our look) */
.bsites-root .bsites-map .leaflet-tooltip.bsites-tooltip {
    background: var(--bsites-ink);
    color: #fff;
    border: none;
    border-radius: var(--bsites-r-m);
    box-shadow: 0 8px 24px rgba(14,17,22,0.18);
    padding: 10px 14px;
    font-family: var(--bsites-sans);
    white-space: nowrap;
}
.bsites-root .bsites-map .leaflet-tooltip.bsites-tooltip::before { display: none; }
.bsites-root .bsites-map .leaflet-tooltip.bsites-tooltip .name {
    font-weight: 700; font-size: 15px; margin-bottom: 2px; letter-spacing: -0.01em;
}
.bsites-root .bsites-map .leaflet-tooltip.bsites-tooltip .meta {
    font-family: var(--bsites-mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7;
}

/* Atlas page layout */
.bsites-root .atlas-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}
/* Aucun site sélectionné → la carte prend toute la largeur. */
.bsites-root .atlas-grid.expanded {
    grid-template-columns: 1fr;
}
.bsites-root .atlas-shell { padding: 0 0 40px; }
.bsites-root .atlas-hero  { padding: 40px 0 28px; }
.bsites-root .atlas-hero h1 {
    font-size: clamp(48px, 7vw, 84px);
    margin: 0;
}
.bsites-root .atlas-hero p {
    margin-top: 18px;
    font-size: 18px;
    color: var(--bsites-muted);
    max-width: 640px;
    line-height: 1.5;
    text-wrap: pretty;
}
.bsites-root .atlas-hero em { color: var(--bsites-red); font-style: normal; }

/* Barre de filtres :
   - Ligne 1 : search-pill centrée, ~1/3 largeur (min 280px)
   - Ligne 2 : chips-row centrée (wrap desktop, swipe horizontal mobile)
   z-index élevé pour que la dropdown autocomplete passe au-dessus de la carte
   Leaflet (dont les .leaflet-*-pane sont scopés à leur propre container). */
.bsites-root .filter-bar {
    position: relative; z-index: 500;
    display: flex; flex-direction: column; gap: 26px; padding-bottom: 4px;
}
.bsites-root .search-row {
    display: flex; justify-content: center;
}
.bsites-root .search-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--bsites-line);
    border-radius: 999px; padding: 4px 4px 4px 16px;
    width: 50%; min-width: 320px; max-width: 620px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bsites-root .search-pill.open { border-color: var(--bsites-red); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.bsites-root .search-pill input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font: inherit; font-family: 'Ubuntu', var(--bsites-sans);
    font-size: 15px; padding: 10px 4px; color: var(--bsites-ink);
}

/* Bouton X pour vider la recherche — pas de bulle, juste l'icône cliquable. */
.bsites-root .search-clear {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    padding: 0; margin-right: 4px;
    background: transparent; border: 0; border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s;
}
.bsites-root .search-clear:hover { background: rgba(0,0,0,0.06); }
.bsites-root .search-clear:focus-visible { outline: 2px solid var(--bsites-red); outline-offset: 2px; }

/* Dropdown autocomplete sous la search-pill — z-index au-dessus de Leaflet. */
.bsites-root .search-suggestions {
    list-style: none; margin: 0; padding: 6px 0;
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 320px; overflow-y: auto;
    z-index: 1000;
}
.bsites-root .sug-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 16px; cursor: pointer;
    font-family: 'Ubuntu', var(--bsites-sans); font-size: 14px;
    color: #333;
    transition: background 0.12s, color 0.12s;
}
.bsites-root .sug-item:hover, .bsites-root .sug-item.active {
    background: #fff5f5; color: var(--bsites-red);
}
.bsites-root .sug-name { flex: 1; font-weight: 500; }
.bsites-root .sug-country {
    font-family: 'Ubuntu Mono', var(--bsites-mono);
    font-size: 11px; letter-spacing: 0.08em;
    color: var(--bsites-muted); text-transform: uppercase;
}
.bsites-root .sug-item.active .sug-country { color: var(--bsites-red); opacity: 0.7; }
.bsites-root .chips-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; align-items: center;
}

.bsites-root .sites-grid {
    /* Même écartement que filter-bar → carte (padding-bottom 4px + atlas-grid
       margin-top 20px = 24px), pour équilibrer les espaces au-dessus/au-dessous
       de la carte. */
    margin-top: 24px;
}
.bsites-root .sites-grid h2 { font-size: 36px; margin: 0 0 18px; }
.bsites-root .sites-grid .grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.bsites-root .site-row {
    padding: 16px; cursor: pointer; transition: all 200ms ease;
    background: #fff; color: var(--bsites-ink);
}
.bsites-root .site-row.active { background: var(--bsites-ink); color: #fff; border-color: var(--bsites-ink); }
.bsites-root .site-row .name { font-size: 24px; margin-bottom: 8px; }
.bsites-root .site-row .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.bsites-root .site-row .tag {
    font-family: var(--bsites-mono); font-size: 9.5px; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: 999px; text-transform: uppercase; font-weight: 600;
}

/* Site panel */
.bsites-root .site-panel { padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.bsites-root .site-panel .head {
    display: flex; align-items: center; justify-content: space-between;
}
.bsites-root .site-panel .country {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--bsites-mono); font-size: 12px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bsites-muted);
}
.bsites-root .site-panel .name { font-size: 38px; line-height: 1; }
.bsites-root .site-panel .meta { margin-top: 6px; color: var(--bsites-muted); font-size: 13px; }
.bsites-root .site-panel .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bsites-root .site-panel .stat-cell {
    padding: 14px; border: 1px solid var(--bsites-line);
    border-radius: 10px; background: var(--bsites-snow-2);
}
.bsites-root .site-panel .next-event {
    background: var(--bsites-red); color: #fff; border-radius: 12px; padding: 14px;
}
.bsites-root .site-panel .next-event .lbl { color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.bsites-root .site-panel .next-event .ttl { font-weight: 700; font-size: 16px; }
.bsites-root .site-panel .next-event .sub { margin-top: 4px; color: rgba(255,255,255,0.85); font-size: 13px; }

/* SITE PAGE */
/* Padding horizontal à 0 : le conteneur .entry-content du thème fournit déjà
   la largeur et les marges latérales des pages /sites/{slug}/. */
.bsites-root .site-shell { padding: 0 0 60px; }
.bsites-root .breadcrumb {
    padding-top: 24px; display: flex; align-items: center; gap: 8px;
    /* rgb(42, 47, 56) = --bsites-ink-2. Couleur unique pour toute la zone
       (bouton retour, chevrons, pays, site actuel) : structure et tailles
       inchangées, seule la couleur du texte est harmonisée. */
    font-size: 13px; color: var(--bsites-ink-2);
}
.bsites-root .breadcrumb a { color: inherit; text-decoration: none; }
.bsites-root .breadcrumb .current { color: var(--bsites-ink-2); }

.bsites-root .site-hero {
    margin-top: 18px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bsites-line);
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.bsites-root .site-hero .photo {
    position: absolute; inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.bsites-root .site-hero .photo.placeholder {
    background: repeating-linear-gradient(135deg, #2a2f38 0 14px, #1f242c 14px 28px);
}
.bsites-root .site-hero .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(14,17,22,0.20) 0%, rgba(14,17,22,0.10) 35%,
        rgba(14,17,22,0.55) 65%, rgba(14,17,22,0.85) 100%);
}
.bsites-root .site-hero .watercolor {
    position: absolute; top: -140px; right: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(207,0,15,0.32) 0%, rgba(207,0,15,0) 70%);
    border-radius: 50%;
}
.bsites-root .site-hero .content {
    position: relative; z-index: 2; padding: 40px; width: 100%;
}
.bsites-root .site-hero h1,
.bsites-root .site-hero .content h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    margin: 0;
    max-width: 75%;
    /* !important : le thème Voice force une couleur sombre sur h1. */
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.bsites-root .site-hero .venue-line {
    margin-top: 12px; font-size: 17px; color: rgba(255,255,255,0.85);
}
.bsites-root .site-hero .actions {
    margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap;
}
.bsites-root .site-hero .actions .btn {
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.bsites-root .site-hero .actions .btn.primary {
    background: var(--bsites-red); border-color: var(--bsites-red);
}

.bsites-root .key-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--bsites-line);
    border: 1px solid var(--bsites-line);
    border-radius: 16px;
    overflow: hidden;
}
.bsites-root .key-stats .cell { background: #fff; padding: 22px 20px; }
/* Échelle harmonisée : les 4 cellules partagent le même corps, sinon les deux
   premières (une seule ligne en 36px) creusaient un vide face aux deux autres. */
.bsites-root .key-stats .cell .h-display { font-size: 26px; }
.bsites-root .key-stats .cell .eyebrow   { font-size: 10px; }
/* Unité en toutes lettres : sur la ligne de base, pas en exposant. */
.bsites-root .key-stats .cell .unit {
    font-size: 14px; font-weight: 400;
    color: var(--bsites-ink-2); margin-left: 5px;
}

/* Liste des étapes accueillies (site page + panel) */
.bsites-root .stages-list, .bsites-root .panel-stages { display: flex; flex-direction: column; gap: 6px; }
/* row-reverse : le chiffre passe à gauche alors que le DOM porte le libellé en
   premier. `flex-end` (et non space-between) colle le libellé au chiffre, et le
   min-width sur .sl-n aligne tous les libellés sur la même colonne malgré des
   chiffres de largeurs différentes (1 vs 38). */
.bsites-root .stages-line {
    display: flex; flex-direction: row-reverse; align-items: baseline;
    justify-content: flex-end; gap: 8px;
}
.bsites-root .stages-line .sl-label {
    font-family: var(--bsites-sans); font-size: 14px; color: rgb(42, 47, 56);
    line-height: 1.2;
}
.bsites-root .stages-line .sl-n {
    font-family: var(--bsites-sans); font-weight: 700; font-size: 26px;
    color: var(--bsites-ink); line-height: 1;
    min-width: 34px; text-align: right;
}
.bsites-root .panel-stages {
    padding: 14px; border: 1px solid var(--bsites-line);
    border-radius: 12px; background: var(--bsites-snow-2, #f7f7f4);
}

/* Hiérarchie inversée : la date porte l'information neuve (le « quand »), le
   type de compétition est déjà répété ailleurs sur la page → il passe dessous. */
.bsites-root .countdown-cell .ns-date {
    font-family: var(--bsites-sans); font-weight: 700; font-size: 17px;
    line-height: 1.15; color: var(--bsites-ink);
}
.bsites-root .countdown-cell .ns-type {
    margin-top: 5px; font-size: 14px; color: var(--bsites-ink-2);
}
.bsites-root .countdown-cell .cta {
    margin-top: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid var(--bsites-line);
    background: #fff; color: var(--bsites-ink);
    font-size: 12px; font-weight: 500; font-family: var(--bsites-sans);
    text-decoration: none; transition: all 160ms ease;
}
.bsites-root .countdown-cell .cta:hover {
    background: var(--bsites-ink); color: #fff; border-color: var(--bsites-ink);
}

.bsites-root .site-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 24px;
    margin-top: 32px;
}
.bsites-root .site-body > div { display: flex; flex-direction: column; gap: 24px; }

.bsites-root .module { padding: 28px; }
.bsites-root .module.s { padding: 24px; }
.bsites-root .module h2 { font-size: 26px; margin: 4px 0 0; }

.bsites-root .desc-text {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    text-wrap: pretty;
    color: var(--bsites-ink-2);
}
.bsites-root .desc-text .dropcap {
    float: left; font-family: var(--bsites-sans); font-weight: 700;
    font-size: 58px; line-height: 0.9; margin-right: 10px; margin-top: 4px;
    color: var(--bsites-red); letter-spacing: -0.04em;
}

.bsites-root .weather-grid {
    margin-top: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.bsites-root .weather-cell {
    padding: 14px; border-radius: 10px;
    background: var(--bsites-snow-2); border: 1px solid var(--bsites-line);
}
.bsites-root .weather-cell .v { font-size: 22px; }
.bsites-root .weather-cell .extra {
    margin-top: 8px; font-size: 11px; color: var(--bsites-muted);
    font-family: var(--bsites-mono); letter-spacing: 0.04em;
}

.bsites-root .palmares-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bsites-line);
}
.bsites-root .palmares-row:last-child { border-bottom: 0; }
.bsites-root .palmares-row .nat {
    font-family: var(--bsites-mono); font-size: 11px;
    color: var(--bsites-muted); letter-spacing: 0.06em;
}
.bsites-root .palmares-row .bar { width: 90px; height: 6px; background: var(--bsites-snow-3); border-radius: 999px; overflow: hidden; }
.bsites-root .palmares-row .bar > div {
    height: 100%; background: var(--bsites-red); border-radius: 999px;
    animation: bsites-barGrow 800ms cubic-bezier(0.22,1,0.36,1) both;
}
.bsites-root .palmares-row .wins { font-size: 22px; width: 36px; text-align: right; font-weight: 700; letter-spacing: -0.025em; }
.bsites-root .palmares-row .wins .x { font-size: 12px; color: var(--bsites-muted); margin-left: 2px; }

.bsites-root .pratique-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-top: 1px solid var(--bsites-line);
}
.bsites-root .pratique-row:first-child { border-top: 0; }
.bsites-root .pratique-row .icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--bsites-snow-2); border: 1px solid var(--bsites-line);
    display: flex; align-items: center; justify-content: center;
}
.bsites-root .pratique-row .sub {
    font-size: 10px; font-family: var(--bsites-mono);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bsites-muted); margin-bottom: 2px;
}

.bsites-root .related-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 10px;
    cursor: pointer; border: 1px solid var(--bsites-line);
    transition: all 160ms ease; text-decoration: none; color: inherit;
}
.bsites-root .related-row:hover { border-color: var(--bsites-ink); }

.bsites-root .news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.bsites-root .news-card {
    display: flex; flex-direction: column;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--bsites-line); background: #fff;
    text-decoration: none; color: inherit;
    cursor: pointer; transition: all 200ms ease;
}
.bsites-root .news-card:hover { transform: translateY(-2px); border-color: var(--bsites-ink); }
.bsites-root .news-card .thumb {
    position: relative; aspect-ratio: 16/10;
    background: repeating-linear-gradient(135deg,
        var(--bsites-snow-2) 0 8px, var(--bsites-snow-3) 8px 16px);
    border-bottom: 1px solid var(--bsites-line);
}
.bsites-root .news-card .thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.bsites-root .news-card .tag-site {
    position: absolute; top: 10px; left: 10px;
    background: var(--bsites-red); color: #fff;
    padding: 4px 10px; border-radius: 999px;
    font-family: var(--bsites-mono); font-size: 10px;
    font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; white-space: nowrap;
}
.bsites-root .news-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bsites-root .news-card .meta {
    font-family: var(--bsites-mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--bsites-muted);
}
.bsites-root .news-card .title {
    font-size: 15px; font-weight: 700; line-height: 1.25;
    letter-spacing: -0.01em; text-wrap: pretty;
}
.bsites-root .news-card .excerpt {
    font-size: 12.5px; color: var(--bsites-muted); line-height: 1.4;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flag chip */
.bsites-root .bsites-flag {
    display: inline-block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.08);
    vertical-align: middle;
    line-height: 0;
    flex-shrink: 0;
}

/* Noscript fallback */
.bsites-noscript {
    padding: 40px 32px;
    font-family: var(--bsites-sans, system-ui, sans-serif);
    max-width: 1200px; margin: 0 auto;
}
.bsites-noscript-list { list-style: none; padding: 0; }
.bsites-noscript-list li { padding: 8px 0; border-bottom: 1px solid #e6e2d6; }

/* Responsive */
@media (max-width: 980px) {
    .bsites-root .atlas-grid { grid-template-columns: 1fr; }
    .bsites-root .site-body { grid-template-columns: 1fr; }
    .bsites-root .site-panel .stats { grid-template-columns: 1fr 1fr; }
    .bsites-root .key-stats { grid-template-columns: 1fr 1fr; }
    .bsites-root .site-hero { min-height: 300px; }
    .bsites-root .site-hero h1 { max-width: 100%; }
    .bsites-root .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    /* Plus de marge latérale sur mobile : tout le contenu va bord à bord
       (auparavant 16px, compensés ailleurs par des margin négatifs — retirés
       en même temps ci-dessous pour ne pas faire déborder la page). */
    .bsites-root .weather-grid { grid-template-columns: 1fr; }
    .bsites-root .search-pill { width: 100%; min-width: 0; max-width: none; }

    /* Carte : moins haute, déjà pleine largeur par défaut sans padding parent. */
    .bsites-root .bsites-map {
        min-height: 320px;
    }

    /* Chips : swipe horizontal comme les onglets du plugin classements */
    .bsites-root .chips-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
    }
    .bsites-root .chips-row::-webkit-scrollbar { display: none; }
    .bsites-root .chip {
        flex: 0 0 auto;
        padding: 7px 16px;
        scroll-snap-align: start;
    }
}
