/* Page Mon compte — s'appuie sur les jetons de ../style.css */
.nav-in .btn[hidden] { display: none; }
.cpt { padding-block: 36px 64px; min-height: 60vh; }
.chargement { color: var(--txt3); }
.cpt h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.cpt h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; max-width: none; margin: 0 0 12px; }
.sous { margin: 6px 0 0; color: var(--txt2); }
.aide { margin: 8px 0 0; color: var(--txt3); font-size: 14px; }

.carte-cpt { background: var(--card); border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px; box-shadow: var(--ombre); margin-bottom: 16px; }

/* Connexion */
.auth { max-width: 440px; margin: 12px auto 0; }
.bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 24px 0 14px; border-radius: 13px; background: var(--card); border: 1px solid var(--ligne); }
.bascule button { border: 0; background: none; padding: 10px; border-radius: 10px; font: 600 15px Inter, system-ui, sans-serif; color: var(--txt2); cursor: pointer; }
.bascule button[aria-selected="true"] { background: var(--teal-clair); color: var(--teal-txt); }
.carte-cpt label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.carte-cpt input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--ligne); background: var(--bg); color: var(--txt); font: 16px Inter, system-ui, sans-serif; }
.carte-cpt input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-clair); }
.carte-cpt .btn-w { margin-top: 8px; }
.lien { background: none; border: 0; padding: 6px 0; color: var(--teal-txt); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.carte-cpt > .lien { display: block; margin: 14px auto 0; }
.lien.danger { color: #d23b3b; }
.note-ext { text-align: center; color: var(--txt3); font-size: 14px; }
.ok-msg { margin: 0; color: var(--txt2); }

/* Tableau */
.cpt-tete { margin-bottom: 22px; }
.cpt-grille { display: grid; gap: 16px; }
@media (min-width: 900px) { .cpt-grille { grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; } }
.bandeau-info { padding: 14px 16px; border-radius: 14px; background: var(--teal-clair); color: var(--teal-txt); font-weight: 600; margin-bottom: 16px; }

.abo-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.abo-tete h2 { margin: 0; }
.abo p { color: var(--txt2); margin: 8px 0 0; }
.abo.vip { border: 2px solid var(--teal); background: linear-gradient(160deg, var(--teal-clair), var(--card) 55%); }
.badge-vip, .badge-gratuit { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; }
.badge-vip { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; }
.badge-gratuit { background: var(--bg); color: var(--txt2); border: 1px solid var(--ligne); }
.abo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.abo-actions .btn { flex: 1 1 200px; }
.liste-vip { list-style: none; margin: 14px 0 0; padding: 0; }
.liste-vip li { position: relative; padding: 6px 0 6px 26px; color: var(--txt2); font-size: 15px; }
.liste-vip li b { color: var(--txt); }
.liste-vip li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 10px; height: 6px; border: solid var(--teal); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.quota { padding: 12px 0; border-top: 1px solid var(--ligne); }
.quota:first-of-type { border-top: 0; padding-top: 0; }
.q-tete { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.q-tete span { color: var(--txt2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jauge { height: 8px; border-radius: 9px; background: var(--bg); margin-top: 9px; overflow: hidden; border: 1px solid var(--ligne); }
.jauge i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.jauge.pleine i { background: linear-gradient(90deg, #e0782a, #d23b3b); }

.lignes { list-style: none; margin: 12px 0 0; padding: 0; }
.lignes li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.lignes li:first-child { border-top: 0; }
.lignes div { flex: 1; min-width: 0; }
.lignes b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lignes small { display: block; color: var(--txt3); font-size: 13px; }
.av { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; background: var(--teal-clair); color: var(--teal-txt); }
.av.pc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lignes li.vide .av { background: var(--bg); color: var(--txt3); border: 1.5px dashed var(--ligne); }
.lignes li.vide b { color: var(--txt3); }

.mdp { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .mdp { grid-template-columns: 1fr 1fr; } .mdp .btn { grid-column: 1 / -1; justify-self: start; } }

.toast-cpt { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 50; margin: 0 auto; max-width: 440px; padding: 14px 18px; border-radius: 14px; background: #0f1d22; color: #fff; font-weight: 500; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.toast-cpt.err { background: #b42323; }
.btn:disabled { opacity: .65; cursor: wait; }
