/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   burrata.css — LE socle visuel de toutes les apps de tech.burrata-records.com
   (accueil, paramètres, bibliothèque, lieux, booking, digging, trackID).

   Antoine, 25/10/2026 : « pas assez loin pour faire une app jolie, lisible, compréhensible, avec une
   unité entre toutes mes apps ». Mesuré avant ce fichier : 40+ tailles de texte (presque toutes entre
   10 et 13 px), 12 arrondis, 100+ fonds en verre sur fond flouté, ~150 Ko de CSS recopiés app par app.

   Règles du socle (détail dans docs/REGLES_AFFICHAGE.md) :
   - 6 tailles de texte, 16 px pour lire, jamais moins de 12 px ;
   - surfaces OPAQUES (le verre sur fond qui bouge rend le texte illisible) ; le fond de club reste, en sourdine ;
   - 3 arrondis : 8 px (champs, boutons), 14 px (cartes, panneaux), pilule ;
   - texte : blanc, gris clair, gris — les trois au-dessus de 4,5:1 sur toutes les surfaces ;
   - une action principale par écran (bouton blanc), le reste en contour ou discret.

   Servi à /static/burrata.css : booking (/booking/) et digging (/digging/) le chargent à la même adresse.
   Il se charge EN PREMIER (avant hub.css, avant le style propre à une app ou à une page) : c'est la base, la page
   ne garde que ce qui lui est propre et a le dernier mot. Ne jamais recopier une règle du socle ailleurs.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

/* Lato servie par la plateforme (/static/fonts/), la même pour toutes les apps ; Archivo vient de Google Fonts */
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
    --largeur-page: 1440px;             /* toutes les pages, en-tête compris */
    /* Fond et surfaces — opaques */
    --nuit: #0d0b12;
    --surface: #17141e;
    --surface-haut: #201c29;
    --surface-creux: #110f17;
    --trait: #2c2736;
    --trait-fort: #423b4f;

    /* Texte — contrastes sur --surface : 16:1, 9:1, 5,6:1 */
    --texte: #f5f2f8;
    --texte-2: #bdb6c8;
    --texte-3: #938c9f;

    /* Accents (identité trackID) et sens */
    --magenta: #c850c0;
    --cyan: #64dcff;
    --vert: #4ebda1;
    --orange: #f5a524;
    --rose: #ff4d6d;
    --ok: var(--vert);
    --attention: var(--orange);
    --danger: var(--rose);
    --info: var(--cyan);

    /* Plateformes */
    --spotify: #1DB954; --beatport: #7aa7ff; --soundcloud: #ff5500; --apple: #fa2d48;

    /* Typo */
    --titre: 'Archivo', 'Lato', sans-serif;
    --corps: 'Lato', system-ui, sans-serif;
    --t-xs: .75rem;    /* 12 px — étiquettes en capitales, pastilles */
    --t-s: .875rem;    /* 14 px — infos secondaires, boutons */
    --t-m: 1rem;       /* 16 px — texte courant, noms */
    --t-l: 1.25rem;    /* 20 px — titres de section */
    --t-xl: 1.75rem;   /* 28 px — titre de page */
    --t-xxl: 2.25rem;  /* 36 px — chiffres clés */

    /* Espaces (multiples de 4) */
    --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px; --e-6: 32px; --e-7: 48px;

    /* Arrondis */
    --r-s: 8px; --r-m: 14px; --r-pilule: 999px;

    --ombre: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
    --focus: 0 0 0 2px var(--nuit), 0 0 0 4px var(--cyan);

    /* Compatibilité avec les anciens noms (hub.css, listes.css, booking.css, digging.css) */
    --black: #171717;
    --doux: var(--texte-2);
    --texte-doux: var(--texte-2);
    --verre: var(--surface);
    --verre-hover: var(--surface-haut);
    --verre-fort: var(--surface-haut);
    --bord: var(--trait-fort);
    --carte: var(--surface);
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────── */
html { font-size: 16px; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { font-family: var(--corps); font-size: var(--t-m); line-height: 1.5; color: var(--texte); background: var(--nuit); }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
::selection { background: rgba(200,80,192,.45); }

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* Le fond de club reste, en sourdine : il habille sans gêner la lecture */
.fond { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--nuit); }
.fond span { position: absolute; border-radius: 50%; opacity: .16 !important; filter: blur(140px); }
.fond .l1 { width: 58vmax; height: 58vmax; left: -14vmax; top: -18vmax; background: var(--magenta); }
.fond .l2 { width: 48vmax; height: 48vmax; right: -12vmax; top: 8vmax; background: #3a4fd8; }
.fond .l3 { width: 42vmax; height: 42vmax; left: 22vmax; bottom: -20vmax; background: var(--vert); }
.fond .l4 { width: 26vmax; height: 26vmax; right: 18vmax; bottom: 6vmax; background: var(--cyan); }
.fond::after { content: ''; position: absolute; inset: 0; background: rgba(13,11,18,.55); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── En-tête commun ───────────────────────────────────────────────────────────────────────────── */
header { background: rgba(13,11,18,.92); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { max-width: var(--largeur-page); margin: 0 auto; display: flex; align-items: center; height: 60px; padding: 0 var(--e-5); gap: var(--e-3); }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--texte); }
.logo img { height: 44px; width: 44px; display: block; }
.spacer { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: var(--e-1); }
.nav-menu a, .nav-menu button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; cursor: pointer;
    height: 36px; padding: 0 var(--e-3); border: none; border-radius: var(--r-s); box-shadow: none; transition: background .15s, color .15s;
    font-family: var(--corps); font-size: var(--t-s); font-weight: 700; color: var(--texte-2); background: transparent; transform: none;
}
.nav-menu a:hover, .nav-menu button:hover { background: var(--surface-haut); color: var(--texte); border: none; transform: none; }
.nav-menu a[aria-current="page"] { background: var(--surface-haut); color: var(--texte); border: none; }
.avatar { width: 24px; height: 24px; font-size: var(--t-xs); }
.nav-menu svg { width: 16px; height: 16px; flex-shrink: 0; }
.profil-pill { display: flex; align-items: center; gap: var(--e-2); }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; background: var(--magenta); color: #fff; }
.avatar.theo { background: #3a8fd8; }
.burger { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: var(--r-s);
    flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--texte); border-radius: 1px; }
