/* Espace compte artiste — complète le thème Pikiz / Bootstrap */
.tm-artist-dashboard {
  max-width: 960px;
  margin: 0 auto;
}

.tm-artist-dashboard + .tm-artist-profile {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tm-artist-dashboard__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, rgba(240, 98, 146, 0.12), rgba(142, 14, 131, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(142, 14, 131, 0.15);
}

.tm-artist-dashboard__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.tm-artist-dashboard__hero-text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.tm-artist-dashboard__hero-text p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.tm-artist-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tm-artist-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.tm-artist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(142, 14, 131, 0.12);
  color: inherit;
  text-decoration: none;
}

.tm-artist-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f06292, #8e0e83);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.tm-artist-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.tm-artist-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.45;
}

.tm-artist-card--muted {
  cursor: default;
}

.tm-artist-card--muted:hover {
  transform: none;
}

.tm-artist-dashboard__notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff8e6;
  border: 1px solid #f0e0b2;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #5c4a00;
}

.tm-artist-profile dl {
  margin: 0;
}

.tm-artist-profile dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-top: 1rem;
}

.tm-artist-profile dt:first-child {
  margin-top: 0;
}

.tm-artist-profile dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.tm-artist-stats__placeholder {
  padding: 2rem;
  text-align: center;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px dashed #ccc;
  color: #666;
}

.tm-artist-kpis {
  text-align: left;
  margin: 0 auto;
  max-width: 320px;
}

.tm-artist-kpis li {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.tm-artist-profile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Bouton déconnexion : style secondaire par rapport au gradient principal */
.tm-artist-profile .tm-artist-logout-btn {
  background: #fff !important;
  color: #8e0e83 !important;
  border: 2px solid #8e0e83;
  box-shadow: none;
}

.tm-artist-profile .tm-artist-logout-btn span,
.tm-artist-profile .tm-artist-logout-btn i {
  color: inherit !important;
}

.tm-artist-profile .tm-artist-logout-btn:hover {
  background: rgba(142, 14, 131, 0.08) !important;
}

/* Formulaire de connexion artiste */
.tm-artist-login-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(142, 14, 131, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.tm-artist-login-form p {
  margin-bottom: 1rem;
}

.tm-artist-login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #2b2b2b;
}

.tm-artist-login-form input[type="text"],
.tm-artist-login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(142, 14, 131, 0.18);
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-artist-login-form input[type="text"]:focus,
.tm-artist-login-form input[type="password"]:focus {
  border-color: rgba(142, 14, 131, 0.55);
  box-shadow: 0 0 0 4px rgba(142, 14, 131, 0.15);
}

.tm-artist-login-form input[type="checkbox"] {
  transform: translateY(1px);
  margin-right: 0.5rem;
}

.tm-artist-login-form button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f06292, #8e0e83);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.tm-artist-login-form button[type="submit"]:hover {
  filter: brightness(1.03);
}

.tm-artist-login-form button[type="submit"]:active {
  transform: translateY(1px);
}

.tm-artist-login-form .tm-artist-alert,
.tm-artist-login-form p[style*="color:red"] {
  margin-top: 0.5rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .tm-artist-login-form {
    padding: 1.25rem 1rem;
  }
}

/* Formulaire Rejoignez-nous */
.tm-rejoignez-notice {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
}
.tm-rejoignez-notice--ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.tm-rejoignez-notice--err {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}
.tm-rejoignez-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  margin: 0;
}

/* Résumé dashboard (guide Artist Stats + maquettes) */
.tm-artist-summary {
  margin-bottom: 1.75rem;
}
.tm-artist-summary__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.tm-artist-summary__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.tm-artist-summary__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.35rem;
}
.tm-artist-summary__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
}
.tm-artist-summary__hint {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.35rem;
  line-height: 1.35;
}
.tm-artist-summary__muted {
  color: #888;
  font-weight: 600;
}
.tm-artist-pie-wrap {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 420px;
}
.tm-artist-pie-wrap--wide {
  max-width: none;
  margin-top: 0.5rem;
}
.tm-artist-pie-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #444;
}
.tm-artist-pie {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #f06292 0 calc(var(--p-yt, 0) * 1%),
    #8e0e83 calc(var(--p-yt, 0) * 1%) calc((var(--p-yt, 0) + var(--p-tk, 0)) * 1%),
    #a238ff calc((var(--p-yt, 0) + var(--p-tk, 0)) * 1%) calc((var(--p-yt, 0) + var(--p-tk, 0) + var(--p-dz, 0)) * 1%),
    #e0e0e0 calc((var(--p-yt, 0) + var(--p-tk, 0) + var(--p-dz, 0)) * 1%) 100%
  );
  flex-shrink: 0;
}
.tm-artist-pie-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.tm-artist-pie-legend {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
.tm-artist-pie-legend li {
  margin: 0.25rem 0;
}
.tm-artist-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.tm-artist-dot--yt {
  background: #f06292;
}
.tm-artist-dot--tk {
  background: #8e0e83;
}
.tm-artist-dot--dz {
  background: #a238ff;
}

.tm-artist-stats__panel {
  text-align: left;
}

/* Page statistiques : cartes type maquette (fond blanc, bordure légère) */
.tm-artist-stats-page .tm-artist-stats__placeholder {
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-style: solid;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.35rem;
}
.tm-artist-stats-page .tm-artist-stats__placeholder h3 {
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 0.85rem !important;
}
.tm-artist-stats-page .tm-artist-stats__placeholder .text-muted,
.tm-artist-stats-page .tm-artist-stats__placeholder p {
  color: #666;
}
.tm-artist-stats-cache-note {
  margin: 0 0 1.25rem;
  padding: 0.5rem 0 0;
}

.tm-artist-stats-page .tm-artist-pie-wrap--wide {
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}
.tm-artist-stats-page .tm-artist-pie {
  width: 132px;
  height: 132px;
}
.tm-artist-stats-page .tm-artist-pie-title {
  font-size: 1rem;
  color: #1a1a2e;
}
.tm-artist-stats-page .tm-artist-pie-legend {
  font-weight: 500;
}

.tm-artist-stats__countries .tm-artist-stats-countries__intro {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #666;
}

.tm-artist-country-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.tm-artist-country-code {
  font-weight: 700;
  min-width: 2rem;
  color: #8e0e83;
}
.tm-artist-country-name {
  flex: 1;
}
.tm-artist-country-val {
  font-variant-numeric: tabular-nums;
}

.tm-artist-pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tm-artist-pay-table th,
.tm-artist-pay-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.tm-artist-pay-table th {
  width: 48%;
  font-weight: 600;
  color: #555;
}
.tm-artist-pay-total th,
.tm-artist-pay-total td {
  border-bottom: 0;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}
.tm-artist-pay-table--history th {
  width: auto;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
}

.tm-artist-payout-form {
  display: grid;
  gap: 0.65rem;
}
.tm-artist-payout-label {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #444;
}
.tm-artist-payout-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  background: #fff;
}
.tm-artist-payout-btn {
  margin-top: 0.35rem;
  justify-self: start;
}
.tm-artist-alert--success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}
