/*
 * Bandeau titre (« héros ») commun à toutes les pages refaites, calqué sur le héros de l'accueil
 * (assets/css/sections.css, .tbx-hero) : fond blanc, contenu centré 1280 px max, pastille crème, titre
 * 50 px + grand mot 124 px, filet orange, phrase, puis à droite le terrain dessiné et le visuel.
 * Balisage : template-parts/catalogue/hero.php (catalogue, pages Box, tarifs, blog).
 * Couleurs posées par la page sur un parent : --fam (pastille compteur, coches), --court, --big-color, --accent.
 * Contient aussi le rappel « -20 % première commande » (.tbx-cat-promo).
 */

.tbx-cat-hero,
.tbx-cat-promo {
	--ink: #0F2A3D;
	--text2: #3E5063;
	--navy: #004B76;
	--orange: #CB5223;
	--orange-text: #B2532B;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.tbx-cat-hero *,
.tbx-cat-promo * {
	box-sizing: border-box;
}

/* --- Héros (identique à l'accueil) ------------------------------------------ */

.tbx-cat-hero {
	--pad: max(clamp(20px, 5.5vw, 80px), calc((100% - 1280px) / 2));
	display: grid;
	grid-template-columns: minmax(0, 600fr) minmax(0, 616fr);
	gap: 64px;
	align-items: center;
	padding: 40px var(--pad) 64px;
	/* Fond qui isole le héros : teinte de la Box sur les pages Box ; dégradé crème → teinte du court accentuée (--hero-bg, choix D
	   d'Elsa le 2026-10-11) sur le catalogue, les tarifs et le blog ; crème sinon. */
	background: var(--hero-bg, var(--fam-bg, #F8EBE1));
}

.tbx-cat-hero--text {
	grid-template-columns: minmax(0, 1fr);
}

.tbx-cat-hero__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	container-type: inline-size;
}

.tbx-cat-hero__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tbx-cat-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 10px;
	border-radius: 999px;
	background: #fff;
	color: #B8461C;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.tbx-cat-hero__ball {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #E4C92E;
	box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12);
}