@media (max-width: 768px) {
    .header-inner { padding: 0 var(--e-4); }
    .burger { display: flex; }
    .nav-menu { position: fixed; top: 64px; right: var(--e-4); min-width: 240px; flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e-2); box-shadow: 0 16px 40px rgba(0,0,0,.5);
        opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
    .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-menu a, .nav-menu button { justify-content: flex-start; height: 44px; text-transform: none; letter-spacing: 0; font-size: var(--t-m); }
}

/* Bandeau d'information sous l'en-tête (maquette, mode hors ligne…) */
.bandeau-maquette { text-align: center; line-height: 1.4; font-size: var(--t-s); font-weight: 400; color: var(--texte-2); padding: var(--e-2) var(--e-4);
    background: var(--surface-creux); border-bottom: 1px solid var(--trait); }
.bandeau-maquette a, .bandeau-maquette b { color: var(--texte); }

/* ── Page ─────────────────────────────────────────────────────────────────────────────────────── */
/* Responsivité commune (Antoine, 25/10/2026) : 1440 px max, puis toute la largeur ; les grilles de cartes ont un
   minimum de 400 px (3 / 2 / 1 par ligne selon l'écran), voir REGLES_AFFICHAGE § 0 */
.page, main.page { max-width: var(--largeur-page); margin: 0 auto; padding: 0 var(--e-5) var(--e-7); }
@media (max-width: 560px) { .page, main.page { padding: 0 var(--e-4) var(--e-6); } }

/* Tête de page : titre, une phrase, éventuellement la date de mise à jour. Toujours à gauche. */
.hero, .hero.hero-outil, .page-tete { text-align: left; padding: var(--e-6) 0 var(--e-5); }
.hero h1, .page-tete h1 {
    font-family: var(--titre); font-weight: 800; font-size: var(--t-xl); line-height: 1.15;
    text-transform: uppercase; letter-spacing: .02em; text-shadow: none; color: var(--texte);
}
.hero.hero-outil h1 { font-size: var(--t-xl); letter-spacing: .02em; }
.hero p, .hero.hero-outil p, .page-tete p { font-size: var(--t-m); font-weight: 400; color: var(--texte-2); margin-top: var(--e-2);
    line-height: 1.5; max-width: 62ch; text-shadow: none; }
