/* ============================================================
   Éditions des Nioches - fiche d'une partition (17/11/2026)
   ------------------------------------------------------------
   Reprend le prototype de fiche du 17/11/2026 (fichiers/prototypes/
   fiche-partition-2026-11-17) : couverture et identité, caractéristiques,
   extrait d'étude chargé au clic, colonne d'achat collante (barre fixe
   sur téléphone) et fenêtre d'achat en mode Typeform, une question par
   écran (règle du 16/11/2026). Chargée après editions.css, sur les
   fiches seulement. Charte : docs/design/DA-CRM.md du CRM (Petrona,
   Hanken Grotesk, aucune chasse fixe (18/11/2026) ; encre, papier,
   carte, gris opaque, filets ; rouge brique pour les erreurs).
   ============================================================ */
:root {
  --carte: #fffdf8;
  --gris: #55534f;
  --brique: #9a3b26;
  --titre: "Petrona", Georgia, "Times New Roman", serif;
  --barre-achat: 76px;
}
.ed :focus-visible, .achat :focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.ref { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-size: var(--et-petit); color: var(--gris); font-weight: 400; }

/* Mise en page : contenu + colonne d'achat collante */
/* Espace sous le sous-menu identique aux autres pages des Éditions (.page, 18/11/2026). */
.fiche-part { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; padding-block: clamp(56px, 9vw, 100px) 120px; }
.fiche-part > main { min-width: 0; }
.fil { display: block; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* En-tête : couverture et identité */
.tete { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--encre); }
.tete.sans-couverture { grid-template-columns: minmax(0, 1fr); }
.couverture { margin: 0; }
.couverture picture { display: block; }
.couverture img { display: block; width: 100%; height: auto; background: var(--carte); border: 1px solid var(--filet); }
.identite { display: grid; gap: 14px; min-width: 0; }
.ed .identite h1 { font-family: var(--titre); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.06; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
/* Titres longs (25/11/2026) : la taille suit la largeur de la colonne du titre (unités
   de conteneur), retour à la ligne entre les mots seulement, jamais de coupure dans un
   mot ni de débordement (« In Remembrance », « Recueillement pour bouche fermée » à
   375 px). Repli sur la règle ci-dessus sans unités de conteneur. */
.identite { container-type: inline-size; }
.ed .identite h1 { font-size: clamp(1.6rem, 14cqi, 4.2rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.compositeur { font-family: var(--sans); font-weight: 500; font-size: var(--et-h4); line-height: var(--et-interligne-h4); margin: 0; }
.dedicace { font-family: var(--titre); font-style: italic; font-size: 1.15rem; color: var(--gris); margin: 0; }

/* Caractéristiques */
.carac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; }
.carac div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.carac dt { margin: 0; }
.carac dd { margin: 0; font-family: var(--sans); font-size: var(--et-corps); }
.carac .chiffre { font-family: var(--titre); font-variant-numeric: lining-nums tabular-nums; }

/* Présentation */
.presentation { margin-top: 48px; max-width: 38em; font-family: var(--titre); font-size: 1.15rem; line-height: 1.6; }
.presentation p { margin: 0 0 12px; }
/* Sous-titre de l'œuvre (25/11/2026) : en tête de la présentation, distinct de la dédicace. */
.presentation .sous-titre { font-style: italic; color: var(--gris); }
.presentation a { text-decoration: underline; }

/* Sections */
.bloc { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--encre); display: grid; gap: 16px; }
.ed .bloc h2 { font-family: var(--titre); font-weight: 500; font-size: var(--et-h2); line-height: var(--et-interligne-h2); margin: 0; letter-spacing: -0.01em; }
.bloc .texte { color: var(--gris); max-width: 40em; margin: 0; }
.bloc .texte p { margin: 0 0 10px; }

/* Boutons */
.ed .bouton, .achat .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-family: var(--sans); font-size: var(--et-menu); font-weight: 500; text-decoration: none; border: 1px solid var(--encre); border-radius: 2px; cursor: pointer; background: transparent; color: var(--encre); }
.ed .bouton.plein, .achat .bouton.plein { background: var(--encre); color: var(--papier); }
.ed .bouton.plein:hover, .achat .bouton.plein:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed .bouton:not(.plein):hover { background: var(--carte); }
.ed .bouton:disabled, .achat .bouton:disabled { cursor: default; background: transparent; color: var(--gris); border-color: var(--filet); }

