/* /eyes1/css/account.css — v2 clean, sobre, équilibré
   (scopé à .account-page pour éviter tout effet de bord) */

.account-page {
  --bg:            #0b0c0f;
  --panel:         #111317;
  --panel-2:       #0f1115;
  --border:        #1f232a;
  --border-soft:   #1a1d23;
  --text:          #e7ebf2;
  --muted:         #9aa4b3;
  --strong:        #ffffff;
  --accent:        #3f67ff;
  --accent-2:      #3459e8;
  --ok:            #24b981;
  --warn:          #ffcc66;
  --err:           #ff6b6b;

  --radius:        14px;
  --gap:           16px;
  --min-col:       360px;

  --shadow-1:      0 8px 24px rgba(0,0,0,.18);
  --shadow-2:      0 12px 28px rgba(0,0,0,.22);

  color: var(--text);
}

/* Page */
.account-page {
  max-width: 1120px;
  margin: 28px auto 64px;
  padding: 0 16px;
}

.account-page h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 8px 0 4px;
  color: var(--strong);
}

.account-page .muted {
  color: var(--muted);
  font-size: 14px;
}

/* Grille */
.account-page .cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(var(--min-col), 1fr));
  align-items: start;
  margin-top: 18px;
}

/* Cards */
.account-page .card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
  will-change: transform, box-shadow;
}
.account-page .card:hover {
  transform: translateY(-1px);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-2);
}
.account-page .card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--strong);
}

/* Lignes internes “clé / valeur” */
.account-page .kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  margin: 6px 0;
  align-items: center;
}
.account-page .kv > div:first-child {
  color: var(--muted);
  font-size: 13px;
}

/* Séparateur sobre (sous les kv dans profil) */
#profileCard .kv + .kv {
  border-top: 1px dashed #1c2026;
  padding-top: 8px;
}

/* Listes (bots/personas) */
.account-page .list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px dashed #1c2026;
}
.account-page .list li {
  padding: 8px 0;
  border-bottom: 1px dashed #1c2026;
  font-size: 14px;
}
.account-page .list li:last-child { border-bottom: 0; }

/* États visuels quand non connecté */
.account-page .is-disabled {
  opacity: .55;
  filter: grayscale(.06);
  pointer-events: none;
}

/* Boutons */
.account-page .row { display: flex; gap: 10px; align-items: center; }
.account-page .mt8 { margin-top: 8px; }

.account-page .btn,
.account-page .btnlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #242934;
  background: #171a20;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background .14s ease, border-color .14s ease, transform .06s ease, box-shadow .14s ease;
  outline: none;
  box-shadow: none;
}
.account-page .btn:hover,
.account-page .btnlink:hover {
  background: #1b1f27;
  border-color: #2a3040;
}
.account-page .btn:active,
.account-page .btnlink:active { transform: translateY(1px); }

.account-page .btn.primary,
.account-page .btnlink.primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(63,103,255,.24);
}
.account-page .btn.primary:hover,
.account-page .btnlink.primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 18px rgba(63,103,255,.28);
}
.account-page .btn.primary:active,
.account-page .btnlink.primary:active { transform: translateY(1px); }

/* Focus visible (accessibilité) */
.account-page .btn:focus-visible,
.account-page .btnlink:focus-visible {
  outline: 2px solid #99aaff;
  outline-offset: 2px;
}

/* Bannière “non connecté” (sobre) */
.account-page .banner-notauth {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 8px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101218;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.account-page .banner-notauth strong { color: var(--strong); }

/* États texte */
.account-page .ok   { color: var(--ok); }
.account-page .warn { color: var(--warn); }
.account-page .err  { color: var(--err); }

/* Finitions & responsive */
.account-page ::selection {
  background: rgba(63,103,255,.32);
  color: #fff;
}
@media (max-width: 860px) {
  .account-page .kv { grid-template-columns: 120px 1fr; }
}
@media (max-width: 540px) {
  .account-page .kv { grid-template-columns: 1fr; }
  .account-page .kv > div:first-child { font-weight: 600; }
}
