/* Nounisy Artist Hub — styles front (espace artiste) */

.nah {
	--nah-bg: #0D1526;
	--nah-panel: #16213A;
	--nah-line: rgba(255, 255, 255, 0.08);
	--nah-text: #ffffff;
	--nah-muted: #8A94A6;
	--nah-red: #E8422A;
	--nah-gold: #D4AF37;
	--nah-green: #25D366;

	background: var(--nah-bg);
	color: var(--nah-text);
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.55;
	max-width: 1100px;
	margin: 0 auto 40px;
	padding: 28px;
	border-radius: 14px;
	box-sizing: border-box;
}
.nah *, .nah *::before, .nah *::after { box-sizing: border-box; }

/* Le titre de la page est remplacé par l'en-tête du composant. */
body.nah-page .entry-header,
body.nah-page .page-header { display: none; }

.nah h2, .nah h3 { font-family: 'Fraunces', Georgia, serif; color: var(--nah-text); margin: 0 0 10px; line-height: 1.25; }
.nah h2 { font-size: 26px; font-weight: 800; }
.nah h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.nah p { color: #d5dae4; margin: 0 0 12px; }
.nah a { color: var(--nah-gold); }
.nah .nah-muted { color: var(--nah-muted); }
.nah .nah-h3-sub { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500; }
.nah-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--nah-gold); font-weight: 700; margin-bottom: 6px; }
.nah-sr { position: absolute; left: -9999px; }

/* En-tête */
.nah-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.nah-head p { margin: 0; }
.nah-head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nah-filter { display: flex; gap: 8px; align-items: center; margin: 0; }
.nah-logout { font-size: 14px; }

/* Cartes & panneaux */
.nah-card { background: var(--nah-panel); border: 1px solid var(--nah-line); border-radius: 12px; padding: 24px; margin-bottom: 18px; }
.nah-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.nah-empty { text-align: center; padding: 44px 24px; }

.nah-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.nah-stat { background: var(--nah-panel); border: 1px solid var(--nah-line); border-radius: 12px; padding: 20px 18px; }
.nah-stat-num { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 26px; color: var(--nah-red); line-height: 1.15; word-break: break-word; }
.nah-stat-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--nah-muted); font-weight: 700; margin-top: 6px; }

.nah-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.nah-grid-2 .nah-card { margin-bottom: 0; }

/* Barres par plateforme */
.nah-row { margin-bottom: 16px; }
.nah-row:last-child { margin-bottom: 0; }
.nah-row-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.nah-row-name { font-weight: 700; }
.nah-row-val { color: var(--nah-muted); }
.nah-track { background: rgba(255, 255, 255, 0.07); border-radius: 6px; height: 9px; overflow: hidden; }
.nah-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--nah-red), var(--nah-gold)); }