.tbx-cat-hero__count {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--fam, #004B76);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.tbx-cat-hero .tbx-cat-hero__title {
	display: flex;
	flex-direction: column;
	max-width: 560px;
	margin: 0;
	padding: 0;
	color: var(--navy);
	font-family: inherit;
	font-size: clamp(36px, 3.5vw, 50px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.02;
	text-transform: none;
}

.tbx-cat-hero__top {
	text-wrap: balance;
}

/* Grand mot, toujours en capitales et en orange : même taille partout, celle de « ACCESSIBLES » sur la page Tarifs
 * (11 lettres dans la colonne) ; un mot plus long est réduit juste assez pour tenir (--chars = lettres du mot le plus
 * long). Retour d'Elsa du 2026-10-10 : mêmes proportions de titre sur tous les héros sauf l'accueil. */
.tbx-cat-hero__big {
	margin: 6px 0 10px -.05em;
	color: #CB5223; /* toujours orange, pages Box comprises (retour d'Elsa, 2026-10-10) */
	font-size: min(clamp(80px, 8.6vw, 124px), calc(100cqi / max(var(--chars, 4), 11) / .66));
	font-weight: 900;
	letter-spacing: -.055em;
	line-height: .86;
	white-space: normal;
	text-transform: uppercase;
}

.tbx-cat-hero__rule {
	display: block;
	width: 72px;
	height: 6px;
	border-radius: 3px;
	background: var(--accent, #CB5223);
}

.tbx-cat-hero__intro {
	max-width: 560px;
	margin: 0;
	color: var(--text2);
	font-size: 18px;
	line-height: 1.55;
	text-wrap: pretty;
}

.tbx-cat-hero__sub {
	max-width: 560px;
	margin: -6px 0 0;
	color: var(--text2);
	font-size: 16px;
	line-height: 1.55;
}

/* Avantages : toujours sur une seule ligne ; global.js réduit la police si la ligne déborde (taille de base ici). */
.tbx-cat-hero__args {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px 1.4em;
	margin: 4px 0 0;
	padding: 0;
	font-size: 16px;
	list-style: none;
}

.tbx-cat-hero__args li {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--ink);
	font-size: inherit;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.tbx-cat-hero__check {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fam, #004B76);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}

/* Pastilles colorées (blog : les 4 rubriques). */
.tbx-cat-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tbx-cat-hero__chips li {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #EADFD4;
	border-radius: 999px;
	background: #fff;
	color: var(--text2);
	font-size: 14px;
	font-weight: 600;
}

.tbx-cat-hero__chips li span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--dot);
}

/* Visuel : terrain dessiné (décalé de 60 px) + photo par-dessus, mêmes proportions que l'accueil. */
.tbx-cat-hero__visual {
	position: relative;
	aspect-ratio: 616 / 540;
}

.tbx-cat-court {
	position: absolute;
	inset: 60px 0 0 60px;
	overflow: hidden;
	border-radius: 32px;
	background-color: var(--court, #C9622F);
	background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px);
}

.tbx-cat-court__lines {
	position: absolute;
	inset: 34px;
	border: 3px solid #fff;
}

.tbx-cat-court__lines span {
	position: absolute;
}

.tbx-cat-court__alley {
	left: 0;
	right: 0;
	border-top: 3px solid #fff;
}

.tbx-cat-court__alley--top {
	top: 12.5%;
}

.tbx-cat-court__alley--bottom {
	bottom: 12.5%;
}

.tbx-cat-court__service {
	top: 12.5%;
	bottom: 12.5%;
	border-left: 3px solid #fff;
}

.tbx-cat-court__service--left {
	left: 23.1%;
}

.tbx-cat-court__service--right {
	right: 23.1%;
}

.tbx-cat-court__center {
	top: 50%;
	left: 23.1%;
	right: 23.1%;
	border-top: 3px solid #fff;
}

.tbx-cat-court__net {
	top: -14px;
	bottom: -14px;
	left: 50%;
	width: 5px;
	margin-left: -2.5px;
	background: #2A2A2A;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}

.tbx-cat-hero__photo {
	position: absolute;
	inset: 0 17.86% 20.37% 0;
	overflow: hidden;
	border-radius: 30px;
	background: #F1E4D8;
	box-shadow: 0 30px 60px -30px rgba(60, 20, 5, .55);
}

.tbx-cat-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 30%;
}

/* --- Rappel -20 % ----------------------------------------------------------- */

.tbx-cat-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	margin-bottom: 32px;
	padding: 8px 8px 8px 24px;
	border-radius: 999px;
	background: #FBEEE6;
}

.tbx-cat-promo__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--ink);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
}

.tbx-cat-promo__pct {
	color: var(--orange-text);
	font-weight: 900;
	white-space: nowrap;
}

.tbx-cat-promo__code {
	padding: 3px 10px;
	border: 2px dashed var(--orange);
	border-radius: 10px;
	background: #fff;
	color: var(--navy);
	font: 700 15px/1.4 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .14em;
}

.tbx-cat-promo .tbx-cat-promo__copy,
.tbx-cat-promo .tbx-cat-promo__copy:hover,
.tbx-cat-promo .tbx-cat-promo__copy:focus {
	flex: none;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
}

/* --- Tablette ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	.tbx-cat-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.tbx-cat-hero__visual {
		width: 100%;
		max-width: 620px;
	}
}

/* --- Mobile (comme l'accueil) ------------------------------------------------ */

