/* Ronds chiffres — rangée fixe, ou carrousel bord à bord (prototype).
   Ronds de 365 px à 1440, quasi jointifs. */
.bq-chiffres-bloc { --rond: clamp(12.5rem, 25.3vw, 22.8rem); --defile-duree: 60s; position: relative; }

.bq-chiffres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: clamp(.5rem, 1vw, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.bq-chiffres__rond {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	text-align: center;
}
.bq-chiffres__rond--chiffre { padding: 12%; }
.bq-chiffres__rond--image { background-color: color-mix(in srgb, var(--paper) 12%, transparent); }
.bq-chiffres__rond--image img { width: 100%; height: 100%; object-fit: cover; }
.bq-chiffres__valeur { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.375rem); font-weight: var(--fw-light); line-height: 1; }
.bq-chiffres__legende { margin-top: var(--sp-3); font-size: var(--fs-xs); line-height: 1.25; text-transform: uppercase; }

/* Couleurs : contraste garanti par construction (voir le widget). */
.bq-chiffres__rond--blanc { background-color: var(--paper); color: var(--ink); }
.bq-chiffres__rond--blanc .bq-chiffres__valeur { color: var(--brand-ink); }
.bq-chiffres__rond--bleu  { background-color: var(--blue); color: var(--paper); }
.bq-chiffres__rond--rose  { background-color: var(--pink-ink); color: var(--paper); }
.bq-chiffres__rond--vert  { background-color: var(--brand); color: var(--ink); }

/* --- Carrousel bord à bord ------------------------------------------------ */
.bq-chiffres-bloc--defile {
	width: 100vw;
	margin-left: calc(50% - 50vw); /* sort du conteneur, jusqu'aux bords */
	overflow: hidden;
}
.bq-marquee__track { display: flex; width: max-content; }
.bq-chiffres-bloc--defile .bq-chiffres { display: flex; gap: 0; }
.bq-chiffres-bloc--defile .bq-chiffres__rond { flex: none; width: var(--rond); }

@media (prefers-reduced-motion: no-preference) {
	.bq-chiffres-bloc--defile .bq-marquee__track { animation: bq-marquee var(--defile-duree) linear infinite; }
	.bq-marquee:is(:hover, :focus-within, .is-paused) .bq-marquee__track { animation-play-state: paused; }
}
/* Mouvement réduit : rangée immobile, à faire glisser, aimantée rond par rond. */
@media (prefers-reduced-motion: reduce) {
	.bq-chiffres-bloc--defile { overflow-x: auto; scroll-snap-type: x mandatory; }
	.bq-chiffres-bloc--defile .bq-chiffres__rond { scroll-snap-align: start; }
	.bq-chiffres-bloc--defile .bq-chiffres[aria-hidden] { display: none; }
	.bq-chiffres-bloc--defile .bq-marquee__pause { display: none; }
}
@keyframes bq-marquee { to { transform: translateX(-50%); } }

/* Bouton pause : rond discret, deux barres → triangle quand en pause. */
.bq-marquee__pause {
	position: absolute;
	right: var(--gutter);
	bottom: var(--sp-4);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: color-mix(in srgb, var(--ink) 70%, transparent);
	color: var(--paper);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.bq-marquee__pause::before {
	content: '';
	width: .75rem;
	height: .875rem;
	border-inline: .25rem solid currentColor;
}
.bq-marquee__pause[aria-pressed='true']::before {
	width: 0;
	height: 0;
	margin-left: .2rem;
	border-block: .45rem solid transparent;
	border-inline: .7rem solid currentColor;
	border-right-width: 0;
}

/* --- 0.6.6 : ronds de la maquette (359 px à 1440 = 25 vw, jointifs) --------
   BUG corrigé : le « padding: 12 % » se calculait sur la largeur de TOUTE la
   rangée défilante (des milliers de px) → ronds-chiffres de 700 px, et les
   ronds-photos étirés en ovales à cette hauteur. Désormais : boîte carrée
   fixe, marge intérieure proportionnelle au rond lui-même. */
.bq-chiffres-bloc { --rond: clamp(12.5rem, 25vw, 26rem); }
.bq-chiffres-bloc--defile .bq-chiffres { align-items: center; }
.bq-chiffres-bloc--defile .bq-chiffres__rond {
	box-sizing: border-box;
	width: var(--rond);
	height: var(--rond);
	aspect-ratio: auto;
}
.bq-chiffres__rond--chiffre { padding: calc(var(--rond) * .14); }
.bq-chiffres__rond--image img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Couleurs et typo de la maquette. */
.bq-chiffres__rond--blanc { background-color: #f2f2f2; color: var(--ink); }
.bq-chiffres__rond--blanc:nth-child(4n+3) { background-color: #e9e9e9; }
.bq-chiffres__rond--blanc .bq-chiffres__valeur { color: var(--brand); }
.bq-chiffres__valeur { font-size: calc(var(--rond) * .2); font-weight: 300; line-height: 1.05; white-space: nowrap; }
.bq-chiffres__legende { max-width: 80%; margin-top: calc(var(--rond) * .04); font-size: clamp(.8125rem, calc(var(--rond) * .056), 1.25rem); font-weight: 300; line-height: 1.2; text-transform: uppercase; }

/* Bouton pause SOUS la rangée (il masquait la légende d'un rond). */
.bq-chiffres-bloc--defile { padding-bottom: 3.25rem; }
.bq-chiffres-bloc--defile .bq-marquee__pause { top: auto; bottom: 0; right: max(1rem, var(--frame, 1rem)); width: 2.25rem; height: 2.25rem; }

/* 0.7.9 — Ronds : alternance gris clair / vert BioAqtiv (plus de bleu ni de
   rouge, hors charte sur cette page). Sur le vert, chiffre et légende en
   anthracite : contraste 7,6:1. */
.bq-chiffres__rond--vert { background-color: var(--brand); color: var(--ink); }
.bq-chiffres__rond--vert .bq-chiffres__valeur { color: var(--ink); }
.bq-chiffres__rond--blanc:nth-child(4n+3) { background-color: #f2f2f2; }
