.vmd-wrap {
	color: var(--vmd-text) !important;
	max-width: 100%;
}
.vmd-wrap a { color: var(--vmd-accent) !important; }
/* Les boutons pleins doivent garder un texte blanc, pas la couleur
   d'accent (sinon texte invisible sur fond de la même couleur). */
.vmd-wrap a.vmd-btn,
.vmd-wrap a.vmd-quicklink {
	color: #fff !important;
}
.vmd-muted { color: var(--vmd-text-muted) !important; font-size: 13px; }
.vmd-empty { color: var(--vmd-text-muted) !important; padding: 30px 0; text-align: center; }

/* ============ Hero (aperçu) ============ */
.vmd-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--vmd-bg);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 20px;
}
.vmd-hero-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vmd-hero h2 { margin: 0 0 4px; font-size: 18px; color: var(--vmd-text) !important; }
.vmd-hero-link { font-size: 13px; text-decoration: none; }

/* ============ Statistiques ============ */
.vmd-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.vmd-stat {
	background: var(--vmd-bg);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
}
.vmd-stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--vmd-text) !important; }
.vmd-stat-label { display: block; font-size: 11px; color: var(--vmd-text-muted) !important; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ============ Liens rapides ============ */
.vmd-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; }
.vmd-quicklink {
	background: var(--vmd-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

/* ============ Boutons / cartes génériques ============ */
.vmd-btn {
	display: inline-block;
	background: var(--vmd-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	margin-top: 10px;
}
.vmd-card {
	background: var(--vmd-bg);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 20px;
	border-left: 4px solid var(--vmd-text-muted);
}
.vmd-card h3 { margin-top: 0; color: var(--vmd-text) !important; }
.vmd-card-active { border-left-color: var(--vmd-green); }
.vmd-card-inactive { border-left-color: var(--vmd-accent); }

/* ============ Progression du profil ============ */
.vmd-profile-preview { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.vmd-profile-preview img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.vmd-progress { width: 200px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 6px 0; overflow: hidden; }
.vmd-progress-bar { height: 100%; background: var(--vmd-accent); }

/* ============ Grille de profils ============ */
.vmd-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 14px;
}
.vmd-profile-card {
	text-decoration: none;
	text-align: center;
	color: var(--vmd-text) !important;
}
.vmd-profile-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 6px;
}
.vmd-profile-card span { font-size: 13px; font-weight: 600; }

/* ============ Grille de vidéos ============ */
.vmd-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.vmd-video-card { background: var(--vmd-bg); border-radius: 12px; overflow: hidden; }
.vmd-video-thumb { display: block; aspect-ratio: 16 / 9; background: #000; }
.vmd-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vmd-video-title {
	display: block;
	padding: 10px 12px 4px;
	color: var(--vmd-text) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vmd-unlike-video {
	margin: 0 12px 12px;
	background: transparent;
	border: 1px solid rgba(255,255,255,.2);
	color: var(--vmd-text-muted) !important;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11px;
	cursor: pointer;
}

/* ============ Forfaits ============ */
.vmd-package-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.vmd-package-card {
	background: var(--vmd-bg);
	border-radius: 14px;
	padding: 20px;
	text-align: center;
}
.vmd-package-card h3 { margin: 0 0 6px; color: var(--vmd-text) !important; }
.vmd-package-price { font-size: 22px; font-weight: 700; color: var(--vmd-accent) !important; margin-bottom: 8px; }
.vmd-package-desc { font-size: 13px; color: var(--vmd-text-muted) !important; margin-bottom: 10px; }

/* ============ Tableau (commandes) ============ */
.vmd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vmd-table th, .vmd-table td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--vmd-text) !important; }

/* ============ Boutons "j'aime" (shortcodes profil/vidéo) ============ */
.vmd-video-like-btn, .vmd-profile-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(224,69,90,.12);
	border: 1px solid var(--vmd-accent);
	color: var(--vmd-accent) !important;
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 600;
	cursor: pointer;
}
.vmd-video-like-btn.vmd-liked, .vmd-profile-like-btn.vmd-liked {
	background: var(--vmd-accent);
	color: #fff !important;
}
.vmd-video-like-btn[disabled], .vmd-profile-like-btn[disabled] { opacity: .7; cursor: default; }
.vmd-heart { line-height: 1; }

/* ============ J'aime / Je n'aime pas vidéo (double bouton) ============ */
.vmd-video-vote { display: flex; gap: 10px; }
.vmd-vote-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	color: var(--vmd-text) !important;
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 600;
	cursor: pointer;
}
.vmd-vote-btn.vmd-active.vmd-vote-like { background: var(--vmd-green); border-color: var(--vmd-green); color: #fff !important; }
.vmd-vote-btn.vmd-active.vmd-vote-dislike { background: var(--vmd-accent); border-color: var(--vmd-accent); color: #fff !important; }
.vmd-vote-btn[disabled] { opacity: .7; cursor: default; }
.vmd-vote-icon { line-height: 1; }

/* ============ Carte profil avec bouton retirer ============ */
.vmd-profile-card-wrap { position: relative; }
.vmd-unlike-profile {
	display: block;
	width: 100%;
	margin-top: 6px;
	background: transparent;
	border: 1px solid rgba(255,255,255,.2);
	color: var(--vmd-text-muted) !important;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11px;
	cursor: pointer;
}

/* ============ Formulaire de création de fiche ============ */
.vmd-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vmd-form input[type="text"],
.vmd-form select {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.2);
	color: var(--vmd-text) !important;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
}
.vmd-form input[type="text"] { flex: 1 1 220px; }
.vmd-form .vmd-btn { margin-top: 0; border: none; cursor: pointer; }
.vmd-form .vmd-muted { flex-basis: 100%; margin: 0; }
.vmd-form-message { flex-basis: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.vmd-form-success { background: rgba(47,191,113,.15); color: var(--vmd-green) !important; }
.vmd-form-error { background: rgba(224,69,90,.15); color: var(--vmd-accent) !important; }

.vmd-veille-report { line-height: 1.6; font-size: 14px; }
#vmd-veille-result { margin-top: 16px; }

/* ============ Mobile ============ */
@media (max-width: 600px) {
	.vmd-hero { flex-direction: column; text-align: center; }
	.vmd-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.vmd-profile-grid, .vmd-video-grid, .vmd-package-grid { grid-template-columns: repeat(2, 1fr); }
	.vmd-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* =====================================================================
 * Onglet "Mes fiches" — entête, barre de filtres, liste/grille
 * ===================================================================== */

.vmd-profiles-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.vmd-profiles-quota { flex: 1 1 220px; min-width: 0; }
.vmd-profiles-quota strong { display: block; color: var(--vmd-text) !important; font-size: 14px; margin-bottom: 6px; }
.vmd-profiles-quota .vmd-progress { width: 100%; max-width: 320px; margin: 0; }

/* Le gros bouton d'appel à l'action, à droite. */
.vmd-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--vmd-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	transition: transform .12s ease, filter .12s ease;
}
.vmd-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.vmd-cta-plus { font-size: 20px; line-height: 1; font-weight: 400; }
.vmd-cta-locked { opacity: .75; }

/* ---- Barre de filtrage ---- */
.vmd-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: var(--vmd-bg);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
}
.vmd-toolbar-search { flex: 1 1 200px; min-width: 0; }
.vmd-toolbar-search input { width: 100%; }
.vmd-toolbar input[type="search"],
.vmd-toolbar select {
	background: rgba(255,255,255,.06) !important;
	border: 1px solid rgba(255,255,255,.16) !important;
	color: var(--vmd-text) !important;
	border-radius: 8px !important;
	padding: 9px 12px !important;
	font-size: 13px;
}
.vmd-btn-sm { padding: 9px 16px; margin-top: 0; font-size: 13px; }
.vmd-toolbar-count { color: var(--vmd-text-muted) !important; font-size: 12px; margin-left: auto; }

.vmd-view-switch { display: flex; gap: 4px; }
.vmd-view-btn {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.16);
	color: var(--vmd-text-muted);
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.vmd-view-btn.is-active { background: var(--vmd-accent); border-color: transparent; color: #fff; }

/* ---- Liste (par défaut) ---- */
.vmd-profiles-list { display: flex; flex-direction: column; gap: 10px; }
.vmd-profile-row {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--vmd-bg);
	border-radius: 12px;
	padding: 12px 14px;
	border-left: 3px solid transparent;
}
.vmd-profile-row.vmd-status-publish { border-left-color: var(--vmd-green); }
.vmd-profile-row.vmd-status-pending { border-left-color: #e0a52f; }
.vmd-profile-row.vmd-status-draft   { border-left-color: var(--vmd-text-muted); }

.vmd-profile-row-thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255,255,255,.06);
	display: flex;
	align-items: center;
	justify-content: center;
}
.vmd-profile-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vmd-profile-row-noimg { color: var(--vmd-text-muted); font-size: 20px; }