@media (max-width: 767px) {
	.tbx-cat-hero {
		gap: 36px;
		padding: 36px 20px 56px;
	}

	.tbx-cat-hero__text {
		gap: 22px;
	}

	.tbx-cat-hero__pill {
		gap: 8px;
		padding: 7px 14px 7px 8px;
		font-size: 13.5px;
	}

	.tbx-cat-hero__ball {
		width: 12px;
		height: 12px;
	}

	.tbx-cat-hero__count {
		padding: 7px 12px;
		font-size: 13px;
	}

	.tbx-cat-hero .tbx-cat-hero__title {
		font-size: 34px;
		line-height: 1.05;
	}

	.tbx-cat-hero__big {
		margin: 4px 0 6px -.03em;
		font-size: min(92px, 25vw, calc(100cqi / max(var(--chars, 4), 11) / .66));
		line-height: .88;
	}

	.tbx-cat-hero__rule {
		width: 56px;
		height: 5px;
	}

	.tbx-cat-hero__intro {
		font-size: 17px;
	}

	.tbx-cat-hero__args {
		flex-direction: column;
	}

	.tbx-cat-hero__args {
		font-size: 15px;
	}

	.tbx-cat-hero__check {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.tbx-cat-hero__visual {
		aspect-ratio: auto;
		height: 420px;
		margin-top: -22px;
	}

	.tbx-cat-court {
		inset: 30px 0 0 30px;
		border-radius: 24px;
	}

	.tbx-cat-court__lines {
		inset: 18px;
		border-width: 2px;
	}

	.tbx-cat-court__alley,
	.tbx-cat-court__center {
		border-top-width: 2px;
	}

	.tbx-cat-court__service {
		border-left-width: 2px;
	}

	.tbx-cat-court__net {
		top: -8px;
		bottom: -8px;
		width: 4px;
		margin-left: -2px;
		box-shadow: none;
	}

	.tbx-cat-hero__photo {
		inset: 0 52px 52px 0;
		border-radius: 22px;
		box-shadow: 0 20px 40px -20px rgba(60, 20, 5, .55);
	}

	.tbx-cat-promo {
		gap: 10px;
		margin-bottom: 20px;
		padding: 12px 12px 12px 16px;
		border-radius: 18px;
	}

	.tbx-cat-promo__text {
		display: block;
		font-size: 14px;
	}

	.tbx-cat-promo__code {
		padding: 0;
		border: 0;
		background: none;
		font-size: 13.5px;
		letter-spacing: .1em;
	}

	.tbx-cat-promo .tbx-cat-promo__copy,
	.tbx-cat-promo .tbx-cat-promo__copy:hover,
	.tbx-cat-promo .tbx-cat-promo__copy:focus {
		height: 44px;
		padding: 0 14px;
		font-size: 13.5px;
	}
}

/* Bouton « Copier le code » : on neutralise le style des boutons de Hello Elementor. */
html body .tbx-cat-promo .tbx-cat-promo__copy {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

/* ==========================================================================
 * Court en perspective (proposition C, choisie par Elsa le 2026-10-10) : vraies proportions d'un court
 * (23,77 × 10,97 m, couloirs 12,5 %, lignes de service à 23,1 %), posé à plat et vu depuis les tribunes ;
 * la photo est posée au-dessus. Maquette : refonte/maquettes/cta-v3/hero-courts.html.
 * ========================================================================= */

.tbx-cat-hero__visual {
	aspect-ratio: 616 / 520;
	perspective: 900px;
}

.tbx-cat-court {
	inset: auto -4% 2% -4%;
	overflow: visible;
	padding: 24px;
	border-radius: 18px;
	box-shadow: 0 40px 50px -30px rgba(60, 20, 5, .45);
	transform: rotateX(56deg);
	transform-origin: 50% 100%;
}

.tbx-cat-court__lines {
	position: relative;
	inset: auto;
	width: 100%;
	aspect-ratio: 23.77 / 10.97;
}

.tbx-cat-court__service--left {
	left: 23.07%;
}

.tbx-cat-court__service--right {
	right: 23.07%;
}

.tbx-cat-court__center {
	left: 23.07%;
	right: 23.07%;
}

.tbx-cat-hero__photo {
	inset: 0 14% 34% 14%;
}

@media (max-width: 767px) {
	.tbx-cat-hero__visual {
		aspect-ratio: 616 / 520;
		height: auto;
		margin-top: 0;
	}

	.tbx-cat-court {
		inset: auto -4% 2% -4%;
		padding: 14px;
		border-radius: 14px;
	}

	.tbx-cat-court__lines {
		inset: auto;
		border-width: 2px;
	}

	.tbx-cat-hero__photo {
		inset: 0 10% 34% 10%;
		border-radius: 20px;
	}
}

/* ==========================================================================
 * Balle posée sur le court du héros, à un endroit différent selon la page (retour d'Elsa, 2026-10-10).
 * Dessin : --tbx-ball (components.css) ; position : --ball-x / --ball-y, en % du visuel (le court visible va de
 * 60 % à 97 % de hauteur ; la photo couvre le haut, de 14 % à 86 % de largeur). Héros Elementor : sections.css.
 * ========================================================================= */

.tbx-cat-hero__visual::after {
	content: "";
	position: absolute;
	top: var(--ball-y, 84%);
	left: var(--ball-x, 88%);
	z-index: 3;
	width: 28px;
	height: 36px;
	background:
		var(--tbx-ball) center top / 28px 28px no-repeat,
		radial-gradient(closest-side, rgba(40, 20, 5, .35), transparent) center bottom / 26px 8px no-repeat;
	translate: -50% -50%;
	pointer-events: none;
}

.tbx-cat--all { --ball-x: 88%; --ball-y: 82%; }
.tbx-cat--animation { --ball-x: 10%; --ball-y: 76%; }
.tbx-cat--communication { --ball-x: 76%; --ball-y: 92%; }
.tbx-cat--entrainement { --ball-x: 28%; --ball-y: 90%; }
.tbx-cat--organisation { --ball-x: 92%; --ball-y: 72%; }
.tbx-tar { --ball-x: 6%; --ball-y: 86%; }
.tbx-blog { --ball-x: 64%; --ball-y: 93%; }

@media (max-width: 767px) {
	.tbx-cat-hero__visual::after {
		width: 22px;
		height: 28px;
		background-size: 22px 22px, 20px 6px;
	}
}

/* Avantages en colonne (retour d'Elsa, 2026-10-11) : un par ligne, police fixe à la taille de ceux de la Box
   Communication (16 px, qui tenaient sans réduction sur une ligne) ; plus de réduction automatique (global.js). */
.tbx-cat-hero__args {
	flex-direction: column;
	gap: 12px;
	font-size: 16px;
}

.tbx-cat-hero__args li {
	white-space: normal;
}

@media (max-width: 767px) {
	.tbx-cat-hero__args {
		gap: 10px;
		font-size: 15px;
	}
}

/* Avantages des héros : texte plus grand, en bleu Tennis Box, emplacements d'icônes plus grands (2026-10-12). */
.tbx-cat-hero__args {
	gap: 14px;
	font-size: 18px;
}

.tbx-cat-hero__args li {
	gap: 14px;
	color: #004b76;
}

@media (max-width: 767px) {
	.tbx-cat-hero__args {
		gap: 12px;
		font-size: 16.5px;
	}
}

/* Téléphone : héros sans visuel (catalogue, pages Box, Tarifs, Blog) — retour d'Elsa, 2026-10-17. */
@media (max-width: 767px) {
	html body .tbx-cat-hero__visual {
		display: none !important;
	}
}

/* Illustration détourée (héros Tarifs, retour d'Elsa, 2026-10-17) : posée sur le court, sans cadre ni ombre, entière.
   Pas d'ombre portée : elle formait un voile brun autour des objets, pris pour le fond de l'image. */
.tbx-cat-hero__photo.tbx-cat-hero__photo--cutout {
	inset: 0 2% 14% 2%;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.tbx-cat-hero__photo--cutout img {
	object-fit: contain;
	object-position: 50% 100%;
}

/* Icônes définitives des arguments (catalogue, retour d'Elsa, 2026-10-17) : à la taille des emplacements (56 px, 48 px sur
   téléphone), sans pastille de couleur. */
.tbx-cat-hero__check.tbx-cat-hero__icon {
	width: 56px;
	height: 56px;
	border-radius: 0;
	background: none;
}

.tbx-cat-hero__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 767px) {
	.tbx-cat-hero__check.tbx-cat-hero__icon {
		width: 48px;
		height: 48px;
	}
}

/* Plus de balle posée sur le court des héros (retour d'Elsa, 2026-10-17). Héros Elementor : sections.css. */
.tbx-cat-hero__visual::after {
	content: none;
}

/* Plus de badge « Catalogue / Tarifs / Blog » avec la balle (retour d'Elsa, 2026-10-19) ; le compteur reste. */
.tbx-cat-hero__pill {
	display: none;
}

.tbx-cat-hero__pills:not(:has(.tbx-cat-hero__count)) {
	display: none;
}

/* Arguments des héros : design B choisi par Elsa (2026-10-19) — 3 tuiles côte à côte, icône au-dessus, texte centré
   dessous, sur fond blanc translucide. Maquette : refonte/maquettes/hero-args/arguments-hero-propositions.html.
   Héros Elementor (Contact) : contact-page.css. */
.tbx-cat-hero .tbx-cat-hero__args {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 560px;
	margin-top: 8px;
	font-size: 14.5px;
}

.tbx-cat-hero .tbx-cat-hero__args li {
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	padding: 16px 10px 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .75);
	color: #004b76;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
}

.tbx-cat-hero .tbx-cat-hero__args .tbx-cat-hero__check.tbx-cat-hero__icon {
	width: 64px;
	height: 64px;
}

@media (max-width: 767px) {
	.tbx-cat-hero .tbx-cat-hero__args {
		gap: 8px;
		max-width: none;
		font-size: 12.5px;
	}

	.tbx-cat-hero .tbx-cat-hero__args li {
		padding: 12px 4px 10px;
		border-radius: 16px;
	}

	.tbx-cat-hero .tbx-cat-hero__args .tbx-cat-hero__check.tbx-cat-hero__icon {
		width: 48px;
		height: 48px;
	}
}

/* Blog : les 4 types d'articles en liste sur 2 colonnes — point de couleur, nom, courte phrase (proposition B,
   Elsa 2026-10-21). Maquette : refonte/maquettes/hero-args/blog-types-articles-propositions.html. */
.tbx-cat-hero__chips.tbx-cat-hero__chips--list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	max-width: 560px;
	margin-top: 8px;
}