.page-tete .maj, .hero .maj { font-size: var(--t-s); color: var(--texte-3); margin-top: var(--e-1); }
.retour-outils { font-size: var(--t-s); color: var(--texte-2); margin-bottom: var(--e-2); min-height: 32px; }
.retour-outils:hover { color: var(--texte); }

/* Étiquette de section : petites capitales grises au-dessus d'un groupe */
.rubrique-titre, .section-titre, .etiquette {
    font-family: var(--corps); font-weight: 700; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
    color: var(--texte-3); margin: 0 0 var(--e-3);
}
.rubrique + .rubrique { margin-top: var(--e-6); }
.section-titre-l { font-family: var(--titre); font-weight: 800; font-size: var(--t-l); line-height: 1.2; margin: 0 0 var(--e-3); }

/* ── Panneau : le bloc de contenu (remplace .verre) ──────────────────────────────────────────── */
.panneau, .verre {
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-m); box-shadow: var(--ombre);
    backdrop-filter: none; -webkit-backdrop-filter: none; padding: var(--e-5);
}
.panneau + .panneau { margin-top: var(--e-4); }
.panneau > h2, .panneau-titre { font-family: var(--titre); font-weight: 800; font-size: var(--t-l); line-height: 1.2; margin: 0 0 var(--e-2); text-transform: none; letter-spacing: 0; }
.panneau > h2 + p, .panneau-sous { color: var(--texte-2); font-size: var(--t-s); margin: 0 0 var(--e-4); }

