/* QG Bobons Pas Chers : feuille de style.
   Toutes les couleurs passent par des variables, redéfinies par [data-theme] sur <html>.
   Seule la police des titres change selon le thème ; le texte reste en Atkinson Hyperlegible Next.
   Chaque thème garde un contraste d'au moins 4,5:1 (vérifié paire par paire). */

/* Variables communes (valeurs par défaut, calculées à partir des couleurs du thème) */
:root {
  --font-texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --fs: 18px;
  --stage: 2.2rem;
  --r: 14px;
  --on-acc: #FFFFFF;             /* texte sur --acc-fill */
  --acc2-text: var(--acc2);      /* ambre utilisé comme texte sur fond ou carte */
  --head-muted: var(--muted);    /* texte secondaire dans l'en-tête */
  --alert-bg: #3A1D12;
  --hatch: #4A4038;              /* hachures des vacances */
  --cal-bord: transparent;       /* contour des cases du calendrier */
  --titre-poids: 800;
  --titre-echelle: 1;            /* réduit les polices de titres plus larges */
  --logo: var(--acc2);           /* couleur (ou dégradé) du logo */
  --head-fond: var(--head);      /* fond de l'en-tête (couleur ou dégradé) */
  --deco-fond: none;             /* décor du fond de page (halos du thème BBPC) */
  --card-ombre: none;            /* profondeur des cartes */
  /* Couleurs des jours au calendrier (et des talons de billets) : par défaut, show = accent plein, pratique = accent 2 */
  --cal-show: var(--acc-fill); --on-cal-show: var(--on-acc);
  --cal-pratique: var(--acc2); --on-cal-pratique: var(--on-acc2);
  --head-accent: var(--acc2);    /* accent dans l'en-tête (« Salut … », flèche Retour) */
  --peut: #4A64A8;               /* « Peut-être » et statuts en suspens (bleu ardoise, le même partout) */
  color-scheme: dark;
}

/* Thèmes : couleurs, police des titres, bandeau et logo */

/* BBPC (thème par défaut) : surtout noir et gris métallique, avec 3 couleurs par écran :
   rouge (boutons, shows au calendrier), bleu (sélections), bleu clair (titres de sections, pratiques) ;
   gris argent pour « Salut … ». Pas de jaune (jamais de jaune et de rouge dans un même écran).
   En plus des autres thèmes : en-tête au fini de métal brossé, logo chromé, cartes avec profondeur. */