/* Lecteur de l'extrait : vide tant que le visiteur ne l'a pas demandé */
.lecteur { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; width: 100%; }
/* Lecteur en grand (18/11/2026) : fenêtre au-dessus de la page, fermable. */
.lecteur-fond[hidden] { display: none; }
.lecteur-fond { position: fixed; inset: 0; z-index: 2147483000; background: rgba(10, 10, 10, .72); display: flex; align-items: stretch; justify-content: center; padding: 24px; }
.lecteur-boite { background: var(--papier); width: 100%; max-width: 980px; display: flex; flex-direction: column; min-height: 0; border-radius: 2px; }
.lecteur-tete { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--filet); }
.lecteur-titre { margin: 0 auto 0 0; font-family: var(--titre); font-size: 1.15rem; font-weight: 500; min-width: 0; }
.lecteur-actions { display: flex; gap: 10px; }
/* Croix « Fermer » (18/11/2026) : 44 px, nom donné par aria-label. */
.lecteur-fermer { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--encre); border-radius: 2px; background: transparent; color: var(--encre); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; }
.lecteur-fond :focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.lecteur-boite .lecteur { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
html.lecteur-ouvert, html.lecteur-ouvert body { overflow: hidden; }
@media (max-width: 600px) {
  .lecteur-fond { padding: 0; }
  /* Téléphone : titre et croix en haut, les deux boutons côte à côte dessous. */
  .lecteur-tete { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "titre fermer" "actions actions"; gap: 10px; padding: 10px 12px; }
  .lecteur-titre { grid-area: titre; align-self: center; font-size: 1.05rem; }
  .lecteur-fermer { grid-area: fermer; }
  .lecteur-actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lecteur-actions .bouton { padding: 0 10px; font-size: .85rem; text-align: center; }
  .lecteur-actions .bouton[hidden] + .bouton { grid-column: 1 / -1; }
  .lecteur-boite .lecteur { padding: 8px; }
}
.lecteur-etat { color: var(--gris); margin: 0; }
.lecteur-page { width: 100%; background: #fff; border: 1px solid var(--filet); }
.lecteur-page canvas { display: block; width: 100%; height: auto; }

/* Écoute au piano (25/11/2026) : lecteur natif au-dessus de la partition d'étude,
   puis dans le lecteur en grand quand il est ouvert. */
.ecoute { display: grid; gap: 8px; padding: 16px 18px; background: var(--carte); border: 1px solid var(--filet); border-radius: 2px; max-width: 40em; }
.ecoute-titre { margin: 0; }
.ecoute audio, .lecteur-ecoute audio { display: block; width: 100%; height: 44px; }
.ecoute-texte { margin: 0; font-size: var(--et-petit); line-height: var(--et-interligne-petit); color: var(--gris); }
.lecteur-ecoute[hidden] { display: none; }
.lecteur-ecoute { padding: 10px 16px; border-bottom: 1px solid var(--filet); background: var(--carte); }
@media (max-width: 600px) { .lecteur-ecoute { padding: 8px 12px; } }

/* Vidéo de l'œuvre (25/11/2026) : vignette locale (la couverture) sur fond d'encre,
   l'iframe youtube-nocookie.com n'est créée qu'au clic. */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 720px; background: var(--encre); border-radius: 2px; overflow: hidden; }
.video-vignette { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--encre); color: var(--papier); cursor: pointer; font: inherit; }
.video-vignette picture { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; padding: 6% 0; }
.video-vignette img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; background: var(--carte); opacity: .9; }
.video-lancer { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 16px; background: var(--encre); color: var(--papier); border: 1px solid var(--papier); border-radius: 2px; font-family: var(--sans); font-size: var(--et-menu); font-weight: 500; white-space: nowrap; }
.video-icone { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--papier); }
.video-vignette:hover .video-lancer { text-decoration: underline; text-underline-offset: 4px; }
.video-vignette:focus-visible { outline: 2px solid var(--papier); outline-offset: -6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: var(--et-petit); line-height: var(--et-interligne-petit); }

