/* Fenêtre « Discord » du MODE MAQUETTE (compte.js) : imitation sobre de l'écran d'autorisation de Discord,
   avec le choix du compte d'exemple. Sur le vrai site, c'est la page officielle de discord.com qui s'affiche. */
.dcx { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; background: none; color: #f2f3f5; overflow: visible; }
.dcx::backdrop { background: rgba(8, 7, 6, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: dcx-fond .35s ease both; }
@keyframes dcx-fond { from { opacity: 0; } }
.dcx-carte { max-height: calc(100dvh - 24px); overflow: auto; padding: 24px 22px 18px; border-radius: 8px; background: #313338; text-align: center;
  font-family: 'Poppins', system-ui, sans-serif; font-size: 14px; line-height: 1.45; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85); scrollbar-width: thin; }
.dcx-carte * { box-sizing: border-box; }
.dcx-logos { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.dcx-site { width: 68px; height: 68px; border-radius: 50%; background: #e2c39b center / cover no-repeat; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); }
.dcx-discord { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #5865f2; color: #fff; font-size: 38px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); }
.dcx-pts { display: flex; gap: 5px; }
.dcx-pts i { width: 6px; height: 6px; border-radius: 50%; background: #80848e; animation: dcx-pt 1.2s ease-in-out infinite; }
.dcx-pts i:nth-child(2) { animation-delay: .15s; }
.dcx-pts i:nth-child(3) { animation-delay: .3s; }
@keyframes dcx-pt { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.dcx-k { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #949ba4; }
.dcx-t { margin: 6px 0 2px; font-size: 19px; font-weight: 600; line-height: 1.3; color: #f2f3f5; }
.dcx-t b { font-weight: 800; }
.dcx-sous { margin: 0 0 14px; font-size: 13px; color: #b5bac1; }
/* Comptes d'exemple : liste façon « changer de compte » */
.dcx-comptes { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.dcx-compte { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1.5px solid transparent; border-radius: 6px; background: #2b2d31; cursor: pointer;
  transition: background .2s, border-color .2s; }
.dcx-compte:hover { background: #35373c; }
.dcx-compte input { position: absolute; opacity: 0; pointer-events: none; }
.dcx-compte:has(input:checked) { border-color: #5865f2; background: #2e3035; }
.dcx-compte:has(input:focus-visible) { outline: 2px solid #00a8fc; outline-offset: 2px; }
.dcx-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.dcx-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dcx-id b { overflow: hidden; font-size: 14.5px; font-weight: 700; color: #f2f3f5; text-overflow: ellipsis; white-space: nowrap; }
.dcx-id small { font-size: 12.5px; color: #949ba4; }
.dcx-role { flex: none; padding: 2px 8px; border-radius: 4px; background: rgba(88, 101, 242, .18); color: #c9cdfb; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dcx-role.is-hors { background: rgba(240, 178, 50, .16); color: #f0c674; }
.dcx-coche { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #5865f2; color: #fff; font-size: 17px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.dcx-compte:has(input:checked) .dcx-coche { opacity: 1; transform: none; }
.dcx-perms { margin-top: 16px; padding-top: 12px; border-top: 1px solid #3f4147; text-align: left; }
.dcx-perms p { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #b5bac1; }
.dcx-perms ul { margin: 0; padding: 0; list-style: none; }
.dcx-perms li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #3f4147; font-size: 13.5px; color: #dbdee1; }
.dcx-perms li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #23a55a; color: #fff; font-size: 16px; }
.dcx-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: #949ba4; text-align: left; }
.dcx-note i { flex: none; margin-top: 1px; font-size: 15px; }
.dcx-raz { padding: 0; border: 0; background: none; font: inherit; color: #00a8fc; cursor: pointer; }
.dcx-raz:hover { text-decoration: underline; }
.dcx-raz[data-confirmer] { color: #f23f42; font-weight: 700; }
.dcx-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #3f4147; }
.dcx-annuler { padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: #dbdee1; cursor: pointer; }
.dcx-annuler:hover { text-decoration: underline; }
.dcx-ok { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 128px; height: 40px; padding: 0 22px; border: 0; border-radius: 4px;
  background: #5865f2; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.dcx-ok:hover { background: #4752c4; }
.dcx-ok:disabled { cursor: progress; opacity: .85; }
.dcx-ok i { font-size: 18px; }
.dcx :focus-visible { outline: 2px solid #00a8fc; outline-offset: 2px; }
/* Téléphone : l'étiquette du compte passe sous le pseudo (le pseudo n'est plus coupé), fenêtre un peu plus compacte */
@media (max-width: 480px) {
  .dcx-carte { padding: 18px 16px 14px; }
  .dcx-logos { margin-bottom: 10px; }
  .dcx-site, .dcx-discord { width: 54px; height: 54px; }
  .dcx-discord { font-size: 30px; }
  .dcx-t { font-size: 17.5px; }
  .dcx-compte { display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; column-gap: 12px; row-gap: 5px; }
  .dcx-ava { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .dcx-id { grid-column: 2; grid-row: 1; }
  .dcx-role { grid-column: 2; grid-row: 2; justify-self: start; }
  .dcx-coche { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .dcx-perms li { padding: 7px 0; font-size: 13px; }
  /* Petit écran où la fenêtre défile : « Annuler » et « Autoriser » restent visibles en bas */
  .dcx-b { position: sticky; bottom: -14px; margin: 14px -16px -14px; padding: 12px 16px 14px; background: #313338; }
}