.tbx-cat-hero__chips--list li {
	align-items: flex-start;
	gap: 12px;
	height: auto;
	padding: 0;
	border: 0;
	background: none;
}

.tbx-cat-hero__chips--list li > span:first-child {
	flex: none;
	width: 12px;
	height: 12px;
	margin-top: 5px;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 18%, transparent);
}

.tbx-cat-hero__chip-txt b {
	display: block;
	color: var(--dot);
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
}

.tbx-cat-hero__chip-txt small {
	display: block;
	color: var(--text2, #5a6b7c);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

@media (max-width: 480px) {
	.tbx-cat-hero__chips.tbx-cat-hero__chips--list {
		gap: 12px 16px;
	}

	.tbx-cat-hero__chip-txt b {
		font-size: 14.5px;
	}

	.tbx-cat-hero__chip-txt small {
		font-size: 12px;
	}
}

.tbx-cat-hero__chips--list li span.tbx-cat-hero__chip-txt {
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

/* ==========================================================================
 * Nouveau haut de page (Elsa, 2026-11-03) — .tbx-cat-hero--v2 : dégradé dans la couleur de la page, motif en
 * transparence, texte blanc, arguments sans icône en transparence, personnages détourés + bulles de BD, plus de
 * terrain dessiné. Réglage par page : 'v2' dans inc/catalogue.php (couleur, motif, bulles). Motifs : inc/hero-bubbles.php.
 * Maquette : refonte/maquettes/hero-args/hero-10-pages.html.
 * ========================================================================= */
.tbx-cat-hero--g-orange { --g1: #e8794a; --g2: #cb5223; --g3: #9c3a14; }
.tbx-cat-hero--g-blue { --g1: #4a72a3; --g2: #2b4c74; --g3: #173150; }
.tbx-cat-hero--g-red { --g1: #dc4a4a; --g2: #b92121; --g3: #801010; }
.tbx-cat-hero--g-green { --g1: #2fae69; --g2: #0e7a40; --g3: #06532a; }
.tbx-cat-hero--g-sky { --g1: #5aa3d6; --g2: #3079aa; --g3: #1b5179; }

.tbx-cat-hero.tbx-cat-hero--v2 {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	grid-template-columns: minmax(0, 520fr) minmax(0, 700fr);
	gap: 40px;
	background: radial-gradient(120% 140% at 85% 10%, var(--g1) 0, var(--g2) 45%, var(--g3) 100%);
	color: #fff;
}

.tbx-cat-hero--v2 :is(.tbx-cat-hero__top, .tbx-cat-hero__intro, .tbx-cat-hero__sub) {
	color: rgba(255, 255, 255, .92);
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__big {
	color: #fff;
}

.tbx-cat-hero--v2 .tbx-cat-hero__rule {
	background: #fff;
}

.tbx-cat-hero--v2 .tbx-cat-hero__count {
	border: 0;
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

/* Arguments : pastilles sans icône, en transparence, présentées pareil sur tous les hauts de page (Elsa, 2026-11-04) :
   trois tuiles de même largeur sur une ligne, texte centré (sur deux lignes si besoin). */
.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	max-width: 520px;
	margin-top: 4px;
	font-size: 14.5px;
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-wrap: balance;
	white-space: normal;
}

/* Illustration détourée en grand, sans terrain ; place au-dessus pour les bulles. */
.tbx-cat-hero--v2 .tbx-cat-hero__visual {
	z-index: 1;
	aspect-ratio: auto;
	padding-top: 60px;
	perspective: none;
}

/* Le cadre épouse l'illustration (les bulles sont placées en % de l'image) ; une image presque carrée (Tarifs) est
   limitée à 500 px de haut pour ne pas allonger le bandeau : --ar = largeur / hauteur de l'image (hero.php). */
.tbx-cat-hero--v2 .tbx-cat-hero__photo.tbx-cat-hero__photo--cutout {
	position: relative;
	inset: auto;
	width: min(100%, calc(500px * var(--ar, 10)));
	margin-inline: auto;
}

.tbx-cat-hero--v2 .tbx-cat-hero__photo--cutout img {
	height: auto;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

/* Motifs de fond (blanc en transparence), calés sur la largeur du contenu (1 440 px max, centrés) et non sur tout
   l'écran : sur un grand écran, le motif reste derrière l'illustration (retour d'Elsa, 2026-11-03). */
.tbx-hero-motif {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: -1;
	width: min(100%, 1440px);
	translate: -50% 0;
	pointer-events: none;
}

.tbx-hero-motif svg {
	display: block;
	width: 100%;
	height: 100%;
}

.tbx-hero-motif :is(.s, .seam, .traj, .ball-seam) {
	fill: none;
	stroke: #fff;
}

.tbx-hero-motif .s {
	stroke-opacity: .2;
	stroke-width: 4;
}

.tbx-hero-motif--perspective .s {
	stroke-opacity: .22;
	stroke-width: 3;
}

/* Terrain entier, posé sous la scénette (centré sur l'illustration, un peu plus large qu'elle) : les personnages
   sont sur le terrain (Elsa, 2026-11-04). */
.tbx-hero-motif--perspective svg {
	position: absolute;
	bottom: 7%; /* ligne de fond remontée : plus d'air avant la section suivante (Elsa, 2026-11-05) */
	left: 69.7%;
	width: 60%;
	height: 79%; /* plus haut pour dépasser des personnages (Elsa, 2026-11-05) : le terrain est étiré en profondeur */
	translate: -50% 0;
}

.tbx-hero-motif--perspective path.s {
	stroke-width: 3px;
	vector-effect: non-scaling-stroke; /* trait régulier malgré l'étirement */
}

/* Balle entière (Elsa, 2026-11-04) : centrée derrière l'illustration, presque aussi haute que le bandeau pour
   englober la scénette. */
.tbx-hero-motif--ball svg {
	position: absolute;
	top: 50%;
	left: 69.7%;
	width: auto;
	height: 118%; /* plus grande que la scène pour bien se voir autour des personnages (Elsa, 2026-11-05) */
	aspect-ratio: 1;
	translate: -50% -50%;
}

.tbx-hero-motif--ball .s {
	fill: rgba(255, 255, 255, .06);
	stroke-opacity: .3;
	stroke-width: 4;
}

.tbx-hero-motif--ball .seam {
	stroke-opacity: .3;
	stroke-width: 9;
}

.tbx-hero-motif pattern path {
	stroke: #fff;
	stroke-opacity: .22;
	stroke-width: 1;
}

.tbx-hero-motif .seam {
	stroke-opacity: .26;
	stroke-width: 7;
	stroke-linecap: round;
}

.tbx-hero-motif .traj {
	stroke-opacity: .35;
	stroke-width: 4;
	stroke-dasharray: 2 12;
	stroke-linecap: round;
}

/* Rebond, dessin d'Elsa (2026-11-05) : 3 dessins dans le motif (inc/hero-bubbles.php). Les 2 premiers (repère
   1 440 × 531) sont à l'échelle de la largeur et calés sur le haut de l'illustration (100 px) : le 1er dès 1 300 px,
   le 2e de 1 025 à 1 299 px. Le 3e (petite bande de 60 px tout en bas) sert sur tablette et téléphone. */
.tbx-hero-motif--trajectory svg {
	display: none;
	position: absolute;
	top: 100px;
	left: 0;
	width: 100%;
	height: auto;
	margin-top: -6.9444%; /* 100 px du repère, à l'échelle */
	overflow: visible;
}

.tbx-hero-motif--trajectory svg:last-child {
	top: auto;
	left: 50%;
	bottom: 0;
	width: 1421px;
	max-width: none; /* legacy-customizer.css limite les svg à 100 % sous 768 px */
	height: 60px;
	margin-top: 0;
	translate: -50% 0;
}

@media (min-width: 1300px) {
	.tbx-hero-motif--trajectory svg:first-child {
		display: block;
	}
}

@media (min-width: 1025px) and (max-width: 1299px) {
	.tbx-hero-motif--trajectory svg:nth-child(2) {
		display: block;
	}
}

@media (max-width: 1024px) {
	.tbx-hero-motif--trajectory svg:last-child {
		display: block;
	}
}

@media (max-width: 767px) {
	.tbx-hero-motif--trajectory svg:last-child {
		width: 1037px;
		height: 44px;
		translate: -67% 0;
	}
}

.tbx-hero-motif .bounce {
	fill: #fff;
	fill-opacity: .32;
}

.tbx-hero-motif .impact {
	fill: none;
	stroke: #fff;
	stroke-opacity: .45;
	stroke-width: 3;
	stroke-linecap: round;
}

.tbx-hero-motif .ball {
	fill: #fff;
	fill-opacity: .45;
}

.tbx-hero-motif .ball-seam {
	stroke-opacity: .45;
	stroke-width: 2;
}

.tbx-hero-motif--dots {
	background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 2.2px, transparent 2.6px);
	background-size: 16px 16px;
	-webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000 0, transparent 75%);
	mask-image: radial-gradient(70% 90% at 100% 0%, #000 0, transparent 75%);
}

/* Rayons : fondu sur les côtés pour ne plus voir de coupure au bord de l'écran (Elsa, 2026-11-04). */
.tbx-hero-motif--rays {
	background: repeating-conic-gradient(from 0deg at 72% 55%, rgba(255, 255, 255, .11) 0 6deg, transparent 6deg 15deg);
	-webkit-mask-image: radial-gradient(60% 80% at 72% 55%, #000 0, transparent 85%), linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: radial-gradient(60% 80% at 72% 55%, #000 0, transparent 85%), linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
	mask-composite: intersect;
}

/* Blog : les 4 rubriques en blanc sur le fond de couleur ; point de couleur cerclé de blanc pour rester visible. */
.tbx-cat-hero--v2 .tbx-cat-hero__chips li,
.tbx-cat-hero--v2 .tbx-cat-hero__chip-txt :is(b, small) {
	color: #fff;
}

.tbx-cat-hero--v2 .tbx-cat-hero__chip-txt small {
	opacity: .85;
}

.tbx-cat-hero--v2 .tbx-cat-hero__chips--list li > span:first-child {
	box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 1024px) {
	.tbx-cat-hero.tbx-cat-hero--v2 {
		grid-template-columns: minmax(0, 1fr);
	}

	/* L'illustration passe sous le texte : le terrain et la balle la suivent. */
	.tbx-hero-motif--perspective svg {
		left: 50%;
		width: min(100%, 720px);
		height: 52%;
	}

	.tbx-hero-motif--ball svg {
		top: auto;
		bottom: 2%;
		left: 50%;
		width: min(86%, 560px);
		height: auto;
		translate: -50% 0;
	}
}

@media (max-width: 767px) {
	.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args {
		gap: 6px;
		max-width: none;
	}

	.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args li {
		min-height: 48px;
		padding: 6px;
		font-size: 12.5px;
	}

	/* Téléphone : l'illustration est de nouveau visible, sous le texte, avec ses bulles au-dessus (Elsa, 2026-11-04). */
	html body .tbx-cat-hero--v2 .tbx-cat-hero__visual {
		display: block !important;
		padding-top: 0;
	}

	.tbx-cat-hero--v2 .tbx-cat-hero__photo.tbx-cat-hero__photo--cutout {
		display: flex;
		flex-direction: column;
	}
}

/* Trois bulles au-dessus de l'illustration (Box Organisation) : un peu plus de place en haut (Elsa, 2026-11-05). */
@media (min-width: 768px) {
	.tbx-cat-hero--v2 .tbx-cat-hero__visual:has(.tbx-bubble:nth-child(3)) {
		padding-top: 84px;
	}
}

/* Titres plus présents face aux grandes illustrations (Elsa, 2026-11-04) : colonne de texte plus large, grand mot
   calé sur 10 lettres au lieu de 11, première ligne plus grande, ombre nette façon BD, trait plus épais. */
@media (min-width: 1025px) {
	.tbx-cat-hero.tbx-cat-hero--v2 {
		grid-template-columns: minmax(0, 600fr) minmax(0, 640fr);
	}
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__title {
	max-width: none;
	font-size: clamp(36px, 4.2vw, 60px);
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__top {
	text-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__big {
	font-size: min(clamp(80px, 9.5vw, 140px), calc(100cqi / max(var(--chars, 4), 10) / .66));
	text-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__rule {
	width: 96px;
	height: 8px;
	border-radius: 4px;
}

/* Catalogue : « Toutes nos BOX » sur une seule ligne, alignés sur la ligne de base. */
.tbx-cat-hero--inline .tbx-cat-hero__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .28em;
}

.tbx-cat-hero--inline .tbx-cat-hero__big {
	margin-bottom: 4px;
}

@media (max-width: 767px) {
	.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__title {
		font-size: 34px;
	}

	.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__rule {
		width: 64px;
		height: 6px;
	}
}

/* Blog (Elsa, 2026-11-04) : les deux phrases à la même taille ; les 4 rubriques en macarons ronds cliquables. */
.tbx-cat-hero .tbx-cat-hero__sub {
	margin-top: -10px;
	font-size: 18px;
}

.tbx-cat-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.tbx-cat-hero__badges li {
	margin: 0;
}

.tbx-cat-hero__badges a {
	display: block;
	border-radius: 50%;
	transition: transform .2s ease-out;
}

.tbx-cat-hero__badges a:hover,
.tbx-cat-hero__badges a:focus-visible {
	transform: translateY(-4px) scale(1.04);
}

.tbx-cat-hero__badges img {
	display: block;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
	.tbx-cat-hero .tbx-cat-hero__sub {
		font-size: 17px;
	}

	.tbx-cat-hero__badges {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
	}

	.tbx-cat-hero__badges img {
		width: 100%;
		height: auto;
	}
}

/* Nombre de produits des hauts de page Box : étiquette blanche sous la rangée d'arguments, au lieu de l'étiquette
   au-dessus du titre (proposition C, Elsa, 2026-11-06 ; maquette refonte/maquettes/hero-args/produits-disponibles-3-propositions.html). */
.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__stock {
	display: inline-flex;
	align-self: flex-start;
	width: fit-content;
	align-items: baseline;
	gap: 6px;
	margin: 14px 0 0;
	padding: 9px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
	color: var(--g2, #cb5223);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__stock b {
	font-size: 18px;
	font-weight: 900;
}

/* Hauts de page v2 avec seulement 2 arguments (« Tout le catalogue » sans « Expertise tennis », Elsa 2026-11-08) :
   2 colonnes au lieu de 3, sans case vide ; les pastilles gardent leur largeur habituelle sur ordinateur. */
.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args:not(:has(> li:nth-child(3))) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 347px;
}

@media (max-width: 1023px) {
	.tbx-cat-hero.tbx-cat-hero--v2 .tbx-cat-hero__args:not(:has(> li:nth-child(3))) {
		max-width: none;
	}
}

/* « ENTRAÎNEMENT » : le accent circonflexe du Î touchait le « g » de « Catalogue » juste au-dessus ; un peu plus d'espace (Elsa, 2026-11-08). */
.tbx-cat-hero.tbx-cat-hero--circ .tbx-cat-hero__big {
	margin-top: 22px;
}

/* Balle de fond sur téléphone (Elsa, 2026-11-18) : une copie est posée dans l'illustration (.tbx-hero-motif--m,
 * template-parts/catalogue/hero.php) et prend sa hauteur, du haut des bulles au bas du bandeau. Elle ne remonte plus sur
 * le titre ni les arguments, quelle que soit la hauteur du texte (Tarifs comme Box Organisation). */
.tbx-hero-motif--m {
	display: none;
}

@media (max-width: 767px) {
	.tbx-cat-hero--m-ball > .tbx-hero-motif--ball {
		display: none;
	}

	.tbx-cat-hero--m-ball .tbx-cat-hero__visual {
		position: relative;
		isolation: isolate;
	}

	.tbx-cat-hero--m-ball .tbx-hero-motif--m {
		display: block;
		top: -8px;
		bottom: -24px;
		width: 100%;
	}

	.tbx-cat-hero--m-ball .tbx-hero-motif--m svg {
		position: absolute;
		top: 0;
		bottom: auto;
		left: 50%;
		width: auto;
		height: 100%;
		aspect-ratio: 1;
		translate: -50% 0;
	}
}