/* Colonne d'achat : collante sur ordinateur */
.achat-col { position: sticky; top: calc(var(--et-menu-hauteur) + 32px); display: grid; gap: 14px; background: var(--carte); border: 1px solid var(--filet); border-radius: 2px; padding: 28px 24px; margin-top: 28px; }
.achat-col .prix { font-family: var(--titre); font-weight: 400; font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums; margin: 0; }
.achat-col .bouton { width: 100%; }
.achat-col .note { font-size: var(--et-petit); line-height: var(--et-interligne-petit); color: var(--gris); margin: 0; }
/* « Pourquoi une licence ? » (18/11/2026) : charte des Nioches, sous le prix et le bouton ;
   dans le fil de la fiche sur téléphone, où la colonne devient une barre. */
.pourquoi[hidden], .pourquoi-court[hidden] { display: none; }
.pourquoi { background: var(--papier); border: 1px solid var(--filet); border-radius: 2px; padding: 16px 18px; font-size: var(--et-petit); line-height: var(--et-interligne-petit); color: var(--encre); }
.pourquoi p { margin: 0; }
.pourquoi p + p { margin-top: 8px; }
.pourquoi-titre { font-family: var(--titre); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.pourquoi-fil { display: none; margin-top: 48px; max-width: 38em; font-size: var(--et-corps); line-height: var(--et-interligne-corps, 1.6); background: var(--carte); }
.pourquoi-court { font-size: var(--et-petit); line-height: var(--et-interligne-petit); color: var(--gris); margin: 0 0 16px; max-width: 40em; }
.achat-col ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--filet); display: grid; gap: 6px; font-size: var(--et-petit); color: var(--gris); }
.achat-titre-court { display: none; }
.achat-retour { max-width: 1120px; margin: 16px auto; padding: 14px 16px; border: 1px solid var(--encre); background: var(--carte); }