[data-theme="bbpc"] {
  --bg: #0B0B0B; --card: #181818; --card2: #121212; --head: #000000; --head-text: #F2F2F2; --head-muted: #B5B5B5;
  --border: #3A3D40; --text: #F2F2F2; --muted: #B5B5B5;
  --acc: #8A8F94; --acc-fill: #C8202E; --acc-text: #8FB5FF; --acc2: #4D84FF; --on-acc2: #0B0B0B; --acc2-text: #7FD8FF;
  --cal-show: #C8202E; --on-cal-show: #FFFFFF; --cal-pratique: #6FD3FF; --on-cal-pratique: #0B0B0B;
  --head-accent: #C9CDD2;
  --yes: #2E7D32; --no: #C62828; --alert-bg: #2A1214; --hatch: #3A3D40;
  --font-titre: "Russo One", "Arial Black", sans-serif; --titre-poids: 400; --titre-echelle: .8;
  /* Bandeau : gris métallique et noir, avec de petites touches rouge, bleu clair et bleu */
  --stripe: repeating-linear-gradient(90deg,
    #6E7378 0 40px, #000 40px 43px, #B9BEC3 43px 70px, #000 70px 73px,
    #C8202E 73px 79px, #000 79px 81px,
    #6FD3FF 81px 87px, #000 87px 89px, #3A6FF7 89px 95px, #000 95px 98px);
  /* Logo chromé */
  --logo: linear-gradient(180deg, #FFFFFF 0%, #C9CDD2 38%, #7D8288 52%, #E4E7EB 66%, #9EA3A8 100%);
  /* En-tête : métal brossé foncé */
  --head-fond: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), linear-gradient(180deg, #1E1E1E 0%, #050505 100%);
  --card-ombre: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 20px rgba(0, 0, 0, .55);
}
[data-theme="folk"] {
  --bg: #1C1815; --card: #2A241F; --card2: #231E1A; --head: #14110F; --head-text: #F1E8D8;
  --border: #3D342C; --text: #F1E8D8; --muted: #B9AD9A;
  --acc: #C0562A; --acc-fill: #A8441F; --acc-text: #E07A45; --acc2: #D9A441; --on-acc2: #1C1815; --acc2-text: #8FBF7F; /* 3e couleur : vert forêt clair (titres) */
  --yes: #4A7043; --no: #A8441F;
  --font-titre: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --stripe: repeating-linear-gradient(90deg, #C0562A 0 30px, #14110F 30px 33px, #D9A441 33px 39px, #14110F 39px 42px);
  --logo: linear-gradient(135deg, #D9A441, #E07A45);
}
[data-theme="rock"] {
  --bg: #111111; --card: #1D1D1D; --card2: #181818; --head: #000000; --head-text: #F5F5F5; --head-muted: #B8B8B8;
  --border: #3A3A3A; --text: #F5F5F5; --muted: #B3B3B3;
  /* Rouge, noir et gris argent (pas de jaune avec le rouge) */
  --acc: #C8201F; --acc-fill: #B01C1B; --acc-text: #FF6A5E; --acc2: #D9D9D9; --on-acc2: #111111; --acc2-text: #5AA9FF; /* 3e couleur : bleu électrique (titres) */
  --yes: #2E7D32; --no: #B01C1B; --alert-bg: #3A1212; --hatch: #444444;
  --font-titre: "Anton", Impact, sans-serif; --titre-poids: 400;
  --stripe: repeating-linear-gradient(90deg, #C8201F 0 30px, #000 30px 33px, #F5F5F5 33px 37px, #000 37px 40px);
  --logo: linear-gradient(135deg, #FF6A5E, #C8201F);
}
/* Punk Rock (id « punk ») : affiche punk, au moins 10 couleurs :
   noir, blanc, gris, rouge punk, orange, vert lime, vert néon, cyan, bleu vif, bleu, mauve, rose.
   Rose mauve : shows et boutons · vert lime : pratiques et sélections · vert néon : « Salut … »
   bleu vif : titres de sections · rose mauve : cartes mises en avant et liens · mauve foncé : vacances, alertes.
   Pas de jaune (jamais de jaune et de rouge dans un même écran). Police d'affiche Staatliches, lisible. */
[data-theme="punk"] {
  --bg: #0E0E0E; --card: #1B1B1B; --card2: #151515; --head: #000000; --head-text: #FFFFFF; --head-muted: #BDBDBD;
  --border: #3A3A3A; --text: #F7F7F7; --muted: #BDBDBD;
  --acc: #D63AF9; --acc-fill: #B620E0; --acc-text: #F07BFF; --acc2: #B6FF00; --on-acc2: #0E0E0E; --acc2-text: #3FA9FF;
  --head-accent: #7CFF3A;
  --yes: #2E7D32; --no: #C62828; --alert-bg: #2A1238; --hatch: #4A2A5E;
  --font-titre: "Staatliches", Impact, sans-serif; --titre-poids: 400; --titre-echelle: .95;
  /* Bandeau : damier noir et blanc, et en dessous une fine bande aux couleurs vives */
  --stripe:
    linear-gradient(90deg, #E3122B 0 14.3%, #FF7A00 0 28.6%, #B6FF00 0 42.9%, #7CFF3A 0 57.2%, #3FA9FF 0 71.5%, #1E6BFF 0 85.8%, #D63AF9 0) 0 100% / 100% 3px no-repeat,
    repeating-conic-gradient(#FFFFFF 0 25%, #000000 0 50%) 0 0 / 7px 7px;
  /* Logo : une couleur par mot (BOBONS bleu pâle, PA$ vert, CHERS mauve), image produite par scripts/generer-logo-punk.ps1 ; changer ?v= si l'image change (cache 4 h) */
  --logo: url("logo-punk.png?v=3") center / contain no-repeat;
  /* En-tête noir, avec des lueurs rouge, rose mauve et bleu vif dans les coins */
  --head-fond:
    radial-gradient(80% 140% at 100% 0%, rgba(227, 18, 43, .30), transparent 60%),
    radial-gradient(70% 160% at 0% 100%, rgba(214, 58, 249, .28), transparent 60%),
    radial-gradient(60% 120% at 55% 120%, rgba(30, 107, 255, .22), transparent 60%),
    #000000;
}
[data-theme="punk"] .progres span { background: linear-gradient(90deg, #E3122B, #D63AF9, #3FA9FF); }
[data-theme="metal"] {
  --bg: #0A0A0A; --card: #161616; --card2: #111111; --head: #000000; --head-text: #E6E6E6; --head-muted: #A8A8A8;
  --border: #2E2E2E; --text: #E6E6E6; --muted: #A8A8A8;
  --acc: #A30F0F; --acc-fill: #A30F0F; --acc-text: #E85555; --acc2: #C0C0C0; --on-acc2: #0A0A0A; --acc2-text: #7FA7C9; /* 3e couleur : bleu acier (titres) */
  --yes: #2F6B34; --no: #A30F0F; --alert-bg: #2A0A0A; --hatch: #3A3A3A;
  --font-titre: "Rubik Glitch", "Rubik", Impact, sans-serif; --titre-poids: 400; --titre-echelle: .92; /* massive et cassée, style industriel (choix du groupe) */
  --stripe: repeating-linear-gradient(90deg, #A30F0F 0 22px, #000 22px 26px, #8A8A8A 26px 30px, #000 30px 34px);
  --logo: linear-gradient(180deg, #F2F2F2, #8A8A8A 55%, #D0D0D0);
}
/* Metal à la black metal : titres gothiques en majuscules et minuscules (en majuscules seulement,
   la gothique devient illisible), avec une lueur blanche froide, « givrée ». */
/* Angine (Rubik Mono One) : le « À » majuscule de la police est mal dessiné (on dirait « Ä »), mais ses minuscules
   sont dessinées en capitales avec les bons accents : on envoie donc les titres en minuscules. */
[data-theme="angine"] :is(.top h1, .big-title, .prochain-titre, .sec-title, .sheet h3, .talon b) { text-transform: lowercase; }
[data-theme="metal"] :is(.top h1, .big-title, .prochain-titre, .sec-title, .sheet h3, .talon b) {
  text-transform: none; letter-spacing: .01em; text-shadow: 0 0 6px rgba(200, 220, 255, .35);
}
/* Angine de Poitrine : noir et blanc à pois, comme leurs costumes, avec une touche d'or.
   Petits pois blancs dans l’en-tête ; bandeau or avec des triangles noirs. */
[data-theme="angine"] {
  --bg: #000000; --card: #141414; --card2: #0C0C0C; --head: #000000; --head-text: #FFFFFF; --head-muted: #BDBDBD;
  --border: #5A5A5A; --text: #FFFFFF; --muted: #BDBDBD;
  --acc: #D4AF37; --acc-fill: #F2F2F2; --on-acc: #000000; --acc-text: #FFFFFF; --acc2: #D4AF37; --on-acc2: #000000; --acc2-text: #D4AF37;
  --yes: #2E7D32; --no: #C62828; --alert-bg: #262626; --hatch: #555555;
  --font-titre: "Rubik Mono One", "Arial Black", sans-serif; --titre-poids: 400; --titre-echelle: .75;
  /* Bandeau or avec de petits triangles noirs détachés, pointe vers le haut :
     8 px de large, 7 px de haut, centrés dans la ligne, 8 px d'or entre chacun */
  --stripe: conic-gradient(from 150deg at 50% 0%, #000000 0 60deg, transparent 0) 0 1.5px / 16px 7px repeat-x, #D4AF37;
  --logo: linear-gradient(135deg, #FFFFFF 0%, #F3E3A0 45%, #D4AF37 100%);
  /* Petits pois blancs (légèrement pâlis) en quinconce : une deuxième grille décalée d'une demi-case */
  --head-fond:
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.4px) 0 0 / 16px 16px,
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.4px) 8px 8px / 16px 16px,
    #000000;
}
/* Textes de l'en-tête bien nets par-dessus les petits points */
[data-theme="angine"] .top h1, [data-theme="angine"] .top .sub, [data-theme="angine"] .top .hello { text-shadow: 0 0 3px #000, 0 0 6px #000; }
[data-theme="armee"] {
  --bg: #1E2116; --card: #2A2E1F; --card2: #24281A; --head: #15170F; --head-text: #E8E4D0; --head-muted: #B5B09A;
  --border: #3D4230; --text: #ECE8D4; --muted: #B5B09A;
  --acc: #6B7B3A; --acc-fill: #556B2F; --acc-text: #A9BF6A; --acc2: #C8B560; --on-acc2: #1E2116; --acc2-text: #D4945A; /* 3e couleur : brun orangé (titres) */
  --yes: #4A7043; --no: #8B2E1F; --alert-bg: #3A2A16; --hatch: #4A4F3A;
  --font-titre: "Black Ops One", Impact, sans-serif; --titre-poids: 400; --titre-echelle: .8;
  --stripe: repeating-linear-gradient(90deg, #556B2F 0 26px, #3B3F26 26px 40px, #8A7B4A 40px 54px, #2A2E1F 54px 64px);
  --logo: linear-gradient(135deg, #C8B560, #8A9A4A);
}
[data-theme="automne"] {
  --bg: #1F1410; --card: #2E1E17; --card2: #271912; --head: #170E0B; --head-text: #F5E6D3; --head-muted: #C9B09A;
  --border: #4A3226; --text: #F5E6D3; --muted: #C9B09A;
  --acc: #D2691E; --acc-fill: #A0461A; --acc-text: #F08A4B; --acc2: #E0A526; --on-acc2: #1F1410; --acc2-text: #9BB46A; /* 3e couleur : vert olive (titres) */
  --yes: #4F7233; --no: #9E2B25; --alert-bg: #3A1D12; --hatch: #4A3A30;
  --font-titre: "Alfa Slab One", Rockwell, serif; --titre-poids: 400; --titre-echelle: .8;
  --stripe: repeating-linear-gradient(90deg, #D2691E 0 26px, #170E0B 26px 29px, #E0A526 29px 38px, #170E0B 38px 41px, #7A4A2A 41px 56px, #170E0B 56px 59px);
  --logo: linear-gradient(135deg, #E0A526, #D2691E 55%, #7A4A2A);
}
[data-theme="hiver"] {
  --bg: #0F1A26; --card: #182838; --card2: #132131; --head: #0A121B; --head-text: #EAF4FF; --head-muted: #A9C1D9;
  --border: #2A3F55; --text: #EAF4FF; --muted: #A9C1D9;
  --acc: #5FA8D3; --acc-fill: #2B6C99; --acc-text: #8CC8F0; --acc2: #DDEFFF; --on-acc2: #0F1A26; --acc2-text: #B9A6FF; /* 3e couleur : lilas (titres) */
  --yes: #3E7D5A; --no: #B03A48; --alert-bg: #3A1D2A; --hatch: #34495E;
  --font-titre: "Fredoka", "Arial Rounded MT Bold", sans-serif; --titre-poids: 700; --titre-echelle: .85;
  --stripe: repeating-linear-gradient(90deg, #5FA8D3 0 24px, #0A121B 24px 27px, #FFFFFF 27px 33px, #0A121B 33px 36px);
  --logo: linear-gradient(180deg, #FFFFFF, #8CC8F0);
}
/* Printemps et été : thèmes clairs (l'en-tête et les onglets restent foncés) */
[data-theme="printemps"] {
  /* Printemps urbain (pas « champêtre ») : fond sauge, en-tête vert très foncé, corail vif, menthe, bleu électrique */
  --bg: #D9E3DE; --card: #EEF3F0; --card2: #E0E8E4; --head: #12332E; --head-text: #FFFFFF; --head-muted: #BFD9D0;
  --border: #BDCBC4; --text: #101A16; --muted: #3F4F49;
  --acc: #FF4F7B; --acc-fill: #D6245A; --acc-text: #C21E50; --acc2: #7CE0B0; --on-acc2: #0B2A1F; --acc2-text: #1D4ED8; /* 3e couleur : bleu électrique (titres) */
  --yes: #2E7D4F; --no: #B3262E; --alert-bg: #F7DCE3; --hatch: #C9D5CF; --cal-bord: #BDCBC4;
  --font-titre: "Outfit", "Segoe UI", sans-serif; --titre-poids: 800; --titre-echelle: .95;
  --stripe: linear-gradient(90deg, #FF4F7B, #7CE0B0 50%, #1D4ED8);
  --logo: linear-gradient(135deg, #FF8FAB, #7CE0B0);
  color-scheme: light;
}
[data-theme="ete"] {
  --bg: #FFF8E7; --card: #FFFFFF; --card2: #FFF1CC; --head: #0B6E79; --head-text: #FFFFFF; --head-muted: #CDEFF2;
  --border: #F0DDA8; --text: #2B2118; --muted: #6A5A45;
  --acc: #F28C28; --acc-fill: #C2410C; --acc-text: #B23A0A; --acc2: #FFE27A; --on-acc2: #2B2118; --acc2-text: #0B6E79;
  --yes: #2E7D4F; --no: #B3262E; --alert-bg: #FDE3D8; --hatch: #EAD9A8; --cal-bord: #F0DDA8;
  --font-titre: "Bungee", Impact, sans-serif; --titre-poids: 400; --titre-echelle: .72;
  --stripe: repeating-linear-gradient(90deg, #F28C28 0 24px, #0B6E79 24px 28px, #FFE27A 28px 40px, #0B6E79 40px 44px);
  --logo: linear-gradient(135deg, #FFE27A, #F28C28);
  color-scheme: light;
}
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
html.big { --fs: 22px; }
html.petit { --fs: 16px; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); background-image: var(--deco-fond); background-attachment: fixed; color: var(--text);
  font-family: var(--font-texte); line-height: 1.45;
}
body.staged { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc-text); }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête ---------- */
/* La barre du haut a TOUJOURS la même hauteur, sur tous les écrans et même en A+ :
   hauteur fixe en px, titre et sous-titre sur une seule ligne chacun (« … » si trop long). */
.top { background: var(--head-fond); color: var(--head-text); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; position: relative; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--stripe); }
.top-in { max-width: 44rem; margin: 0 auto; display: flex; gap: 12px; align-items: center; height: 96px; }
.titre-bloc { display: grid; gap: 4px; }
.titre-ligne { display: flex; align-items: center; gap: 4px; min-width: 0; }
.top h1 { min-width: 0; font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; font-size: calc(clamp(24px, 7.2vw, 40px) * var(--titre-echelle)); line-height: 1.15; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--head-muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Coin droit de l'en-tête : logo aux couleurs du thème, puis choix du thème et A+ */
.top-aside { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; height: 96px; }
.outils { display: flex; gap: 5px; }
.theme-btn { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; padding: 0; border: 2px solid var(--border); border-radius: 10px; color: var(--head-text); }
.theme-btn .ico { width: 24px; height: 24px; }
/* Le vrai <select> est invisible par-dessus l'icône : le téléphone ouvre son sélecteur natif. */
.theme-btn select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; border: 0; }
.theme-btn select option { background: var(--card); color: var(--text); }
.theme-btn:focus-within { outline: 3px solid var(--acc2); outline-offset: 2px; }
/* Le logo est un pochoir (logo-masque.png) coloré par --logo : une ligne à changer par thème. */
.logo { display: block; width: 74px; aspect-ratio: 1.571; background: var(--logo);
  -webkit-mask: url("logo-masque.png") center / contain no-repeat; mask: url("logo-masque.png") center / contain no-repeat; }
.sans-logo .logo { display: none; }
.logo-texte { display: none; font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; line-height: 1; text-align: center; background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sans-logo .logo-texte { display: block; }
.top .hello { color: var(--head-accent); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .grow { flex: 1; min-width: 0; }
.bigbtn { flex: none; background: transparent; border: 2px solid var(--border); color: var(--head-text); border-radius: 10px; width: 44px; height: 44px; font-size: 16px; font-weight: 700; padding: 0; }
.bigbtn.actif { background: var(--head-text); color: var(--head); }
/* Flèche Retour, à gauche du titre des fiches */
.back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; background: none; border: 0; color: var(--head-accent); padding: 0; }
.back .ico { width: 26px; height: 26px; }
.navbtn { flex: none; background: var(--card); border: 0; border-radius: 12px; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; color: var(--text); }
/* Navigation du calendrier (au-dessus de la grille) */
.nav-mois { display: flex; align-items: center; gap: .5rem; max-width: 30rem; width: 100%; margin: 0 auto; }

/* minmax(0, 1fr) : la colonne ne s'élargit jamais au-delà de l'écran, même avec un contenu large. */
main { max-width: 44rem; margin: 0 auto; padding: 1.8rem 1rem calc(76px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

/* ---------- Éléments communs ---------- */
.card { background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--card-ombre); }
.card.hl { border-color: var(--acc); }
.card.warn { border-color: var(--acc2); }
.card.dark { background: var(--head); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc2-text); }
.kicker.rust { color: var(--acc-text); }
.kicker.muted { color: var(--muted); }
.big-title { font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; font-size: calc(2rem * var(--titre-echelle)); line-height: 1.1; margin: .25rem 0 .4rem; overflow-wrap: anywhere; }
.sec-title { font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; font-size: calc(1.6rem * var(--titre-echelle)); color: var(--acc2-text); margin-top: .4rem; }
/* Bloc sur fond d'en-tête à l'intérieur d'une carte (établissement) */
.onhead { background: var(--head); color: var(--head-text); padding: 1rem 1.1rem; }
.onhead .kicker { color: var(--acc2); }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: .75rem; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: .6rem; }
.empty { color: var(--muted); padding: .6rem 0; }

.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: .3rem .9rem; font-weight: 700; font-size: .92rem; background: var(--border); color: var(--text); white-space: nowrap; }
.pill.oui, .pill.confirme { background: var(--yes); color: #fff; }
/* « Peut-être » et statuts en suspens : bleu ardoise neutre, jamais jaune à côté du rouge du « Non » ou de « Annulé ». */
.pill.peut_etre, .pill.en_attente, .pill.opportunite, .pill.a_faire_suivi { background: var(--peut); color: #FFFFFF; }
.pill.non, .pill.vacances, .pill.annule { background: var(--no); color: #fff; }
.pill.none, .pill.passe { background: var(--card2); color: var(--muted); border: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; padding: .5rem .8rem; border-radius: 12px; font-weight: 700; border: 2px solid transparent; background: var(--card); color: var(--text); text-decoration: none; min-width: 0; text-align: center; overflow-wrap: break-word; }
.btn.primary { background: var(--acc-fill); color: var(--on-acc); }
.btn.yes { background: var(--yes); color: #fff; }
.btn.amber { background: var(--acc2); color: var(--on-acc2); }
.btn.outline { background: transparent; border-color: var(--acc); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.dashed { background: transparent; border: 2px dashed var(--border); color: var(--text); }
.btn.danger { background: transparent; border-color: var(--no); color: var(--acc-text); }
.btn.block { width: 100%; }
.btn.dark { background: var(--head); color: var(--head-text); }
.link { background: none; border: 0; padding: 0; color: var(--acc-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 2.75rem; text-align: left; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }

input[type=search], input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; background: var(--card2); border: 2px solid var(--border); border-radius: 12px; padding: .65rem .8rem; min-height: 3rem;
}
textarea { resize: vertical; }
.search { position: relative; }
.search .ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 2.8rem; background: var(--card); border-color: var(--card); }

/* Liste cliquable (à faire, membres, établissements) */
.item { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: .9rem 1rem; color: var(--text); box-shadow: var(--card-ombre); }
.item.warn { border-color: var(--acc2); }
.item .t { font-weight: 700; font-size: 1.08rem; }
.item .s { color: var(--muted); }
.item > .ico:last-child { color: var(--muted); }
.badge { width: 3.2rem; height: 3.2rem; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--head); color: var(--acc2); }
.badge.amber { background: var(--acc2); color: var(--on-acc2); }
.badge .ico { width: 1.6rem; height: 1.6rem; }
.avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--head); color: var(--acc2); font-family: var(--font-titre); font-weight: var(--titre-poids); font-size: calc(1.35rem * var(--titre-echelle)); }
.avatar.me { background: var(--acc-fill); color: var(--on-acc); }
.avatar.amber { background: var(--acc2); color: var(--on-acc2); }

/* Tableau clé / valeur (cachet, heures, équipement) */
.kv { display: grid; gap: .55rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; font-weight: 700; text-align: right; }
.divider { border: 0; border-top: 1px solid var(--border); margin: .8rem 0; }

/* Statut (fiche événement) */
.statuts { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.statuts button { min-height: 3rem; border-radius: 12px; border: 2px solid var(--border); background: var(--card2); font-weight: 700; }
.statuts button[aria-pressed="true"] { background: var(--acc2); border-color: var(--acc2); color: var(--on-acc2); }
.statuts button.annule[aria-pressed="true"] { background: var(--no); border-color: var(--no); color: #fff; }
.statuts button.confirme[aria-pressed="true"] { background: var(--yes); border-color: var(--yes); color: #fff; }

.alert { display: flex; gap: .8rem; align-items: flex-start; background: var(--alert-bg); border: 2px solid var(--acc); border-radius: var(--r); padding: .9rem 1rem; }
.alert .ico { color: var(--acc-text); width: 1.6rem; height: 1.6rem; margin-top: .1rem; }

.dispos { padding: .3rem 1rem; }
.dispos li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.dispos li:last-child { border-bottom: 0; }
.dispos ul { list-style: none; margin: 0; padding: 0; }
.reponse { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.reponse button { min-height: 3.2rem; border-radius: 12px; border: 3px solid transparent; font-weight: 700; }
.reponse .oui { background: var(--yes); color: #fff; }
.reponse .peut_etre { background: var(--peut); color: #FFFFFF; }
.reponse .non { background: var(--no); color: #fff; }
.reponse button[aria-pressed="false"] { opacity: .45; }
.reponse button[aria-pressed="true"] { border-color: var(--text); opacity: 1; }
.reponse.none button { opacity: 1; }

.placeholder { display: flex; align-items: center; justify-content: center; gap: .6rem; border: 2px dashed var(--border); border-radius: var(--r); padding: 1.6rem 1rem; color: var(--muted); text-align: center; }

/* Sondage */
.vote { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; margin: .9rem 0 .6rem; }
.vote button { min-height: 3.4rem; border-radius: 12px; font-weight: 700; font-size: 1.1rem; border: 2px solid var(--acc); background: transparent; }
.vote button[aria-pressed="true"] { background: var(--yes); border-color: var(--yes); color: #fff; }
.vote .n { font-weight: 400; font-size: .9rem; }

/* ---------- Calendrier ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; max-width: 30rem; width: 100%; margin: 0 auto; user-select: none; -webkit-user-select: none; }
/* Appui long et double tap sur mobile : pas de menu contextuel ni de zoom */
.cal button { touch-action: manipulation; -webkit-touch-callout: none; }
.cal .dow { text-align: center; color: var(--muted); font-weight: 700; padding: .2rem 0; }
/* Pas de min-height ici : avec aspect-ratio, ça forcerait une largeur minimale et la grille déborderait. */
.cal button { position: relative; aspect-ratio: 1.15; min-height: 44px; min-width: 0; border: 2px solid var(--cal-bord); border-radius: 10px; background: var(--card); font-weight: 700; font-size: 1.05rem; padding: 0; }
.cal button.show { background: var(--cal-show); color: var(--on-cal-show); border-color: transparent; }
.cal button.pratique { background: var(--cal-pratique); color: var(--on-cal-pratique); }
.cal button.vac { background: repeating-linear-gradient(135deg, var(--card) 0 6px, var(--hatch) 6px 12px); }
.cal button.today { border-color: var(--text); }
.cal button.sel { outline: 3px solid var(--acc2); outline-offset: 1px; }
/* Légende du calendrier : une seule ligne ; si l’écran est trop étroit, elle défile de côté. */
.legend { display: flex; flex-wrap: nowrap; gap: .75rem; overflow-x: auto; scrollbar-width: none; max-width: 30rem; width: 100%; margin: 0 auto; font-size: .88rem; }
.legend span { display: flex; align-items: center; gap: .4rem; flex: none; white-space: nowrap; }
.legend i { width: 1rem; height: 1rem; border-radius: 4px; display: inline-block; flex: none; }

/* ---------- Tounes ---------- */
.segs { display: flex; flex-wrap: wrap; gap: .4rem; background: var(--card); border-radius: 12px; padding: .3rem; }
.segs button { flex: 1 1 auto; padding: 0 .6rem; min-height: 2.9rem; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); }
.segs button[aria-current="page"] { background: var(--acc-fill); color: var(--on-acc); }
.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.chip { border: 2px solid var(--border); background: transparent; border-radius: 99px; padding: .35rem 1rem; min-height: 2.75rem; white-space: nowrap; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--acc2); border-color: var(--acc2); color: var(--on-acc2); }
.count { color: var(--muted); font-size: .92rem; }
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.songlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
/* Trois colonnes alignées : artiste (italique) | titre | durée */
.songline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .6rem; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: .7rem .2rem; min-height: 2.75rem; color: var(--text); }
.songline .art { font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.songline .tit { font-weight: 700; overflow-wrap: anywhere; }
.songline .dur { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.tag { font-size: .8rem; border: 1px solid var(--border); border-radius: 6px; padding: .05rem .45rem; color: var(--muted); }
.tag.instr { border-color: var(--acc2); color: var(--acc2); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
pre.accords { font-family: var(--font-mono); font-weight: 500; white-space: pre-wrap; margin: 0; font-size: 1rem; line-height: 1.5; }
.paroles { white-space: pre-wrap; }

.setlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--border); }
.setlist .srow { display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.setlist .n { font-family: var(--font-titre); font-weight: var(--titre-poids); color: var(--acc-text); font-size: 1.4rem; text-align: right; }
.setlist .body { display: grid; min-width: 0; }
.setlist .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.setlist .ctl { grid-column: 2 / -1; display: flex; gap: .4rem; }
.setlist .pause { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.setlist .pl { flex: 1; text-align: center; font-weight: 700; color: var(--acc2-text); border-top: 2px dashed var(--acc2-text); border-bottom: 2px dashed var(--acc2-text); padding: .3rem 0; }
.ic-btn { min-width: 2.75rem; min-height: 2.75rem; border: 2px solid var(--border); background: var(--card); border-radius: 10px; }
.ic-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Onglets du bas ---------- */
/* Onglets du bas : autant de colonnes que d'onglets. Taille fixe (pas affectée par A+) pour que 6 onglets tiennent sur un cellulaire. */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--head); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs button { min-width: 0; background: none; border: 0; color: var(--head-text); font-weight: 700; font-size: 11px; letter-spacing: -.03em; line-height: 1.1; padding: 5px 1px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.tabs .ico { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--acc2); }

/* ---------- Formulaire (feuille du bas) ---------- */
dialog { width: 100%; max-width: 34rem; margin: auto auto 0; border: 0; border-radius: 18px 18px 0 0; padding: 1.2rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--card); color: var(--text); max-height: 92%; overflow: auto; }
@media (min-width: 40rem) { dialog { margin: auto; border-radius: 18px; } }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.sheet { display: grid; gap: .35rem; }
.sheet h3 { font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; font-size: calc(1.7rem * var(--titre-echelle)); margin-bottom: .3rem; }
.sheet label { font-weight: 700; font-size: .95rem; margin-top: .5rem; }
.sheet .hint { color: var(--muted); font-size: .88rem; }
.sheet fieldset { border: 0; padding: 0; margin: .5rem 0 0; }
.sheet legend { font-weight: 700; font-size: .95rem; padding: 0; }
.checks { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }
.checks label { font-weight: 400; display: flex; align-items: center; gap: .45rem; margin: 0; min-height: 2.75rem; }
.checks input { width: 1.4rem; height: 1.4rem; accent-color: var(--acc2); }
.sheet-actions { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
textarea.mono { font-family: var(--font-mono); }

/* ---------- Mode scène : contraste maximal, très gros caractères ---------- */
#stage { position: fixed; inset: 0; background: #000; color: #fff; z-index: 50; overflow: auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.stage-bar { position: sticky; top: 0; display: flex; gap: .5rem; align-items: center; padding: .6rem 1rem; background: #000; border-bottom: 1px solid #333; }
.stage-bar button { background: #222; color: #fff; border: 0; border-radius: 10px; min-height: 2.9rem; min-width: 3rem; font-weight: 700; padding: 0 .8rem; }
.stage-list { list-style: none; margin: 0; padding: .6rem 1rem 3rem; font-size: var(--stage); line-height: 1.15; }
.stage-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em; padding: .35em 0; border-bottom: 1px solid #333; }
.sn { font-family: var(--font-titre); font-weight: var(--titre-poids); color: var(--acc2); min-width: 1.6em; }
.st { font-weight: 700; flex: 1; min-width: 0; }
.sk { font-size: .6em; color: #ddd; }
.si { font-size: .5em; color: var(--acc2); width: 100%; padding-left: 2.1em; }
.s-pause { justify-content: center; color: var(--acc2); font-size: .7em; border-top: 3px dashed var(--acc2); border-bottom: 3px dashed var(--acc2) !important; margin: .4em 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(62px + env(safe-area-inset-bottom, 0px)); background: var(--text); color: var(--bg); padding: .7rem 1.1rem; border-radius: 12px; max-width: 90%; z-index: 60; font-weight: 700; }
.toast:empty { display: none; }

/* ---------- Fériés du Québec : barre de couleur propre à chaque férié ---------- */
.cal button.ferie::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 12%; height: 5px; border-radius: 3px; background: var(--ferie); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.legend i.barre { height: .45rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }

/* ---------- Sections dans un formulaire (ex. « Coordonnées », « Personne contact ») ---------- */
.sheet .sheet-sec { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-text); margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--border); }
.sous-titre { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-text); }

/* ---------- Page de connexion ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); background: radial-gradient(120% 70% at 50% 0%, var(--card) 0%, var(--bg) 60%); }
.login-in { width: 100%; max-width: 24rem; display: grid; gap: 1.4rem; }
.login-marque { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.login-marque .logo { width: min(13rem, 60vw); }
.login-marque .logo-texte { font-size: calc(2.4rem * var(--titre-echelle)); }
.login-marque p { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; font-weight: 700; }
.login-marque .bande { width: 5rem; height: 6px; border-radius: 3px; background: var(--stripe); }
.login .card { padding: 1.3rem 1.2rem; }
.login-outils { display: flex; justify-content: center; gap: .5rem; }
.login-outils .theme-btn, .login-outils .bigbtn { color: var(--text); }

/* ---------- Logo dans l'en-tête, page de connexion, utilitaires ---------- */
.logo-bloc { display: grid; justify-items: center; }
.top .logo-texte { width: 74px; font-size: 15px; }
main.main-login { max-width: none; padding: 0; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Onglet Événements : talon de billet avec la date ---------- */
.evligne { align-items: stretch; padding: 0; overflow: hidden; }
.evligne > .grow { padding: .8rem 0; }
.evligne > .ico { align-self: center; margin-right: .8rem; }
.talon { flex: none; width: 4.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cal-show); color: var(--on-cal-show); border-right: 3px dashed var(--bg); padding: .5rem .2rem; }
.evligne.prac .talon { background: var(--cal-pratique); color: var(--on-cal-pratique); }
.talon b { font-family: var(--font-titre); font-weight: var(--titre-poids); font-size: calc(1.7rem * var(--titre-echelle)); line-height: 1; }
.talon span { font-size: .85rem; font-weight: 700; }
.talon .an { font-size: .72rem; font-weight: 400; opacity: .9; }

/* ---------- Tounes à apprendre : barre de progression du groupe ---------- */
.progres { height: 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--border); overflow: hidden; }
.progres span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc-fill), var(--acc2)); }

/* ---------- Présence (point vert : l'app est ouverte) ---------- */
:root { --en-ligne: #3DDC84; }
.avatar { position: relative; }
.avatar.actif::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 32%; height: 32%; border-radius: 50%; background: var(--en-ligne); border: 3px solid var(--card); }
.avatar.mini { width: 2.2rem; height: 2.2rem; font-size: calc(.95rem * var(--titre-echelle)); }
.avatar.mini.actif::after { border-width: 2px; }
.presence-liste { display: flex; flex-wrap: wrap; gap: .4rem; }
.presence-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: .2rem .65rem; font-size: .85rem; color: var(--muted); }
.presence-chip.actif { color: var(--text); font-weight: 700; }
.presence-chip .point { width: .7rem; height: .7rem; border-radius: 50%; background: var(--border); flex: none; }
.presence-chip.actif { border-color: var(--en-ligne); }
.presence-chip.actif .point { background: var(--en-ligne); }

/* ---------- Chat du band ---------- */
.chat-fil { display: flex; flex-direction: column; gap: .45rem; }
.chat-jour { align-self: center; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: .6rem 0 .1rem; }
.bulle { position: relative; align-self: flex-start; max-width: 80%; margin-right: auto; background: var(--card); border: 2px solid var(--border); border-radius: 16px 16px 16px 4px; padding: .5rem .8rem .35rem; box-shadow: var(--card-ombre); }
.bulle.mien { align-self: flex-end; margin-right: 0; margin-left: auto; background: var(--acc-fill); border-color: var(--acc-fill); color: var(--on-acc); border-radius: 16px 16px 4px 16px; }
.bulle-nom { display: block; font-size: .9rem; color: var(--acc2-text); }
.bulle-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle a { color: inherit; text-decoration: underline; }
.bulle-heure { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; font-size: .8rem; opacity: .85; margin-top: .15rem; }
.bulle.mien .bulle-heure { color: var(--on-acc); }
.bulle-retirer { font-size: .8rem; min-height: 0; padding: 0; color: inherit; }
.chat-saisie { position: sticky; bottom: calc(53px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 10px 0 var(--bg); z-index: 5; display: flex; align-items: flex-end; gap: .5rem; background: var(--bg); padding: .6rem 0 .4rem; border-top: 1px solid var(--border); }
.chat-saisie textarea { flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 160px; }
.chat-envoyer { flex: none; width: 52px; height: 48px; min-height: 48px; padding: 0; display: grid; place-items: center; }
.chat-envoyer .ico { width: 24px; height: 24px; }
/* Bulle flottante : ouvre le chat, au-dessus des onglets */
main:has(.chat-fab) { padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
.chat-fab { position: fixed; right: max(14px, calc(50% - 22rem + 14px)); bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 9; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--acc-fill); color: var(--on-acc); border: 2px solid var(--head); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.chat-fab .ico { width: 28px; height: 28px; }
.chat-nonlus { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--acc2); color: var(--on-acc2); font-size: 13px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--head); }
.chat-actifs { position: absolute; bottom: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--en-ligne); border: 3px solid var(--head); }
/* Chat : en-tête fixé en haut, et « qui est en ligne » collé juste sous le bandeau */
.top { position: sticky; top: 0; z-index: 8; }  /* en-tête fixe sur toutes les pages */
.chat-haut { position: sticky; top: var(--haut-top, 126px); z-index: 6; display: grid; gap: .6rem; background: var(--bg); margin: -1.8rem -1rem 0; padding: 1.1rem 1rem .6rem; border-bottom: 1px solid var(--border); }
.chat-haut .card { padding: .6rem .8rem; }
/* Chat : initiales + micro-icône de l'instrument */
.etiquette { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; letter-spacing: .02em; }
.etiquette .ico-instr { width: 1.3em; height: 1.3em; flex: none; }
.presence-chip .etiquette { font-weight: inherit; }
/* Chat : les 5 autres membres sur une seule ligne, sur toute la largeur.
   En ligne = bordure verte + pastille verte dans le coin (plus de point à gauche, pour gagner de la place). */
.chat-haut .presence-liste { flex-wrap: nowrap; gap: .35rem; }
.chat-haut .presence-chip { position: relative; flex: 1 1 0; min-width: 0; justify-content: center; min-height: 44px; padding: .3rem .15rem;
  font-size: min(1rem, 4.3vw); border-width: 2px; }
.chat-haut .presence-chip .point { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border: 2px solid var(--bg); }
.chat-haut .presence-chip:not(.actif) .point { display: none; }
.chat-haut .presence-chip .etiquette { gap: .2rem; }
.chat-haut .presence-chip .ico-instr { width: 1.4em; height: 1.4em; }

/* ---------- To do ---------- */
.todo-btn { position: relative; }
.todo-n { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--acc-fill); color: var(--on-acc);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--head); }
.tache-ligne { display: flex; align-items: flex-start; gap: .7rem; }
.tache-case { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; color: var(--acc2-text); margin: -.4rem 0 0 -.5rem; }
.tache-case .ico { width: 32px; height: 32px; }
.tache-case.vide { color: var(--muted); }
.tache-titre { font-size: 1.1rem; }
.tache.fait { opacity: .75; }
.tache.fait .tache-titre { text-decoration: line-through; color: var(--muted); }
.tache.fait .tache-case { color: var(--yes); }
.tache.retard { border-color: var(--no); }
.vote button[disabled] { cursor: default; }
/* Accueil : prochain show plus compact */
.prochain { padding: .8rem 1rem; }
.prochain-titre { font-family: var(--font-titre); font-weight: var(--titre-poids); text-transform: uppercase; font-size: calc(1.3rem * var(--titre-echelle)); line-height: 1.15; margin: .15rem 0 .2rem; }
.prochain .pill { font-size: .85rem; padding: .2rem .7rem; }
.tache-tete { display: flex; align-items: flex-start; gap: .6rem; }
.tache-tete .link { flex: none; min-height: 44px; margin: -.6rem -.4rem -.6rem 0; padding: 0 .4rem; }
.tache-ev { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; text-align: left; }
/* Listes de membres en étiquettes (icône d'instrument + initiales) : À apprendre, votes, tâches faites */
/* Toujours sur une ligne : la taille suit la largeur réelle de la carte (unités cqw du conteneur) */
.card:has(> .qui), .card:has(.qui) { container-type: inline-size; }
.qui { display: flex; flex-wrap: nowrap; align-items: center; gap: .3em; font-size: min(1rem, 4.3cqw); white-space: nowrap; min-width: 0; max-width: 100%; overflow: hidden; }
.qui > .muted, .qui > b { font-size: .85em; }
.etiquettes { display: inline-flex; flex-wrap: nowrap; gap: .35em; min-width: 0; }
.qui .etiquette { gap: .1em; }
.qui .ico-instr { width: 1.25em; height: 1.25em; }
/* Événements passés : bouton « Voir la vidéo » accroché sous la ligne */
.ev-avec-video { display: grid; }
.ev-avec-video .evligne { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.video-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; width: 100%; font: inherit; font-weight: 700;
  background: var(--acc-fill); color: var(--on-acc); border: 2px solid var(--acc-fill); border-radius: 0 0 var(--r) var(--r); text-decoration: none; cursor: pointer; }
.video-btn .ico { width: 1.4em; height: 1.4em; }
/* Chat : message modifié, et bandeau « Modification du message » au-dessus de la zone d'écriture */
.bulle-modifie { font-style: italic; }
.chat-saisie.edition { flex-wrap: wrap; }
.chat-edition { flex-basis: 100%; display: flex; align-items: center; gap: .5rem; padding: .1rem .2rem .2rem; font-weight: 700; color: var(--acc2-text); }
.chat-edition .link { min-height: 36px; }
/* Chat : réactions en émoji */
.reactions { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.25rem 0 .1rem .4rem; align-self: flex-start; }
.reactions.mien { align-self: flex-end; margin: -.25rem .4rem .1rem 0; }
.reaction { display: inline-flex; align-items: center; gap: .25rem; min-height: 32px; padding: .1rem .55rem; border-radius: 99px; background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; line-height: 1; }
.reaction span { font-size: .85rem; font-weight: 700; }
.reaction.mienne { border-color: var(--acc2); }
.reac-barre { display: flex; gap: .15rem; align-self: flex-start; background: var(--card); border: 2px solid var(--border); border-radius: 99px; padding: .2rem .35rem; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.reac-barre.mien { align-self: flex-end; }
.reac-rapide { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 1.55rem; line-height: 1; }
.reac-rapide.mienne { background: var(--card2); outline: 2px solid var(--acc2); }
.reac-rapide.plus { font-size: 1.5rem; font-weight: 700; color: var(--text); background: var(--card2); }
/* Bibliothèque complète d'émojis */
#emojis { width: 100%; max-width: 30rem; margin: auto auto 0; border: 0; border-radius: 18px 18px 0 0; padding: 0 0 env(safe-area-inset-bottom, 0px); background: var(--card); color: var(--text); }
#emojis::backdrop { background: rgba(0,0,0,.55); }
.emojis-tete { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; font-size: 1.1rem; }
#emojis emoji-picker { width: 100%; height: min(60vh, 440px); --background: var(--card); --border-color: var(--border); --input-border-color: var(--border);
  --input-font-color: var(--text); --input-placeholder-color: var(--muted); --indicator-color: var(--acc2); --button-hover-background: var(--card2);
  --button-active-background: var(--border); --category-font-color: var(--muted); --num-columns: 8; --emoji-size: 1.6rem; }
/* Appels vidéo (Jitsi) */
.appel-btn { min-height: 44px; padding: .3rem .8rem; font-size: 1rem; }
.appel-btn .ico { width: 1.3em; height: 1.3em; }
.bulle-appel { display: grid; gap: .5rem; }
.bulle-appel .btn { min-height: 44px; }
/* Bouton « + » (ajouter) dans la barre du haut, à droite du To do : même taille que les autres, couleur d'accent */
.plus-tete { background: var(--acc-fill); border-color: var(--acc-fill); color: var(--on-acc); }
.plus-tete .ico { stroke-width: 2.6; }
.menu-ajout .item { padding: .6rem .8rem; }
.menu-ajout .badge { width: 2.6rem; height: 2.6rem; }
/* Setlist : champ « Événement » */
.set-ev { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .6rem; }
/* ✕ en haut à droite des fenêtres du bas (formulaires, menu « + ») : petit mais présent */
.sheet { position: relative; }
.sheet > h3 { padding-right: 2.6rem; }
.sheet-x { position: sticky; top: 0; float: right; justify-self: end; margin: -.35rem -.35rem -44px auto; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: var(--card); border: 0; border-radius: 50%; color: var(--muted); }
.sheet-x .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.sheet-x:hover, .sheet-x:focus-visible { color: var(--text); background: var(--card2); }
.lien-danger { color: var(--no); }
/* Appel entrant : bandeau en haut de page (« … t'appelle · Rejoindre · Ignorer ») */
.appel-entrant { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--yes); color: #fff; border-radius: var(--r); padding: .6rem .8rem; box-shadow: var(--card-ombre); }
.appel-entrant > .ico { width: 1.5em; height: 1.5em; }
.appel-entrant .btn { min-height: 44px; padding: .3rem .9rem; }
.appel-entrant .btn.yes { background: #fff; color: #1d4d2a; border-color: #fff; }
.appel-entrant .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
/* Contacts : une liste simple (nom, contact principal, logos) ; toucher le nom déplie une petite fiche */
.liste-contacts { display: grid; gap: .5rem; }
.contact-bloc { background: var(--card); border: 2px solid var(--acc); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-ombre); }
.contact-ligne { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: .35rem .5rem .35rem .2rem; box-shadow: var(--card-ombre); }
.contact-bloc .contact-ligne { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
.contact-nom { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: .35rem .6rem; min-height: 48px; color: var(--text); }
.contact-nom b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-nom .muted { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moyens { display: flex; gap: .3rem; flex: none; }
.moyen { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); color: var(--acc2-text); background: transparent; }
.moyen .ico { width: 20px; height: 20px; }
.moyen.prefere { background: var(--acc-fill); border-color: var(--acc-fill); color: var(--on-acc); }
.contact-fiche { padding: .7rem 1rem 1rem; gap: .45rem; }
/* Suggestions : cartes compactes (3 petites lignes) et petits boutons */
.liste-sugg { display: grid; gap: .5rem; }
.sugg { background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: .55rem .75rem; display: grid; gap: .35rem; box-shadow: var(--card-ombre); }
.sugg-tete { display: flex; align-items: center; gap: .5rem; }
.sugg-tete .pill { font-size: .8rem; padding: .15rem .6rem; }
.sugg-par { display: flex; align-items: center; gap: .4rem; font-size: .9rem; min-width: 0; }
.sugg-com { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: var(--muted); font-style: italic; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-com.ouvert { white-space: pre-wrap; }
.sugg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.mini { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .15rem .7rem; border-radius: 99px; font-size: .88rem; font-weight: 700;
  background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.mini .ico { width: 1em; height: 1em; }
.mini .n { background: var(--border); border-radius: 99px; padding: 0 .4rem; font-size: .8rem; }
.mini.choisi { background: var(--acc2); color: var(--on-acc2); border-color: var(--acc2); }
.mini.choisi .n { background: rgba(0,0,0,.18); }
.mini.danger { color: var(--no); }
/* Chat : l'heure « en retrait » dans le coin en bas à droite de la bulle, sur la dernière ligne du texte.
   Un espace invisible à la fin du texte lui réserve la place ; s'il n'y en a pas assez, il passe à la ligne. */
.bulle-espace { display: inline-block; width: 3.6em; height: 1px; }
.bulle-espace.large { width: 7.6em; }
.bulle:not(.compacte) .bulle-espace { display: none; }
.bulle.compacte { padding-bottom: .4rem; }
.bulle.compacte .bulle-heure { position: absolute; right: .65rem; bottom: .3rem; margin: 0; font-size: .72rem; line-height: 1.2; }
/* Chat plus serré : bulles moins hautes, moins d'espace entre elles et autour des séparateurs de jour */
.chat-fil { gap: .25rem; }
.chat-jour { margin: .35rem 0 0; font-size: .78rem; }
.bulle { padding: .3rem .7rem; line-height: 1.3; }
.bulle.compacte { padding-bottom: .3rem; }
.bulle-nom { font-size: .82rem; line-height: 1.2; }
.bulle.compacte .bulle-heure { bottom: .22rem; }
.reactions, .reactions.mien { margin-top: -.15rem; margin-bottom: 0; }
.reaction { min-height: 28px; padding: 0 .5rem; }
/* Chat : en-tête compact (titre + rangée d'icônes seulement, sans logo ni sous-titre) pour laisser plus de place aux messages */
html.chat-ouvert .top { padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: 6px; }
html.chat-ouvert .top-in { height: 48px; }
html.chat-ouvert .top-aside { height: 48px; }
html.chat-ouvert .top-aside .logo-bloc, html.chat-ouvert .top .sub { display: none; }
html.chat-ouvert .top h1 { font-size: calc(26px * var(--titre-echelle)); }
/* Chat : l'icône 📹 « Appel vidéo » au bout de la ligne des membres */
.appel-icone { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--acc-fill); color: var(--on-acc); border: 0; }
.appel-icone .ico { width: 22px; height: 22px; }
html.chat-ouvert .chat-haut { padding-top: .55rem; padding-bottom: .45rem; gap: .45rem; }
.chat-saisie { padding: .4rem 0 .35rem; }
/* Lecteur musical (YouTube) : barre fixe au-dessus des onglets, visible sur tous les écrans */
#lecteur { position: fixed; left: 0; right: 0; bottom: calc(53px + env(safe-area-inset-bottom, 0px)); z-index: 11; height: 72px;
  display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 0; background: var(--head); color: var(--head-text); border-top: 1px solid var(--border); }
#lecteur[hidden] { display: none; }
.lecteur-video { flex: none; width: 96px; height: 54px; margin-left: .4rem; border-radius: 6px; overflow: hidden; background: #000; }
.lecteur-video iframe { display: block; }
.lecteur-info { flex: 1; min-width: 0; display: grid; }
.lecteur-titre { font-size: .88rem; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lecteur-sous { font-size: .8rem; color: var(--head-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecteur-btns { flex: none; display: flex; align-items: center; }
.lecteur-btn { width: 38px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--head-text); }
.lecteur-btn .ico { width: 22px; height: 22px; }
.lecteur-btn.principal { width: 44px; height: 44px; border-radius: 50%; background: var(--acc-fill); color: var(--on-acc); }
.lecteur-btn.principal .ico { fill: currentColor; }
/* Lecteur ouvert : le reste remonte d'autant (contenu, bulle du chat, zone d'écriture, avis) */
html.lecteur-ouvert main { padding-bottom: calc(76px + 72px + env(safe-area-inset-bottom, 0px)); }
html.lecteur-ouvert .chat-fab { bottom: calc(66px + 72px + env(safe-area-inset-bottom, 0px)); }
html.lecteur-ouvert .chat-saisie { bottom: calc(53px + 72px + env(safe-area-inset-bottom, 0px)); }
html.lecteur-ouvert .toast { bottom: calc(62px + 72px + env(safe-area-inset-bottom, 0px)); }
.a-lien { color: var(--acc-text); font-size: .8em; }
html.lecteur-ouvert main:has(.chat-fab) { padding-bottom: calc(144px + 72px + env(safe-area-inset-bottom, 0px)); }
/* Boutons Spotify et Apple Music (couleurs des marques, lisibles sur tous les thèmes) */
.btn-spotify { border-color: #1DB954; color: var(--text); }
.btn-spotify .ico { color: #1DB954; }
.btn-apple { border-color: #FA243C; color: var(--text); }
.btn-apple .ico { color: #FA243C; }
/* Fiche d'une toune : grille 2 × 2 de boutons-liens (YouTube, Spotify, Apple Music, GoPro) */
.boutons-ecoute { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.boutons-ecoute .btn { flex-direction: column; gap: .2rem; min-height: 58px; padding: .35rem .2rem; font-size: 12px; line-height: 1.1; text-align: center; }
.boutons-ecoute .btn .ico { width: 22px; height: 22px; }
.btn-youtube { border-color: #FF0033; color: var(--text); }
.btn-youtube .ico { color: #FF0033; }
.btn-gopro { border-color: #00A8E1; color: var(--text); }
.btn-gopro .ico { color: #00A8E1; }
#videos-toune { scroll-margin-top: 150px; }
/* Lecteur Apple Music intégré (fiche d'une toune) */
.lecteur-apple { width: 100%; height: 175px; border: 0; border-radius: 12px; overflow: hidden; background: transparent; }
.btn-apple[aria-pressed="true"] { background: #FA243C; border-color: #FA243C; color: #fff; }
.btn-apple[aria-pressed="true"] .ico { color: #fff; }
/* Lecteurs intégrés Spotify et Apple Music (fiche d'une toune) */
.lecteur-integre { width: 100%; border: 0; border-radius: 12px; overflow: hidden; background: transparent; display: block; }
.lecteur-integre.spotify { height: 152px; }
.lecteur-integre.apple { height: 175px; }
.btn-spotify[aria-pressed="true"] { background: #1DB954; border-color: #1DB954; color: #0B0B0B; }
.btn-spotify[aria-pressed="true"] .ico { color: #0B0B0B; }
.choix-lecteur { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
/* Barre du lecteur en mode Spotify : le lecteur Spotify (titre, pochette, lecture) remplace la vidéo et le titre */
.lecteur-spotify { display: none; flex: 1; min-width: 0; height: 80px; }
.lecteur-spotify iframe { display: block; border: 0; }
#lecteur.mode-spotify { height: 88px; }
#lecteur.mode-spotify .lecteur-video, #lecteur.mode-spotify .lecteur-info { display: none; }
#lecteur.mode-spotify .lecteur-spotify { display: block; margin-left: .3rem; }
#lecteur.mode-spotify #lecteur-jp { display: none; }
html.lecteur-ouvert:has(#lecteur.mode-spotify) main { padding-bottom: calc(76px + 88px + env(safe-area-inset-bottom, 0px)); }
html.lecteur-ouvert:has(#lecteur.mode-spotify) .chat-fab { bottom: calc(66px + 88px + env(safe-area-inset-bottom, 0px)); }
html.lecteur-ouvert:has(#lecteur.mode-spotify) .chat-saisie { bottom: calc(53px + 88px + env(safe-area-inset-bottom, 0px)); }
/* Setlist : une toune par ligne (numéro, titre, durée, ↑ ↓ ✕ compacts à droite) */
.setlist .srow { grid-template-columns: 1.8rem minmax(0, 1fr) auto auto; gap: .4rem; padding: .4rem 0; }
.setlist .ctl { grid-column: auto; gap: .2rem; }
.setlist .ic-btn { min-width: 34px; min-height: 36px; padding: 0; border-width: 1px; border-radius: 8px; font-size: .95rem; }
.setlist .body b { overflow-wrap: anywhere; line-height: 1.2; }
.setlist .body .muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setlist .n { font-size: 1.15rem; }
.setlist .pause { flex-wrap: nowrap; padding: .35rem 0; }
/* Setlist : Importer · Mode scène · Écouter sur une ligne ; aperçu de l'importation */
.trois { display: grid; grid-template-columns: auto 1fr auto; gap: .4rem; }
.trois .btn { font-size: .9rem; gap: .25rem; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-apercu { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 40vh; overflow-y: auto; border-top: 1px solid var(--border); }
.import-apercu li { padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.import-apercu li.ok > span:first-child { color: var(--yes-text, var(--acc2-text)); font-weight: 700; }
.import-apercu li.nouv > span:first-child { color: var(--acc-text); font-weight: 700; }
.import-apercu li.pause { text-align: center; font-weight: 700; color: var(--acc2-text); }
.sheet > label:not([hidden]) { display: grid; gap: .25rem; }
/* Messages audio : ▶ + durée, puis la transcription ; barre d'enregistrement */
.bulle-audio { display: grid; gap: .25rem; min-width: 12rem; }
.audio-ligne { display: flex; align-items: center; gap: .5rem; }
.audio-jouer { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acc-fill); color: var(--on-acc); display: grid; place-items: center; cursor: pointer; }
.audio-jouer .ico { width: 20px; height: 20px; }
.audio-onde { flex: 1; height: 4px; border-radius: 2px; background: var(--border); min-width: 3rem; }
.audio-duree { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-rec { flex: 1; min-width: 0; white-space: nowrap; min-height: 48px; display: flex; align-items: center; gap: .4rem; padding: 0 .6rem; border: 2px solid var(--border); border-radius: 12px; background: var(--card); font-variant-numeric: tabular-nums; }
.rec-point { width: 12px; height: 12px; border-radius: 50%; background: var(--no); animation: rec-clignote 1s infinite; }
@keyframes rec-clignote { 50% { opacity: .25; } }
.chat-envoyer.ghost { width: 48px; }
.bulle.mien .audio-jouer { background: var(--on-acc); color: var(--acc-fill); }
.bulle.mien .audio-onde { background: currentColor; opacity: .35; }
.bulle.mien .audio-duree, .bulle.mien .bulle-audio .muted { color: inherit; opacity: .9; }
/* Initiales dans des petites bulles, pour bien délimiter chaque membre */
.etiquettes .etiquette { padding: .05em .38em .05em .28em; border: 1px solid var(--border); border-radius: 99px; background: var(--card2); line-height: 1.35; }
.etiquettes { gap: .22em; }
.qui { font-size: min(1rem, 3.75cqw); }
/* Lecteur intégré (Spotify, Apple Music) : bouton Plein écran ; en plein écran, il couvre tout, onglets compris */
.integre-boite { display: grid; gap: .4rem; }
.integre-plein-btn { justify-self: end; }
.integre-boite.plein { position: fixed; inset: 0; z-index: 100; background: #000; align-content: center; padding: 0 .6rem; }
.integre-boite.plein .integre-plein-btn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); right: .8rem; }
.integre-boite.plein .lecteur-integre { max-width: 40rem; margin: 0 auto; }
.integre-boite.plein .lecteur-integre.spotify { height: 352px; }
/* iPhone : si un élément dépasse à droite (même un instant), Safari élargit la page et dézoome ; l'app se retrouve
   à gauche avec du noir à droite. « clip » coupe ce qui dépasse sans briser la barre du haut fixe (sticky),
   et minimum-scale=1 (index.html) empêche de dézoomer. */
html, body { overflow-x: clip; }
select, input, textarea { max-width: 100%; }
/* Onglets de Tounes : 2 par ligne, icône + nom + (nombre) */
.segs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.segs-2 button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: 0 .4rem; font-size: .92rem; white-space: nowrap; min-width: 0; overflow: hidden; }
.segs-2 button .ico { width: 1.15em; height: 1.15em; flex: none; }
/* Setlist : ▶ au début de chaque toune (joue la setlist à partir de là) */
.setlist .srow { grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: .4rem; }
.setlist .body .n { font-size: inherit; margin-right: .15rem; }
.srow-play { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--acc-fill); color: var(--on-acc); cursor: pointer; }
.srow-play .ico { width: 15px; height: 15px; margin-left: 2px; }
.srow-play:disabled { background: var(--card2); color: var(--muted); opacity: .6; }
.setlist .ic-btn { min-width: 30px; width: 30px; }
.setlist .ctl { gap: .15rem; }
.setlist .d { font-size: .9rem; }
/* Exporter une setlist : étapes numérotées */
.etapes { margin: .3rem 0 .6rem 1.3rem; display: grid; gap: .25rem; font-size: .95rem; }
