/* HUSHTOON v4 — cadeau, préférences, commentaires, compte, classements, légal */
.muted { color: var(--muted); }
.ok { color: #6fdca5; }
.warn { color: var(--accent-2); }
.danger { color: #ff7a8a !important; }

/* cadeau */
.gift-btn .pip { background: var(--accent-2); color: #1a1205; }
.passes-box small { color: var(--muted); font-size: 12px; }
.gift .modal { padding: 30px 26px 24px; text-align: center; max-width: 360px; }
.gift-art { font-size: 64px; line-height: 1; margin-bottom: 10px; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.gift h2 { font-family: var(--font-display); font-size: 24px; }
.gift p { color: #d6d0e0; margin: 8px 0 18px; }
.gift p b { color: var(--accent-2); }
.gift .gift-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.gift .btn[hidden] { display: none; }

/* préférences */
.prefs .modal { padding: 28px 24px 18px; max-width: 440px; text-align: center; }
.prefs h2 { font-family: var(--font-display); font-size: 23px; }
.prefs-sub { color: var(--muted); margin: 6px 0 16px; }
.prefs-chips { justify-content: center; margin: 0 0 18px !important; flex-wrap: wrap !important; overflow: visible !important; }
.prefs .later { display: block; margin: 12px auto 0; color: var(--muted); font-weight: 600; }
.btn:disabled { opacity: .45; cursor: default; }

/* âge strict */
.blocked .modal { padding: 32px 26px; text-align: center; max-width: 420px; }
.blocked h2 { font-family: var(--font-display); font-size: 22px; }
.blocked p { color: var(--muted); margin: 10px 0 20px; }
.blocked .btn[hidden] { display: none; }

/* confirmation : bouton pass */
#cfPass { margin-top: 14px; }

/* lecteur : chargement + commentaires */
.rd-loading { aspect-ratio: 720 / 1100; display: grid; place-items: center; background: var(--bg-2); }
.rd-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rd-comments { margin-top: 26px; }
.rd-comments h4 { font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.rd-comments h4 span { font-size: 12px; background: var(--bg-3); color: var(--muted); border-radius: 10px; padding: 2px 8px; }
.cm-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.cm-form textarea { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 44px; }
.cm-form textarea:focus { outline: none; border-color: var(--accent); }
.cm-list { list-style: none; display: grid; gap: 10px; }
.cm-list li { position: relative; background: var(--bg-2); border-radius: 12px; padding: 10px 14px; }
.cm-list li b { font-size: 13px; }
.cm-list li small { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
.cm-list li p { margin-top: 4px; font-size: 14px; color: #d6d0e0; white-space: pre-wrap; word-break: break-word; }
.cm-list li.empty { background: none; color: var(--muted); text-align: center; }
.cm-del { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.cm-del:hover { background: var(--bg-3); color: var(--text); }
.cm-del svg { width: 12px; height: 12px; }

/* page compte */
.acc { max-width: 720px; }
.acc-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 16px; }
.acc-card h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.acc-card .me { margin: 0 0 12px; }
.acc-card .me small { display: block; font-size: 12px; margin-top: 2px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acc-stats div { background: var(--bg); border-radius: 12px; padding: 14px 10px; text-align: center; }
.acc-stats b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--accent-2); }
.acc-stats span { font-size: 12px; color: var(--muted); }
.acc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.acc-card p { margin-bottom: 10px; }
.switch-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 14px; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.acc-card .chips { margin: 0; flex-wrap: wrap; }
.ledger { list-style: none; max-height: 360px; overflow-y: auto; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ledger li span b { display: block; font-weight: 600; }
.ledger li small { color: var(--muted); font-size: 11.5px; }
.ledger em { font-style: normal; font-weight: 700; white-space: nowrap; text-align: right; }
.ledger em.pos { color: #6fdca5; } .ledger em.neg { color: #ff8cc0; }
.ledger .empty { color: var(--muted); justify-content: center; }
.acc-danger { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-danger .link { margin: 0; }

/* classements */
.rank-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.rank-list a { display: grid; grid-template-columns: 42px 64px 1fr 16px; gap: 14px; align-items: center; padding: 10px 12px 10px 6px; border-radius: 14px; background: var(--bg-2); transition: background .15s; }
.rank-list a:hover { background: var(--bg-3); }
.rk-n { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-align: center; color: var(--muted); }
.rk-n.top { color: var(--accent); }
.rk-cover { aspect-ratio: 3 / 4.2; border-radius: 8px; }
.rk-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-txt small { color: var(--muted); font-size: 12px; }
.rk-txt .tag { padding: 1px 6px; font-size: 10.5px; }

/* légal */
.legal { max-width: 780px; }
.legal article { margin-top: 10px; line-height: 1.65; color: #d6d0e0; }
.legal article h2 { font-family: var(--font-display); font-size: 18px; color: var(--text); margin: 24px 0 8px; }
.legal article ul { padding-left: 20px; margin: 8px 0; }
.legal article li { margin: 4px 0; }
.legal article p { margin: 8px 0; }
.legal-draft { background: rgba(240,180,92,.1); color: var(--accent-2); border: 1px solid rgba(240,180,92,.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 8px; }

/* pages SEO (avant que le JS remplace le contenu) */
.seo-static { padding: 30px 16px; } .seo-static h1 { font-family: var(--font-display); font-size: 30px; }
.seo-static ol { columns: 3; margin-top: 16px; padding-left: 20px; color: var(--muted); }

@media (max-width: 680px) {
  .acc-stats b { font-size: 22px; }
  .rank-list a { grid-template-columns: 34px 54px 1fr 14px; gap: 10px; }
  .rk-n { font-size: 21px; }
  .seo-static ol { columns: 1; }
}

/* conditions VIP (page abonnement) */
.vip-terms { max-width: 860px; margin: 34px auto 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.vip-terms h3 { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.vip-terms ul { padding-left: 18px; display: grid; gap: 6px; }
.vip-terms a { color: var(--text); text-decoration: underline; }

/* liste des pièces (page abonnement) */
.coin-list { max-width: 860px; margin: 30px auto 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0; }
.cl-head { font-family: var(--font-display); font-size: 18px; padding: 14px 20px; background: var(--bg-3); }
.cl-row { display: grid; grid-template-columns: 150px 44px 1fr 150px; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.cl-amt b { font-family: var(--font-display); font-size: 24px; color: var(--accent-2); margin-right: 4px; }
.cl-amt { font-size: 13px; color: var(--muted); }
.cl-hot span { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; border-radius: 999px; padding: 3px 7px; }
.cl-detail { color: var(--muted); font-size: 13.5px; }
.cl-detail em { font-style: normal; font-weight: 800; color: var(--accent); }
.cl-price { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 10px; padding: 11px 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.cl-price:hover { border-color: var(--accent); background: var(--bg-3); }
.cl-note { color: var(--muted); font-size: 12.5px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .cl-row { grid-template-columns: 1fr auto; grid-template-areas: "amt price" "detail price"; row-gap: 2px; padding: 12px 16px; }
  .cl-amt { grid-area: amt; } .cl-detail { grid-area: detail; font-size: 12.5px; } .cl-price { grid-area: price; min-width: 104px; }
  .cl-hot { display: none; }
}

/* moyens de paiement : Carte / PayPal */
.pm-tiles { grid-template-columns: 1fr 1fr; }
.pm-tiles button { height: auto; min-height: 64px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; color: var(--text); background: var(--bg); }
.pm-tiles button.on { border-color: var(--accent); background: rgba(194,54,122,.08); color: var(--text); }
.pm-tiles button .pp-word { margin-left: auto; font-size: 15px; }
.pm-tiles button:not(.on) .pp-word { opacity: .55; }
.pm-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.pm-tiles button.on .pm-radio { border-color: var(--accent); }
.pm-tiles button.on .pm-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pm-name { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14.5px; }

/* logos des cartes */
.cards { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cb { font-style: normal; display: inline-grid; place-items: center; height: 18px; min-width: 28px; padding: 0 4px; border-radius: 3px; background: #fff; font: 800 9px/1 Arial, sans-serif; letter-spacing: .02em; }
.cb.visa { color: #1a1f71; font-style: italic; font-size: 10px; }
.cb.mc { position: relative; width: 28px; }
.cb.mc b { position: absolute; top: 4px; width: 11px; height: 11px; border-radius: 50%; }
.cb.mc b:first-child { left: 5px; background: #eb001b; } .cb.mc b:last-child { left: 12px; background: #f79e1b; mix-blend-mode: multiply; }
.cb.amex { background: #2e77bc; color: #fff; }
.cb.jcb { color: #0b4ea2; }
.cb.disc { color: #231f20; font-size: 7.5px; display: inline-flex; align-items: center; }
.cb.disc b { width: 6px; height: 6px; border-radius: 50%; background: #f48120; margin: 0 .5px; }

/* encart « Paiement par carte » */
.card-panel { background: #fff; color: #1b1b22; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.cp-head { display: flex; align-items: center; gap: 10px; }
.cp-head .pp-word { font-size: 17px; }
.cp-head span { font-weight: 800; font-size: 15px; }
.card-panel .cb { border: 1px solid #e3e3ea; }
.cp-total { font-weight: 700; font-size: 15px; }
.cp-total b { color: var(--accent); font-size: 17px; }
.cp-note { font-size: 12px; color: #5d5d6b; margin: 0; }
.sub-pm { max-width: 640px; margin: 22px auto 0; }
.sub-pm .secure { margin-top: 10px; }
@media (max-width: 680px) { .pm-tiles { grid-template-columns: 1fr; } }

/* Google Pay / Apple Pay */
.pm-tiles button[hidden] { display: none; }
.gpay-word, .apay-word { margin-left: auto; font-family: Arial, sans-serif; font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }
.gpay-word i { font-style: normal; font-weight: 800; background: linear-gradient(90deg,#4285f4 0 25%,#ea4335 25% 50%,#fbbc04 50% 75%,#34a853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-tiles button:not(.on) .gpay-word, .pm-tiles button:not(.on) .apay-word { opacity: .55; }
apple-pay-button { --apple-pay-button-width: 100%; --apple-pay-button-height: 46px; --apple-pay-button-border-radius: 23px; display: block; }
.pp-paypal > div > button.gpay-card-info-container, .pp-paypal button { border-radius: 23px; }
