/* Pages artistes de Yeees Radio (bêta du 25/10/2026).
   Pas de Tailwind ici : sa feuille est compilée et purgée, une classe nouvelle n'y existe pas.
   Aucune couleur écrite dans la page par l'artiste : il choisit un thème (classe .theme-*) et une
   couleur d'accent, posée par le script en variable CSS (setProperty, permis par la CSP). */

@font-face { font-family: 'Urbanist'; src: url('/assets/fonts/urbanist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Chewy'; src: url('/assets/fonts/chewy.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --rouge: #E24B4A; --noir: #0d0d0d; --gris: #8a8a8a; --ligne: rgba(255,255,255,.12);
  --fond: #0d0d0d; --texte: #f5f5f5; --doux: rgba(245,245,245,.68); --carte: rgba(255,255,255,.06);
  --accent: #E24B4A; --sur-accent: #ffffff; --titre: 'Urbanist', 'Figtree', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.5 'Figtree', system-ui, -apple-system, sans-serif; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barre du haut ─────────────────────────────────────────── */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(13,13,13,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); color: #f5f5f5; }
.barre .marque { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Urbanist', sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.barre .marque .pastille { width: 30px; height: 30px; border-radius: 9px; background: var(--rouge); display: grid; place-items: center; font-weight: 900; color: #fff; }
.barre .beta { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge); border: 1px solid var(--rouge); border-radius: 99px; padding: 2px 8px; }
.barre .espace { flex: 1; }
.barre a.lien, .barre button.lien { text-decoration: none; font-weight: 700; font-size: 15px; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 10px; color: #f5f5f5; }
.barre a.lien:hover, .barre button.lien:hover { background: rgba(255,255,255,.08); }
.barre .bouton-petit { background: var(--rouge); color: #fff; border: 0; border-radius: 99px; padding: 9px 16px; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 80px; }

/* ── Boutons ───────────────────────────────────────────────── */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 99px;
  border: 0; font-weight: 800; font-size: 17px; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--sur-accent); }
.bouton.secondaire { background: transparent; color: var(--texte); border: 2px solid currentColor; }
.bouton.discret { background: var(--carte); color: var(--texte); }
.bouton:disabled, .bouton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.bouton:focus-visible, .piste button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.bientot { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.14); color: var(--doux); vertical-align: middle; }

/* ── Annuaire ──────────────────────────────────────────────── */
.ouverture { padding: 40px 0 18px; }
.ouverture h1 { font-family: 'Urbanist', sans-serif; font-weight: 900; font-size: clamp(34px, 7vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 12px; }
.ouverture h1 em { font-style: normal; color: var(--rouge); }
.ouverture p { color: var(--doux); font-size: 19px; margin: 0 0 20px; max-width: 640px; }
.du-mois { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(226,75,74,.28), rgba(226,75,74,.06)); border: 1px solid rgba(226,75,74,.5);
  border-radius: 24px; padding: 18px; text-decoration: none; margin: 10px 0 26px; }
.du-mois img { width: 140px; height: 140px; border-radius: 18px; object-fit: cover; }
.du-mois .etiquette { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); }
.du-mois .nom { font-family: 'Urbanist', sans-serif; font-size: 30px; font-weight: 900; line-height: 1.1; margin: 4px 0; }
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filtres button { flex: none; border: 1px solid var(--ligne); background: transparent; border-radius: 99px; padding: 9px 15px; font-weight: 700; cursor: pointer; min-height: 44px; }
.filtres button[aria-pressed="true"] { background: #f5f5f5; color: #0d0d0d; border-color: #f5f5f5; }
.recherche { width: 100%; min-height: 52px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--carte); padding: 12px 16px; font-size: 17px; margin-bottom: 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.carte { text-decoration: none; background: var(--carte); border-radius: 20px; overflow: hidden; border: 1px solid var(--ligne); transition: transform .15s; }
.carte:hover { transform: translateY(-2px); }
.carte .visuel { aspect-ratio: 1; background: #222 center/cover; width: 100%; object-fit: cover; }
.carte .infos { padding: 10px 12px 14px; }
.carte .nom { font-weight: 800; font-size: 17px; line-height: 1.2; }
.carte .meta { font-size: 14px; color: var(--doux); }
.vide { text-align: center; color: var(--doux); padding: 30px 10px; }
.rejoindre { margin-top: 44px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 24px; padding: 24px; }
.rejoindre h2 { font-family: 'Urbanist', sans-serif; font-size: 30px; font-weight: 900; margin: 0 0 8px; }
.rejoindre ol { padding-left: 22px; margin: 10px 0 18px; }
.rejoindre li { margin-bottom: 6px; }
.rejoindre .regle { font-size: 15px; color: var(--doux); }

/* ── Page d'un artiste ─────────────────────────────────────── */
.page-artiste { --fond-page: var(--fond); background: var(--fond-page); color: var(--texte); min-height: 100vh; }
.theme-sombre { --fond: #0d0d0d; --texte: #f5f5f5; --doux: rgba(245,245,245,.68); --carte: rgba(255,255,255,.07); --ligne: rgba(255,255,255,.14); color-scheme: dark; }
.theme-clair { --fond: #fafafa; --texte: #141414; --doux: rgba(20,20,20,.66); --carte: rgba(0,0,0,.05); --ligne: rgba(0,0,0,.12); color-scheme: light; }
.theme-neon { --fond: #0a0420; --texte: #ece9ff; --doux: rgba(236,233,255,.7); --carte: rgba(140,90,255,.12); --ligne: rgba(160,120,255,.3); color-scheme: dark; }
.theme-papier { --fond: #f4ecd8; --texte: #2b2118; --doux: rgba(43,33,24,.7); --carte: rgba(43,33,24,.06); --ligne: rgba(43,33,24,.18); color-scheme: light; }
.theme-beton { --fond: #d9d9d6; --texte: #1c1c1c; --doux: rgba(28,28,28,.68); --carte: rgba(0,0,0,.07); --ligne: rgba(0,0,0,.16); color-scheme: light; }
.theme-nature { --fond: #eef3e8; --texte: #1f2a1a; --doux: rgba(31,42,26,.7); --carte: rgba(31,42,26,.06); --ligne: rgba(31,42,26,.16); color-scheme: light; }
.theme-retro { --fond: #2b1d3a; --texte: #ffe9c7; --doux: rgba(255,233,199,.72); --carte: rgba(255,233,199,.08); --ligne: rgba(255,233,199,.2); color-scheme: dark; }
.theme-minimal { --fond: #ffffff; --texte: #000000; --doux: rgba(0,0,0,.62); --carte: rgba(0,0,0,.04); --ligne: rgba(0,0,0,.14); color-scheme: light; }
.police-urbanist { --titre: 'Urbanist', 'Figtree', sans-serif; }
.police-chewy { --titre: 'Chewy', 'Urbanist', sans-serif; }
.police-space-grotesk { --titre: 'Space Grotesk', 'Figtree', sans-serif; }
.police-syne { --titre: 'Syne', 'Figtree', sans-serif; }
.police-bricolage { --titre: 'Bricolage Grotesque', 'Figtree', sans-serif; }

.banniere { height: clamp(150px, 30vw, 320px); background: linear-gradient(135deg, var(--accent), transparent 80%), #222; position: relative; }
.banniere img { width: 100%; height: 100%; object-fit: cover; }
.entete { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; margin-top: -70px; position: relative; }
.entete .photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--fond); background: #333; }
.entete h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(32px, 6vw, 56px); line-height: 1.02; margin: 0 0 6px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--carte); border: 1px solid var(--ligne); }
.badge.mois { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.accroche { font-size: 19px; color: var(--doux); margin: 14px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.compteurs { font-size: 14px; color: var(--doux); }
.contenu { max-width: 1040px; margin: 0 auto; padding: 8px 16px 60px; }
.bloc { margin-top: 34px; }
.bloc h2 { font-family: var(--titre); font-size: 26px; font-weight: 900; margin: 0 0 12px; }

.piste { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; padding: 10px 14px 10px 10px; margin-bottom: 10px; }
.piste .jouer { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--sur-accent); cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.piste .titre { font-weight: 800; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.piste .sous { font-size: 13px; color: var(--doux); }
.piste .avance { height: 5px; border-radius: 9px; background: var(--ligne); margin-top: 8px; overflow: hidden; }
.piste .avance i { display: block; height: 100%; width: 0; background: var(--accent); }
.piste .acheter { font-size: 15px; font-weight: 800; min-height: 48px; padding: 10px 16px; border-radius: 99px; border: 0; background: var(--accent); color: var(--sur-accent); cursor: pointer; white-space: nowrap; }
.piste .acheter:disabled { opacity: .5; cursor: wait; }
.piste .acheter.apercu-prix { display: inline-flex; align-items: center; background: none; color: var(--doux); border: 1px dashed var(--ligne); cursor: default; }
.vente-aide { font-size: 14px; color: var(--doux); margin: 4px 2px 0; }
@media (max-width: 520px) { .piste { grid-template-columns: 56px 1fr; } .piste .acheter { grid-column: 1 / -1; width: 100%; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .lecture { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-titre { font-weight: 700; font-size: 15px; margin: 6px 2px 0; }
.bio { white-space: pre-line; font-size: 18px; max-width: 720px; overflow-wrap: anywhere; }
.liens { display: flex; flex-wrap: wrap; gap: 10px; }
.liens a { text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 99px; background: var(--carte); border: 1px solid var(--ligne); min-height: 48px; display: inline-flex; align-items: center; }
.pied-artiste { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--doux); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.pied-artiste button { background: none; border: 0; color: var(--doux); text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* ── Fenêtres et formulaires ───────────────────────────────── */
dialog { border: 0; border-radius: 22px; padding: 22px; max-width: min(520px, calc(100vw - 32px)); width: 100%; background: #fff; color: #1F1B16; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { margin: 0 0 10px; font-family: 'Urbanist', sans-serif; font-size: 24px; }
.choix { display: grid; gap: 8px; margin: 10px 0 14px; }
.choix label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid #EDE7E0; border-radius: 14px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--rouge); background: #FFF3F2; }
.choix input { margin-top: 4px; }
.message { margin: 10px 0 0; font-weight: 700; }
.message.erreur { color: #B33A1A; }
.message.ok { color: #237a4b; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #1F1B16; color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; z-index: 50; max-width: calc(100vw - 32px); }

/* ── Le direct de Yeees Radio, en bas de page (radio-direct.js) ── */
body:has(.radio-direct:not([hidden])) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
/* Le bouton « Enregistrer » collé en bas de mon-espace-artiste se pose au-dessus de la barre. */
body:has(.radio-direct:not([hidden])) .collant { bottom: calc(78px + env(safe-area-inset-bottom)); }
.radio-direct { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13,13,13,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ligne); color: #f5f5f5; }
.radio-jouer { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--rouge); cursor: pointer; display: grid; place-items: center; }
.radio-jouer .icone { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.radio-direct.en-marche .radio-jouer .icone { margin-left: 0; width: 16px; height: 16px; border: 0; background: #fff; border-radius: 3px; }
.radio-jouer:focus-visible, .barre button.lien:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.radio-texte { min-width: 0; flex: 1; }
.radio-nom { font-family: 'Urbanist', sans-serif; font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.radio-nom .point { width: 9px; height: 9px; border-radius: 50%; background: var(--gris); flex: none; }
.radio-direct.en-marche .radio-nom .point { background: var(--rouge); animation: radio-pouls 1.6s ease-in-out infinite; }
.radio-etat { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.radio-titre { font-size: 15px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes radio-pouls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .radio-direct.en-marche .radio-nom .point { animation: none; } }

@media (max-width: 640px) {
  .entete { grid-template-columns: 1fr; margin-top: -60px; }
  .entete .photo { width: 120px; height: 120px; }
  .du-mois { grid-template-columns: 96px 1fr; }
  .du-mois img { width: 96px; height: 96px; }
  .du-mois .nom { font-size: 24px; }
  .barre .masquer-mobile { display: none; }
}