/* Graphique mensuel */
.nah-chart { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.nah-col { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.nah-barwrap { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.nah-bar { width: 100%; max-width: 36px; min-height: 2px; background: linear-gradient(180deg, var(--nah-gold), var(--nah-red)); border-radius: 6px 6px 0 0; }
.nah-col-val { font-size: 11px; color: #d5dae4; margin-top: 6px; font-weight: 600; }
.nah-col-label { font-size: 11px; color: var(--nah-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Tableaux */
.nah-table-wrap { overflow-x: auto; }
.nah-table { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent; border: 0; margin: 0; }
.nah-table th, .nah-table td { padding: 10px 8px; border: 0; border-bottom: 1px solid var(--nah-line); text-align: left; color: #d5dae4; background: transparent; }
.nah-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nah-muted); }
.nah-table tr:last-child td { border-bottom: 0; }
.nah-table .r { text-align: right; white-space: nowrap; }

/* Notices */
.nah-notice { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.nah-notice-error { background: rgba(232, 66, 42, .12); border-color: rgba(232, 66, 42, .5); color: #ffb4a6; }
.nah-notice-ok { background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .45); color: #b8f5d0; }
.nah-notice-info { background: rgba(212, 175, 55, .1); border-color: rgba(212, 175, 55, .4); color: #f0dd9a; }
.nah-notice a { color: inherit; }

/* Formulaires */
.nah-form label, .nah .login-username label, .nah .login-password label { display: block; font-size: 13px; font-weight: 600; color: #d5dae4; margin-bottom: 14px; }
.nah input[type="text"], .nah input[type="email"], .nah input[type="tel"], .nah input[type="password"], .nah input[type="number"], .nah select {
	display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px; font-family: inherit;
	background: #0D1526 !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; box-shadow: none; height: auto;
}
.nah input:focus, .nah select:focus { outline: 2px solid var(--nah-gold); outline-offset: 1px; border-color: var(--nah-gold); }
.nah-filter select { width: auto; margin: 0; padding: 8px 12px; }
.nah .nah-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.nah .nah-check input { width: auto; margin-top: 4px; }
.nah .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.nah .login-remember input { width: auto; margin: 0; }
.nah-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nah-btn, .nah .login-submit input[type="submit"] {
	display: inline-block; background: var(--nah-gold); color: #0D1526; font-weight: 800; font-size: 15px; font-family: inherit;
	border: 0; border-radius: 8px; padding: 13px 26px; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.nah-btn:hover, .nah .login-submit input[type="submit"]:hover { filter: brightness(1.08); }
.nah-btn-small { padding: 9px 16px; font-size: 13px; }
.nah-links { margin: 18px 0 0; font-size: 14px; color: var(--nah-muted); }

/* Responsive */
@media (max-width: 900px) {
	.nah-cards { grid-template-columns: repeat(2, 1fr); }
	.nah-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.nah { padding: 18px 14px; border-radius: 10px; }
	.nah-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
	.nah-stat-num { font-size: 21px; }
	.nah-card { padding: 18px 14px; }
}

/* Vue label / éditeur */
.nah .nah-back { margin: 0 0 14px; font-size: 14px; }
.nah .nah-back a { text-decoration: none; font-weight: 700; }
.nah .nah-small { font-size: 12px; }
.nah .nah-table td a { text-decoration: none; }
.nah .nah-table .nah-btn { color: #0D1526; white-space: nowrap; }
@media (max-width: 600px) {
	.nah .nah-hide-sm { display: none; }
}

/* Profil : photo + réseaux sociaux */
.nah .nah-profile { margin-top: 18px; }
.nah-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nah-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--nah-gold); background: var(--nah-panel); }
.nah-avatar-ph { display: inline-flex; align-items: center; justify-content: center; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 26px; color: var(--nah-gold); }
.nah-avatar-sm { width: 36px; height: 36px; border-width: 1px; font-size: 13px; }
.nah-cellname { display: flex; align-items: center; gap: 10px; }
.nah-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nah .nah-social a { display: inline-block; padding: 4px 12px; border: 1px solid rgba(212, 175, 55, .55); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--nah-gold); }
.nah .nah-social a:hover { background: rgba(212, 175, 55, .12); }
.nah .nah-edit-profile { display: inline-block; margin-top: 8px; font-size: 13px; }
.nah-summary { cursor: pointer; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 18px; list-style: none; }
.nah-summary::-webkit-details-marker { display: none; }
.nah-summary::after { content: "+"; float: right; color: var(--nah-gold); font-family: 'IBM Plex Mono', monospace; }
.nah-profile[open] .nah-summary::after { content: "–"; }
.nah-profile-form { margin-top: 18px; max-width: 520px; }
.nah-photo-row { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.nah .nah-photo-row .nah-avatar { width: 88px; height: 88px; }
.nah input[type="file"] { display: block; margin-top: 6px; font-size: 13px; color: #d5dae4; max-width: 100%; }

/* Solde et retrait */
.nah-wallet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.nah-wallet-balance { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--nah-gold); margin-top: 4px; }
.nah-progress { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.nah-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--nah-red), var(--nah-gold)); }
.nah .nah-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.nah-wd { margin-top: 14px; }
.nah-wd > summary { list-style: none; cursor: pointer; display: inline-block; }
.nah-wd > summary::-webkit-details-marker { display: none; }
.nah-wd-form { margin-top: 16px; max-width: 480px; }
.nah-hint { margin: -6px 0 14px; }
.nah-subtitle { font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--nah-muted); font-weight: 700; margin: 24px 0 8px; }
.nah-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nah-badge-pending { background: rgba(212, 175, 55, .18); color: #f0dd9a; }
.nah-badge-paid { background: rgba(37, 211, 102, .16); color: #8ff0b6; }
.nah-badge-rejected { background: rgba(232, 66, 42, .18); color: #ffb4a6; }

@media (max-width: 520px) {
	.nah-avatar:not(.nah-avatar-sm) { width: 60px; height: 60px; }
	.nah-wallet-balance { font-size: 28px; }
	.nah-photo-row { flex-direction: column; align-items: flex-start; }
}

/* Types de sortie : onglets, badges, barres */
.nah-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.nah .nah-tab { display: inline-block; padding: 7px 16px; border: 1px solid var(--nah-line); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: #d5dae4; background: rgba(255, 255, 255, .03); }
.nah .nah-tab:hover { border-color: rgba(212, 175, 55, .6); }
.nah .nah-tab.is-active { background: var(--nah-gold); border-color: var(--nah-gold); color: #0D1526; }
.nah-type { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nah-type-single { background: rgba(212, 175, 55, .18); color: #f0dd9a; }
.nah-type-ep { background: rgba(37, 211, 102, .16); color: #8ff0b6; }
.nah-type-album { background: rgba(232, 66, 42, .18); color: #ffb4a6; }
.nah-type-none { background: rgba(255, 255, 255, .08); color: #aab3c5; }
.nah-fill-single { background: var(--nah-gold); }
.nah-fill-ep { background: var(--nah-green); }
.nah-fill-album { background: var(--nah-red); }
.nah-fill-none { background: #6b7690; }
.nah-row.is-active .nah-row-name { text-decoration: underline; text-decoration-color: var(--nah-gold); text-underline-offset: 4px; }
@media (max-width: 520px) {
	.nah .nah-table { font-size: 13px; }
	.nah .nah-table th, .nah .nah-table td { padding: 10px 5px; }
	.nah .nah-table th { font-size: 10px; letter-spacing: .04em; }
	.nah .nah-cellname { gap: 8px; }
}
