/* Panier de musique : icône de l'en-tête, volet, boutons d'achat des fiches, page de paiement (checkout) */

/* ---------- Icône dans l'en-tête ---------- */
.tp-cart-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 10px; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.tp-cart-btn svg { width: 24px; height: 24px; }
.tp-cart-btn[hidden] { display: none; }
.tp-cart-btn:hover { opacity: .65; }
.tp-cart-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tp-cart-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; color: #0d0e0d; background: #fff; border-radius: 9px; }
.tp-cart-n:empty { display: none; }
@media (max-width: 750px) { .tp-cart-btn { margin-left: auto; margin-right: -4px; } }

/* ---------- Volet ---------- */
.tp-cart { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0); transition: background-color .22s; }
.tp-cart.is-open { background: rgba(0,0,0,.6); }
.tp-cart-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); color: #fff; background: #151615; border-left: 1px solid #4c4d4c; transform: translateX(100%); transition: transform .22s ease; outline: none; font-family: Montserrat, sans-serif; }
.tp-cart.is-open .tp-cart-panel { transform: none; }
.tp-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #333433; }
.tp-cart .tp-cart-head h2 { margin: 0; padding: 0; font-size: 18px; line-height: 1.2; font-weight: 700; }
.tp-cart-close { width: 36px; height: 36px; font: inherit; font-size: 16px; color: #fff; background: none; border: 1px solid #4c4d4c; cursor: pointer; }
.tp-cart-close:hover { background: #343634; }
.tp-cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.tp-cart-empty { margin: 40px 0; text-align: center; color: #a7a8a7; line-height: 1.8; }
.tp-cart-empty a { color: #fff; }
.tp-cart-items { list-style: none; margin: 0; padding: 0; }
.tp-cart-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 30px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #2a2b2a; }
.tp-cart-track { min-width: 0; }
.tp-cart-track strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cart-track small { display: block; font-size: 12px; color: #a7a8a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cart-fmt { padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; border: 1px solid #4c4d4c; border-radius: 3px; color: #d6d6d6; }
.tp-cart-fmt.tp-fmt-wav { color: #0d0e0d; background: #fff; border-color: #fff; }
.tp-cart-price { font-size: 14px; font-weight: 700; white-space: nowrap; text-align: right; }
.tp-cart-price s { display: block; font-size: 11px; font-weight: 400; color: #7a7b7a; }
.tp-cart-rm { width: 30px; height: 30px; padding: 0; font: inherit; font-size: 12px; color: #a7a8a7; background: none; border: 0; cursor: pointer; }
.tp-cart-rm:hover { color: #fff; }
.tp-cart-foot { padding: 16px 20px 20px; border-top: 1px solid #333433; }
.tp-cart-foot:empty { display: none; }
.tp-cart-hint { margin: 0 0 12px; padding: 10px 12px; font-size: 13px; color: #f2d36b; background: rgba(242,211,107,.08); border: 1px solid rgba(242,211,107,.3); }
.tp-cart-line { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 14px; color: #d6d6d6; }
.tp-cart-total { margin: 10px 0 14px; font-size: 18px; font-weight: 700; color: #fff; }
.tp-cart-checkout { display: block; padding: 15px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; color: #0d0e0d; background: #fff; }
.tp-cart-checkout:hover { background: #d6d6d6; }
.tp-cart-continue { display: block; width: 100%; margin-top: 8px; padding: 12px; font: inherit; font-size: 14px; color: #fff; background: none; border: 1px solid #4c4d4c; cursor: pointer; }
.tp-cart-continue:hover { background: #222322; }
.tp-cart-note { margin: 12px 0 0; font-size: 11px; text-align: center; color: #7a7b7a; }
html.tp-cart-open { overflow: hidden; }
.tp-cart-items li.is-adding { grid-template-columns: minmax(0, 1fr) 20px; opacity: .7; }
.tp-cart-spin { width: 16px; height: 16px; border: 2px solid #4c4d4c; border-top-color: #fff; border-radius: 50%; animation: tp-cart-spin .8s linear infinite; }
@keyframes tp-cart-spin { to { transform: rotate(360deg); } }
.tp-cart-toast { position: fixed; left: 50%; bottom: 90px; z-index: 10001; max-width: calc(100% - 32px); padding: 12px 16px; font-size: 14px; color: #0d0e0d; background: #fff; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.tp-cart-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .tp-cart, .tp-cart-panel, .tp-cart-toast { transition: none; } }

/* ---------- Boutons d'achat (fiche d'une sortie et page de partage) ---------- */
/* Ligne d'un titre en vente : numéro | titre (toute la largeur) | lecture ; les boutons d'achat sur une 2e ligne, sous le titre */
.rel-modal-tracks li.has-buy { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 8px; }
.rel-modal-tracks li.has-buy > .rel-track-num { grid-row: 1; }
.rel-modal-tracks li.has-buy > .rel-track-title { grid-column: 2; grid-row: 1; white-space: normal; }
.rel-modal-tracks li.has-buy > .play-button, .rel-modal-tracks li.has-buy > .rel-track-na { grid-column: 3; grid-row: 1; }
.rel-buy { grid-column: 2 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.rel-buy-btn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; font: inherit; font-size: 12px; line-height: 1; color: #fff; background: #1b1b1b; border: 1px solid #4c4d4c; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.rel-buy-btn span { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #a7a8a7; }
.rel-buy-btn b { font-size: 13px; }
.rel-buy-btn[data-fmt="wav"] { border-color: #8a8b8a; }
.rel-buy-btn:hover { color: #0d0e0d; background: #fff; border-color: #fff; }
.rel-buy-btn:hover span { color: #0d0e0d; }
.rel-buy-btn.is-in { color: #8fd18f; border-color: #3d6b3d; background: rgba(143,209,143,.06); }
.rel-buy-btn.is-owned { color: #d6d6d6; border-style: dashed; background: none; }
.rel-buy-btn.is-up { color: #f2d36b; border-color: #7a6a2e; background: rgba(242,211,107,.06); }
.rel-buy-btn.is-up span { color: #f2d36b; }
.rel-buy-btn.is-in:hover, .rel-buy-btn.is-owned:hover, .rel-buy-btn.is-up:hover { color: #0d0e0d; background: #fff; border-color: #fff; }
.rel-buy-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rel-buybar { margin-top: 18px; padding: 14px 16px; border: 1px solid #4c4d4c; background: #1b1b1b; }
.rel-buybar[hidden] { display: none; }
.rel-buybar p { margin: 0 0 10px; font-size: 13px; color: #d6d6d6; }
.rel-buybar p strong { color: #fff; }
.rel-buybar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-buybar .rel-buy-all { flex: 1 1 140px; padding: 11px 14px; font: inherit; font-size: 14px; font-weight: 700; color: #0d0e0d; background: #fff; border: 1px solid #fff; cursor: pointer; }
.rel-buybar .rel-buy-all[data-fmt="mp3"] { color: #fff; background: none; border-color: #8a8b8a; }
.rel-buybar .rel-buy-all:hover { background: #d6d6d6; color: #0d0e0d; }
.rel-buybar small { display: block; margin-top: 8px; font-size: 11px; color: #a7a8a7; }
.rel-excl-badge { display: inline-block; margin-right: 8px; padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #0d0e0d; background: #f2c94c; vertical-align: 1px; }
.rel-grid .excl-badge { pointer-events: none; position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; background: #f2c94c; color: #0d0e0d; }

/* ---------- Page de paiement ---------- */
.co-main { max-width: 1100px; margin: 0 auto; padding: 120px 16px 80px; color: #fff; }
.co-main h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); }
.co-lead { margin: 0 0 28px; color: #a7a8a7; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-box { padding: 22px; background: #151615; border: 1px solid #333433; }
.co-box + .co-box { margin-top: 18px; }
.co-box h2 { margin: 0 0 14px; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: #a7a8a7; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a7a8a7; }
.co-fields .co-full { grid-column: 1 / -1; }
.co-fields input, .co-fields select { padding: 12px; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: #fff; background: #0d0e0d; border: 1px solid #4c4d4c; border-radius: 0; }
.co-fields input:focus, .co-fields select:focus { outline: none; border-color: #fff; }
.co-fields input[readonly] { color: #a7a8a7; }
@media (max-width: 560px) { .co-fields { grid-template-columns: 1fr; } }
.co-methods { display: grid; gap: 8px; margin-bottom: 14px; }
.co-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #4c4d4c; cursor: pointer; }
.co-method:has(input:checked) { border-color: #fff; background: #1f201f; }
.co-method small { display: block; font-size: 12px; color: #a7a8a7; }
.co-card { margin: 4px 0 14px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; line-height: 1.5; color: #d6d6d6; cursor: pointer; }
.co-check input { margin-top: 3px; flex-shrink: 0; }
.co-check a { color: #fff; }
.co-pay { display: block; width: 100%; margin-top: 16px; padding: 16px; font: inherit; font-size: 16px; font-weight: 700; color: #0d0e0d; background: #fff; border: 0; cursor: pointer; }
.co-pay:hover { background: #d6d6d6; }
.co-pay:disabled { opacity: .5; cursor: default; }
.co-result { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: #ff8a89; }
.co-summary .tp-cart-items li { grid-template-columns: minmax(0, 1fr) auto auto; }
.co-summary .co-edit { margin-top: 12px; padding: 0; font: inherit; font-size: 13px; color: #a7a8a7; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.co-summary .co-edit:hover { color: #fff; }
.co-signin { max-width: 560px; }
.co-signin p { color: #d6d6d6; line-height: 1.6; }
.co-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.co-btn { display: inline-block; padding: 14px 22px; font-weight: 700; text-decoration: none; color: #fff; border: 1px solid #4c4d4c; }
.co-btn.is-primary { color: #0d0e0d; background: #fff; border-color: #fff; }
.co-btn:hover { opacity: .8; }
.co-done { max-width: 640px; }
.co-done ul { margin: 16px 0; padding-left: 18px; color: #d6d6d6; line-height: 1.8; }
.co-test { margin: 0 0 18px; padding: 10px 14px; font-size: 13px; color: #0d0e0d; background: #f2d36b; }
.co-main [hidden] { display: none !important; }