/* Téléphone : barre fixe en bas, contenu jamais masqué */
@media (max-width: 900px) {
  .fiche-part { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: clamp(56px, 9vw, 100px) 64px; }
  body { padding-bottom: var(--barre-achat-reelle, calc(var(--barre-achat) + env(safe-area-inset-bottom, 0px))); }
  .achat-col {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; top: auto; margin: 0;
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
    min-height: var(--barre-achat); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0; border-color: var(--encre); border-radius: 0; background: var(--carte);
  }
  .achat-col > .label, .achat-col .note, .achat-col ul, .achat-col .pourquoi { display: none; }
  .pourquoi-fil:not([hidden]) { display: block; }
  .achat-col .achat-titre-court { display: block; grid-column: 1; grid-row: 1; font-size: var(--et-petit); color: var(--gris); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .achat-col .prix { grid-column: 1; grid-row: 2; font-size: 1.6rem; }
  .achat-col .bouton { grid-column: 2; grid-row: 1 / span 2; width: auto; min-width: 9.5rem; }
  .tete { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 28px; }
  .carac { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .carac div { grid-template-columns: 8em minmax(0, 1fr); }
  .presentation { margin-top: 32px; }
  .bloc { margin-top: 48px; }
  .actions .bouton { flex: 1 1 100%; }
}

/* ============================================================
   Fenêtre d'achat, mode Typeform : une question par écran
   ============================================================ */
.achat { position: fixed; inset: 0; z-index: 2147483000; background: var(--papier); color: var(--encre); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow-y: auto; padding: 0; }
.achat-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--filet); min-height: var(--et-menu-hauteur); }
.achat-tete .quoi { display: grid; gap: 0; min-width: 0; }
.achat-tete .quoi b { font-family: var(--titre); font-weight: 500; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achat-tete .quoi span { font-size: var(--et-petit); color: var(--gris); font-weight: 500; }
.achat-tete .quoi .montant { font-family: var(--titre); font-weight: 400; font-size: var(--et-corps); color: var(--encre); }
.achat-fermer { font: inherit; font-size: var(--et-menu); font-weight: 500; background: none; border: 1px solid var(--filet); border-radius: 2px; color: var(--encre); min-height: 44px; padding: 0 16px; cursor: pointer; }
.achat-progres { height: 3px; background: var(--filet); }
.achat-progres i { display: block; height: 100%; width: 0; background: var(--encre); transition: width .25s ease; }

.achat-scene { display: grid; align-content: center; justify-items: start; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px 64px; }
.question { display: grid; gap: 20px; width: 100%; margin: 0; }
.question .num { font-size: var(--et-petit); color: var(--gris); font-weight: 500; margin: 0; }
.question h2, .question legend { font-family: var(--titre); font-weight: 500; font-size: var(--et-h2); line-height: var(--et-interligne-h2); letter-spacing: -0.01em; margin: 0; padding: 0; }
.question .aide { color: var(--gris); margin: 0; }
.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.question fieldset legend { float: left; width: 100%; margin-bottom: 20px; }
.question fieldset legend + .champs { clear: both; }

.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: var(--et-petit); color: var(--gris); font-weight: 500; }
.champ label .titre-q { display: block; font-family: var(--titre); font-weight: 500; font-size: var(--et-h2); line-height: var(--et-interligne-h2); letter-spacing: -0.01em; color: var(--encre); margin-bottom: 14px; }
.champ input { font-family: var(--sans); font-size: var(--et-h4); color: var(--encre); background: transparent; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0; padding: 8px 0; min-height: 52px; width: 100%; }
.champ input:focus-visible { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
.champ input[aria-invalid="true"] { border-bottom-color: var(--brique); }

.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px; background: var(--carte); border: 1px solid var(--filet); border-radius: 2px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--encre); }
.consent span { font-size: var(--et-corps); }
.consent small { display: block; margin-top: 4px; font-size: var(--et-petit); color: var(--gris); }

.navig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.navig .indice { font-size: var(--et-petit); color: var(--gris); }
.navig .indice kbd { font-family: var(--sans); font-weight: 600; }
.retour { font: inherit; font-size: var(--et-menu); font-weight: 500; background: none; border: 0; color: var(--encre); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 0 4px; cursor: pointer; }

.recap { width: 100%; border-collapse: collapse; }
.recap th, .recap td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--filet); font-weight: 400; vertical-align: baseline; }
.recap th { font-size: var(--et-petit); color: var(--gris); font-weight: 500; width: 8em; }
.recap td.prix { font-family: var(--titre); font-size: var(--et-h4); text-align: right; }
.achat-test { background: var(--carte); border: 1px solid var(--encre); padding: 8px 12px; font-size: var(--et-petit); margin: 0; }
.achat-ok { font-family: var(--titre); font-size: 1.15rem; margin: 0; }
.achat-erreur { color: var(--brique); font-weight: 500; margin: 0; min-height: 1.5em; }