/* ── Tuiles de l'accueil : une tuile = un geste ──────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--e-3); }
.card {
    position: relative; display: flex; flex-direction: column;
    min-height: 0; gap: var(--e-4); padding: var(--e-5); border-radius: var(--r-m); justify-content: flex-start;
    background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre);
    backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .15s, border-color .15s, transform .15s;
}
.card:hover { background: var(--surface-haut); border-color: var(--trait-fort); transform: translateY(-1px); }
.card-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-s); background: rgba(200,80,192,.16); color: var(--magenta); }
.card-icon svg { width: 20px; height: 20px; color: currentColor; }
.card-title {
    display: block; text-align: left; background: none; border: none; padding: 0; cursor: pointer;
    font-family: var(--corps); font-weight: 700; font-size: var(--t-m); text-transform: none; letter-spacing: 0; line-height: 1.3; color: var(--texte);
}
.card-title::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-m); }
.card:has(.card-title:focus-visible) { outline: none; box-shadow: var(--focus); }
.card-title:focus-visible { box-shadow: none; }
.card-chiffre { font-size: var(--t-s); color: var(--texte-2); margin-top: var(--e-1); line-height: 1.4; }
.card-chiffre.rouge { color: #ff8fa3; font-weight: 700; }
.card.bientot { border-style: dashed; }
@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; gap: var(--e-2); }
    .card { flex-direction: row; align-items: center; padding: var(--e-4); }
}

/* ── Boutons : une seule famille ─────────────────────────────────────────────────────────────── */
.btn, .bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
    font-family: var(--corps); font-weight: 700; font-size: var(--t-s); text-transform: none; letter-spacing: 0;
    min-height: 40px; padding: 0 var(--e-4); border-radius: var(--r-s); cursor: pointer; text-decoration: none;
    background: var(--texte); color: var(--nuit); border: 1px solid var(--texte); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .bouton:hover { background: #fff; border-color: #fff; color: var(--nuit); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.btn-clair, .bouton.secondaire { background: transparent; color: var(--texte); border-color: var(--trait-fort); }
.btn-clair:hover, .bouton.secondaire:hover { background: var(--surface-haut); border-color: var(--texte-3); color: var(--texte); box-shadow: none; }
.bouton.discret { background: transparent; border-color: transparent; color: var(--texte-2); padding: 0 var(--e-3); }
.bouton.discret:hover { background: var(--surface-haut); color: var(--texte); box-shadow: none; }
.bouton.danger { background: transparent; color: #ff8fa3; border-color: rgba(255,77,109,.5); }
.bouton.danger:hover { background: rgba(255,77,109,.14); border-color: var(--danger); color: #ffb3c0; box-shadow: none; }
.bouton.petit { min-height: 32px; padding: 0 var(--e-3); font-size: var(--t-xs); }
.bouton.grand { min-height: 48px; padding: 0 var(--e-5); font-size: var(--t-m); }
.btn[disabled], .bouton[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-plein, .bouton.plein { width: 100%; }
.actions { display: flex; gap: var(--e-2); flex-wrap: wrap; align-items: center; }

/* ── Pastilles : statut, style, plateforme ───────────────────────────────────────────────────── */
.pastille {
    --c: var(--texte-3);
    display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--r-pilule);
    font-size: var(--t-xs); font-weight: 700; line-height: 1; white-space: nowrap; color: var(--texte);
    background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.pastille.point::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pastille.ok { --c: var(--ok); } .pastille.attention { --c: var(--attention); } .pastille.danger { --c: var(--danger); }
.pastille.info { --c: var(--info); } .pastille.accent { --c: var(--magenta); } .pastille.neutre { --c: var(--texte-3); }
.pastille.style { --c: var(--magenta); text-transform: uppercase; letter-spacing: .04em; }

/* ── Champs ──────────────────────────────────────────────────────────────────────────────────── */
.champ-groupe { display: flex; flex-direction: column; gap: 6px; }
.champ-groupe > label, .champ-label { font-size: var(--t-s); font-weight: 700; color: var(--texte-2); }
.champ-aide { font-size: var(--t-xs); color: var(--texte-3); }
.champ, .champ-groupe input:not([type=checkbox]):not([type=radio]), .champ-groupe select, .champ-groupe textarea {
    width: 100%; min-height: 44px; padding: 10px var(--e-3); border-radius: var(--r-s);
    font-family: var(--corps); font-size: var(--t-m); color: var(--texte);
    background: var(--surface-creux); border: 1px solid var(--trait-fort); transition: border-color .15s, box-shadow .15s;
}
.champ:hover, .champ-groupe input:hover, .champ-groupe select:hover, .champ-groupe textarea:hover { border-color: var(--texte-3); }
.champ:focus-visible, .champ-groupe input:focus-visible, .champ-groupe select:focus-visible, .champ-groupe textarea:focus-visible {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(100,220,255,.2); }
.champ::placeholder, .champ-groupe ::placeholder { color: var(--texte-3); }

/* ═══ Listes : chiffres en tête · filtres · groupes · une ligne par chose (docs/REGLES_AFFICHAGE.md) ═══════════ */

/* ── 1. Chiffres en tête : 2 à 4 cartes ; cliquable = un filtre ──────────────────────────────────────────────────
   <div class="chiffres"><button class="chiffre-carte" style="--c: var(--rose)" aria-pressed="false">
       <span class="nom">À relancer</span><b>12</b><span class="action">à faire</span></button></div> */
.chiffres:has(> .chiffre-carte) { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--e-3); margin: 0 0 var(--e-5); }
.chiffre-carte { position: relative; display: block; text-align: left; font-family: var(--corps); color: var(--texte); cursor: pointer;
    padding: var(--e-4) var(--e-5); border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--trait);
    transition: background .15s, border-color .15s; }
.chiffre-carte::before { content: ''; position: absolute; left: var(--e-5); top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c, var(--texte-3)); }
.chiffre-carte:hover { background: var(--surface-haut); }
.chiffre-carte[aria-pressed="true"] { border-color: var(--c, var(--texte)); background: var(--surface-haut); }
div.chiffre-carte, .chiffre-carte[aria-disabled="true"] { cursor: default; }
.chiffre-carte .nom { display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.chiffre-carte b { display: block; font-family: var(--titre); font-weight: 800; font-size: var(--t-xxl); line-height: 1.1; margin-top: var(--e-1); font-variant-numeric: tabular-nums; }
.chiffre-carte .action { display: block; font-size: var(--t-s); font-weight: 700; color: var(--c, var(--texte-2)); margin-top: 2px; }
.chiffre-carte .source { display: block; font-size: var(--t-xs); color: var(--texte-3); margin-top: var(--e-2); line-height: 1.4; }
.chiffre-carte .source a { color: var(--texte-2); }
.chiffre-carte .source.alerte { color: var(--orange); }

/* Cartes de groupe (styles, séries) : même idée, plus petites */
.groupes-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--e-2); margin: 0 0 var(--e-4); }
.groupe-carte { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-2); text-align: left; cursor: pointer;
    font-family: var(--corps); color: var(--texte); padding: var(--e-2) var(--e-3); border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--trait); }
