/* Cauri Charts : feuille de style unique, statique, mobile d'abord.
   Noir, blanc, gris et un seul accent violet #8B52FF (texte noir posé sur le violet).
   Pas de dégradés, pas d'effets décoratifs. */

:root {
    --ink: #111111;
    --ink-2: #3D3D3D;
    --muted: #6B6B6B;
    --line: #E5E5E5;
    --surface: #FFFFFF;
    --surface-2: #F5F5F5;
    --accent: #8B52FF;
    --on-accent: #111111;
    --danger: #B42318;
    --ok: #1F7A3A;
    --serif: "Bodoni 72", "Didot", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 960px;
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 16px/1.5 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden, .hp {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; align-items: center; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav__cta { background: var(--accent); color: var(--on-accent); padding: 6px 12px !important; border-radius: var(--radius); font-weight: 600; border: 0 !important; }

/* Messages */
.flash { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--ink); background: var(--surface-2); }
.flash--success { border-left-color: var(--ok); }
.flash--error { border-left-color: var(--danger); }
.notice { padding: 10px 14px; background: var(--surface-2); border-left: 4px solid var(--accent); }

/* En-tête de classement */
.chart-hero { padding-top: 32px; padding-bottom: 12px; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chart-hero__title { font-size: clamp(2.3rem, 9vw, 4.2rem); font-weight: 700; letter-spacing: -.01em; }
.chart-hero__lead { color: var(--ink-2); max-width: 60ch; margin: 0 0 16px; }
.chart-hero__period { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.chart-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.history select { font: inherit; padding: 6px 8px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface); max-width: 100%; }

.tabs { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.tabs__item { padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs__item + .tabs__item { border-left: 1px solid var(--ink); }
.tabs__item[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 12px; scrollbar-width: thin; }
.chip { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.chip[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

/* Liste de classement : le héros de la page */
.chart-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.entry {
    display: grid;
    grid-template-columns: 2.4rem 56px 1fr auto;
    grid-template-areas: "rank cover main move" "rank cover figures figures" "rank cover stats stats";
    align-items: center;
    gap: 2px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.entry__rank { grid-area: rank; font-family: var(--serif); font-weight: 700; font-size: 1.9rem; text-align: center; line-height: 1; }
.entry .cover { grid-area: cover; }
.entry__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.entry__title { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.entry__title:hover { text-decoration: underline; }
.entry__artist { color: var(--ink-2); font-size: .92rem; }
.entry__artist a { text-decoration: none; }
.entry__artist a:hover { text-decoration: underline; }
.feat { color: var(--muted); }
.entry__stats { grid-area: stats; display: flex; gap: 12px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry__stats abbr { text-decoration: none; font-weight: 600; }
/* N° 1 : verre dépoli violet posé sur de grandes particules qui flottent */
.entry--top {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 10px -12px; padding-left: 12px; padding-right: 12px;
    border: 1px solid rgba(139, 82, 255, .65); border-radius: 14px;
    background: rgba(139, 82, 255, .32);
    box-shadow: 0 10px 30px rgba(139, 82, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.entry--top::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(6px) saturate(170%); backdrop-filter: blur(6px) saturate(170%);
}
.entry--top .entry__rank { font-size: 2.6rem; color: #2A0E78; }
.entry--top .entry__artist, .entry--top .feat, .entry--top .entry__stats { color: #1E1240; }
.entry--top .cover { border-color: rgba(42, 14, 120, .35); background: rgba(255, 255, 255, .7); }
.particles { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.particles i { position: absolute; display: block; border-radius: 50%; background: #5B2BD6; opacity: .45; animation: cauri-float 16s ease-in-out infinite; }
.particles i:nth-child(1) { width: 44px; height: 44px; left: -10px; top: -14px; }
.particles i:nth-child(2) { width: 28px; height: 28px; left: 22%; top: 58%; animation-duration: 13s; animation-delay: -3s; background: #FFFFFF; opacity: .55; }
.particles i:nth-child(3) { width: 18px; height: 18px; left: 42%; top: 6px; animation-duration: 11s; animation-delay: -6s; background: #FFFFFF; opacity: .6; }
.particles i:nth-child(4) { width: 36px; height: 36px; left: 60%; top: 45%; animation-duration: 18s; animation-delay: -2s; opacity: .35; }
.particles i:nth-child(5) { width: 14px; height: 14px; left: 76%; top: 14%; animation-duration: 10s; animation-delay: -8s; background: #FFFFFF; opacity: .65; }
.particles i:nth-child(6) { width: 52px; height: 52px; right: -18px; bottom: -22px; animation-duration: 20s; animation-delay: -5s; opacity: .4; }
.particles i:nth-child(7) { width: 22px; height: 22px; left: 88%; top: 32%; animation-duration: 12s; animation-delay: -1s; background: #FFFFFF; opacity: .5; }
@keyframes cauri-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -9px) scale(1.12); }
    66% { transform: translate(-9px, 8px) scale(.92); }
}
@media (prefers-reduced-motion: reduce) { .particles i { animation: none; } }
.entry--compact { grid-template-columns: 1.8rem 40px 1fr auto; grid-template-areas: "rank cover main move"; padding: 8px 0; }
.entry--compact .entry__rank { font-size: 1.3rem; }
.entry--compact .cover { width: 40px; height: 40px; }
.entry--compact.entry--top { margin: 4px 0; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
.entry--compact.entry--top .entry__rank { font-size: 1.5rem; }
.entry--compact .particles i:nth-child(n+5) { display: none; }

.cover { width: 56px; height: 56px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; border-radius: 2px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__initials { font-family: var(--serif); font-weight: 700; color: var(--muted); }
.cover--large { width: 120px; height: 120px; flex: none; }
.cover--large .cover__initials { font-size: 2.4rem; }
.cover--round { border-radius: 50%; }

.move { grid-area: move; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 3.5em; }
.move--up { color: var(--ok); }
.move--down { color: var(--danger); }
.move--same { color: var(--muted); }
.move--new, .move--re { color: var(--ink); letter-spacing: .06em; }

.badge {
    display: inline-block; margin-top: 4px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.tag { display: inline-block; padding: 1px 7px; background: var(--surface-2); border-radius: 999px; font-size: .75rem; font-weight: 600; }

/* Boutons */
.button {
    display: inline-block; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius);
    background: var(--ink); color: var(--surface); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button--ghost { background: transparent; color: var(--ink); }
.button--small { padding: 4px 10px; font-size: .85rem; }
.button--danger { background: var(--danger); border-color: var(--danger); }
.chart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: " →"; }

/* Encarts de l'accueil */
.highlights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.highlight__title { font-size: 1.5rem; margin: 0; }
.highlight__title a { text-decoration: none; }
.highlight__desc { color: var(--muted); margin: 2px 0 0; font-size: .9rem; }
.section-title { font-size: 1.6rem; margin-top: 8px; }

.method-block { margin: 48px 0 24px; padding: 24px; border: 1px solid var(--ink); border-left: 8px solid var(--accent); }
.method-block__title { font-size: 1.5rem; }
.method-block p { max-width: 65ch; }

.countries { margin: 24px auto 48px; }

.empty { color: var(--muted); padding: 24px 0; }
.fineprint { color: var(--muted); font-size: .85rem; }

/* Fiches */
.profile { padding-top: 32px; padding-bottom: 48px; }
.profile__head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile__title { font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: 4px; }
.profile__sub { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 12px 0; }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stats dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; }
.stats small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); }
.panel { margin-top: 32px; }
.track-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.track-table li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.track-table__title { flex: 1 1 60%; font-weight: 700; text-decoration: none; }
.track-table__stat { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.platform-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; font-weight: 600; }

/* Courbe de position */
.rank-chart { width: 100%; height: auto; margin-top: 8px; }
.rank-chart__grid { stroke: var(--line); stroke-width: 1; }
.rank-chart__axis { fill: var(--muted); font: 12px var(--sans); }
.rank-chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rank-chart__dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.rank-chart__hit { fill: transparent; }
.rank-chart__pt:hover .rank-chart__dot { fill: var(--ink); }
.table-view { margin-top: 12px; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-size: .9rem; }

/* Texte long */
.prose { padding-top: 32px; padding-bottom: 48px; max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.steps { padding-left: 1.2em; }
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.data-table caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 6px; }
.data-table th, .data-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { border-bottom: 2px solid var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; }

/* Formulaires */
.form { margin-top: 24px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.form legend { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date],
.field input[type=number], .field input[type=url], .field input[type=tel], .field select, .field textarea {
    width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--surface);
}
.field__hint { margin: 0 0 6px; color: var(--muted); font-size: .85rem; }
.field__error { margin: 4px 0 0; color: var(--danger); font-size: .88rem; font-weight: 600; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); border-width: 2px; }
.field-row { display: grid; gap: 0 12px; }
.optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--ink); margin-top: 48px; padding: 32px 0 24px; background: var(--surface-2); }
.country-picker__title { font-size: 1.1rem; }
.country-picker ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.country-picker a { text-decoration: none; }
.cc { font-weight: 700; font-family: var(--serif); }
.site-footer__cols { display: grid; gap: 16px; }
.site-footer__about { margin: 0; color: var(--ink-2); max-width: 60ch; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.site-footer__legal { color: var(--muted); font-size: .8rem; margin: 24px 0 0; }

.error-page__code { font-family: var(--serif); font-size: 5rem; font-weight: 700; margin: 0; color: var(--accent); }
.debug { white-space: pre-wrap; background: var(--surface-2); padding: 12px; font-size: .85rem; }

@media (min-width: 640px) {
    .entry { grid-template-columns: 3rem 56px 1fr 8.5rem auto 8rem; grid-template-areas: "rank cover main figures move stats"; }
    .entry__stats { justify-content: flex-end; }
    .entry--compact { grid-template-columns: 1.8rem 40px 1fr auto; grid-template-areas: "rank cover main move"; }
    .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .site-footer__cols { grid-template-columns: 1fr auto; align-items: start; }
    .cover--large { width: 160px; height: 160px; }
}

@media (prefers-reduced-motion: no-preference) {
    a, .button { transition: background-color .15s, color .15s, border-color .15s; }
}

@media print {
    .site-header nav, .site-footer, .chart-actions, .chips, .tabs { display: none; }
}

/* Mise en page à deux colonnes (accueil, classements) : l'encadré remplit les côtés sur grand écran */
.page-grid { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.page-main { min-width: 0; }
.page-aside { display: grid; gap: 16px; align-content: start; padding-bottom: 32px; }
@media (min-width: 1080px) {
    .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
    .page-aside { padding-top: 32px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
}

.aside-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); }
.aside-card__title { font-size: 1.15rem; margin-bottom: 10px; }
.aside-card p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.aside-card__foot { margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px solid rgba(139, 82, 255, .25); font-weight: 600; color: var(--ink) !important; }
.aside-card--glass {
    background: rgba(139, 82, 255, .07); border-color: rgba(139, 82, 255, .3);
    box-shadow: 0 8px 24px rgba(139, 82, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.aside-card--quiet { background: var(--surface-2); border-color: transparent; }
.aside-card--cta { border: 1px solid var(--ink); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fact { display: grid; gap: 2px; }
.fact__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #5B2BD6; }
.fact__text { font-size: .93rem; }
.fact__text a { font-weight: 700; text-decoration: none; }
.fact__text a:hover { text-decoration: underline; }
.fact__text small { display: block; color: var(--muted); font-size: .8rem; }

.news-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.news-list__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .75rem; color: var(--muted); margin: 0 0 2px; }
.news-list__title { font-weight: 700; font-size: .93rem; text-decoration: none; line-height: 1.3; display: block; }
.news-list__title:hover { text-decoration: underline; }
.tag--classement { background: rgba(139, 82, 255, .14); }
.tag--sortie { background: #E7F4EC; }
.tag--evenement { background: #FFF3D6; }
.news-feed { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 28px; }
.news-feed__item { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.news-feed__title { font-size: 1.5rem; margin: 4px 0 6px; }
.news-feed__title a { text-decoration: none; }

/* Sélecteur de pays des pages de classement */
.country-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.country-switch a { font-family: var(--serif); font-weight: 700; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.country-switch a:hover { border-color: var(--ink); }
.country-switch a[aria-current="page"] { background: rgba(139, 82, 255, .12); border-color: var(--accent); }


/* Pages juridiques */
mark.todo { background: #FFF3D6; color: var(--ink); padding: 0 4px; border-radius: 2px; font-weight: 600; }
.legal .chips { margin: 16px 0 8px; }
.site-footer__links--legal { margin-top: 16px; font-size: .82rem; }

/* En-tête et pied de page alignés sur la largeur de la mise en page à deux colonnes */
.site-header .wrap, .site-footer .wrap { max-width: 1240px; }

/* Bandeau de consentement : refuser, personnaliser et accepter ont le même poids visuel */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner {
    max-width: 720px; width: 100%; padding: 20px; border-radius: 14px;
    background: rgba(255, 255, 255, .88); border: 1px solid rgba(139, 82, 255, .35);
    -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 16px 40px rgba(17, 17, 17, .18);
}
.consent__title { font-size: 1.25rem; margin-bottom: 6px; }
.consent__inner p { margin: 0 0 12px; font-size: .92rem; color: var(--ink-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent__actions .button { flex: 1 1 140px; text-align: center; }
.consent__panel { display: grid; gap: 10px; margin: 8px 0 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.consent__panel[hidden] { display: none; }
.consent__option { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.consent__option input { margin-top: 4px; }
.consent__option--locked { color: var(--muted); }

/* Clip YouTube chargé au clic */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1a1030; display: grid; place-items: center; text-align: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { display: grid; gap: 10px; justify-items: center; background: none; border: 0; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.video__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: rgba(139, 82, 255, .85); box-shadow: 0 0 0 10px rgba(139, 82, 255, .25); }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: var(--accent); }
.video__notice { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: .75rem; color: rgba(255, 255, 255, .75); }
.video__notice a { color: #fff; }
.video--playing .video__notice { display: none; }

/* Logo */
.brand__logo { height: 44px; width: auto; }
.site-footer__logo { height: 48px; width: auto; margin-bottom: 20px; }
@media (max-width: 480px) { .brand__logo { height: 38px; } }

/* Cartes pays : drapeau net + drapeau flouté en filigrane, n° 1 de la semaine */
.countries__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.country-card {
    position: relative; isolation: isolate; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; gap: 6px; padding: 16px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    text-decoration: none; box-shadow: 0 1px 2px rgba(17, 17, 17, .04);
}
.country-card::before {
    content: ""; position: absolute; z-index: -1; right: -30px; top: -20px; width: 150px; height: 100px;
    background-size: cover; background-position: center; opacity: .16; filter: blur(14px); transform: rotate(-8deg);
}
.country-card--tg::before { background-image: url("../img/flags/tg.svg"); }
.country-card--bj::before { background-image: url("../img/flags/bj.svg"); }
.country-card--gh::before { background-image: url("../img/flags/gh.svg"); }
.country-card--ci::before { background-image: url("../img/flags/ci.svg"); }
.country-card--sn::before { background-image: url("../img/flags/sn.svg"); }
.country-card--ng::before { background-image: url("../img/flags/ng.svg"); }
.country-card--bf::before { background-image: url("../img/flags/bf.svg"); }
.country-card--cv::before { background-image: url("../img/flags/cv.svg"); }
.country-card--gm::before { background-image: url("../img/flags/gm.svg"); }
.country-card--gw::before { background-image: url("../img/flags/gw.svg"); }
.country-card--lr::before { background-image: url("../img/flags/lr.svg"); }
.country-card--ne::before { background-image: url("../img/flags/ne.svg"); }
.country-card--sl::before { background-image: url("../img/flags/sl.svg"); }
.country-card--gn::before { background-image: url("../img/flags/gn.svg"); }
.country-card--ml::before { background-image: url("../img/flags/ml.svg"); }
.country-card--mr::before { background-image: url("../img/flags/mr.svg"); }
.country-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.country-card__flag { width: 48px; height: 32px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 4px 10px rgba(17, 17, 17, .12); }
.country-card__size { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.country-card__name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.15; margin-top: 4px; }
.country-card__one { display: grid; gap: 1px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; }
.country-card__one-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5B2BD6; }
.country-card__one-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-card__one-artist { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-card__one--empty { color: var(--muted); }
.country-card:hover { border-color: rgba(139, 82, 255, .6); box-shadow: 0 10px 26px rgba(139, 82, 255, .16); }
.country-card:hover::before { opacity: .26; }
.country-card--current { border-color: rgba(139, 82, 255, .65); background: rgba(139, 82, 255, .12); box-shadow: 0 10px 26px rgba(139, 82, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .7); }
.country-card--current .country-card__size { color: #2A0E78; }
.country-card--current .country-card__one { border-top-color: rgba(139, 82, 255, .3); }
@media (prefers-reduced-motion: no-preference) {
    .country-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
    .country-card:hover { transform: translateY(-3px); }
}

/* Drapeaux ailleurs sur le site */
.flag { width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(17, 17, 17, .1); vertical-align: -3px; display: inline-block; }
.country-picker a, .country-switch a { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .flag { margin-right: 6px; vertical-align: -4px; }
/* Carte « Afrique de l'Ouest » : bandeau pleine largeur au-dessus des cinq pays */
.countries__region { grid-column: 1 / -1; }
.country-card--region { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.country-card--region::before { background: linear-gradient(90deg, #006A4E, #FCD116, #CE1126, #F77F00, #00853F); width: 60%; right: -10%; }
.country-card__flags { display: flex; gap: 6px; }
.country-card__flags .country-card__flag { width: 36px; height: 24px; }
.country-card__body { display: grid; gap: 2px; }
.country-card--region .country-card__name { font-size: 1.6rem; margin-top: 0; }
.country-card--region .country-card__one { margin-top: 0; margin-left: auto; padding-top: 0; border-top: 0; padding-left: 20px; border-left: 1px solid var(--line); min-width: 0; max-width: 100%; }
.country-card--region.country-card--current .country-card__one { border-left-color: rgba(139, 82, 255, .3); }
.entry__country .flag { vertical-align: -1px; margin-right: 4px; }
.eyebrow .flag + .flag { margin-left: -2px; }
@media (max-width: 640px) { .country-card--region .country-card__one { margin-left: 0; padding-left: 0; border-left: 0; } }

/* Actualités : cartes à vignette, une teinte différente par carte (six teintes en rotation) */
.news-page__note { color: var(--muted); font-size: .9rem; margin: -4px 0 20px; }
.news-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card {
    --tone: #8B52FF; --tone-soft: #F3EDFF; --tone-ink: #3E1A9E;
    display: flex; flex-direction: column; min-width: 0;
    background: var(--tone-soft); border-radius: 14px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px color-mix(in srgb, var(--tone) 28%, transparent); }
.news-card--tone-1 { --tone: #FF6B4A; --tone-soft: #FFF0EB; --tone-ink: #9A2A12; }
.news-card--tone-2 { --tone: #14A37F; --tone-soft: #E6F7F1; --tone-ink: #0B5C47; }
.news-card--tone-3 { --tone: #F2A900; --tone-soft: #FFF6DC; --tone-ink: #7A5300; }
.news-card--tone-4 { --tone: #2D7FF9; --tone-soft: #EAF2FF; --tone-ink: #154A9C; }
.news-card--tone-5 { --tone: #E0379A; --tone-soft: #FDEBF5; --tone-ink: #8C1A5D; }
.news-card__media { display: block; aspect-ratio: 16 / 9; max-width: 100%; background: var(--tone); position: relative; overflow: hidden; border-bottom: 4px solid var(--tone); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    font: 700 2.4rem/1 var(--serif); color: rgba(255, 255, 255, .92); letter-spacing: .04em;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%), var(--tone);
}
.news-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .74rem; color: var(--ink-2); }
.news-card__meta img { display: inline-block; vertical-align: -1px; }
.news-card__tag { background: var(--tone); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; padding: 3px 8px; border-radius: 999px; }
.news-card--tone-3 .news-card__tag { color: #1F1600; }
.news-card__title, .prose .news-card__title, .prose h3.news-card__title { font-size: 1.12rem; line-height: 1.25; margin: 2px 0 0; text-wrap: balance; }
.news-card__title a { text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; text-decoration-color: var(--tone); }
.news-card__summary { margin: 0; font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__source { margin: auto 0 0; padding-top: 8px; font-size: .8rem; font-weight: 700; color: var(--tone-ink); }

/* Partenaires officiels */
.partners { margin: 48px 0 8px; }
.partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.partners__head h2 { margin: 0; }
.partners__lead { margin: 4px 0 0; color: var(--muted); font-size: .92rem; max-width: 60ch; }
.partners__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
    min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease;
}
a.partner-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(139, 82, 255, .16); }
.partner-card__logo { max-height: 64px; max-width: 160px; width: auto; object-fit: contain; }
.partner-card__name { font-weight: 700; }
.partner-card__tier { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.partner-card__desc { font-size: .82rem; color: var(--ink-2); margin: 0; }
.partner-card--invite {
    border: 1px dashed rgba(139, 82, 255, .6);
    background: radial-gradient(circle at 20% 0%, rgba(139, 82, 255, .14), transparent 60%), var(--surface);
}
.partner-card--invite .partner-card__name { font-family: var(--serif); font-size: 1.2rem; }
.partner-card--wide { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; text-align: left; min-height: 0; flex-wrap: wrap; }
.partner-card--wide > div { min-width: 0; flex: 1 1 280px; }
.partner-card--span { grid-column: 1 / -1; }
.home-news { margin: 48px 0 0; }
.home-news h2 { margin: 0; }
.news-grid--three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Chiffres et sources de chaque ligne de classement */
.entry__figures { grid-area: figures; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.figure strong { color: var(--ink-2); font-weight: 700; }
.figure--main strong { color: var(--ink); font-size: 1rem; }
.sources { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.source {
    --src: #6B6B6B;
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px;
    font-size: .7rem; line-height: 1.5; background: color-mix(in srgb, var(--src) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--src) 28%, transparent); font-variant-numeric: tabular-nums;
}
.source::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--src); }
.source__name { font-weight: 700; color: var(--ink); }
.source__value { color: var(--ink-2); }
.source--youtube { --src: #FF0033; }
.source--audiomack { --src: #FFA200; }
.source--boomplay { --src: #0A84FF; }
.source--spotify { --src: #1DB954; }
.source--apple_music { --src: #FA2D48; }
.source--deezer { --src: #A238FF; }
.entry--top .source { background: rgba(255, 255, 255, .72); }
.entry--top .figure strong { color: #1E1240; }
@media (min-width: 640px) {
    .entry__figures { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
}

/* Artistes du moment (accueil) */
.hot-artists { margin: 40px 0 8px; }
.hot-artists h2 { margin: 0; }
.hot-artists__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.hot-artist { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; min-width: 0; }
.hot-artist__photo {
    position: relative; width: 112px; height: 112px; max-width: 100%; border-radius: 50%; overflow: visible;
    background: var(--surface-2); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px rgba(139, 82, 255, .35);
    transition: box-shadow .2s ease, transform .2s ease;
}
.hot-artist__photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hot-artist__flag img { width: auto; height: 14px; border-radius: 1px; }
.hot-artist:hover .hot-artist__photo { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent), 0 10px 24px rgba(139, 82, 255, .3); }
.hot-artist__flag { position: absolute; right: 2px; bottom: 4px; background: var(--surface); padding: 3px; border-radius: 4px; line-height: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.hot-artist__name { font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.hot-artist:hover .hot-artist__name { text-decoration: underline; text-decoration-color: var(--accent); }
.hot-artist__meta { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Onglets de vue des classements (officiel, en direct, par plateforme) */
.view-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 8px 0 4px; scrollbar-width: thin; }
.view-tab { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--surface); }
.view-tab:hover { border-color: var(--accent); }
.view-tab[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.view-tab--soon { color: var(--muted); border-style: dashed; }
.notice--live { background: #F3EDFF; border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 6px; font-size: .88rem; color: var(--ink-2); }
.source--shazam { --src: #0088FF; }
.entry--live { grid-template-areas: "rank cover main main" "rank cover main main"; }
@media (min-width: 640px) { .entry--live { grid-template-areas: "rank cover main main main main"; } }
.entry--live.entry--compact { grid-template-columns: 1.8rem 40px 1fr; grid-template-areas: "rank cover main"; }

/* Fiche artiste : chiffres réels en avant */
.artist-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 8px 0 24px; }
.artist-hero__photo { width: 200px; height: 200px; max-width: 100%; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent), 0 18px 40px rgba(139, 82, 255, .28); }
.artist-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero__text { min-width: 0; flex: 1 1 260px; }
.artist-hero .profile__title { font-size: clamp(2.4rem, 7vw, 4rem); margin: 4px 0 6px; overflow-wrap: anywhere; }
.artist-hero__rank { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px; background: #F3EDFF; color: #3E1A9E; font-weight: 700; font-size: .85rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 28px; }
.stat-tile { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.stat-tile dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat-tile dd { margin: 6px 0 2px; font: 700 2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-tile small { color: var(--muted); font-size: .78rem; }
.stat-tile--accent { background: linear-gradient(135deg, #F3EDFF, #FFFFFF); border-color: rgba(139, 82, 255, .45); }
.stat-tile--accent dd { color: #3E1A9E; }
.data-table--positions td { vertical-align: middle; }
.data-table--positions .source { margin-right: 6px; }
.artist-tracks { list-style: none; margin: 0; padding: 0; }
.artist-tracks li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.artist-tracks .cover { width: 48px; height: 48px; }
.artist-tracks__main { min-width: 0; display: flex; flex-direction: column; }
.artist-tracks__views { font-size: .82rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.artist-tracks__views strong { color: var(--ink); }
.source--deezer_popularity { --src: #A238FF; }
.source--youtube_views { --src: #FF0033; }

/* Lecteur Spotify (chargé au clic) */
.spotify-block { margin: 40px 0 8px; }
.spotify-block h2 { margin: 0; }
.spotify { border-radius: 14px; background: linear-gradient(135deg, #0f3d24, #121212 70%); color: #fff; min-height: 152px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.spotify.spotify--playing { padding: 0; background: transparent; min-height: 352px; }
.spotify iframe { width: 100%; height: 352px; border: 0; border-radius: 14px; }
.spotify__play { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: #1DB954; color: #0b0b0b; font-weight: 700; padding: 12px 20px; cursor: pointer; font-size: .95rem; }
.spotify__play:hover { background: #1ed760; }
.spotify__icon { font-size: .8rem; }
.spotify__notice { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .75); max-width: 60ch; }
.spotify__notice a { color: #fff; }
.source--link { text-decoration: none; }
a.source--link:hover { border-color: var(--src); box-shadow: 0 0 0 2px color-mix(in srgb, var(--src) 25%, transparent); }
.source--spotify .source__name { color: #0b7a36; }
.spotify-figure { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 12px; }
.spotify-figure strong { font: 700 1.6rem/1 var(--serif); }
.platform-links__spotify { background: #1DB954; color: #0b0b0b !important; border-color: #1DB954 !important; font-weight: 700; }
.artist-hero__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }

/* Encadré des actualités : vignette et teinte par ligne */
.news-list--thumbs { gap: 10px; }
.news-thumb { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; padding: 6px 6px 6px 0; border-left: 3px solid var(--tone); padding-left: 8px; border-radius: 2px; }
.news-thumb__img { display: block; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--tone); }
.news-thumb__img img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb__img span { display: grid; place-items: center; height: 100%; color: #fff; font: 700 1rem var(--serif); }
.news-thumb__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-thumb .news-card__tag { font-size: .6rem; padding: 2px 6px; }
.news-thumb .news-list__title { font-size: .86rem; overflow-wrap: anywhere; }
.news-thumb__source { font-size: .72rem; color: var(--tone-ink); font-weight: 700; }
.news-card--tone-0 { --tone: #8B52FF; --tone-soft: #F3EDFF; --tone-ink: #3E1A9E; }

/* Page « Intégrer le classement » */
.embed { padding-top: 32px; padding-bottom: 56px; }
.embed__hero { max-width: 720px; }
.embed__hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.embed__perks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.embed__perks li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.embed__perks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.embed__grid { display: grid; gap: 24px; margin-top: 32px; align-items: start; }
@media (min-width: 860px) { .embed__grid { grid-template-columns: minmax(0, 1fr) 440px; } }
.embed__panel { padding: 24px; background: var(--surface-2); border-radius: 12px; }
.embed__panel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 28px 0 12px; }
.embed__panel h2:first-child { margin-top: 0; }
.embed__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .9rem var(--sans); }
.embed__form .field { margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.seg legend { width: 100%; font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink-2); border-radius: 999px; background: var(--surface); font-size: .92rem; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.embed-code { display: block; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #16141c; color: #e9e6f2; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.embed__copy { margin-top: 10px; }
.embed__how { margin: 0; padding-left: 1.2em; }
.embed__how li { margin-bottom: 4px; }
.embed__preview { position: sticky; top: 16px; }
.embed__frame { padding: 16px; border-radius: 12px; background: repeating-linear-gradient(45deg, #f2f0f7 0 10px, #ebe8f2 10px 20px); }
.embed__frame--sombre { background: repeating-linear-gradient(45deg, #24212c 0 10px, #1d1a24 10px 20px); }
.embed__frame iframe { display: block; border: 0; border-radius: 8px; background: transparent; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
.embed__terms { margin-top: 32px; max-width: 720px; }
