/*
 * Briques du nouveau design (maquette Claude Design « Accueil Tennis Box v7 »).
 * Chargé sur toutes les pages : ces composants servent partout.
 */

/* ---------- Couleurs par Box ---------- */
.tbx-card--animation {
	--box: #cb5223;
	--box-deep: #b8461c;
	--box-line: #eadfd4;
	--box-divider: #f0e7de;
	--box-media: repeating-linear-gradient(135deg, #f1e4d8 0 8px, #f7ede4 8px 16px);
	--box-badge: #004b76;
	--box-shadow: rgba(120, 50, 20, .45);
}

.tbx-card--communication {
	--box: #2f6db5;
	--box-deep: #2b4c74;
	--box-line: #d5e1ee;
	--box-divider: #d5e1ee;
	--box-media: #eaf0f7;
	--box-badge: #004b76;
	--box-shadow: rgba(30, 30, 30, .35);
}

.tbx-card--entrainement {
	--box: #b92121;
	--box-deep: #9e2626;
	--box-line: #eed3d1;
	--box-divider: #eed3d1;
	--box-media: #f9ebea;
	--box-badge: #9e2626;
	--box-shadow: rgba(30, 30, 30, .35);
}

.tbx-card--organisation {
	--box: #0e7a40;
	--box-deep: #0e7a40;
	--box-line: #cfe6d8;
	--box-divider: #d9ede1;
	--box-media: #e8f4ec;
	--box-badge: #0e7a40;
	--box-shadow: rgba(10, 60, 30, .35);
}

/* ---------- Grille de cartes produits [tb_produits] ---------- */
.tbx-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.tbx-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--box-line);
	border-radius: 22px;
	color: #0f2a3d;
	font-family: var(--tbx-font);
	text-decoration: none;
	transition: transform .25s, box-shadow .25s;
}

.tbx-card:hover,
.tbx-card:focus-visible {
	transform: translateY(-5px);
	box-shadow: 0 24px 44px -24px var(--box-shadow);
	color: #0f2a3d;
}

.tbx-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--box-media);
}

.tbx-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbx-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--box-badge);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tbx-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
}

.tbx-card__eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--box);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tbx-card__eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--box);
}

.tbx-card__title {
	overflow: hidden;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tbx-card__kicker {
	color: var(--box-deep);
	font-size: 14px;
	font-weight: 700;
}

.tbx-card__text {
	display: -webkit-box;
	overflow: hidden;
	color: #4a5b6d;
	font-size: 14px;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tbx-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--box-divider);
}

.tbx-card__price {
	display: flex;
	flex-direction: column;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1;
}

.tbx-card__price .amount,
.tbx-card__price bdi {
	color: inherit;
}

/* Produit « À venir » (étiquette a-venir) : pas de prix. */
.tbx-card__soon {
	color: #5a6b7c;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.tbx-card__badge.tbx-card__badge--soon {
	background: #b92121;
}

.tbx-card__from {
	margin-bottom: 3px;
	color: #5a6b7c;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0;
}

.tbx-card__more {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--box);
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
}

.tbx-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--box);
	color: #fff;
}

