/**
 * Le Cercle – styles fonctionnels des blocs.
 * Uniquement le nécessaire au fonctionnement ; l'apparence (couleurs, typographies, mise en page) vient du thème.
 * Variables attendues du thème : --cf-ink, --cf-cons, --cf-label, --cf-dot (repli sur currentColor).
 */

.cercle-filieres [hidden],
.cercle-filieres__play[hidden] {
	display: none !important;
}

.screen-reader-text:not(:focus) {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ----- Figures ----- */
.cercle-draw {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.cercle-draw .cf-ink,
.cercle-draw .cf-cons,
.cercle-draw .cf-dim,
.cercle-draw .cf-dash {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cercle-draw .cf-ink { stroke: var(--cf-ink, currentColor); stroke-width: 2; }
.cercle-draw .cf-ink--bold { stroke-width: 4; }
.cercle-draw .cf-cons { stroke: var(--cf-cons, currentColor); stroke-width: 1; }
.cercle-draw .cf-dim { stroke: var(--cf-cons, currentColor); stroke-width: 1; }
.cercle-draw .cf-dash { stroke: var(--cf-cons, currentColor); stroke-width: 1; stroke-dasharray: 8 4 2 4; }
.cercle-draw .cf-dot { fill: var(--cf-dot, var(--cf-ink, currentColor)); }
.cercle-draw .cf-lbl,
.cercle-draw .cf-lbl-s { fill: var(--cf-label, currentColor); font-family: var(--cf-font, ui-monospace, monospace); }
.cercle-draw .cf-lbl { font-size: 12px; }
.cercle-draw .cf-lbl--strong { font-weight: 600; }
.cercle-draw .cf-lbl-s { font-size: 10.5px; }

/* Vignettes : épaisseur constante, pas d'annotations. */
.cercle-draw.is-mini * { vector-effect: non-scaling-stroke; }
.cercle-draw.is-mini text { display: none; }

/* ----- Nomenclature : fiches empilées sur petit écran ----- */
@media (max-width: 760px) {
	.cercle-nomenclature__scroll { overflow: visible; }
	.cercle-nomenclature__table { min-width: 0 !important; }
	.cercle-nomenclature__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.cercle-nomenclature__table tr {
		display: grid;
		grid-template-columns: 3.25rem minmax(0, 1fr);
		column-gap: .75rem;
	}
	.cercle-nomenclature__table th,
	.cercle-nomenclature__table td {
		display: block;
		grid-column: 2;
		border: 0 !important;
		padding: .35rem 0 !important;
		text-align: left !important;
	}
	.cercle-nomenclature__table .cercle-nomenclature__rep {
		grid-column: 1;
		grid-row: 1 / span 4;
		padding-top: .6rem !important;
	}
	.cercle-nomenclature__table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: .6875rem;
		letter-spacing: .06em;
		text-transform: uppercase;
		opacity: .7;
		margin-bottom: .15rem;
	}
}

/* ----- Carrousel : barre de progression de l'onglet actif ----- */
.cercle-filieres__tab { position: relative; }

.cercle-filieres.is-enhanced .cercle-filieres__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--cercle-progress-h, 2px);
	background: var(--cercle-progress, currentColor);
	transform: scaleX(0);
	transform-origin: left;
}

.cercle-filieres.is-enhanced .cercle-filieres__tab[aria-selected="true"]::after {
	transform: scaleX(1);
}

.cercle-filieres.is-running .cercle-filieres__tab[aria-selected="true"]::after {
	animation: cercle-progress var(--cercle-delay, 7000ms) linear both;
}

@keyframes cercle-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Bouton pause / lecture */
.cercle-filieres__play span {
	display: block;
	width: 10px;
	height: 10px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.cercle-filieres.is-paused .cercle-filieres__play span {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cercle-filieres.is-running .cercle-filieres__tab[aria-selected="true"]::after { animation: none; }
}

/* ----- Paiement de la cotisation ----- */
.cercle-adhesion [hidden] { display: none !important; }
.cercle-adhesion__amount { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; margin: 0 0 1rem; }
.cercle-adhesion__amount strong { font-size: 1.75em; line-height: 1; }
.cercle-adhesion__status:empty { display: none; }
.cercle-adhesion__status { margin: .75rem 0 0; font-size: .9em; }
.cercle-adhesion.is-loading .cercle-adhesion__start { cursor: progress; opacity: .7; }
.cercle-adhesion__checkout { margin-top: 1.25rem; min-height: 24rem; scroll-margin-top: 6rem; }
.cercle-adhesion.is-open .cercle-adhesion__note { margin-top: .75rem; }
.cercle-adhesion.is-done { padding: 1.5rem; border: 1px solid currentColor; }
.cercle-adhesion.is-done:focus { outline: none; }
.cercle-adhesion__title { font-weight: 700; font-size: 1.25em; margin: 0 0 .5rem; }

/* ----- Chiffres clés ----- */
.cercle-chiffres__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 900px) { .cercle-chiffres__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cercle-chiffres__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; margin: 0; }
.cercle-chiffres__item dd { margin: 0; }
.cercle-chiffres__item sup { font-size: .4em; vertical-align: super; margin-left: .15em; }
.cercle-chiffres__sources { margin: 1.5rem 0 0; padding-left: 1.25rem; }
