/* =========================================
   Syrpa Membres — Widget de complétion profil
   ========================================= */

.syrpa-profile-widget {
	--ring-color: #ff5534;
	--ink: #111827;
	--ink-soft: #374151;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #ffffff;
	--bg-soft: #f9fafb;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 1.75rem;
	margin: 0 0 2rem;
	box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

/* Variante en haut du formulaire d'édition (non sticky pour ne pas gêner la lecture) */
.syrpa-profile-widget--edit-form {
	margin-bottom: 2.5rem;
}

/* Layout interne : ring + texte côte à côte */
.syrpa-profile-widget__inner {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 1.75rem;
	align-items: center;
}

/* ---------- Anneau de progression ---------- */
.syrpa-profile-ring {
	position: relative;
	width: 140px;
	height: 140px;
}
.syrpa-profile-ring__svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.syrpa-profile-ring__bg {
	fill: none;
	stroke: #f1f5f9;
	stroke-width: 10;
}
.syrpa-profile-ring__fg {
	fill: none;
	stroke: var(--ring-color);
	stroke-width: 10;
	stroke-linecap: round;
	transition: stroke-dasharray .8s cubic-bezier(.25, .8, .25, 1);
}
.syrpa-profile-ring__center {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.syrpa-profile-ring__percent {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--ink);
	line-height: 1;
}
.syrpa-profile-ring__pct {
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted);
	margin-left: .1rem;
}

/* ---------- Bloc texte ---------- */
.syrpa-profile-widget__body {
	min-width: 0;
}
.syrpa-profile-widget__level {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .8rem;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #fff;
	margin-bottom: .65rem;
}
.syrpa-profile-widget__level svg {
	width: 12px;
	height: 12px;
}
.syrpa-profile-widget__title {
	margin: 0 0 .35rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--ink);
	line-height: 1.2;
}
.syrpa-profile-widget__count {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: .9rem;
}

/* Prochaine étape */
.syrpa-profile-widget__next {
	background: var(--bg-soft);
	border-left: 3px solid var(--ring-color);
	border-radius: 8px;
	padding: .85rem 1rem;
	margin-bottom: 1rem;
}
.syrpa-profile-widget__next-label {
	display: block;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	font-weight: 700;
	margin-bottom: .2rem;
}
.syrpa-profile-widget__next strong {
	color: var(--ink);
	font-size: 1rem;
	display: block;
	margin-bottom: .2rem;
}
.syrpa-profile-widget__next p {
	margin: 0;
	color: var(--ink-soft);
	font-size: .85rem;
	line-height: 1.45;
}

/* Boutons */
.syrpa-profile-widget__actions {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
}
.syrpa-profile-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .8rem 1.4rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none !important;
	transition: all .15s ease;
	border: 1px solid transparent;
}
.syrpa-profile-btn--primary,
.syrpa-profile-btn--primary:visited {
	background: #ff5534;
	color: #fff !important;
}
.syrpa-profile-btn--primary:hover {
	background: #e64422;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 85, 52, .3);
	color: #fff !important;
}
.syrpa-profile-btn--success,
.syrpa-profile-btn--success:visited {
	background: #10b981;
	color: #fff !important;
}
.syrpa-profile-btn--success:hover {
	background: #059669;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, .3);
	color: #fff !important;
}

/* ---------- Liste détaillée (collapsible) ---------- */
.syrpa-profile-widget__details {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}
.syrpa-profile-widget__details summary {
	cursor: pointer;
	color: var(--muted);
	font-size: .85rem;
	font-weight: 600;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	user-select: none;
}
.syrpa-profile-widget__details summary::-webkit-details-marker { display: none; }
.syrpa-profile-widget__details summary:hover { color: var(--ink); }
.syrpa-profile-widget__details summary::after {
	content: '▾';
	font-size: .8rem;
	transition: transform .15s ease;
}
.syrpa-profile-widget__details[open] summary::after { transform: rotate(180deg); }

.syrpa-profile-widget__list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: .55rem;
}
.syrpa-profile-widget__list li {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .55rem .8rem;
	background: var(--bg-soft);
	border-radius: 8px;
	font-size: .85rem;
}
.syrpa-profile-widget__list li.is-done {
	background: #ecfdf5;
	color: #065f46;
}
.syrpa-profile-widget__list li.is-missing {
	color: var(--muted);
}
.syrpa-profile-check {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.syrpa-profile-check svg {
	width: 18px;
	height: 18px;
}
.is-done .syrpa-profile-check svg { color: #10b981; }
.is-missing .syrpa-profile-check svg { color: #cbd5e1; }
.syrpa-profile-list-label {
	flex: 1;
	min-width: 0;
}
.syrpa-profile-list-weight {
	display: none;
}

/* ---------- Hints sur les champs du formulaire ---------- */
.syrpa-field-hint {
	display: block;
	margin-top: .25rem;
	font-size: .8rem;
	color: #6b7280;
	font-style: italic;
}
.syrpa-field-impact {
	display: inline-block;
	margin-left: .4rem;
	background: #fff7ed;
	color: #c2410c;
	font-size: .68rem;
	font-weight: 700;
	padding: .12rem .5rem;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .04em;
	vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.syrpa-profile-widget {
		padding: 1.25rem;
	}
	.syrpa-profile-widget__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		text-align: center;
	}
	.syrpa-profile-ring {
		margin: 0 auto;
		width: 120px;
		height: 120px;
	}
	.syrpa-profile-ring__percent { font-size: 2rem; }
	.syrpa-profile-widget__title { font-size: 1.15rem; }
	.syrpa-profile-widget__next { text-align: left; }
	.syrpa-profile-widget__actions { justify-content: center; }
	.syrpa-profile-widget--edit-form {
		position: static;
	}
}