.groupe-carte:hover { background: var(--surface-haut); }
.groupe-carte[aria-pressed="true"] { background: var(--texte); color: var(--nuit); border-color: var(--texte); }
.groupe-carte span { font-weight: 700; font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.groupe-carte b { font-size: var(--t-s); font-variant-numeric: tabular-nums; opacity: .7; }
.groupe-carte.en-dernier span { opacity: .65; }

/* ── 2. LES FILTRES — un seul composant pour toutes les apps ───────────────────────────────────────────────────
   <div class="filtrage">                                                 ← reste en haut au défilement
     <div class="filtres" role="group" aria-label="Statut">
       <button class="filtre" aria-pressed="true">Tous <span>412</span></button> …     ← une valeur, avec son compte
     </div>
     <div class="filtres capitales" role="group" aria-label="Styles">
       <label class="filtre"><input type="checkbox" name="style" value="TECHNO">TECHNO</label> …   ← choix multiple
     </div>
     <label class="filtre-champ">À moins de <input type="number"> km</label>      ← valeur chiffrée
     <select class="filtre-choix" aria-label="Trier">…</select>                     ← menu (tri, semaine, ville)
     <input class="recherche" type="search" placeholder="Chercher…" aria-label="…"> ← recherche, prend la place qui reste
   </div>
   Une seule valeur active par famille (sauf les choix multiples) ; un second clic la retire ; « Tous » en premier ;
   seulement les valeurs qui ont des éléments. Un filtre posé ailleurs (chiffre du haut) se rappelle par .filtre.rappel. */
.filtrage { position: sticky; top: var(--h-entete, 60px); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-4);
    margin: 0 0 var(--e-4); padding: var(--e-3) 0; background: var(--nuit); box-shadow: 0 0 0 100vmax var(--nuit); clip-path: inset(0 -100vmax);
    border-bottom: 1px solid var(--trait); }
.filtrage.libre { position: static; }
.filtrage > .saut { flex-basis: 100%; height: 0; }                     /* force un retour à la ligne entre deux familles */
.filtres { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.filtres-nom { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); margin-right: var(--e-1); }

.filtre { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pilule);
    font-family: var(--corps); font-weight: 700; font-size: var(--t-s); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
    color: var(--texte-2); background: transparent; border: 1px solid var(--trait-fort); transition: background .15s, border-color .15s, color .15s; }
