/* MatDev — Espace membre */
.compte-page {
  --compte-border: rgba(255, 255, 255, 0.1);
  --compte-card: rgba(10, 14, 32, 0.88);
  --compte-glow: rgba(118, 87, 255, 0.2);
}

.compte-main {
  padding: calc(var(--header-height, 72px) + 1.5rem) 0 4rem;
}

.compte-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .compte-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.compte-sidebar {
  position: relative;
  padding: 1.35rem;
  border: 1px solid var(--compte-border);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(14, 18, 40, 0.95), rgba(8, 10, 24, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.compte-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 0% 0%, var(--compte-glow), transparent 55%);
  pointer-events: none;
  opacity: 0.5;
}

.compte-sidebar__user {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--compte-border);
}

.compte-sidebar__user strong {
  display: block;
  font-size: 0.95rem;
}

.compte-sidebar__user span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.compte-sidebar__avatar,
.compte-profile__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(118, 87, 255, 0.35);
}

.compte-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compte-nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.compte-nav__link:hover,
.compte-nav__link.is-active {
  background: rgba(118, 87, 255, 0.12);
  color: #fff;
}

.compte-nav__link--logout {
  margin-top: 0.75rem;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.06);
}

.compte-nav__link--logout:hover {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca !important;
}

.compte-nav__logout-form,
.compte-logout-form {
  margin: 0;
  display: block;
}

.compte-nav__logout-form .compte-nav__link {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.compte-logout-form {
  display: inline-block;
}

.compte-content {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--compte-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.92), rgba(8, 10, 22, 0.88));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  min-height: 420px;
  animation: compte-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes compte-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.compte-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.compte-head p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.compte-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.compte-stat {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--compte-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.compte-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 87, 255, 0.3);
  box-shadow: 0 12px 32px rgba(118, 87, 255, 0.1);
}

.compte-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #7657ff, #20c7e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.compte-stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compte-section {
  margin-bottom: 2rem;
}

.compte-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.compte-section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.compte-table-wrap {
  overflow-x: auto;
}

.compte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compte-table th,
.compte-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--compte-border);
  text-align: left;
}

.compte-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compte-link {
  color: var(--accent-2, #20c7e8);
  text-decoration: none;
}

.compte-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(118, 87, 255, 0.15);
  color: #c4b5fd;
}

.compte-empty {
  color: var(--text-secondary);
  margin: 0;
}

.compte-profile__hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.compte-dl {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.compte-dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compte-dl dt {
  min-width: 140px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.compte-dl dd {
  margin: 0;
  font-size: 0.9rem;
}

.compte-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Login */
.compte-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.compte-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid var(--compte-border);
  border-radius: 20px;
  background: var(--compte-card);
  text-align: center;
}

.compte-login-card__back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.compte-login-card__logo {
  margin-bottom: 1rem;
}

.compte-login-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.compte-login-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.compte-oauth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compte-oauth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.compte-oauth__btn:hover {
  transform: translateY(-1px);
}

.compte-oauth__btn--discord {
  background: #5865f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.compte-oauth__btn--github {
  display: none;
}

.compte-login-card__note {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.compte-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-align: left;
}

.compte-alert--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.compte-alert--warn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.spec-field--date {
  max-width: 280px;
}
