/* ==========================================================================
   Yohan Perez — le site comme une app de musique.
   Maquette validée par Davy le 25/09/2026 (« je suis fan de fou ») :
   /app-maquette/. Codes d'une app de musique, identité de Yohan : noir et
   blanc, son monogramme, Bodoni pour les grands titres.

   Trois mises en page :
   - téléphone (< 700 px) : onglets en bas, mini-lecteur au-dessus ;
   - tablette (700 – 1199 px) : la même, en plus large ;
   - ordinateur (≥ 1200 px) : barre latérale, « Ma houppa » toujours ouverte
     à droite, barre de lecture en bas sur toute la largeur.
   ========================================================================== */
:root {
  --fond: #000; --surface: #121212; --surface-2: #1c1c1c; --trait: #242424;
  --texte: #fff; --doux: #9a9a9a; --pale: #5f5f5f;
  --onglets: calc(64px + env(safe-area-inset-bottom));
  --mini: 62px;
  --marge: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fond); color-scheme: dark; }
body {
  font-family: "Manrope", system-ui, sans-serif; color: var(--texte); background: var(--fond);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, a, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
.he { font-family: "Frank Ruhl Libre", serif; direction: rtl; unicode-bidi: isolate; }
.serif { font-family: "Bodoni Moda", serif; font-weight: 700; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------------- coque */
.coque { min-height: 100vh; }
.cote, .panneau { display: none; }
.vue { display: block; padding-bottom: calc(var(--onglets) + var(--mini) + 30px); outline: none; min-height: 100vh; }
body.sans-lecteur .vue { padding-bottom: calc(var(--onglets) + 24px); }

/* --------------------------------------------------------------- onglets */
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--onglets);
  padding: 8px 10px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid #161616;
}
.onglet { display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--pale); }
.onglet.actif { color: #fff; }
.onglet svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------- lecteur (mini) */
.lecteur {
  position: fixed; left: 8px; right: 8px; bottom: calc(var(--onglets) + 6px); z-index: 31; height: var(--mini);
  display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; border-radius: 14px;
  background: rgba(40,40,40,.88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.lecteur__ouvrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; height: 100%; }
.lecteur__pochette { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #222; flex: 0 0 auto; }
.lecteur__titre { min-width: 0; }
.lecteur__titre b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur__titre small { display: block; font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur__boutons { display: flex; align-items: center; gap: 4px; }
.lecteur__boutons button { width: 42px; height: 42px; display: grid; place-items: center; }
.lecteur .bt-prec, .lecteur__rail, .lecteur__droite { display: none; }
.lecteur__barre { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.lecteur__barre i { display: block; height: 100%; width: 0; background: #fff; }

/* --------------------------------------------------------------- en-têtes de page */
.page-haut { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 14px) var(--marge) 14px; }
.page-haut img { height: 28px; }
.pastille { font-size: 12px; font-weight: 600; padding: 8px 14px; border: 1px solid #333; border-radius: 99px; }
.grand-titre { font-size: 34px; font-weight: 700; letter-spacing: -.02em; padding: calc(env(safe-area-inset-top) + 22px) var(--marge) 0; }
.sous-titre { padding: 6px var(--marge) 0; font-size: 14px; color: var(--doux); }
.rubrique { display: flex; justify-content: space-between; align-items: baseline; padding: 30px var(--marge) 14px; }
.rubrique h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.rubrique a { font-size: 13px; color: var(--doux); }

/* --------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 99px; font-size: 14.5px; font-weight: 700; }
.btn--plein { background: #fff; color: #000; }
.btn--vide { background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.grand-bouton {
  width: 100%; height: 54px; border-radius: 15px; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700;
}
.grand-bouton:disabled { opacity: .45; cursor: default; }
.pilule { height: 36px; padding: 0 16px; border-radius: 99px; background: #fff; color: #000; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pilule.fait, .grand-bouton.fait { background: #2a2a2a; color: #fff; }

/* --------------------------------------------------------------- ACCUEIL */
.artiste { position: relative; margin: 0 16px; height: min(112vw, 560px); border-radius: 18px; overflow: hidden; background: #111; }
.artiste img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.1); }
.artiste::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 32%, transparent 60%); pointer-events: none; }
.artiste__texte { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.artiste h1 { font-size: clamp(50px, 14vw, 84px); line-height: .95; margin-bottom: 18px; }
.rangee { display: flex; gap: 12px; padding: 0 var(--marge); scroll-padding: 0 var(--marge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rangee::-webkit-scrollbar { display: none; }
.rangee .carte { flex: 0 0 150px; scroll-snap-align: start; }

/* --------------------------------------------------------------- cartes (moments) */
.carte { display: block; }
.carte__img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.carte__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.carte:hover .carte__img img { transform: scale(1.04); }
.carte__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 55%); }
.carte__img span { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 1; font-size: 15px; font-weight: 700; line-height: 1.12; }
.carte p { margin-top: 7px; font-size: 12px; color: var(--doux); }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 16px var(--marge) 0; }
/* Cartes de titres (accueil) : la pochette en grand, comme les moments. */
.grille--titres { padding-top: 0; }
.carte--titre.titre { position: relative; display: block; padding: 0; border: 0; background: none; }
.carte--titre .titre__jouer { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; }
.carte--titre.titre:hover { background: none; }
.carte--titre .carte__img::after { display: none; }
.carte__nom { display: block; margin-top: 9px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.carte--titre p { text-align: left; margin-top: 2px; }
.carte--titre p.he { font-size: 14px; }
.carte__plus { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); }
.carte__plus.fait { background: #fff; border-color: #fff; }
.carte__ondes { position: absolute; left: 10px; top: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: none; place-items: center; }
.carte__ondes svg rect { fill: #000; }
.carte--titre.joue .carte__ondes { display: grid; }

/* --------------------------------------------------------------- liste de titres */
.titres { list-style: none; padding: 0 var(--marge); }
.titre { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #141414; }
.titre__jouer { display: contents; text-align: left; }
.titre__img { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #1a1a1a; }
.titre__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.titre__img i { position: absolute; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.5); }
.titre.joue .titre__img i { display: grid; }
.titre__nom { min-width: 0; }
.titre__nom b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titre__nom small { display: block; font-size: 13px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titre__nom small.he { text-align: left; font-size: 14px; }
.titre__plus { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; flex: 0 0 auto; }
.titre__plus.fait { background: #fff; border-color: #fff; }
.titre[draggable="true"] { cursor: grab; }
.vide-liste { padding: 26px var(--marge); color: var(--doux); font-size: 14px; line-height: 1.5; }

/* --------------------------------------------------------------- page d'un moment */
.moment-tete { position: relative; height: min(88vw, 420px); }
.moment-tete img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.moment-tete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 4%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.45) 100%); }
.moment-tete__texte { position: absolute; left: var(--marge); right: var(--marge); bottom: 18px; z-index: 1; }
.moment-tete__sur { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #cfcfcf; }
.moment-tete h1 { font-size: clamp(38px, 11vw, 64px); line-height: 1; margin: 8px 0 16px; }
.retour { position: absolute; left: 12px; top: calc(env(safe-area-inset-top) + 10px); z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; }
.moment-note { padding: 14px var(--marge) 4px; font-size: 13px; color: var(--doux); }

/* --------------------------------------------------------------- recherche */
.recherche {
  margin: 14px var(--marge) 6px; height: 42px; border-radius: 11px; background: var(--surface-2);
  display: flex; align-items: center; gap: 9px; padding: 0 12px;
}
.recherche input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 16px; }
.recherche input::placeholder { color: var(--pale); }

/* --------------------------------------------------------------- MA HOUPPA */
.maison { padding: calc(env(safe-area-inset-top) + 18px) var(--marge) 0; }
.maison__sur { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--doux); }
.maison__nom { display: block; width: 100%; margin: 8px 0 4px; background: none; border: 0; outline: none; font-family: "Bodoni Moda", serif; font-weight: 700; font-size: 40px; line-height: 1.05; color: #fff; }
.maison__nom::placeholder { color: #3a3a3a; }
.maison__info { font-size: 13px; color: var(--doux); }
.jauge { display: flex; gap: 4px; margin: 16px 0 6px; }
.jauge i { flex: 1; height: 3px; border-radius: 2px; background: #2a2a2a; transition: background .3s; }
.jauge i.ok { background: #fff; }
.formule { display: flex; gap: 6px; margin: 14px 0 4px; padding: 4px; border-radius: 12px; background: var(--surface); }
.formule button { flex: 1; height: 36px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--doux); }
.formule button.actif { background: #fff; color: #000; }
.deroule { list-style: none; margin-top: 10px; }
.etape { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 11px 0; }
.etape::before { content: ""; position: absolute; left: 12px; top: 38px; bottom: -11px; width: 1px; background: #262626; }
.etape:last-child::before { display: none; }
.etape__num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--doux); margin-top: 1px; }
.etape.choisi .etape__num { background: #fff; color: #000; border-color: #fff; }
.etape__nom { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--doux); }
.etape__note { font-size: 12px; color: var(--pale); margin-top: 3px; }
.choisi-titre { margin-top: 7px; display: flex; align-items: center; gap: 12px; }
.choisi-titre img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; filter: grayscale(1); flex: 0 0 auto; }
.choisi-titre div { flex: 1; min-width: 0; }
.choisi-titre b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choisi-titre small { display: block; font-size: 13px; color: var(--doux); }
.retirer { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--pale); flex: 0 0 auto; }
.case-vide {
  margin-top: 7px; width: 100%; height: 46px; border: 1px dashed #3a3a3a; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 14px; color: var(--doux); text-align: left;
}
.case-vide.survol { border-color: #fff; color: #fff; background: #111; }
.maison__envoyer { margin: 26px 0 10px; }
.maison__aide { font-size: 12.5px; line-height: 1.5; color: var(--pale); margin-bottom: 18px; }

/* --------------------------------------------------------------- PLAYLISTS */
.mosaique { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mosaique--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaique--4 img { min-height: 0; }
.mosaique--vide { place-items: center; color: var(--doux); }
.mosaique--vide svg { width: 22px; height: 22px; }
.pl-liste { display: grid; gap: 4px; padding: 18px var(--marge) 0; }
.pl-ligne { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 12px; text-align: left; width: calc(100% + 16px); }
.pl-ligne:hover, .pl-ligne.survol { background: #111; }
.pl-ligne.survol { outline: 1px dashed #fff; }
.pl-ligne__nom { min-width: 0; }
.pl-ligne__nom b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ligne__nom small { display: block; font-size: 13px; color: var(--doux); margin-top: 2px; }
.pl-tete { position: relative; display: grid; justify-items: center; text-align: center; padding: calc(env(safe-area-inset-top) + 56px) var(--marge) 18px; }
.pl-tete .mosaique { width: min(60vw, 240px); height: min(60vw, 240px); border-radius: 14px; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.pl-tete .mosaique--vide svg { width: 56px; height: 56px; }
.pl-tete__nom { margin-top: 22px; width: 100%; max-width: 520px; background: none; border: 0; outline: none; text-align: center; font-family: "Bodoni Moda", serif; font-weight: 700; font-size: 34px; color: #fff; border-bottom: 1px solid transparent; }
.pl-tete__nom:focus { border-bottom-color: #333; }
.pl-tete__info { font-size: 13px; color: var(--doux); margin: 6px 0 18px; }
.pl-tete .boutons { justify-content: center; }
.titres .retirer { width: 38px; height: 38px; }
.encart-maries { display: block; margin: 30px var(--marge) 0; padding: 16px 18px; border-radius: 16px; border: 1px solid #262626; }
.encart-maries b { display: block; font-size: 15px; font-weight: 700; }
.encart-maries span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--doux); }
.encart-maries:hover { border-color: #444; }
.feuille__liste button { justify-content: flex-start; }
.feuille__liste button .mosaique { width: 42px; height: 42px; border-radius: 7px; }
.feuille__nom { flex: 1; min-width: 0; }
.feuille__nouvelle { display: flex; gap: 8px; margin-top: 6px; }
.feuille__nouvelle input { flex: 1; min-width: 0; height: 52px; border-radius: 12px; border: 1px dashed #3a3a3a; background: none; padding: 0 14px; font-size: 16px; outline: none; }
.feuille__nouvelle input:focus { border-style: solid; border-color: #fff; }
.feuille__nouvelle button { height: 52px; padding: 0 18px; border-radius: 12px; background: #fff; color: #000; font-weight: 700; }
.panneau__corps { padding: 28px 22px 30px; }
.panneau .pl-liste { padding: 12px 0 0; }
.panneau .encart-maries { margin: 24px 0 0; }
.cote__vip b { display: block; font-size: 14.5px; color: #fff; }
.cote__vip span { display: block; font-size: 12.5px; }

/* --------------------------------------------------------------- RÉSERVER */
.mois { margin: 18px var(--marge) 0; padding: 16px; border-radius: 16px; background: var(--surface); }
.mois__tete { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; text-transform: capitalize; }
.mois__tete div { display: flex; gap: 4px; }
.mois__tete button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.mois__tete button:disabled { opacity: .25; }
.jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 500; }
.jours b { font-size: 10.5px; font-weight: 700; color: var(--pale); padding-bottom: 6px; }
.jours button { height: 38px; width: 38px; margin: 0 auto; border-radius: 50%; }
.jours button:disabled { color: #3a3a3a; cursor: default; }
.jours button.choisi { background: #fff; color: #000; font-weight: 700; }
.jours span { height: 38px; }
.champs { margin: 16px var(--marge) 0; border-radius: 16px; background: var(--surface); }
.champ { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border-bottom: 1px solid var(--trait); font-size: 15px; }
.champ:last-child { border-bottom: 0; }
.champ label { flex: 0 0 auto; }
.champ input, .champ textarea { flex: 1; min-width: 0; background: none; border: 0; outline: none; text-align: right; font-size: 16px; color: #fff; padding: 14px 0; }
.champ textarea { text-align: left; min-height: 90px; resize: vertical; }
.champ--bloc { display: block; padding: 14px 16px; }
.champ--bloc label { display: block; margin-bottom: 6px; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--pale); }
.champ .valeur { flex: 1; text-align: right; color: var(--doux); }
.joint { margin: 16px var(--marge) 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.joint b { display: block; font-weight: 600; }
.joint small { color: var(--doux); font-size: 12.5px; }
.joint a { margin-left: auto; font-size: 13px; color: var(--doux); }
.reserver__pied { padding: 20px var(--marge) 0; }
.erreur { margin: 14px var(--marge) 0; padding: 12px 14px; border-radius: 12px; background: #2a1414; color: #ffb4b4; font-size: 14px; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.merci { padding: calc(env(safe-area-inset-top) + 60px) var(--marge) 0; }
.merci h1 { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.merci p { color: var(--doux); font-size: 15px; line-height: 1.55; margin-bottom: 24px; }

/* --------------------------------------------------------------- YOHAN */
.entete-artiste { position: relative; height: min(100vw, 520px); }
.entete-artiste img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.1); }
.entete-artiste::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 3%, transparent 50%), linear-gradient(to bottom, rgba(0,0,0,.5), transparent 25%); }
.entete-artiste h1 { position: absolute; left: var(--marge); bottom: 14px; z-index: 1; font-size: clamp(50px, 14vw, 84px); line-height: .95; }
.bio { padding: 16px var(--marge) 0; font-size: 15.5px; line-height: 1.6; color: #d0d0d0; max-width: 680px; }
.liens { display: flex; gap: 10px; padding: 18px var(--marge) 0; }
.liens a { flex: 1; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 13.5px; font-weight: 700; }

/* --------------------------------------------------------------- EN COURS DE LECTURE */
.plein { touch-action: none; overscroll-behavior: contain; position: fixed; inset: 0; z-index: 50; background: #0a0a0a; overflow: hidden; transform: translateY(100%); transition: transform .42s cubic-bezier(.32,.72,0,1); will-change: transform; contain: layout paint; backface-visibility: hidden; }
.plein.ouvert { transform: none; }
.plein__fond { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: grayscale(1) blur(40px) brightness(.38); transform: scale(1.2) translateZ(0); will-change: transform; }
.plein__corps { position: relative; height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 8px) 28px calc(env(safe-area-inset-bottom) + 22px); }
.plein__fermer { align-self: center; width: 80px; height: 30px; display: grid; place-items: center; }
.plein__fermer span { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.plein__moment { margin-top: 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); min-height: 14px; }
.plein__pochette { margin: 22px auto 0; width: min(100%, 44vh); aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); background: #1a1a1a; }
.plein__pochette img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.1); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.plein.pause .plein__pochette img { transform: scale(.9); }
.plein__titre { margin-top: auto; padding-top: 26px; }
.plein__titre h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.plein__titre .he { font-size: 20px; color: rgba(255,255,255,.75); margin-top: 2px; text-align: left; min-height: 4px; }
.plein__artiste { font-size: 15px; color: rgba(255,255,255,.6); margin-top: 4px; }
.plein__rail { margin-top: 22px; }
.plein__temps { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.plein__boutons { margin: 14px 0 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; }
.plein__boutons button { width: 64px; height: 64px; display: grid; place-items: center; }

/* Le rail de lecture : une barre fine, qu'on peut faire glisser. */
.rail { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; --p: 0%; }
.rail::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.92) var(--p), rgba(255,255,255,.2) var(--p)); }
.rail::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.92) var(--p), rgba(255,255,255,.2) var(--p)); }
.rail::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; margin-top: -3px; border-radius: 50%; background: #fff; transition: width .15s, height .15s, margin .15s; }
.rail:active::-webkit-slider-thumb, .rail:hover::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -4px; }
.rail::-moz-range-thumb { width: 0; height: 0; border: 0; background: #fff; }

/* --------------------------------------------------------------- feuille (choisir un moment) */
.feuille { position: fixed; inset: 0; z-index: 60; }
.feuille__voile { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.feuille__corps {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto;
  background: #161616; border-radius: 20px 20px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom) + 16px);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.feuille.ouverte .feuille__voile { opacity: 1; }
.feuille.ouverte .feuille__corps { transform: none; }
.feuille__poignee { display: block; width: 38px; height: 5px; border-radius: 3px; background: #3a3a3a; margin: 0 auto 16px; }
.feuille h3 { font-size: 19px; font-weight: 700; }
.feuille__sous { font-size: 13px; color: var(--doux); margin: 4px 0 14px; }
.feuille__liste { display: grid; gap: 6px; }
.feuille__liste button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 12px; background: #202020; text-align: left; font-size: 15px; font-weight: 600; }
.feuille__liste button small { display: block; font-size: 12px; font-weight: 500; color: var(--doux); margin-top: 2px; }
.feuille__liste button.conseil { background: #262626; }
.feuille__liste button em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #000; background: #fff; padding: 4px 8px; border-radius: 99px; flex: 0 0 auto; }
.feuille__liste button.deja em { background: #333; color: #fff; }
.feuille__annuler { width: 100%; height: 50px; margin-top: 12px; border-radius: 12px; font-weight: 700; color: var(--doux); }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--onglets) + var(--mini) + 22px); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #000; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 99px;
  transition: opacity .3s, transform .3s; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.vu { opacity: 1; transform: translate(-50%, 0); }

/* Apparition douce d'une page. */
.vue > * { animation: apparait .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

/* ==================================================================== TABLETTE */
@media (min-width: 700px) {
  :root { --marge: 32px; }
  .artiste { margin: 0 28px; height: 520px; }
  .grille { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
  .rangee .carte { flex-basis: 180px; }
  .lecteur { left: 20px; right: 20px; }
  .onglets { padding-left: 12vw; padding-right: 12vw; }
  .mois, .champs, .joint, .reserver__pied, .maison, .merci { max-width: 640px; }
  .maison { margin: 0 auto; }
  .plein__pochette { width: min(100%, 50vh); }
}

/* ==================================================================== ORDINATEUR */
@media (min-width: 1200px) {
  :root { --marge: 40px; --barre: 88px; }
  body { overflow: hidden; }
  .coque { display: grid; grid-template-columns: 250px 1fr 340px; height: calc(100vh - var(--barre)); min-height: 0; }
  body.sans-lecteur .coque { height: 100vh; }
  .onglets { display: none; }
  .cote { display: flex; flex-direction: column; gap: 4px; padding: 28px 18px; background: #0a0a0a; border-right: 1px solid #1a1a1a; overflow: auto; }
  .cote__logo img { height: 36px; margin: 0 8px 26px; }
  .cote__nav { display: grid; gap: 4px; }
  .cote__nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--doux); }
  .cote__nav a:hover { color: #fff; }
  .cote__nav a.actif { background: #1c1c1c; color: #fff; }
  .cote__nav svg { width: 20px; height: 20px; }
  .cote__vip { margin-top: auto; padding: 12px; font-size: 14px; color: var(--doux); }
  .cote__vip:hover { color: #fff; }
  .vue { overflow: auto; height: 100%; min-height: 0; padding-bottom: 40px !important; }
  .panneau { display: block; overflow: auto; background: #0a0a0a; border-left: 1px solid #1a1a1a; }
  .page-haut { display: none; }
  .artiste { margin: 0; border-radius: 0; height: 440px; }
  .artiste img { object-position: 50% 42%; }
  .artiste::after { background: linear-gradient(to top, #000 0%, rgba(0,0,0,.35) 45%, transparent 75%), linear-gradient(to right, rgba(0,0,0,.55), transparent 60%); }
  .artiste__texte { left: 40px; bottom: 34px; }
  .artiste h1 { font-size: 88px; }
  .rangee { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
  .grille { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .grille--titres { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
  .titre { grid-template-columns: 48px 1fr auto; }
  .titre:hover { background: #0e0e0e; }
  /* La page Ma houppa n'a pas lieu d'être en grand : elle est déjà à droite. */
  .vue .maison--page { max-width: 560px; }
  .lecteur {
    left: 0; right: 0; bottom: 0; height: var(--barre); border-radius: 0; padding: 0 22px;
    background: #111; border-top: 1px solid #1d1d1d; box-shadow: none; backdrop-filter: none;
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px;
  }
  .lecteur__pochette { width: 56px; height: 56px; }
  .lecteur__milieu { display: grid; gap: 6px; justify-items: center; }
  .lecteur__boutons { gap: 24px; }
  .lecteur .bt-prec { display: grid; }
  .lecteur__rail { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 11px; color: var(--pale); font-variant-numeric: tabular-nums; }
  .lecteur__droite { display: flex; justify-content: flex-end; }
  .lecteur__barre { display: none; }
  .toast { bottom: calc(var(--barre) + 20px); }
  .feuille__corps { left: 50%; right: auto; bottom: 50%; width: 440px; border-radius: 20px; transform: translate(-50%, 60%); opacity: 0; transition: transform .3s, opacity .3s; }
  .feuille.ouverte .feuille__corps { transform: translate(-50%, 50%); opacity: 1; }
  .feuille__poignee { display: none; }
}

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

/* --------------------------------------------------------------- VIDÉO (25/09) */
.plein__video { display: none; width: 100%; height: 100%; object-fit: cover; background: #000; }
.plein.video .plein__pochette { aspect-ratio: 9 / 16; width: auto; height: min(58vh, 640px); max-width: 100%; }
.plein.video .plein__pochette img { display: none; }
.plein.video .plein__video { display: block; }
.plein.video .plein__titre { padding-top: 16px; }
.plein__bascule { align-self: center; display: flex; gap: 4px; padding: 3px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.12); }
.plein__bascule button { height: 30px; padding: 0 16px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75); }
.plein__bascule button.actif { background: #fff; color: #000; }
.plein.video .plein__pochette { margin-top: 12px; }
.pastille-video { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); padding: 4px 8px; border-radius: 99px; }
.carte__img span.pastille-video { right: auto; left: 10px; bottom: 10px; font-size: 10.5px; line-height: 1; }

/* Lecteur plein écran ouvert : la page derrière ne bouge plus (Davy, 25/09 :
   le glissé du doigt faisait défiler l'accueil). */
html.plein-ouvert, html.plein-ouvert body { overflow: hidden; overscroll-behavior: none; }
.plein .rail { touch-action: pan-x; }

/* Le bouton « Ma houppa » en haut de l'accueil : pour les couples clients seulement. */
.pastille--couple { display: none; }
body.couple .pastille--couple { display: inline-block; }