.vmd-profile-row-main { flex: 1 1 auto; min-width: 0; }
.vmd-profile-row-title {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--vmd-text) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vmd-profile-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.vmd-profile-row-stats { display: flex; gap: 14px; font-size: 12px; color: var(--vmd-text-muted) !important; }

.vmd-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.vmd-badge-publish { background: rgba(47,191,113,.16); color: #2fbf71 !important; }
.vmd-badge-pending { background: rgba(224,165,47,.16); color: #e0a52f !important; }
.vmd-badge-draft   { background: rgba(255,255,255,.08); color: var(--vmd-text-muted) !important; }
.vmd-chip {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	color: var(--vmd-text-muted) !important;
}

.vmd-profile-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.vmd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: rgba(255,255,255,.06);
	color: var(--vmd-text) !important;
	text-decoration: none !important;
	font-size: 15px;
	line-height: 1;
	border: none;
	cursor: pointer;
}
.vmd-icon-btn:hover { background: var(--vmd-accent); color: #fff !important; }
.vmd-icon-btn.is-disabled { opacity: .3; cursor: not-allowed; }
.vmd-icon-btn.is-disabled:hover { background: rgba(255,255,255,.06); color: var(--vmd-text) !important; }

/* ---- Grille ---- */
.vmd-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}
.vmd-profiles-grid .vmd-profile-row {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	border-left: none;
	border-top: 3px solid transparent;
	padding: 16px;
}
.vmd-profiles-grid .vmd-profile-row.vmd-status-publish { border-top-color: var(--vmd-green); }
.vmd-profiles-grid .vmd-profile-row.vmd-status-pending { border-top-color: #e0a52f; }
.vmd-profiles-grid .vmd-profile-row.vmd-status-draft   { border-top-color: var(--vmd-text-muted); }
.vmd-profiles-grid .vmd-profile-row-thumb { width: 100%; height: 150px; border-radius: 10px; }
.vmd-profiles-grid .vmd-profile-row-meta,
.vmd-profiles-grid .vmd-profile-row-stats,
.vmd-profiles-grid .vmd-profile-row-actions { justify-content: center; }

/* ---- Pagination ---- */
.vmd-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.vmd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	background: var(--vmd-bg);
	color: var(--vmd-text-muted) !important;
	text-decoration: none !important;
	font-size: 13px;
}
.vmd-pagination .page-numbers.current { background: var(--vmd-accent); color: #fff !important; font-weight: 700; }

/* ---- Formulaire de fiche ---- */
.vmd-form-card { display: none; }
.vmd-form-card.is-open { display: block; }
.vmd-field { margin-bottom: 18px; }
.vmd-label { display: block; font-size: 13px; font-weight: 600; color: var(--vmd-text) !important; margin-bottom: 6px; }
.vmd-profile-form input[type="text"],
.vmd-profile-form textarea {
	width: 100%;
	background: rgba(255,255,255,.06) !important;
	border: 1px solid rgba(255,255,255,.16) !important;
	color: var(--vmd-text) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
}
.vmd-profile-form input[type="file"] { color: var(--vmd-text-muted); font-size: 13px; }

.vmd-type-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.vmd-type-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 10px;
	padding: 10px 18px;
	cursor: pointer;
	font-size: 14px;
	color: var(--vmd-text) !important;
}
.vmd-type-option:has(input:checked) { border-color: var(--vmd-accent); background: rgba(255,255,255,.1); }

.vmd-term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 190px;
	overflow-y: auto;
	padding: 10px;
	background: rgba(255,255,255,.04);
	border-radius: 10px;
}
.vmd-term {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--vmd-text) !important;
	background: rgba(255,255,255,.06);
	border-radius: 999px;
	padding: 5px 12px;
	cursor: pointer;
}
.vmd-term:has(input:checked) { background: var(--vmd-accent); color: #fff !important; }

.vmd-current-image { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vmd-current-image img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.vmd-current-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.vmd-gallery-item { display: block; text-align: center; font-size: 11px; color: var(--vmd-text-muted) !important; }
.vmd-gallery-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.vmd-gallery-remove { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

.vmd-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.vmd-btn-ghost {
	color: var(--vmd-text-muted) !important;
	text-decoration: none !important;
	font-size: 13px;
}
.vmd-btn-ghost:hover { color: var(--vmd-text) !important; }

@media (max-width: 640px) {
	.vmd-cta { width: 100%; justify-content: center; }
	.vmd-profile-row { flex-wrap: wrap; }
	.vmd-profile-row-actions { width: 100%; justify-content: flex-end; }
	.vmd-toolbar-count { width: 100%; margin-left: 0; }
}

/* =====================================================================
 * Correctifs de lisibilité et nouveaux composants (v2.4)
 * ===================================================================== */

/* Le thème colore les liens en rouge : sur le fond doré du bouton
 * d'appel à l'action, le texte devenait presque illisible. */
.vmd-cta,
.vmd-cta:hover,
.vmd-cta:focus,
.vmd-cta:visited,
.vmd-cta span {
	color: #14161c !important;
	text-shadow: none;
}
.vmd-cta { font-weight: 800; }

/* Listes déroulantes : les options d'un <select> natif sont rendues par
 * le système, qui les affichait en blanc sur blanc. `color-scheme: dark`
 * fait basculer tout le menu en thème sombre ; les règles sur <option>
 * couvrent les navigateurs qui ne l'appliquent pas. */
.vmd-toolbar select,
.vmd-shell-content select,
.vmd-profile-form select {
	color-scheme: dark;
}
.vmd-toolbar select option,
.vmd-shell-content select option,
.vmd-profile-form select option {
	background-color: #1b1e26;
	color: #f2f3f5;
}

/* Bouton "modifier" quand le quota de modifications est épuisé. */
.vmd-icon-btn-locked { opacity: .45; }
.vmd-icon-btn-locked:hover { background: rgba(255,255,255,.06); color: var(--vmd-text) !important; }

.vmd-quota-detail {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--vmd-text-muted) !important;
}

/* ---- Générateur de biographie ---- */
.vmd-ai-panel { margin-bottom: 10px; }
.vmd-ai-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
	border: 1px solid rgba(255,255,255,.18);
	color: var(--vmd-text);
	border-radius: 10px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.vmd-ai-toggle:hover { border-color: var(--vmd-accent); }
.vmd-ai-count {
	font-size: 11px;
	font-weight: 700;
	background: rgba(255,255,255,.12);
	border-radius: 999px;
	padding: 2px 8px;
}
.vmd-ai-note {
	font-size: 13px;
	color: var(--vmd-text-muted) !important;
	background: rgba(255,255,255,.04);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0;
}
.vmd-ai-box {
	margin-top: 10px;
	padding: 14px;
	border-radius: 12px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.1);
}
.vmd-ai-box textarea {
	width: 100%;
	background: rgba(255,255,255,.06) !important;
	border: 1px solid rgba(255,255,255,.16) !important;
	color: var(--vmd-text) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
}
.vmd-ai-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.vmd-ai-status { font-size: 13px; margin: 8px 0 0; color: var(--vmd-text-muted) !important; }
.vmd-ai-status.is-error { color: #ff6b6b !important; }

/* ---- Éditeur visuel dans le formulaire ---- */
.vmd-bio-field .wp-editor-wrap { width: 100%; }
.vmd-bio-field .wp-editor-container {
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 8px;
	overflow: hidden;
}
.vmd-bio-field textarea.wp-editor-area {
	width: 100% !important;
	min-height: 320px;
	background: rgba(255,255,255,.06) !important;
	color: var(--vmd-text) !important;
	border: none !important;
	padding: 12px !important;
	font-family: inherit;
}
.vmd-bio-field .wp-switch-editor {
	background: rgba(255,255,255,.08);
	color: var(--vmd-text-muted);
	border-color: rgba(255,255,255,.16);
}
.vmd-bio-field .wp-switch-editor.switch-tmce[aria-pressed="true"],
.vmd-bio-field .wp-switch-editor.switch-html[aria-pressed="true"] { background: var(--vmd-bg); color: var(--vmd-text); }
.vmd-bio-field .quicktags-toolbar { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.vmd-bio-field .quicktags-toolbar input[type="button"] {
	background: rgba(255,255,255,.1);
	color: var(--vmd-text);
	border-color: rgba(255,255,255,.18);
	text-shadow: none;
}

.vmd-captcha { margin-top: 4px; }

/* Compteur de modifications restantes (quota global au compte). */
.vmd-quota-edits { font-weight: 600; }
.vmd-quota-edits.is-empty { color: #e0a52f !important; }

/* État vide de la liste des fiches : message + sortie de secours. */
.vmd-profiles .vmd-empty { text-align: center; padding: 34px 20px; }
.vmd-profiles .vmd-empty p { margin: 0 0 8px; }
.vmd-profiles .vmd-empty .vmd-btn { display: inline-block; margin-top: 10px; }

/* ---- Barre de filtres des vidéos : taxonomies repliables ---- */
.vmd-toolbar-taxonomies { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.vmd-term-filter {
	flex: 1 1 240px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 10px;
	padding: 8px 12px;
}
.vmd-term-filter > summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--vmd-text) !important;
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}
.vmd-term-filter > summary::-webkit-details-marker { display: none; }
.vmd-term-filter > summary::before { content: "▸"; transition: transform .15s ease; }
.vmd-term-filter[open] > summary::before { transform: rotate(90deg); }
.vmd-term-filter .vmd-term-list { margin-top: 10px; max-height: 210px; }

/* Note moyenne YASR dans les statistiques. */
.vmd-rating { color: #e0a52f !important; letter-spacing: .5px; }

/* ---- Onglets de langue (qTranslate-XT) ---- */
.vmd-lang-nav { display: flex; gap: 4px; margin-bottom: 8px; }
.vmd-lang-btn {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.16);
	color: var(--vmd-text-muted);
	border-radius: 8px 8px 0 0;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}
.vmd-lang-btn.is-active { background: var(--vmd-accent); border-color: transparent; color: #fff; }
.vmd-lang-pane[hidden] { display: none; }

/* ---- Segments de termes ---- */
.vmd-segment .vmd-term-list { max-height: 160px; }

/* Note moyenne absente. */
.vmd-rating.is-empty { color: var(--vmd-text-muted) !important; }
.vmd-rating small { opacity: .75; }

/* ---- Sélecteurs filtrables (artistes, chaînes, playlists) ---- */
.vmd-picker-search {
	width: 100%;
	margin-bottom: 8px;
	background: rgba(255,255,255,.06) !important;
	border: 1px solid rgba(255,255,255,.16) !important;
	color: var(--vmd-text) !important;
	border-radius: 8px !important;
	padding: 9px 12px !important;
	font-size: 13px;
}
.vmd-picker-list { max-height: 220px; }
.vmd-picker-count {
	display: inline-block;
	min-width: 20px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	background: var(--vmd-accent);
	color: #fff;
	border-radius: 999px;
	padding: 1px 7px;
	margin-left: 6px;
}
.vmd-picker-count:empty { display: none; }
.vmd-video-only[hidden] { display: none; }
.vmd-video-only-note { margin-bottom: 10px; }

/* ---- Pastille de réaction sur les pages de consultation ---- */
.vmd-reaction {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
}
.vmd-reaction-like { background: rgba(47,191,113,.18); }
.vmd-reaction-dislike { background: rgba(255,107,107,.18); }

/* =====================================================================
 * Adhésion et Forfaits — lisibilité
 * Le thème colore les titres et les entêtes de tableau pour un fond
 * clair : dans notre interface sombre, « Order history » ressortait en
 * noir sur noir et l'entête du tableau en blanc sur blanc. On impose
 * nos couleurs plutôt que de compter sur l'héritage.
 * ===================================================================== */
.vmd-shell-content h1,
.vmd-shell-content h2,
.vmd-shell-content h3,
.vmd-shell-content h4,
.vmd-wrap h3,
.vmd-card h3 {
	color: var(--vmd-text) !important;
}

.vmd-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	background: transparent !important;
}
.vmd-table thead th {
	background: rgba(255,255,255,.07) !important;
	color: var(--vmd-text) !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-align: left;
	padding: 11px 14px;
	border: none !important;
}
.vmd-table tbody td {
	background: var(--vmd-bg) !important;
	color: var(--vmd-text) !important;
	padding: 11px 14px;
	border: none !important;
	border-top: 1px solid rgba(255,255,255,.06) !important;
	font-size: 13px;
}
.vmd-table tbody tr:hover td { background: rgba(255,255,255,.05) !important; }
.vmd-table thead th:first-child { border-radius: 10px 0 0 0; }
.vmd-table thead th:last-child { border-radius: 0 10px 0 0; }

/* ---- Cartes de forfaits ---- */
.vmd-package-card {
	position: relative;
	background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 16px;
	padding: 24px 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
/* Liseré coloré : une teinte différente par carte, pour distinguer les
   forfaits d'un coup d'œil sans avoir à les configurer un par un. */
.vmd-package-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--vmd-accent);
}
.vmd-package-card:nth-child(3n+2)::before { background: #2fbf71; }
.vmd-package-card:nth-child(3n+3)::before { background: #e0a52f; }
.vmd-package-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255,255,255,.3);
	box-shadow: 0 14px 32px rgba(0,0,0,.35);
}
.vmd-package-card h3 { margin: 4px 0 0; font-size: 19px; }
.vmd-package-price {
	font-size: 26px;
	font-weight: 800;
	color: var(--vmd-text) !important;
	line-height: 1.1;
}
.vmd-package-price del { opacity: .5; font-size: 17px; font-weight: 600; }
.vmd-package-desc { color: var(--vmd-text-muted) !important; font-size: 13px; flex: 1 1 auto; }
.vmd-package-card .vmd-btn { width: 100%; text-align: center; margin-top: 6px; }

/* ---- Lecteur de playlist ---- */
body.vmd-player-open { overflow: hidden; }
.vmd-player {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,.82);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.vmd-player[hidden] { display: none; }
.vmd-player-box {
	width: min(1100px, 100%);
	max-height: 92vh;
	background: var(--vmd-panel, #1b1e26);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.vmd-player-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.vmd-player-head h3 { margin: 0; font-size: 16px; color: var(--vmd-text) !important; }
.vmd-player-body { display: flex; flex: 1 1 auto; min-height: 0; }
.vmd-player-stage { flex: 1 1 auto; background: #000; display: flex; align-items: center; }
.vmd-player-frame { position: relative; width: 100%; padding-top: 56.25%; }
.vmd-player-frame iframe,
.vmd-player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vmd-player-list {
	width: 280px;
	flex: 0 0 280px;
	margin: 0;
	padding: 8px;
	list-style: none;
	overflow-y: auto;
	border-left: 1px solid rgba(255,255,255,.1);
	counter-reset: piste;
}
.vmd-player-list li {
	counter-increment: piste;
	padding: 9px 12px 9px 34px;
	position: relative;
	font-size: 13px;
	color: var(--vmd-text-muted) !important;
	border-radius: 8px;
	cursor: pointer;
}
.vmd-player-list li::before {
	content: counter( piste );
	position: absolute;
	left: 10px;
	opacity: .55;
	font-size: 11px;
}
.vmd-player-list li:hover { background: rgba(255,255,255,.06); }
.vmd-player-list li.is-current { background: var(--vmd-accent); color: #fff !important; }
.vmd-player-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px;
	border-top: 1px solid rgba(255,255,255,.1);
}
.vmd-player-pos { font-size: 12px; color: var(--vmd-text-muted) !important; }
@media (max-width: 860px) {
	.vmd-player-body { flex-direction: column; }
	.vmd-player-list { width: 100%; flex: 0 0 auto; max-height: 30vh; border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
}

/* ---- Veille web ---- */
.vmd-veille-actions { display: flex; gap: 8px; align-items: center; }
.vmd-veille-result { margin-top: 18px; }
.vmd-veille-text {
	margin-top: 12px;
	background: var(--vmd-bg);
	border-radius: 12px;
	padding: 18px 20px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--vmd-text) !important;
	max-height: 460px;
	overflow-y: auto;
}
.vmd-play-btn { background: rgba(47,191,113,.2) !important; }
.vmd-play-btn:hover { background: var(--vmd-green, #2fbf71) !important; }

/* Bouton de lecture aléatoire du lecteur. */
.vmd-player-foot .vmd-icon-btn.is-active { background: var(--vmd-accent); color: #fff !important; }

/* ---- Onglet Avis : détail des critères YASR ---- */
.vmd-criteria { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.vmd-criterion { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.vmd-criterion-label { flex: 0 0 110px; color: var(--vmd-text-muted) !important; }
.vmd-criterion-bar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; max-width: 260px; }
.vmd-criterion-bar > span { display: block; height: 100%; background: #e0a52f; border-radius: 999px; }
.vmd-criterion-value { flex: 0 0 54px; text-align: right; color: var(--vmd-text) !important; font-weight: 600; }
.vmd-criterion-total { margin-top: 3px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.vmd-criterion-total .vmd-criterion-bar > span { background: var(--vmd-accent); }
.vmd-criterion-value small { font-weight: 400; opacity: .7; }

/* =====================================================================
 * Tableaux WooCommerce (Adhésion, Commandes, Téléchargements)
 * L'entête restait en blanc sur blanc : mes règles précédentes ne
 * visaient que .vmd-table, alors que WooCommerce rend ses propres
 * classes (woocommerce-orders-table, shop_table…). On les couvre toutes,
 * y compris les cellules dites « responsive » qui répètent l'intitulé
 * de colonne via ::before sur mobile.
 * ===================================================================== */
.vmd-shell-content table,
.vmd-shell-content .shop_table,
.vmd-shell-content .woocommerce-orders-table,
.vmd-shell-content .woocommerce-table {
	width: 100% !important;
	border-collapse: collapse !important;
	background: transparent !important;
	border: none !important;
	color: var(--vmd-text) !important;
}
.vmd-shell-content table thead,
.vmd-shell-content table thead tr,
.vmd-shell-content table th,
.vmd-shell-content .shop_table thead th,
.vmd-shell-content .woocommerce-orders-table__header {
	background: rgba(255,255,255,.08) !important;
	background-image: none !important;
	color: var(--vmd-text) !important;
	border: none !important;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 12px 14px !important;
}
.vmd-shell-content table th a,
.vmd-shell-content table th span { color: var(--vmd-text) !important; }
.vmd-shell-content table td,
.vmd-shell-content .shop_table td,
.vmd-shell-content .woocommerce-orders-table__cell {
	background: var(--vmd-bg) !important;
	color: var(--vmd-text) !important;
	border: none !important;
	border-top: 1px solid rgba(255,255,255,.07) !important;
	padding: 12px 14px !important;
	font-size: 13px;
}
.vmd-shell-content table td a { color: var(--vmd-accent) !important; }
.vmd-shell-content table td::before { color: var(--vmd-text-muted) !important; }
.vmd-shell-content table tbody tr:hover td { background: rgba(255,255,255,.05) !important; }
.vmd-shell-content .woocommerce-orders-table__cell .button,
.vmd-shell-content table .button {
	background: var(--vmd-accent) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 7px 14px !important;
	font-size: 12px;
	border: none !important;
}

/* Description complète des forfaits : les paragraphes respirent et le
   texte n'est plus tronqué. */
.vmd-package-desc { max-height: none; overflow: visible; }
.vmd-package-desc p { margin: 0 0 10px; }
.vmd-package-desc p:last-child { margin-bottom: 0; }
.vmd-package-desc ul,
.vmd-package-desc ol { margin: 0 0 10px; padding-left: 20px; }
.vmd-package-desc li { margin-bottom: 5px; }
.vmd-packages-grid { align-items: stretch; }

/* Pied du lecteur : boutons en icônes, plus de débordement. */
.vmd-player-foot { flex-wrap: wrap; }
.vmd-player-foot .vmd-icon-btn { width: 38px; height: 38px; font-size: 13px; }
.vmd-player-list li { word-break: break-word; }

/* ---- Vérification d'identité ---- */
.vmd-identity .vmd-picker-list { max-height: 200px; }
.vmd-identity input[type="file"] {
	width: 100%;
	background: rgba(255,255,255,.04);
	border: 1px dashed rgba(255,255,255,.2);
	border-radius: 10px;
	padding: 12px;
	color: var(--vmd-text-muted);
	font-size: 13px;
}
.vmd-identity .vmd-label em { font-weight: 400; font-style: normal; }

/* Message affiché quand une vidéo refuse l'intégration. */
.vmd-player-note {
	position: absolute;
	inset: auto 0 12% 0;
	text-align: center;
	color: #fff;
	background: rgba(0,0,0,.7);
	padding: 10px 16px;
	margin: 0;
	font-size: 13px;
}
.vmd-player-frame > div,
.vmd-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
