:root {
	--mhsc-navy: #0d2c54;
	--mhsc-orange: #f57c20;
	--mhsc-gray: #9ca3af;
	--mhsc-bg: #f4f5f7;
	--mhsc-border: #dde1e6;
	--mhsc-green: #1f9d55;
	--mhsc-red: #d64545;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--mhsc-bg);
	color: #1f2530;
}

button, select, input {
	font-family: inherit;
}

/* Login page */
.mhsc-login-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(160deg, var(--mhsc-navy) 0%, #143a6c 45%, var(--mhsc-bg) 45%);
}

.mhsc-login-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(13, 44, 84, 0.25);
	padding: 34px 28px;
	width: 100%;
	max-width: 360px;
	text-align: center;
	border-top: 4px solid var(--mhsc-orange);
}

.mhsc-login-logo {
	height: 70px;
	width: auto;
	margin-bottom: 12px;
}

.mhsc-login-box h1 {
	font-size: 1.15rem;
	color: var(--mhsc-navy);
	margin: 0 0 18px;
}

.mhsc-login-box input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mhsc-border);
	border-radius: 6px;
	font-size: 1rem;
	margin-bottom: 12px;
}

.mhsc-login-box button {
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-radius: 6px;
	background: var(--mhsc-orange);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.mhsc-login-box button:hover {
	background: #e06c14;
	transform: translateY(-1px);
}

.mhsc-login-error {
	color: var(--mhsc-red);
	font-size: 0.9rem;
	margin: 0 0 12px;
}

/* Bandeau superieur */
.mhsc-topbar {
	background: linear-gradient(120deg, var(--mhsc-navy) 0%, #143a6c 100%);
	box-shadow: 0 2px 12px rgba(13, 44, 84, 0.28);
	position: sticky;
	top: 0;
	z-index: 10;
}

.mhsc-topbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.mhsc-scouting-logo {
	height: 48px;
	width: auto;
	background: #fff;
	border-radius: 8px;
	padding: 4px 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mhsc-topbar-inner h2 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.2px;
	flex: 1;
}

.mhsc-logout {
	color: #fff;
	text-decoration: none;
	font-size: 0.88rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 7px 14px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.mhsc-logout:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #fff;
}

/* App shell */
.mhsc-scouting-app {
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 16px 60px;
}

.mhsc-scouting-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid var(--mhsc-border);
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba(13, 44, 84, 0.06);
}

.mhsc-scouting-toolbar .mhsc-btn-secondary,
.mhsc-scouting-toolbar .mhsc-btn-add,
.mhsc-scouting-toolbar .mhsc-position-filter-btn {
	padding: 8px 12px;
	font-size: 0.88rem;
}

.mhsc-scouting-toolbar .mhsc-filters select {
	padding: 8px 10px;
	font-size: 0.88rem;
}

.mhsc-search {
	flex: 1 1 170px;
	min-width: 120px;
	padding: 8px 10px;
	border: 1px solid var(--mhsc-border);
	border-radius: 6px;
	font-size: 0.88rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mhsc-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mhsc-filters select {
	padding: 8px 10px;
	border: 1px solid var(--mhsc-border);
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mhsc-search:focus,
.mhsc-filters select:focus,
.mhsc-field input:focus,
.mhsc-field select:focus,
.mhsc-field textarea:focus {
	outline: none;
	border-color: var(--mhsc-orange);
	box-shadow: 0 0 0 3px rgba(245, 124, 32, 0.15);
}

.mhsc-btn-add,
.mhsc-btn-primary {
	background: var(--mhsc-orange);
	border: 1px solid var(--mhsc-orange);
	color: #fff;
	white-space: nowrap;
	padding: 9px 18px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mhsc-btn-add:hover,
.mhsc-btn-primary:hover {
	background: #e06c14;
	box-shadow: 0 3px 10px rgba(245, 124, 32, 0.35);
	transform: translateY(-1px);
}

.mhsc-btn-secondary {
	background: #fff;
	border: 1px solid var(--mhsc-border);
	color: #1f2530;
	padding: 9px 14px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.mhsc-btn-secondary:hover {
	border-color: var(--mhsc-navy);
	color: var(--mhsc-navy);
}

.mhsc-table-wrapper {
	overflow-x: auto;
	border: 1px solid var(--mhsc-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(13, 44, 84, 0.06);
}

.mhsc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	min-width: 900px;
}

.mhsc-table thead th {
	background: var(--mhsc-navy);
	color: #fff;
	text-align: left;
	padding: 10px 12px;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.mhsc-table thead th:hover {
	background: #143a6c;
}

.mhsc-table thead th.mhsc-sorted-asc::after {
	content: " \25B2";
}

.mhsc-table thead th.mhsc-sorted-desc::after {
	content: " \25BC";
}

.mhsc-table tbody td {
	padding: 10px 12px;
	border-top: 1px solid var(--mhsc-border);
	vertical-align: middle;
}

.mhsc-table tbody tr:nth-child(even) {
	background: #fafbfc;
}

.mhsc-table tbody tr:hover {
	background: #fdf3ea;
}

.mhsc-table a.mhsc-tm-link {
	color: var(--mhsc-navy);
	text-decoration: underline;
}

.mhsc-nom-clickable {
	cursor: pointer;
	font-weight: 600;
	color: var(--mhsc-navy);
	transition: color 0.15s ease;
}

.mhsc-nom-clickable:hover {
	color: var(--mhsc-orange);
	text-decoration: underline;
}

/* Ligne resumee, uniquement utilisee sur mobile (voir media query plus bas) : masquee
   sur ordinateur/tablette pour ne pas decaler les colonnes du vrai tableau. */
.mhsc-mobile-subtitle {
	display: none;
}

.mhsc-status-select {
	padding: 5px 8px;
	border-radius: 14px;
	border: 1px solid var(--mhsc-border);
	font-size: 0.85rem;
	font-weight: 600;
}

.mhsc-status-select.view-a_voir { background: #eef0f2; color: #4b5563; }
.mhsc-status-select.view-vu { background: #dbeafe; color: #1d4ed8; }

.mhsc-status-select.decision-en_cours { background: #fef0e0; color: #b3590c; }
.mhsc-status-select.decision-valide { background: #e1f5e6; color: var(--mhsc-green); }
.mhsc-status-select.decision-refuse { background: #fef9c3; color: #92720c; }

.mhsc-row-actions {
	display: flex;
	gap: 6px;
	white-space: nowrap;
}

.mhsc-row-actions button {
	border: 1px solid var(--mhsc-border);
	background: #fff;
	border-radius: 5px;
	padding: 5px 9px;
	cursor: pointer;
	font-size: 0.85rem;
}

.mhsc-row-actions button:hover {
	border-color: var(--mhsc-navy);
	color: var(--mhsc-navy);
}

.mhsc-row-actions button.mhsc-delete:hover {
	border-color: var(--mhsc-red);
	color: var(--mhsc-red);
}

.mhsc-empty {
	padding: 24px;
	text-align: center;
	color: #6b7280;
}

/* Modal */
.mhsc-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(13, 44, 84, 0.55);
	z-index: 1000;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 12px;
	overflow-y: auto;
}

.mhsc-modal.mhsc-open {
	display: flex;
}

.mhsc-modal-content {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	width: 100%;
	max-width: 640px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	border-top: 4px solid var(--mhsc-orange);
}

.mhsc-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

#mhsc-modal-title {
	margin-top: 0;
	color: var(--mhsc-navy);
}

.mhsc-hint {
	font-size: 0.82rem;
	color: #6b7280;
	min-height: 1.2em;
	margin: 6px 0 0;
}

.mhsc-hint.mhsc-hint-error {
	color: var(--mhsc-red);
}

.mhsc-hint.mhsc-hint-ok {
	color: var(--mhsc-green);
}

.mhsc-field {
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mhsc-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
}

.mhsc-field input,
.mhsc-field select,
.mhsc-field textarea {
	padding: 8px 10px;
	border: 1px solid var(--mhsc-border);
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
}

.mhsc-field textarea {
	resize: vertical;
}

.mhsc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}

.mhsc-form-error {
	color: var(--mhsc-red);
	font-size: 0.88rem;
	min-height: 1.2em;
}

.mhsc-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 10px;
}

/* Filtre multi-postes */
.mhsc-position-filter {
	position: relative;
}

.mhsc-position-filter-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	z-index: 30;
	background: #fff;
	border: 1px solid var(--mhsc-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(13, 44, 84, 0.18);
	padding: 12px;
	min-width: 300px;
	max-width: 90vw;
}

.mhsc-position-filter.mhsc-open .mhsc-position-filter-panel {
	display: block;
}

.mhsc-position-filter-panel .mhsc-checkbox-grid {
	max-height: 260px;
	overflow-y: auto;
	margin-bottom: 10px;
}

.mhsc-position-filter-clear {
	width: 100%;
}

/* Barre de suppression groupee */
.mhsc-bulk-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #fef0e0;
	border: 1px solid #f4c98d;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-weight: 600;
	color: #b3590c;
}

.mhsc-bulk-delete-btn {
	background: var(--mhsc-red) !important;
	border-color: var(--mhsc-red) !important;
	color: #fff !important;
}

.mhsc-th-select,
.mhsc-td-select {
	width: 36px;
	text-align: center;
}

.mhsc-td-select input,
.mhsc-th-select input {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* Responsive: cards on small screens */
@media (max-width: 780px) {
	html {
		overflow-x: hidden;
		width: 100%;
		overscroll-behavior-x: none;
	}

	body {
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
		position: relative;
		overscroll-behavior-x: none;
		touch-action: pan-y;
	}

	.mhsc-scouting-app {
		padding: 14px 10px 40px;
	}

	/* Bandeau */
	.mhsc-topbar-inner {
		padding: 10px 12px;
		gap: 10px;
	}

	.mhsc-topbar-inner h2 {
		font-size: 1rem;
		line-height: 1.25;
	}

	.mhsc-scouting-logo {
		height: 36px;
	}

	.mhsc-logout {
		padding: 6px 10px;
		font-size: 0.78rem;
	}

	/* Onglets pleine largeur, cibles plus grandes */
	.mhsc-tabs {
		display: flex;
	}

	.mhsc-tab-btn {
		flex: 1;
		text-align: center;
		padding: 12px 8px;
	}

	/* Barre d'outils : un controle par ligne, pleine largeur, mais compacte */
	.mhsc-scouting-toolbar {
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
		gap: 6px;
	}

	.mhsc-scouting-toolbar > * {
		width: 100%;
	}

	.mhsc-filters {
		flex-direction: column;
		width: 100%;
		gap: 6px;
	}

	.mhsc-filters select,
	.mhsc-position-filter,
	.mhsc-position-filter-btn {
		width: 100%;
	}

	.mhsc-search,
	.mhsc-filters select,
	.mhsc-btn-secondary,
	.mhsc-btn-add,
	.mhsc-btn-primary {
		padding: 9px 12px;
		font-size: 0.88rem;
	}

	/* La regle desktop "flex: 1 1 170px" visait une LARGEUR ; en colonne sur mobile,
	   ce 170px s'applique a la hauteur (axe principal) et rend le champ enorme.
	   On la neutralise et on fixe une hauteur normale. */
	.mhsc-search {
		flex: 0 0 auto;
		height: 40px;
		padding: 0 12px;
		-webkit-appearance: none;
		appearance: none;
		box-sizing: border-box;
	}

	/* Le panneau de filtre postes devient une feuille ancree en bas de l'ecran */
	.mhsc-position-filter-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		margin: 0;
		min-width: 0;
		width: 100%;
		max-width: 100%;
		max-height: 75vh;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
		z-index: 200;
	}

	.mhsc-position-filter-panel .mhsc-checkbox-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		max-height: 50vh;
	}

	.mhsc-bulk-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.mhsc-bulk-delete-btn {
		width: 100%;
	}

	/* Tableau -> fiches empilees : le defilement horizontal du cadre (prevu pour le
	   vrai tableau desktop) est desactive, tout doit tenir dans la largeur de l'ecran. */
	.mhsc-table-wrapper {
		overflow-x: hidden;
	}

	.mhsc-table {
		min-width: 0;
		width: 100%;
		table-layout: fixed;
	}

	.mhsc-table thead {
		display: none;
	}

	/* Carte joueur compacte : nom, sous-titre resume, puis statuts + actions sur une
	   seule ligne — plutot qu'une ligne par information. */
	.mhsc-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		row-gap: 3px;
		column-gap: 8px;
		position: relative;
		border-top: 1px solid var(--mhsc-border);
		padding: 9px 38px 9px 12px;
	}

	.mhsc-table tbody tr:nth-child(even) {
		background: #fff;
	}

	.mhsc-table tbody tr:first-child {
		border-top: none;
	}

	.mhsc-table tbody td {
		padding: 0;
		border-top: none;
	}

	/* Nom : pleine largeur, en gras, sans etiquette */
	.mhsc-table tbody td[data-label="Joueur"] {
		flex: 1 1 100%;
		font-weight: 700;
		font-size: 0.95rem;
		color: var(--mhsc-navy);
		text-align: left;
	}

	/* Sous-titre resume (poste - pied - age - club), une seule ligne discrete */
	.mhsc-mobile-subtitle {
		display: block;
		flex: 1 1 100%;
		font-size: 0.76rem;
		color: #6b7280;
		text-align: left;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Colonnes detaillees masquees sur mobile (deja resumees ci-dessus) */
	.mhsc-table tbody td[data-label="Poste"],
	.mhsc-table tbody td[data-label="Pied"],
	.mhsc-table tbody td[data-label="Age"],
	.mhsc-table tbody td[data-label="Club"] {
		display: none;
	}

	/* Statuts + actions : une seule ligne compacte, sans etiquette */
	.mhsc-table tbody td[data-label="Visionnage"],
	.mhsc-table tbody td[data-label="Decision"] {
		flex: 0 0 auto;
		margin-top: 2px;
	}

	.mhsc-table tbody td[data-label="Actions"] {
		flex: 1 1 auto;
		margin-top: 2px;
		display: flex;
		justify-content: flex-end;
	}

	/* Case a cocher de selection : coin superieur droit de la fiche */
	.mhsc-table tbody td.mhsc-td-select {
		position: absolute;
		top: 10px;
		right: 8px;
		width: auto;
	}

	.mhsc-td-select input {
		width: 20px;
		height: 20px;
	}

	/* Statuts et actions : compacts mais toujours faciles a toucher */
	.mhsc-status-select {
		font-size: 0.76rem;
		padding: 4px 8px;
	}

	.mhsc-row-actions {
		gap: 6px;
	}

	.mhsc-row-actions button {
		min-width: 32px;
		min-height: 32px;
		font-size: 0.85rem;
		padding: 4px;
	}

	/* Formulaires / modales */
	.mhsc-modal {
		padding: 0;
		align-items: flex-end;
	}

	.mhsc-modal-content {
		padding: 8px 16px 20px;
		border-radius: 16px 16px 0 0;
		max-width: 100%;
		max-height: 92vh;
		overflow-y: auto;
	}

	/* Toujours accessible pendant le defilement, meme sur une fiche longue :
	   un bouton de fermeture "colle" en haut de la zone qui defile. */
	.mhsc-modal-close {
		position: sticky;
		top: 0;
		display: block;
		margin: 0 0 6px auto;
		width: 34px;
		height: 34px;
		line-height: 32px;
		text-align: center;
		background: rgba(255, 255, 255, 0.95);
		border-radius: 50%;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
		z-index: 20;
		color: var(--mhsc-navy);
	}

	.mhsc-grid {
		grid-template-columns: 1fr;
	}

	.mhsc-checkbox-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.mhsc-form-actions {
		flex-direction: column-reverse;
	}

	.mhsc-form-actions button {
		width: 100%;
	}

	/* Fiche joueur */
	.mhsc-view-grid {
		grid-template-columns: 1fr;
	}

	.mhsc-view-header h2 {
		font-size: 1.3rem;
	}

	.mhsc-view-badges {
		flex-direction: column;
	}

	.mhsc-view-badges select {
		width: 100%;
	}

	/* Scouts */
	.mhsc-scout-pills {
		gap: 6px;
	}

	.mhsc-scout-pill {
		flex: 1 1 calc(50% - 6px);
		text-align: center;
	}
}

/* Onglets */
.mhsc-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--mhsc-border);
}

.mhsc-tab-btn {
	background: none;
	border: none;
	padding: 10px 18px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.mhsc-tab-btn:hover {
	color: var(--mhsc-navy);
}

.mhsc-tab-btn.mhsc-tab-active {
	color: var(--mhsc-navy);
	border-bottom-color: var(--mhsc-orange);
}

/* Onglet Scouts */
.mhsc-scout-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.mhsc-scout-pill {
	background: #fff;
	border: 1px solid var(--mhsc-border);
	color: var(--mhsc-navy);
	padding: 9px 18px;
	border-radius: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.mhsc-scout-pill:hover {
	border-color: var(--mhsc-navy);
}

.mhsc-scout-pill-active {
	background: var(--mhsc-navy);
	border-color: var(--mhsc-navy);
	color: #fff;
}

/* Grille de cases a cocher (postes secondaires, scouts) */
.mhsc-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 6px 10px;
	padding: 10px;
	background: var(--mhsc-bg);
	border: 1px solid var(--mhsc-border);
	border-radius: 6px;
}

.mhsc-checkbox-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 400;
	color: #374151;
	cursor: pointer;
}

.mhsc-checkbox-item input {
	width: auto;
	margin: 0;
}

/* Fiche joueur (vue) */
.mhsc-view-content {
	max-width: 760px;
}

/* Carte joueur type "collection" */
.mhsc-player-card {
	max-width: 300px;
	margin: 0 auto 22px;
	padding: 5px;
	border-radius: 20px;
	background: linear-gradient(135deg, #c9962f 0%, #f5dc8e 30%, #b8842a 55%, #f5dc8e 80%, #c9962f 100%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mhsc-pc-inner {
	position: relative;
	border-radius: 16px;
	padding: 20px 18px 16px;
	background: radial-gradient(circle at 50% 30%, #1a2c54 0%, #0c1730 75%);
	color: #fff;
	text-align: center;
	overflow: hidden;
}

.mhsc-pc-decision-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1rem;
	color: #fff;
	border: 2px solid #e6c473;
}

.mhsc-pc-decision-en_cours {
	background: var(--mhsc-orange);
}

.mhsc-pc-decision-valide {
	background: var(--mhsc-green);
}

.mhsc-pc-decision-refuse {
	background: #eab308;
	color: #3f2f00;
}

.mhsc-pc-flag {
	position: absolute;
	top: 12px;
	right: 12px;
	min-width: 40px;
	height: 28px;
	padding: 0 4px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(230, 196, 115, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	line-height: 1;
}

.mhsc-pc-monogram {
	width: 110px;
	height: 110px;
	margin: 30px auto 12px;
	border-radius: 50%;
	border: 2px solid #e6c473;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: radial-gradient(circle, rgba(230, 196, 115, 0.18) 0%, rgba(230, 196, 115, 0) 70%);
}

.mhsc-pc-monogram::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	border: 1px solid rgba(230, 196, 115, 0.5);
}

.mhsc-pc-monogram span {
	font-size: 2.4rem;
	font-weight: 800;
	color: #f0d78c;
	letter-spacing: 1px;
}

.mhsc-pc-position {
	display: inline-block;
	margin: 4px auto 14px;
	padding: 5px 16px;
	border: 1px solid #e6c473;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #f0d78c;
}

.mhsc-pc-firstname {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 3px;
	color: #cfd6e6;
}

.mhsc-pc-lastname {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: 1px;
	color: #f5f2e8;
	margin-bottom: 16px;
}

.mhsc-pc-stats {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 6px;
	padding-top: 12px;
	border-top: 1px solid rgba(230, 196, 115, 0.35);
}

.mhsc-pc-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
	padding: 0 8px;
	border-right: 1px solid rgba(230, 196, 115, 0.3);
}

.mhsc-pc-stat:last-child {
	border-right: none;
}

.mhsc-pc-stat-label {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #9aa5c0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mhsc-pc-stat-value {
	font-size: 0.82rem;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mhsc-pc-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px solid rgba(230, 196, 115, 0.25);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #8b93ab;
}

.mhsc-pc-footer span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mhsc-pc-footer-mid {
	color: #e6c473;
	font-weight: 700;
}

.mhsc-view-header {
	text-align: center;
	margin-bottom: 18px;
}

.mhsc-view-header h2 {
	margin: 4px 0 4px;
	color: var(--mhsc-navy);
	font-size: 1.6rem;
}

.mhsc-view-subtitle {
	margin: 0 0 10px;
	color: #6b7280;
	font-size: 0.95rem;
}

.mhsc-view-badges {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.mhsc-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 14px;
	font-size: 0.82rem;
	font-weight: 700;
}

.mhsc-status-badge.view-a_voir { background: #eef0f2; color: #4b5563; }
.mhsc-status-badge.view-vu { background: #dbeafe; color: #1d4ed8; }
.mhsc-status-badge.decision-en_cours { background: #fef0e0; color: #b3590c; }
.mhsc-status-badge.decision-valide { background: #e1f5e6; color: var(--mhsc-green); }
.mhsc-status-badge.decision-refuse { background: #fef9c3; color: #92720c; }

.mhsc-view-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 780px) {
	.mhsc-view-grid {
		grid-template-columns: 1fr;
	}
}

.mhsc-view-card {
	background: var(--mhsc-bg);
	border: 1px solid var(--mhsc-border);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.mhsc-view-grid .mhsc-view-card {
	margin-bottom: 0;
}

.mhsc-view-card h4 {
	margin: 0 0 12px;
	color: var(--mhsc-navy);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.mhsc-info-list {
	margin: 0 0 14px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
}

.mhsc-info-list dt {
	font-weight: 600;
	color: #6b7280;
	font-size: 0.85rem;
	white-space: nowrap;
}

.mhsc-info-list dd {
	margin: 0;
	font-size: 0.9rem;
	color: #1f2530;
}

.mhsc-tm-btn {
	display: inline-block;
	text-decoration: none;
	font-size: 0.85rem;
}

.mhsc-view-pitch {
	text-align: center;
	background: #fff;
}

.mhsc-pitch-svg {
	width: 100%;
	max-width: 230px;
	margin: 0 auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.mhsc-pitch-outline {
	fill: url(#mhscPitchGradient);
	stroke: rgba(255, 255, 255, 0.6);
	stroke-width: 2;
}

.mhsc-pitch-line,
.mhsc-pitch-line-fill {
	fill: none;
	stroke: rgba(255, 255, 255, 0.6);
	stroke-width: 1.5;
}

.mhsc-pitch-marker {
	stroke: #fff;
	stroke-width: 2.5;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.mhsc-pitch-marker-primary {
	fill: var(--mhsc-orange);
}

.mhsc-pitch-marker-secondary {
	fill: rgba(255, 255, 255, 0.92);
	stroke: var(--mhsc-orange);
}

.mhsc-pitch-legend {
	font-size: 0.82rem;
	color: #374151;
	margin: 10px 0 0;
	text-align: left;
}

.mhsc-legend-line {
	display: block;
	margin-bottom: 4px;
}

.mhsc-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 4px;
}

.mhsc-legend-dot-primary {
	background: var(--mhsc-orange);
}

.mhsc-legend-dot-secondary {
	background: #fff;
	border: 2px solid var(--mhsc-orange);
}

.mhsc-comment-text {
	white-space: pre-wrap;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #374151;
	margin: 0;
}

.mhsc-comment-content {
	max-width: 480px;
}