@media (max-width: 600px) {
  .achat-tete { padding: 8px 16px; }
  .achat-scene { align-content: start; padding: 32px 16px 48px; }
  .champs { grid-template-columns: minmax(0, 1fr); }
  .navig .indice { display: none; }
  .navig .bouton.plein { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .achat-progres i { transition: none; } }

/* ============================================================
   Squelettes de la fiche (25/11/2026) : barres et pulsation dans editions.css,
   formes propres à la fiche ici.
   ============================================================ */
.achat-en-attente #part-prix, .achat-en-attente #part-acheter { display: none; }
.fantome-achat { display: grid; gap: 14px; }
.fantome-achat .prix-fantome { font-size: 2.6rem; line-height: 1; margin: 0; }
.bouton-fantome { display: block; min-height: 48px; background: #d9d6ce; border-radius: 2px; }
.pourquoi-fantome { display: grid; gap: 0; background: var(--papier); }
.pourquoi-fantome .nb-ligne:nth-child(2) { margin-bottom: 0.6em; }
.fantome-pourquoi-fil { display: none; margin-top: 48px; max-width: 38em; }
/* Page de l'étude au format A4 pendant le chargement du PDF. */
.page-fantome { aspect-ratio: 210 / 297; padding: 7% 8%; display: flex; flex-direction: column; gap: 4%; box-sizing: border-box; }
.page-fantome-tete { text-align: center; }
.page-fantome-systeme { display: grid; flex: 1; align-content: space-evenly; border-left: 3px solid #d9d6ce; padding-left: 4%; }
.page-fantome-systeme span { display: block; height: 1px; background: #d9d6ce; box-shadow: 0 4px 0 #d9d6ce, 0 8px 0 #d9d6ce, 0 12px 0 #d9d6ce, 0 16px 0 #d9d6ce; margin-bottom: 16px; }
/* Écoute : barre du lecteur posée sur le lecteur natif, du clic jusqu'à canplay. */
.ecoute, .lecteur-ecoute { position: relative; }
.fantome-ecoute { position: absolute; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--carte); border-radius: 2px; box-sizing: border-box; }
.ecoute-fantome-bouton { width: 16px; height: 16px; border-radius: 50%; background: #d9d6ce; flex: none; }
.ecoute-fantome-piste { flex: 1; height: 6px; border-radius: 3px; }
@media (max-width: 900px) {
  .fantome-pourquoi-fil { display: block; }
  .achat-col .fantome-achat { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 9.5rem; align-items: center; gap: 4px 16px; }
  .achat-col .fantome-achat .prix-fantome { font-size: 1.6rem; }
  .achat-col .fantome-achat .pourquoi-fantome { display: none; }
}
/* Écoute : le fond reste opaque, seuls la pastille et la piste pulsent (le lecteur
   natif ne transparaît pas sous le squelette). */
.nb-fantome.fantome-ecoute { animation: none; }
.fantome-ecoute > span:not(.nb-sr) { animation: nb-pulsation 1.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fantome-ecoute > span { animation: none !important; } }

/* ============================================================
   Fiche, 26/11/2026 : mentions d'achat visibles sur téléphone, rien sous la barre
   collante, niveau et son « ? » dans la ligne Effectif.
   ============================================================ */
.achat-mentions { display: none; }
.carac .filtre-aide { margin: -12px 0 -12px 2px; vertical-align: middle; }
.fiche-explication { margin: 12px 0 0; }
@media (max-width: 900px) {
  /* Le clavier et les ancres ne laissent rien sous la barre d'achat collante. */
  html { scroll-padding-bottom: calc(var(--barre-achat-reelle, calc(var(--barre-achat) + env(safe-area-inset-bottom, 0px))) + 16px); }
  .achat-mentions { display: grid; gap: 10px; margin-top: 24px; max-width: 38em; font-size: var(--et-petit); line-height: var(--et-interligne-petit); color: var(--gris); }
  .achat-mentions .note { margin: 0; }
  .achat-mentions ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--filet); display: grid; gap: 6px; }
  .achat-mentions a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
  .achat-mentions li { min-height: 0; }
}

/* ============================================================
   Lecteur maison de l'écoute (26/11/2026) : bandeau d'encre, une ligne (bouton,
   titre et sous-titre, barre de 150 px, temps) ; sur téléphone, barre et temps sur
   une seconde ligne. Sans JavaScript, la carte claire et le lecteur natif restent.
   ============================================================ */
.ecoute-maison { padding: 0; border: 0; background: none; max-width: 40em; }
.ecoute-maison .ecoute-texte { display: none; }
.ecoute-lecteur[hidden] { display: none; }
.ecoute-lecteur { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 22px 28px; background: #0a0a0a; border-radius: 2px; color: #f6f4ee; }
.ecoute-bouton { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: #f6f4ee; color: #0a0a0a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 160ms ease; }
.ecoute-bouton:active { transform: scale(0.96); }
.ecoute-bouton:focus-visible, .ecoute-barre:focus-visible { outline: 2px solid #f6f4ee; outline-offset: 3px; }
.ecoute-icone { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #0a0a0a; }
.en-lecture .ecoute-icone { width: 12px; height: 14px; margin-left: 0; border: 0; background: linear-gradient(90deg, #0a0a0a 0 4px, transparent 4px 8px, #0a0a0a 8px 12px); }
.ecoute-nom { flex: none; max-width: 40%; font-family: "Petrona", Georgia, serif; font-size: 17px; line-height: 1.2; color: #f6f4ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecoute-barre { position: relative; flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; border-radius: 2px; }
.ecoute-piste { position: relative; display: block; width: 100%; height: 4px; border-radius: 2px; background: #45443f; overflow: hidden; }
.ecoute-lu { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #f6f4ee; border-radius: 2px; transition: width 120ms linear; }
.ecoute-tete { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #f6f4ee; box-shadow: 0 0 0 3px #0a0a0a; transform: translate(-50%, -50%); transition: left 120ms linear; }
.ecoute-temps { flex: none; font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 13px; font-variant-numeric: tabular-nums; color: #c9c5bb; white-space: nowrap; }
.lecteur-ecoute .ecoute-lecteur { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) {
  /* Seconde ligne alignée sur le texte : retrait de 60 px (44 px de bouton + 16 px). */
  .ecoute-lecteur { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "bouton nom nom" ". barre temps"; gap: 14px 16px; padding: 22px 20px; }
  .ecoute-bouton { grid-area: bouton; }
  .ecoute-nom { grid-area: nom; max-width: none; }
  .ecoute-barre { grid-area: barre; width: 100%; }
  .ecoute-temps { grid-area: temps; }
}
@media (prefers-reduced-motion: reduce) {
  .ecoute-lu, .ecoute-tete, .ecoute-bouton { transition: none; }
  .ecoute-bouton:active { transform: none; }
}

/* Visionneuse (26/11/2026) : libellés courts sur une ligne, boutons et croix de même
   hauteur (44 px) et alignés, titre sur une ligne tronqué par des points de suspension. */
.lecteur-titre { flex: 1 1 auto; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur-actions { flex: none; align-items: center; }
.ed .lecteur-tete .bouton { min-height: 44px; height: 44px; white-space: nowrap; box-sizing: border-box; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lecteur-tete { align-items: center; }
@media (max-width: 600px) {
  .lecteur-titre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lecteur-actions .bouton { white-space: nowrap; }
}

/* Miniature cliquable (26/11/2026) : curseur, filet qui se renforce et léger
   assombrissement au survol, contour au focus clavier. */
.couverture-lien { display: block; cursor: pointer; color: inherit; }
.couverture-lien img { transition: border-color 160ms ease, filter 160ms ease; }
.couverture-lien:hover img { border-color: #0a0a0a; filter: brightness(.96); }
.couverture-lien:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.couverture-lien:focus-visible img { border-color: #0a0a0a; }
@media (prefers-reduced-motion: reduce) { .couverture-lien img { transition: none; } }