/* Tablette : 2 colonnes. Mobile : une rangée qui défile au doigt, comme la maquette. */
@media (max-width: 1024px) {
	.tbx-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* Carrousel horizontal (maquette mobile : cartes de 290 px qui débordent jusqu'au bord de l'écran). */
	.tbx-cards {
		display: flex;
		gap: 12px;
		margin: 0 -16px;
		padding: 6px 20px 12px;
		overflow-x: auto;
		scroll-padding-left: 20px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.tbx-cards::-webkit-scrollbar {
		display: none;
	}

	.tbx-card {
		flex: 0 0 290px;
		max-width: 82vw;
		scroll-snap-align: start;
	}
}

/* ==========================================================================
 * Balle de tennis réaliste (retour d'Elsa, 2026-10-10) : un seul dessin (SVG) pour toutes les balles du site —
 * pastilles des titres, balles des bandeaux, balle posée sur le court des héros. Variante B « feutrée »
 * (proposition : refonte/maquettes/cta-v3/balles.html) ; pour en changer, remplacer --tbx-ball.
 * ========================================================================= */

:root {
	--tbx-ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='g' cx='34%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23F6FA9A'/%3E%3Cstop offset='.42' stop-color='%23DDE840'/%3E%3Cstop offset='.85' stop-color='%23B4C426'/%3E%3Cstop offset='1' stop-color='%238E9D17'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 .9  0 0 0 .55 0'/%3E%3C/filter%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3CclipPath id='c'%3E%3Ccircle cx='50' cy='50' r='47'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='47' fill='url(%23g)'/%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='100' height='100' filter='url(%23f)' opacity='.35'/%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M10 20 C36 36 36 64 10 80' stroke='%237c8a12' stroke-width='7' opacity='.35' filter='url(%23s)' transform='translate(1.5 2)'/%3E%3Cpath d='M90 20 C64 36 64 64 90 80' stroke='%237c8a12' stroke-width='7' opacity='.35' filter='url(%23s)' transform='translate(1.5 2)'/%3E%3Cpath d='M10 20 C36 36 36 64 10 80' stroke='%23FBFCF2' stroke-width='4.6'/%3E%3Cpath d='M90 20 C64 36 64 64 90 80' stroke='%23FBFCF2' stroke-width='4.6'/%3E%3C/g%3E%3Cellipse cx='36' cy='28' rx='16' ry='10' fill='%23fff' opacity='.28' transform='rotate(-25 36 28)'/%3E%3C/g%3E%3C/svg%3E");
}

html body :is(.tbx-cat-hero__ball, .tbx-tar-pill__ball, .tb-v-ball, .tb-cta--07 .tb-cta__ball, .tb-cta--10 .tb-cta__ball),
html body .tbx-legal-pill::before,
html body .tbx-srch-pill::before,
html body .elementor .tbx-sec .tbx-pill .elementor-heading-title::before {
	background: var(--tbx-ball) center / contain no-repeat;
	box-shadow: none;
}

/* ==========================================================================
 * « Bientôt disponible » mis en évidence (retour d'Elsa, 2026-10-10) : pastille rouge qui palpite, partout où
 * un produit « à venir » est annoncé (cartes de l'accueil, du catalogue, des tarifs, fiche produit, Box Organisation).
 * Le badge « À venir » a été retiré : cette pastille suffit.
 * ========================================================================= */

html body :is(.tbx-card__soon, .tbx-cat-card__soon, .tbx-tar-card__amount--soon, .tbx-bo-badge--soon, .tbx-pp-soon__title) {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin: 0;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	background: #b92121;
	color: #fff;
	font-family: var(--tbx-font, Inter, system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.2;
	white-space: nowrap;
	animation: tbx-soon-pulse 2s ease-out infinite;
}

html body :is(.tbx-card__soon, .tbx-cat-card__soon, .tbx-tar-card__amount--soon, .tbx-bo-badge--soon, .tbx-pp-soon__title)::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
}

html body .tbx-pp-soon__dot {
	display: none;
}

@keyframes tbx-soon-pulse {
	0% { box-shadow: 0 0 0 0 rgba(185, 33, 33, .55); transform: scale(1); }
	45% { transform: scale(1.04); }
	70% { box-shadow: 0 0 0 12px rgba(185, 33, 33, 0); transform: scale(1); }
	100% { box-shadow: 0 0 0 0 rgba(185, 33, 33, 0); }
}

@media (prefers-reduced-motion: reduce) {
	html body :is(.tbx-card__soon, .tbx-cat-card__soon, .tbx-tar-card__amount--soon, .tbx-bo-badge--soon, .tbx-pp-soon__title) {
		animation: none;
	}
}

/* ==========================================================================
 * Retours d'Elsa (2026-10-11)
 * ========================================================================= */

/* Carte d'un produit à venir (ex. Réseaux sociaux) : « Bientôt disponible » + la pastille flèche seule
   (le texte « Voir le détail » reste lu par les lecteurs d'écran) — la flèche n'est plus coupée. */
.tbx-card--soon .tbx-card__more {
	gap: 0;
	font-size: 0;
}

.tbx-card--soon .tbx-card__arrow {
	flex: none;
	font-size: 14px;
}

/* Cartes étroites (4 colonnes sur un petit écran d'ordinateur) : pastille plus compacte, qui passe sur 2 lignes
   plutôt que de pousser la flèche hors de la carte. */
.tbx-card--soon .tbx-card__price {
	flex: 1;
	min-width: 0;
}

html body .tbx-card--soon .tbx-card__soon {
	padding: 6px 12px 6px 9px;
	font-size: 12.5px;
	white-space: normal;
}

/* À venir avec prix d'appel (outil de la Box Organisation) : pastille sur l'image, prix « À partir de … / an ». */
html body .tbx-card__soon.tbx-card__soon--media {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-size: 12.5px;
}

.tbx-card__per {
	margin-left: 2px;
	color: #5a6b7c;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
}

/* Emplacement d'image d'un produit (Box Organisation) : remplit le cadre 4:3 de la carte. */
.tbx-card__media .tbx-ph.tbx-card__ph {
	position: absolute;
	inset: 0;
}

/* ==========================================================================
 * Téléphone : carrousels « une carte à la fois » (retour d'Elsa, 2026-10-12). Chaque carte prend toute la largeur,
 * on passe à la suivante d'un glissement du doigt ; des pastilles indiquent la position (global.js : .tbx-dots).
 * Concerne : produits de l'accueil (.tbx-cards), formules de l'accueil, « De la réalité du terrain » (À propos),
 * articles similaires (blog), produits similaires (fiche produit).
 * ========================================================================= */
@media (max-width: 767px) {
	.tbx-cards {
		gap: 16px;
		padding: 6px 20px 8px;
		scroll-padding-inline: 20px;
	}

	.tbx-cards > .tbx-card {
		flex: 0 0 100%;
		max-width: none;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	/* Pastilles de position sous un carrousel. */
	.tbx-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin: 6px 0 0;
		padding: 0;
	}

	.tbx-dots button {
		width: 8px;
		height: 8px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: #d9c9bb;
		cursor: pointer;
		transition: width .25s, background .25s;
	}

	.tbx-dots button[aria-current="true"] {
		width: 24px;
		background: var(--tbx-orange, #cb5223);
	}
}

@media (min-width: 768px) {
	.tbx-dots {
		display: none;
	}
}

/* Cartes produits : titre et descriptif toujours en entier (retour d'Elsa, 2026-10-17). Plus de « … » ni de coupure
   à 2 lignes ; les cartes d'une même rangée prennent la hauteur de la plus longue. */
.tbx-card__title {
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
	text-wrap: balance;
}

.tbx-card__text {
	display: block;
	overflow: visible;
	font-size: 14.5px;
	-webkit-line-clamp: unset;
}

/* ======================================================================
 * Bulles de BD des hauts de page (Elsa, 2026-11-03) — balisage : inc/hero-bubbles.php.
 * ==================================================================== */

/* Bulles de BD : la pointe est en (--x, --y) sur l'illustration ; contour à la couleur du personnage, texte noir.
   --ax = place de la pointe dans la bulle (50 % = au milieu ; plus petit : la bulle part vers la droite). */
.tbx-bubbles {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.tbx-bubble {
	position: absolute;
	left: var(--x);
	top: var(--y);
	padding: 9px 15px;
	border: 3px solid var(--b, #004b76);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 5px 0 rgba(0, 40, 70, .16);
	color: #1a1a1a; /* texte noir, police BD (Elsa, 2026-11-04) ; contour à la couleur du personnage */
	font-family: "Lilita One", var(--tbx-font, inherit);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	width: max-content;
	max-width: var(--w, 250px); /* phrase longue : sur deux lignes équilibrées ; --w = largeur propre à une bulle */
	text-align: center;
	text-wrap: balance;
	translate: calc(-1 * var(--ax, 50%)) calc(-100% - 18px);
}

.tbx-bubble::before,
.tbx-bubble::after {
	content: "";
	position: absolute;
	left: var(--ax, 50%);
	border-style: solid;
	translate: -50% 0;
}

.tbx-bubble::before {
	top: calc(100% + 3px);
	border-width: 15px 10px 0;
	border-color: var(--b, #004b76) transparent transparent;
}

.tbx-bubble::after {
	top: 100%;
	border-width: 11px 7px 0;
	border-color: #fff transparent transparent;
}

/* Catalogue : legacy-customizer.css impose Inter (!important) à toute la page boutique ; les bulles gardent leur police BD. */
body.post-type-archive-product .tbx-bubble {
	font-family: "Lilita One", Inter, sans-serif !important;
}

/* Trois personnages qui parlent : bulles plus étroites pour ne pas se toucher. */
.tbx-bubbles:has(.tbx-bubble:nth-child(3)) .tbx-bubble {
	max-width: var(--w, 200px);
}

/* Petit portable et tablette (768–1 300 px) : l'illustration est plus petite, les bulles aussi, pour ne pas se
   chevaucher (vérifié sur les 10 hauts de page, 2026-11-04). */
@media (min-width: 768px) and (max-width: 1300px) {
	.tbx-bubble {
		padding: 7px 11px;
		font-size: 13.5px;
		max-width: calc(var(--w, 250px) * .76);
	}

	.tbx-bubbles:has(.tbx-bubble:nth-child(3)) .tbx-bubble {
		max-width: calc(var(--w, 200px) * .75);
	}
}

/* Téléphone (Elsa, 2026-11-04) : les bulles passent au-dessus de l'illustration, côte à côte sur une ligne, la pointe
   tournée vers le personnage (à gauche pour la première, à droite pour la dernière). */
@media (max-width: 767px) {
	.tbx-bubbles {
		position: static;
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		align-items: end;
		gap: 8px;
		order: -1;
		margin-bottom: 18px;
	}

	.tbx-bubble {
		--ax: 50%;
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		max-width: none;
		padding: 7px 8px;
		border-width: 2px;
		border-radius: 14px;
		box-shadow: 0 3px 0 rgba(0, 40, 70, .16);
		font-size: 13px;
		translate: none;
	}

	.tbx-bubble:first-child:not(:last-child) {
		--ax: 30%;
	}

	.tbx-bubble:last-child:not(:first-child) {
		--ax: 70%;
	}

	.tbx-bubble::before {
		top: calc(100% + 2px);
		border-width: 11px 8px 0;
	}

	.tbx-bubble::after {
		border-width: 8px 6px 0;
	}
}

/* ======================================================================
 * Bulles BD, forme D « dessinée à la main » (Elsa, 2026-11-07 ; maquette refonte/maquettes/bulles/formes-bulles-6-propositions.html) :
 * contour irrégulier, légère inclinaison (alternée), ombre nette à la couleur du personnage, queue courbe.
 * Queue = 2 calques masqués par un dessin SVG : ::after = remplissage blanc (couvre le contour de la bulle à la
 * jonction), ::before = contour à la couleur du personnage. La pointe arrive sur --ax (même repère qu'avant) ;
 * --tf: -1 retourne la queue (courbe vers la gauche). Bulles des bandeaux CTA : fin de cta.css.
 * ==================================================================== */
.tbx-bubble {
	--tail-w: 24px;
	border-radius: 22px 30px 18px 34px / 30px 18px 34px 20px;
	box-shadow: 4px 5px 0 var(--b, #004b76);
}

.tbx-bubble {
	padding: 11px 17px;
	rotate: -2deg;
	translate: calc(-1 * var(--ax, 50%)) calc(-100% - 20px);
}

.tbx-bubble:nth-child(even) {
	rotate: 2deg;
}

.tbx-bubble::before,
.tbx-bubble::after {
	top: calc(100% - 1.5px);
	left: calc(var(--ax, 50%) - var(--tail-w) * .917);
	width: var(--tail-w);
	height: var(--tail-w);
	border: 0;
	translate: none;
	transform: scaleX(var(--tf, 1));
	transform-origin: calc(var(--tail-w) * .917) 0;
	-webkit-mask: var(--tail-mask) center / 100% 100% no-repeat;
	mask: var(--tail-mask) center / 100% 100% no-repeat;
}

.tbx-bubble::after {
	--tail-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 0 L4 3 C6 12 12 18 22 22 C14 15 13 9 15 3 L15 0 Z'/%3E%3C/svg%3E");
	z-index: 1;
	background: #fff;
}

.tbx-bubble::before {
	--tail-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3 C6 12 12 18 22 22 C14 15 13 9 15 3' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	z-index: 2;
	background: var(--b, #004b76);
}

@media (min-width: 768px) and (max-width: 1300px) {
	.tbx-bubble {
		--tail-w: 20px;
		padding: 8px 12px;
	}
}

/* Téléphone : bulles côte à côte au-dessus de l'illustration ; la première courbe vers la gauche. */
@media (max-width: 767px) {
	.tbx-bubble {
		--tail-w: 18px;
		padding: 7px 9px;
		border-radius: 16px 22px 14px 24px / 22px 14px 24px 16px;
		box-shadow: 3px 3px 0 var(--b, #004b76);
		translate: none;
	}

	.tbx-bubble::before,
	.tbx-bubble::after {
		top: calc(100% - 1px);
	}

	.tbx-bubble:first-child:not(:last-child) {
		--tf: -1;
	}
}

/* Téléphone : réglage propre à chaque bulle (--axm = place de la pointe, --tfm = sens de la queue), posé par inc/hero-bubbles.php,
   pour que la queue désigne la tête du personnage (Elsa, 2026-11-13). Sans réglage, la règle par défaut ci-dessus s'applique. */
@media (max-width: 767px) {
	.tbx-bubble[style*="--axm"] {
		--ax: var(--axm) !important;
	}

	.tbx-bubble[style*="--tfm"] {
		--tf: var(--tfm) !important;
	}

	html body .tbx-bubble[style*="--dym"] {
		translate: 0 var(--dym);
	}
}

/* ---------- Carrousel « Nos meilleures ventes » de l'accueil (inc/products-grid.php, 2026-11-13) ----------
 * Remplace l'en-tête Elementor du bloc produits (masqué ci-dessous) : étiquette, titre, flèches, piste à défilement
 * horizontal aimanté, rang N°x sur chaque carte, carte finale « + N autres … », points et bouton plein vers la Box. */
.home .tbx-products:has(.tbx-carousel) .tbx-products__head {
	display: none !important;
}

.tbx-carousel {
	--c-accent: var(--tbx-orange, #cb5223);
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	font-family: var(--tbx-font);
}

.tbx-carousel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.tbx-carousel__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.tbx-carousel__kicker {
	padding: 6px 14px;
	border-radius: 99px;
	background: var(--c-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tbx-carousel .tbx-carousel__title {
	margin: 0;
	color: var(--tbx-navy, #004b76);
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.tbx-carousel .tbx-carousel__title span {
	color: var(--c-accent);
}

.tbx-carousel__sub {
	margin: 0;
	color: var(--tbx-ink-2, #3d4b5c);
	font-size: 17px;
}

.tbx-carousel__nav {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

.tbx-carousel .tbx-carousel__arrow,
.tbx-carousel .tbx-carousel__arrow:hover,
.tbx-carousel .tbx-carousel__arrow:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-height: 0;
	margin: 0;
	padding: 0 0 3px;
	border: 2px solid var(--c-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--c-accent);
	font: 700 30px/1 var(--tbx-font);
	cursor: pointer;
	transition: background .2s, color .2s, opacity .2s;
}

.tbx-carousel .tbx-carousel__arrow:hover {
	background: var(--c-accent);
	color: #fff;
}

.tbx-carousel .tbx-carousel__arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.tbx-carousel__track {
	display: flex;
	gap: 22px;
	padding: 6px 4px 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.tbx-carousel__track::-webkit-scrollbar {
	display: none;
}

.tbx-carousel__item {
	position: relative;
	display: flex;
	flex: 0 0 clamp(250px, 23vw, 300px);
	scroll-snap-align: start;
}

.tbx-carousel__item > .tbx-card {
	flex: 1;
	width: 100%;
}

.tbx-rank {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 5px 11px;
	border-radius: 99px;
	background: var(--tbx-navy, #004b76);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
	pointer-events: none;
}

.tbx-carousel .tbx-carousel__more {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px;
	border-radius: 22px;
	background: linear-gradient(150deg, #e0652f, var(--c-accent));
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: translate .25s;
}

.tbx-carousel .tbx-carousel__more:hover {
	translate: 0 -4px;
	color: #fff;
}

.tbx-carousel__more-n {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
}

.tbx-carousel__more-t {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.tbx-carousel__more-btn {
	margin-top: 10px;
	padding: 10px 20px;
	border-radius: 99px;
	background: #fff;
	color: var(--c-accent);
	font-weight: 800;
}

.tbx-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.tbx-carousel .tbx-carousel__dot,
.tbx-carousel .tbx-carousel__dot:hover,
.tbx-carousel .tbx-carousel__dot:focus {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #e1bfa8;
	box-shadow: none;
	cursor: pointer;
	transition: width .25s, background .25s;
}

.tbx-carousel .tbx-carousel__dot.is-on {
	width: 30px;
	background: var(--c-accent);
}

.tbx-carousel__cta {
	text-align: center;
}

:is(.tbx-carousel, .tbx-products__cta) .tbx-carousel__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 34px;
	border-radius: 99px;
	background: var(--c-accent);
	box-shadow: 0 10px 24px rgba(203, 82, 35, .35);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
	transition: translate .2s, box-shadow .2s;
}

:is(.tbx-carousel, .tbx-products__cta) .tbx-carousel__btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	color: var(--c-accent);
}

:is(.tbx-carousel, .tbx-products__cta) .tbx-carousel__btn:hover {
	translate: 0 -3px;
	box-shadow: 0 14px 28px rgba(203, 82, 35, .45);
	color: #fff;
}

@media (max-width: 767px) {
	.tbx-carousel__nav {
		display: none;
	}

	.tbx-carousel__item {
		flex-basis: 78%;
	}

	:is(.tbx-carousel, .tbx-products__cta) .tbx-carousel__btn {
		padding: 14px 24px;
		font-size: 16px;
	}
}

/* Accueil, version retenue (2026-11-13) : cartes choisies par Elsa + dernière carte « + N autres … dans le
 * catalogue » en fin de ligne (inc/products-grid.php, attribut more). Le lien d'origine de l'en-tête reste. */
@media (min-width: 1025px) {
	.tbx-cards--more {
		grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)) minmax(0, .75fr);
	}
}

.tbx-cards__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 100%;
	padding: 24px 16px;
	border-radius: 22px;
	background: linear-gradient(150deg, #e0652f, var(--tbx-orange, #cb5223));
	color: #fff;
	font-family: var(--tbx-font);
	text-align: center;
	text-decoration: none;
	transition: translate .25s, box-shadow .25s;
}

.tbx-cards__more:hover,
.tbx-cards__more:focus-visible {
	translate: 0 -4px;
	box-shadow: 0 14px 28px rgba(203, 82, 35, .35);
	color: #fff;
}

.tbx-cards__more-n {
	font-size: clamp(40px, 3.6vw, 56px);
	font-weight: 900;
	line-height: 1;
}

.tbx-cards__more-t {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.tbx-cards__more-btn {
	margin-top: 10px;
	padding: 9px 18px;
	border-radius: 99px;
	background: #fff;
	color: var(--tbx-orange, #cb5223);
	font-weight: 800;
}

@media (max-width: 767px) {
	.tbx-cards > .tbx-cards__more {
		flex: 0 0 72%;
		scroll-snap-align: center;
	}
}

/* Accueil (Elsa, 2026-11-13) : dans les blocs qui ont la carte « + N autres … » (Animation, Entraînement), le lien
 * « Voir toutes les … » de l'en-tête disparaît (la carte le remplace). L'ancienne étiquette « Aperçu du catalogue »
 * au-dessus du titre est remplacée par l'onglet .tbx-cards-tab (plus bas). */
.home .tbx-products:has(.tbx-cards--more) .tbx-products__head .tbx-link {
	display: none !important;
}

/* Box Entraînement : carte « + N autres cours … » en rouge (couleur de la Box, Elsa 2026-11-13). */
.tbx-cards__more--entrainement {
	background: linear-gradient(150deg, #d13a3a, #b92121);
}

.tbx-cards__more--entrainement:hover,
.tbx-cards__more--entrainement:focus-visible {
	box-shadow: 0 14px 28px rgba(185, 33, 33, .35);
}

.tbx-cards__more--entrainement .tbx-cards__more-btn {
	color: #b92121;
}



/* Accueil : lien « Voir la Box Organisation » retiré (Elsa, 2026-11-13). */
.home .tbx-zone--organisation .tbx-products__head .tbx-link {
	display: none !important;
}

/* ---------- Étiquette « Notre sélection / Tous nos services / Tous nos outils » au-dessus des cartes de l'accueil ----------
 * (inc/products-grid.php, tennisbox_cards_tab ; Elsa, 2026-11-16, style D « tampon », sans inclinaison) : fond blanc,
 * cadre et texte de la couleur de la Box, ombre décalée pleine (clin d'œil au style BD du site). */
.tbx-cards-tab {
	--tab: var(--tbx-orange, #cb5223);
	display: flex;
	margin: 0 0 16px;
	font-family: var(--tbx-font);
}

.tbx-cards-tab--communication { --tab: #2b4c74; }
.tbx-cards-tab--entrainement { --tab: #b92121; }
.tbx-cards-tab--organisation { --tab: #0e7a40; }

.tbx-cards-tab__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 2.5px solid var(--tab);
	border-radius: 8px;
	background: #fff;
	box-shadow: 3px 3px 0 var(--tab);
	color: var(--tab);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1.2;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.tbx-cards-tab {
		margin-bottom: 12px;
	}

	.tbx-cards-tab__label {
		padding: 6px 12px;
		font-size: 12px;
	}
}

/* Carte de fin de ligne, v2 (Elsa, 2026-11-16, style « pile de cartes ») : deux cartes plus claires dépassent derrière,
 * « Envie de plus ? », le nombre, le type de produits, bouton blanc « Explorer le catalogue → ». */
.tbx-cards__more {
	--more: var(--tbx-orange, #cb5223);
	position: relative;
	min-height: 0;
	margin: 16px 16px 0 0;
	background: linear-gradient(150deg, color-mix(in srgb, var(--more) 82%, #fff), var(--more));
	box-shadow:
		8px -8px 0 -2px color-mix(in srgb, var(--more) 50%, #fff),
		16px -16px 0 -4px color-mix(in srgb, var(--more) 25%, #fff);
	transition: translate .25s, box-shadow .25s;
}

.tbx-cards__more--entrainement {
	--more: #b92121;
	background: linear-gradient(150deg, color-mix(in srgb, var(--more) 82%, #fff), var(--more));
}

.tbx-cards__more:hover,
.tbx-cards__more:focus-visible,
.tbx-cards__more--entrainement:hover,
.tbx-cards__more--entrainement:focus-visible {
	translate: 0 -4px;
	box-shadow:
		10px -10px 0 -2px color-mix(in srgb, var(--more) 50%, #fff),
		20px -20px 0 -4px color-mix(in srgb, var(--more) 25%, #fff),
		0 14px 28px color-mix(in srgb, var(--more) 35%, transparent);
}

.tbx-cards__more-q {
	font-size: 16px;
	font-weight: 700;
	opacity: .92;
}

.tbx-cards__more .tbx-cards__more-t {
	font-size: 16px;
	font-weight: 600;
}

.tbx-cards__more .tbx-cards__more-btn,
.tbx-cards__more--entrainement .tbx-cards__more-btn {
	margin-top: 12px;
	padding: 9px 14px;
	color: var(--more);
	font-size: 13px;
	white-space: nowrap;
}


/* Carte finale de l'accueil, présentation A sans chiffre (Elsa, 2026-11-17) : même largeur que les cartes produits,
 * accroche en grand, phrase lisible, bouton blanc bien visible avec la flèche dans un rond (comme les autres boutons). */
@media (min-width: 1025px) {
	.tbx-cards--more {
		grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)) minmax(0, 1fr); /* calc() dans repeat() refusé par Safari */
	}
}

.tbx-cards__more {
	position: relative;
	overflow: hidden;
	justify-content: center;
	gap: 14px;
	padding: 32px 22px;
	isolation: isolate;
}

.tbx-cards__more::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -60px;
	bottom: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
}

.tbx-cards__more-q {
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.1;
}

.tbx-cards__more-t {
	max-width: 24ch;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	opacity: .95;
}

.tbx-cards__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 8px 8px 8px 20px;
	font-size: 15px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
	transition: transform .2s;
}

.tbx-cards__more-dot {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tbx-orange, #cb5223);
	color: #fff;
}

.tbx-cards__more--entrainement .tbx-cards__more-dot {
	background: #b92121;
}

.tbx-cards__more:hover .tbx-cards__more-btn {
	transform: scale(1.04);
}

/* Une seule phrase + bouton (Elsa, 2026-11-17). */
.tbx-cards__more {
	gap: 22px;
}

.tbx-cards__more-q {
	max-width: 14ch;
	font-size: clamp(22px, 1.8vw, 27px);
	line-height: 1.2;
}

/* Téléphone : la carte finale prend la même largeur que les cartes produits (100 %), plus 72 % (Elsa, 2026-11-17). */
@media (max-width: 767px) {
	.tbx-cards > .tbx-cards__more {
		flex: 0 0 100%;
		scroll-snap-align: center;
	}
}

/* 17/11 (Elsa) : la carte finale doit avoir exactement la taille des cartes produits : on retire la marge et les
 * cartes « empilées » de la v2 du 16/11 (elles rétrécissaient la carte de 16 px). Même arrondi que .tbx-card. */
.tbx-cards > .tbx-cards__more,
.tbx-cards > .tbx-cards__more--entrainement {
	margin: 0;
	border-radius: 22px;
	box-shadow: none;
}

.tbx-cards > .tbx-cards__more:hover,
.tbx-cards > .tbx-cards__more:focus-visible {
	box-shadow: 0 14px 28px color-mix(in srgb, var(--more) 35%, transparent);
}

/* Téléphone : hauts de page compacts sur toutes les pages (Elsa, 2026-11-17), comme l'accueil, pour que l'illustration
 * tienne entière dans le premier écran : marges et espacements réduits, titres un peu plus petits, illustration plus étroite.
 * Concerne Catalogue, pages Box, Tarifs, Blog (.tbx-cat-hero), Contact (.tbx-ct-hero) et À propos (.tbx-ap-hero). */
@media (max-width: 767px) {
	html body .tbx-cat-hero,
	html body .elementor .e-con.tbx-ct-hero,
	html body .elementor .tbx-sec.tbx-ap-hero {
		padding-top: 16px !important;
		padding-bottom: 28px !important;
		gap: 12px !important;
		row-gap: 12px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__text {
		gap: 10px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__top {
		font-size: 28px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__big {
		font-size: 44px !important;
		margin: 2px 0 2px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__intro,
	html body .tbx-cat-hero .tbx-cat-hero__sub {
		font-size: 15px !important;
		line-height: 1.45 !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__args {
		margin-top: 0 !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__stock {
		margin-top: 0 !important;
	}

	html body :is(.tbx-cat-hero, .tbx-ct-hero, .tbx-ap-hero) .tbx-bubbles {
		margin-bottom: 6px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__visual,
	html body .elementor .tbx-ct-hero .tbx-ct-hero__visual,
	html body .elementor .tbx-ap-hero .tbx-ap-hero__visual {
		width: 100% !important;
		max-width: 290px !important;
		margin: 0 auto !important;
	}

	/* Contact et À propos (Elementor) */
	html body .elementor .tbx-ct-hero .e-con,
	html body .elementor .tbx-ap-hero .e-con {
		row-gap: 12px !important;
	}

	html body .elementor .tbx-ct-hero .tbx-ct-hero__lead,
	html body .elementor .tbx-ap-hero .tbx-ap-hero__lead {
		font-size: 15px !important;
		line-height: 1.45 !important;
	}

	html body .elementor .tbx-ct-hero .e-con.tbx-ct-hero__ctas {
		flex-direction: row !important;
		gap: 8px !important;
	}

	html body .elementor .tbx-ct-hero .tbx-ct-hero__ctas > * {
		flex: 1 1 0 !important;
		min-width: 0 !important;
	}
}

@media (max-width: 767px) {
	/* Pages Box : texte plus long, illustration un peu plus étroite encore. */
	html body .tbx-cat-hero .tbx-cat-hero__visual {
		max-width: 255px !important;
	}

	html body .tbx-cat-hero .tbx-cat-hero__args li {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
}

@media (max-width: 767px) {
	/* Les bulles gardent toute la largeur (sinon leur texte déborde) : seule l'image est rétrécie et centrée. */
	html body .tbx-cat-hero .tbx-cat-hero__visual,
	html body .elementor .tbx-ct-hero .tbx-ct-hero__visual,
	html body .elementor .tbx-ap-hero .tbx-ap-hero__visual {
		max-width: none !important;
	}

	html body :is(.tbx-cat-hero__photo, .tbx-ct-hero__photo, .tbx-ap-hero__photo) img {
		display: block !important;
		width: 100% !important;
		max-width: 255px !important;
		height: auto !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	html body :is(.tbx-cat-hero, .tbx-ct-hero, .tbx-ap-hero) .tbx-bubble {
		font-size: 12px !important;
	}
}

@media (max-width: 767px) {
	/* Contact : boutons côte à côte, texte sur une ligne, flèche plus petite (même réglage que l'accueil). */
	html body .elementor .tbx-ct-hero .tbx-ct-hero__ctas > :first-child {
		flex-grow: 1.15 !important;
	}

	html body .elementor .tbx-ct-hero .tbx-ct-hero__ctas a {
		justify-content: center !important;
		width: 100% !important;
		height: 48px !important;
		min-height: 48px !important;
		padding: 0 12px !important;
		font-size: 13.5px !important;
		white-space: nowrap !important;
	}

	html body .elementor .tbx-ct-hero .tbx-ct-hero__ctas > :first-child a {
		justify-content: flex-start !important;
		padding-right: 44px !important;
	}

	html body .elementor .tbx-ct-hero .tbx-ct-hero__ctas .elementor-button-content-wrapper::after {
		right: 6px !important;
		width: 34px !important;
		height: 34px !important;
	}
}

/* Pages Box sur téléphone (Elsa, 2026-11-18) :
 * - le grand mot du titre (« COMMUNICATION ») ne touche plus le bord droit : sa taille suit la largeur de l'écran ;
 * - un argument peut demander son retour à la ligne (« \n » dans inc/catalogue.php, ex. « Cours / collectifs »),
 *   pour s'aligner sur les deux autres arguments écrits sur deux lignes. */
@media (max-width: 767px) {
	html body .tbx-cat-hero .tbx-cat-hero__big {
		font-size: min(44px, 10.2vw) !important;
	}

	/* Badge « N produits » retiré sur téléphone (Elsa, 2026-11-18). */
	html body .tbx-cat-hero .tbx-cat-hero__stock {
		display: none !important;
	}
}

@media (min-width: 768px) {
	html body .tbx-cat-hero .tbx-m-br {
		display: none;
	}
}

/* Téléphone (Elsa, 2026-11-19) : carte finale « Et plein d'autres … » de l'accueil, texte agrandi et mis en valeur
 * (accroche en grand avec une légère ombre, bouton plus grand). L'ordinateur ne change pas. */
@media (max-width: 767px) {
	.tbx-cards > .tbx-cards__more {
		gap: 28px;
		padding: 36px 26px;
	}

	.tbx-cards > .tbx-cards__more .tbx-cards__more-q {
		max-width: 11ch;
		font-size: min(36px, 9.4vw);
		font-weight: 900;
		letter-spacing: -.025em;
		line-height: 1.12;
		opacity: 1;
		text-shadow: 0 3px 12px rgba(0, 0, 0, .18);
	}

	.tbx-cards > .tbx-cards__more .tbx-cards__more-btn {
		gap: 12px;
		padding: 10px 10px 10px 24px;
		font-size: 17px;
	}

	.tbx-cards > .tbx-cards__more .tbx-cards__more-dot {
		width: 36px;
		height: 36px;
	}
}