.filtre:hover { border-color: var(--texte-3); color: var(--texte); }
.filtre > span { color: var(--texte-3); font-variant-numeric: tabular-nums; opacity: 1; margin: 0; }
.filtre input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filtre[aria-pressed="true"], .filtre.actif, .filtre:has(input:checked) { background: var(--texte); border-color: var(--texte); color: var(--nuit); }
.filtre[aria-pressed="true"] > span, .filtre.actif > span, .filtre:has(input:checked) > span { color: rgba(13,11,18,.6); }
.filtre:focus-visible, .filtre:has(input:focus-visible) { outline: none; box-shadow: var(--focus); }
.filtres.capitales .filtre, .filtre.capitales { font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; }
.filtre.rouge { border-color: rgba(255,77,109,.55); color: #ffb3c0; }
.filtre.rouge[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.filtre.rouge[aria-pressed="true"] > span { color: rgba(255,255,255,.8); }
.filtre.rappel { background: rgba(100,220,255,.12); border-color: var(--cyan); color: var(--texte); }

.filtre-choix { appearance: none; -webkit-appearance: none; min-height: 36px; padding: 0 34px 0 14px; border-radius: var(--r-pilule); cursor: pointer;
    font-family: var(--corps); font-weight: 700; font-size: var(--t-s); color: var(--texte); border: 1px solid var(--trait-fort);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bdb6c8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.filtre-choix:hover { border-color: var(--texte-3); }
.filtre-choix:focus-visible { outline: none; box-shadow: var(--focus); }
.filtre-choix option { background: var(--surface); color: var(--texte); }

.filtre-champ { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px 0 14px; border-radius: var(--r-pilule);
    font-size: var(--t-s); font-weight: 700; color: var(--texte-2); border: 1px solid var(--trait-fort); white-space: nowrap; }
.filtre-champ input, .filtre-champ select { min-height: 28px; width: 76px; padding: 0 10px; border-radius: var(--r-pilule); border: 1px solid transparent;
    font-family: var(--corps); font-size: var(--t-s); font-weight: 700; color: var(--texte); background: var(--surface-haut); }
.filtre-champ select { width: auto; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
    background: var(--surface-haut) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bdb6c8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.filtre-champ input:focus-visible, .filtre-champ select:focus-visible { outline: none; border-color: var(--cyan); }
.filtre-champ:last-child { padding-right: 14px; }
.filtre-champ:has(input:last-child, select:last-child) { padding-right: 4px; }

.recherche { flex: 1 1 220px; min-width: 0; min-height: 40px; padding: 0 var(--e-4); border-radius: var(--r-pilule);
    font-family: var(--corps); font-size: var(--t-m); color: var(--texte); background: var(--surface-creux); border: 1px solid var(--trait-fort); }
.recherche::placeholder { color: var(--texte-3); }
.recherche:hover { border-color: var(--texte-3); }
.recherche:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(100,220,255,.2); }

/* Bascule : deux ou trois vues d'une même liste (Artistes / Labels) */
.bascule { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pilule); background: var(--surface-creux); border: 1px solid var(--trait-fort); }
.bascule button { font-family: var(--corps); font-weight: 700; font-size: var(--t-s); color: var(--texte-2); padding: 0 var(--e-4); min-height: 32px;
    border-radius: var(--r-pilule); border: none; background: none; cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--texte); color: var(--nuit); }
.bascule button:focus-visible { box-shadow: var(--focus); }

@media (max-width: 700px) {
    .filtrage { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--e-2); }
    .filtrage > * { min-width: 0; max-width: 100%; }
    .recherche { flex: 0 0 auto; }                                   /* en colonne, la largeur souple deviendrait une hauteur */
    .filtre-champ { white-space: normal; flex-wrap: wrap; row-gap: 4px; padding-top: 4px; padding-bottom: 4px; }
    .filtre-champ select { flex: 1 1 8rem; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
    .filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--e-4)); padding: 2px var(--e-4); }
    .filtres::-webkit-scrollbar { display: none; }
    .filtres > * { flex: 0 0 auto; }
    .filtrage > .saut { display: none; }
    .groupes-cartes { display: flex; overflow-x: auto; scrollbar-width: none; }
    .groupes-cartes::-webkit-scrollbar { display: none; }
    .groupe-carte { flex: 0 0 auto; }
}

/* ── 3-4. Liste groupée, une ligne par chose ─────────────────────────────────────────────────────────────────── */
.liste { list-style: none; margin: 0; padding: 0; }
.liste .groupe { position: sticky; top: calc(var(--h-entete, 60px) + var(--h-barre, 60px)); z-index: 4; display: flex; align-items: baseline; gap: var(--e-2);
    padding: var(--e-5) var(--e-1) var(--e-2); background: var(--nuit); border-bottom: 1px solid var(--trait-fort);
    font-family: var(--corps); font-weight: 700; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.liste .groupe small { font-size: var(--t-xs); font-weight: 700; color: var(--texte-3); letter-spacing: 0; }
.liste > .ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--e-1) var(--e-4);
    padding: var(--e-3) var(--e-1); border-bottom: 1px solid var(--trait); }
