/* The Last — les pages du compte (compte/entrer.html, compte/achats.html, compte/parametres.html), avec assets/compte-pages.js.
   Même fond et même pied que le chantier (chantier.css), mêmes plaques de pierre noire que le panneau du compte (compte.css). */

/* ---------- titres ---------- */
.cp-h1 { margin: 0; color: #fff; }
.cp-h1 .pxl { --fs: 5px; flex-wrap: wrap; row-gap: 10px; gap: 10px calc(var(--fs) * 4); }
.cp-h1 .pxl svg { filter: drop-shadow(var(--fs) var(--fs) 0 #3f3f3f); }
.cp-h1.sans-px { font: 700 40px/1.2 "Sora", sans-serif; }
@media (max-width: 700px) { .cp-h1 .pxl { --fs: 3.75px; } }
@media (max-width: 420px) { .cp-h1 .pxl { --fs: 3.125px; } }
.cp-main { max-width: 760px; }
.cp-corps { display: flex; flex-direction: column; gap: 30px; }
.cp-h2 {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid rgb(255 181 71 / .22); color: #fff3e6; font: 700 15px/1.2 "Sora", sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.cp-h3 { margin: 0 0 6px; color: #ffe9c9; font: 700 15px/1.3 "Sora", sans-serif; }

/* ---------- la plaque : celle du panneau, en pleine largeur ---------- */
.cp-carte {
  position: relative; padding: 20px 22px;
  background: linear-gradient(rgb(18 11 12 / .92), rgb(11 7 8 / .96)), var(--cpt-pierre, none) 0 0 / 48px auto, #130c0d;
  box-shadow: inset 0 0 0 var(--u) #050304, inset calc(var(--u) * 2) calc(var(--u) * 2) 0 #4f3a35, inset calc(var(--u) * -2) calc(var(--u) * -2) 0 #0b0707;
  clip-path: var(--notch); color: #dccfc5; font-size: 15px; line-height: 1.55;
}
.cp-carte > :last-child { margin-bottom: 0; }
.cp-carte p { margin: 0 0 12px; }
.cp-carte .cpt-qui p { margin: 0; }
.cp-invite .cp-carte { max-width: 460px; }
.cp-invite .cp-carte .cpt-wait, .cp-invite .cp-carte .cpt-how { margin-bottom: 14px; }
.cp-message { margin: 0 0 14px; padding: 12px 14px; color: #c9f7c9; font-weight: 600; background: rgb(5 3 4 / .6); box-shadow: inset 0 0 0 2px rgb(85 255 85 / .3); max-width: 460px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: var(--bt-ecart, 14px); margin: 14px 0 0; }   /* de la place pour les crochets (nether.css) */
.cp-carte > .cp-actions:first-child { margin-top: 0; }
.cp-note { color: #b9a69b; font-size: 13.5px; }
/* le bouton qui retire quelque chose : une plaque (nether.css) teintée de rouge */
.cp-danger { --fill: #3a120e; --hi: #a3402f; --lo: #a3402f; --hl: #a3402f; color: #ffe3dc; }
.cp-danger:hover { --fill: #5a1a14; --hi: #ff7a5c; --lo: #ff7a5c; --hl: #ff7a5c; color: #fff; }
.btn[disabled] { cursor: progress; }
@media (pointer: coarse) { .cp-carte .btn, .cp-e-in .btn { min-height: 44px; } }

/* ---------- historique d'achat ---------- */
.cp-vide { display: flex; align-items: center; gap: 14px; margin: 0 0 4px !important; color: #f2e6dc; font-size: 16px; font-weight: 600; }
.cp-achats { list-style: none; margin: 0 0 12px; padding: 0; }
.cp-achat { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid rgb(255 255 255 / .06); }
.cp-achat:last-child { border-bottom: 0; }
.cp-achat p { margin: 0; }
.cp-achat-p { color: #f6efe8; font-weight: 600; }
.cp-achat-m { display: flex; flex-wrap: wrap; gap: 2px 14px; color: #a99890; font-size: 13px; }
.cp-achat-r { text-align: right; flex: none; }
.cp-achat-v { color: var(--gold); font-weight: 700; }
.cp-statut { display: inline-block; margin-top: 4px !important; padding: 1px 8px; font-size: 12px; font-weight: 600; background: rgb(255 255 255 / .06); }
.cp-statut.s-paye { color: #55ff55; }
.cp-statut.s-rembourse, .cp-statut.s-annule { color: #cdbdb2; }
.cp-statut.s-conteste { color: #ffb3a0; }

/* ---------- paramètres ---------- */
.cp-id { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.cp-slot { padding: 5px; }
.cp-face { display: block; width: 64px; height: 64px; image-rendering: pixelated; }
.cp-slot .cpt-head { --s: 40px; margin: 12px; }
.cp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: 14px; }
.cp-dl dt { color: #a99890; }
.cp-dl dd { margin: 0; color: #f2e6dc; min-width: 0; overflow-wrap: anywhere; }
.cp-uuid { font: 500 13.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
@media (max-width: 520px) { .cp-dl { grid-template-columns: 1fr; gap: 0; } .cp-dl dd { margin-bottom: 8px; } }
.cp-bloc { padding-top: 14px; margin-top: 14px; border-top: 2px solid rgb(255 255 255 / .06); }
.cp-carte > .cp-bloc:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.cp-bloc p { margin: 0; }
.cp-apps { list-style: none; margin: 4px 0 0; padding: 0; }
.cp-app { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; margin-bottom: 8px; background: rgb(5 3 4 / .5); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .05); }
.cp-app.actuel { box-shadow: inset 0 0 0 2px rgb(111 230 242 / .25); }
.cp-app p { margin: 0; }
.cp-app-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #f6efe8; font-weight: 600; }
.cp-app-m { color: #a99890; font-size: 13px; }
.cp-app-vide { padding: 8px 0; color: #b9a69b; font-size: 14px; }
.cp-badge { padding: 1px 8px; color: #bff4f8; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: rgb(111 230 242 / .12); }
.cp-app .btn { flex: none; }
.cp-conf { margin-top: 14px; padding: 14px 16px; background: rgb(40 8 6 / .55); box-shadow: inset 0 0 0 2px rgb(255 107 44 / .3); }
.cp-conf p { margin: 0 0 10px; }
.cp-avert { color: #ffd9a0; font-weight: 600; }
.cp-label { display: block; margin: 0 0 6px; color: #f2e6dc; font-size: 14px; }
.cp-label b { color: var(--gold); }
.cp-champ {
  display: block; width: min(320px, 100%); min-height: 44px; padding: 10px 12px; margin: 0;
  color: #fff; font: 600 15px/1.2 "Inter", system-ui, sans-serif; background: #0a0607; border: 0;
  box-shadow: inset 2px 2px 0 #030102, inset -2px -2px 0 rgb(214 190 176 / .22);
}
.cp-champ:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cp-statut-l { margin: 10px 0 0 !important; font-size: 14px; font-weight: 600; }
.cp-statut-l.ok { color: #9ff59f; }
.cp-statut-l.ko { color: #ffb3a0; }
@media (max-width: 520px) {
  .cp-carte { padding: 18px 16px; }
  .cp-id { gap: 14px; }
  .cp-app { flex-direction: column; align-items: stretch; }
  .cp-actions .btn { flex: 1 1 auto; }
}

/* ---------- /compte/entrer : une page, l'enseigne suspendue au milieu ---------- */
.cp-entrer { flex: 1; display: grid; place-items: start center; padding: 150px 16px 56px; }
.cp-entrer > h1, .cp-entrer > noscript p { color: #f6efe8; font: 700 20px/1.3 "Sora", sans-serif; text-align: center; }
.cp-e-sign { width: min(440px, 100%); padding-top: 0; --cpt-chain-r: 30px; }
.cp-e-sign .cpt-chain { top: -112px; height: 114px; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
.cp-e-sign .cpt-chain.l { left: 30px; }
.cp-e-sign .cpt-lant { top: 2px; }
.cp-e-sign .cpt-lueur { background: radial-gradient(260px 220px at 50% 34%, rgb(111 230 242 / .14), transparent 72%), radial-gradient(150px 120px at calc(100% - 32px) 20px, rgb(111 230 242 / .2), transparent 78%); }
.cp-e-in { padding: 30px 26px 22px; text-align: center; }
.cpt-in.cp-e-in > :first-child { margin-right: 0; }
.cp-socle { position: relative; display: grid; place-items: center; height: 118px; margin: 0 auto 10px; }
.cp-socle::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 92px; height: 12px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(0 0 0 / .65), transparent); }
.cp-socle .cpt-head { --s: 72px; }
.cp-socle.attente .cpt-head { opacity: .45; }
.cp-e-t { margin: 0 0 12px; font-size: inherit; font-weight: inherit; }
.cp-e-t:focus { outline: none; }
.cp-e-titre { display: block; color: #ffe9c9; font: 700 21px/1.3 "Sora", sans-serif; }
.cp-e-k { display: block; margin-bottom: 10px; color: #dccfc5; font-size: 15px; font-weight: 500; }
.cp-e-n { display: flex; justify-content: center; color: var(--gold); }
.cp-e-n .pxl { --fs: 4px; }
.cp-e-n.sans-px { font: 700 28px/1.2 "Sora", sans-serif; }
.cp-e-q { margin: 0 0 20px; color: #fff; font-size: 18px; font-weight: 600; }
.cp-e-msg { margin: 0 0 12px; color: #f2e6dc; font-size: 15.5px; line-height: 1.55; }
.cp-e-b { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bt-ecart, 14px); }
.cp-e-b .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
.cp-e-note { margin: 16px 0 0; color: #b9a69b; font-size: 13px; line-height: 1.5; }
.cp-e-in .cp-actions { justify-content: center; margin-top: 18px; }
.cp-e-in .cpt-why { margin-top: 10px; }
@media (max-width: 480px) {
  .cp-entrer { padding-top: 120px; }
  .cp-e-sign .cpt-chain { top: -82px; height: 84px; }
  .cp-e-in { padding: 26px 18px 18px; }
  .cp-socle { height: 96px; }
  .cp-socle .cpt-head { --s: 58px; }
  .cp-e-n .pxl { --fs: 3px; }
  .cp-e-b { grid-template-columns: 1fr; }
}