.liste > .ligne:hover { background: rgba(255,255,255,.025); }
.liste > .ligne.avec-visuel { grid-template-columns: 44px minmax(0, 1fr) auto; }
.liste .ligne-visuel { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-family: var(--titre); font-weight: 800; font-size: var(--t-s); color: var(--texte); background: hsl(var(--teinte, 290) 30% 24%); }
.liste .ligne-visuel.carre { border-radius: var(--r-s); }
.liste .ligne-visuel img { width: 100%; height: 100%; object-fit: cover; }
.liste .ligne-texte { min-width: 0; }
.liste .ligne-nom { display: block; font-weight: 700; font-size: var(--t-m); line-height: 1.35; overflow-wrap: anywhere; }
.liste .ligne-infos { display: block; font-size: var(--t-s); line-height: 1.45; color: var(--texte-2); margin-top: 2px; overflow-wrap: anywhere; }
.liste .ligne-infos a { color: var(--texte); }
.liste .ligne-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) {
    .liste > .ligne { grid-template-columns: minmax(0, 1fr); }
    .liste > .ligne.avec-visuel { grid-template-columns: 40px minmax(0, 1fr); }
    .liste .ligne-visuel { width: 40px; height: 40px; }
    .liste .ligne-actions { justify-content: flex-start; }
    .liste > .ligne.avec-visuel .ligne-actions { grid-column: 2; }
}

/* Plateforme dans une ligne : contour = à faire (la couleur de la plateforme), coche discrète = fait */
.plat-btn { --c: var(--texte); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--e-3); border-radius: var(--r-pilule);
    font-family: var(--corps); font-size: var(--t-xs); font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer;
    border: 1px solid var(--c); background: transparent; color: var(--texte); }
.plat-btn.fait { border-color: transparent; color: var(--texte-3); font-weight: 400; }
a.plat-btn.fait:hover { color: var(--texte); }
.plat-btn.fait::before { content: '✓'; color: var(--c); font-weight: 900; }
.plat-btn.a-faire::before { content: '+'; color: var(--c); font-weight: 900; }
.plat-btn.a-faire:hover { background: var(--c); color: var(--nuit); }
.plat-btn.a-faire:hover::before { color: var(--nuit); }
.plat-btn.na { border-color: transparent; color: var(--texte-3); cursor: default; }
.plat-btn[disabled] { opacity: .55; cursor: wait; }
.plat-btn:focus-visible { box-shadow: var(--focus); }

.liste-vide { padding: var(--e-6) var(--e-4); text-align: center; color: var(--texte-2); font-size: var(--t-m);
    border: 1px dashed var(--trait-fort); border-radius: var(--r-m); margin-top: var(--e-3); }
.liste-pied { display: flex; align-items: center; gap: var(--e-4); flex-wrap: wrap; margin-top: var(--e-4); font-size: var(--t-s); color: var(--texte-3); }
details.calcul { margin-top: var(--e-5); font-size: var(--t-s); color: var(--texte-2); }
details.calcul summary { cursor: pointer; font-weight: 700; color: var(--texte); }
details.calcul p { margin-top: var(--e-2); line-height: 1.55; max-width: 70ch; }

/* ── États vides, toasts, fenêtres ───────────────────────────────────────────────────────────── */
/* Toast : au-dessus du tiroir (80) et des fenêtres (200) */
.toast { position: fixed; left: 50%; bottom: 52px; transform: translate(-50%, 12px); opacity: 0; z-index: 300; pointer-events: none;
    max-width: calc(100% - 2rem); text-align: center; padding: var(--e-3) var(--e-4); font-size: var(--t-s); border-radius: var(--r-s);
    background: var(--surface-haut); border: 1px solid var(--trait-fort); box-shadow: 0 12px 32px rgba(0,0,0,.45); transition: opacity .25s, transform .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Champs : 16 px minimum sur téléphone, sinon Safari iOS zoome toute la page dès qu'on touche le champ */
@media (max-width: 760px) {
    input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: var(--t-m) !important; }
}
.gf-boite { background: var(--surface); border-color: var(--trait-fort); border-radius: var(--r-m); }
.gf-tete h2 { font-size: var(--t-l); text-transform: none; letter-spacing: 0; }
.gf-texte, .gf-liste li { font-size: var(--t-m); }
.gf-sous { font-size: var(--t-xs); color: var(--texte-3); }
.gf-btn { min-height: 40px; font-size: var(--t-s); border-radius: var(--r-s); }

/* Lu par les lecteurs d'écran, invisible à l'œil */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Une couleur par rubrique de l'accueil : la musique en magenta, les soirées en cyan */
.rubrique[data-rubrique="soirees"] .card-icon { background: rgba(100,220,255,.13); color: var(--cyan); }
