/* Équipes HBCBWL 0.2.0 : grille des catégories (accueil) */
.hb-categories {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: var(--wp--style--block-gap, 1.5rem);
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto !important;
	margin-block-start: 2rem;
	width: 100%;
}
.hb-categorie .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.hb-categorie .wp-block-post-featured-image a { display: block; }
.hb-section .hb-retour.alignwide { margin-block-start: 1.5rem; }

/* ---------- 0.3.0 : membres, organigramme, pages du club ---------- */
:root {
	--hb-bordeaux: var(--wp--preset--color--bordeaux, #7a1a1a);
	--hb-creme: var(--wp--preset--color--creme, #f6efe4);
	--hb-or: #f2b134;
}

/* Trombinoscope */
.hb-membres {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr));
	gap: 2rem 1.5rem;
	margin-block: 2rem;
}
.hb-membres--centre {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.hb-membres--centre > .hb-membre { width: 10.5rem; }
.hb-membre { text-align: center; }
.hb-membre-photo {
	width: 7.5rem;
	height: 7.5rem;
	margin: 0 auto .75rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--hb-bordeaux);
	box-shadow: 0 0 0 4px var(--hb-creme), 0 0 0 6px var(--hb-bordeaux);
}
.hb-membre-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-membre-initiales {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--hb-creme);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: .05em;
}
.hb-membre p { margin: 0; line-height: 1.3; }
.hb-membre-nom { font-weight: 700; font-size: 1.05rem; }
.hb-membre-fonction { color: var(--hb-bordeaux); font-size: .9rem; margin-top: .2rem !important; }
.hb-membre-diplome { font-size: .8rem; opacity: .75; margin-top: .2rem !important; }
.hb-membre-equipes { margin-top: .5rem !important; display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.hb-membre-equipes a {
	font-size: .75rem;
	padding: .15rem .55rem;
	border-radius: 999px;
	background: var(--hb-creme);
	color: var(--hb-bordeaux);
	text-decoration: none;
	font-weight: 600;
}
.hb-membre-equipes a:hover { background: var(--hb-bordeaux); color: var(--hb-creme); }

/* Organigramme */
.hb-organigramme { margin-block: 2rem; }
.hb-orga-groupe { position: relative; padding-top: 1rem; }
.hb-orga-groupe + .hb-orga-groupe { margin-top: 2.5rem; }
.hb-orga-groupe + .hb-orga-groupe::before {
	content: "";
	position: absolute;
	top: -2.5rem;
	left: 50%;
	height: 2.5rem;
	border-left: 3px solid var(--hb-bordeaux);
	opacity: .35;
}
.hb-orga-titre {
	text-align: center;
	font-size: 1.1rem !important;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 auto 1.5rem !important;
	padding: .35rem 1.2rem;
	width: fit-content;
	border-radius: 999px;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
}
.hb-orga-tete { flex-basis: 100%; display: flex; justify-content: center; }
.hb-orga-tete .hb-membre { width: 12rem; }
.hb-orga-tete .hb-membre-photo { width: 9.5rem; height: 9.5rem; }

/* Chiffres clés */
.hb-chiffres { text-align: center; margin-block: 2.5rem !important; }
.hb-chiffres .hb-chiffre {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	color: var(--hb-bordeaux);
	margin: 0;
}
.hb-chiffres .hb-chiffre-legende { margin-top: .4rem; font-size: .95rem; }

/* Frise (histoire) et étapes (arbitrage) */
.hb-frise {
	position: relative;
	margin-block: 1.5rem 2.5rem;
	padding-left: 2rem;
	border-left: 3px solid var(--hb-bordeaux);
}
.hb-frise-etape { position: relative; margin-bottom: 1.75rem; }
.hb-frise-etape::before {
	content: "";
	position: absolute;
	left: calc(-2rem - 9px);
	top: .35rem;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--hb-creme);
	border: 3px solid var(--hb-bordeaux);
}
.hb-frise-etape > * { margin-block: 0 .35rem; }
.hb-frise-date {
	font-weight: 800;
	color: var(--hb-bordeaux);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .85rem;
}
.hb-frise-etape h3 { font-size: 1.25rem; }

/* Colonnes « valeurs » et salles */
.hb-valeurs > .wp-block-column,
.hb-salles > .wp-block-column {
	background: var(--hb-creme);
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
	border-top: 4px solid var(--hb-bordeaux);
}
.hb-valeurs h3, .hb-salles h3 { margin-top: 0; font-size: 1.2rem; }

/* Encadrés et appels */
.hb-encart {
	margin-block: 3rem 1rem !important;
	padding: 1.75rem 2rem;
	border-radius: 14px;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
}
.hb-encart h2 { margin-top: 0; color: inherit; }
.hb-encart .wp-block-button__link { background: var(--hb-creme); color: var(--hb-bordeaux); }
.hb-appel { border-left: 4px solid var(--hb-or); padding-left: 1rem; }
.hb-vide { text-align: center; opacity: .7; }

@media (max-width: 600px) {
	.hb-membres--centre > .hb-membre { width: calc(50% - .75rem); }
	.hb-membre-photo { width: 6rem; height: 6rem; }
	.hb-encart { padding: 1.25rem; }
}

/* ---------- 0.3.1 : page « Qui sommes-nous ? » en sections ---------- */
:root {
	--hb-encre: var(--wp--preset--color--encre, #1d1210);
	--hb-bordeaux-fonce: var(--wp--preset--color--photo, #5a1414);
}
.hb-qsn {
	margin-block: 0 !important;
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	padding-inline: clamp(1.25rem, 5vw, 3rem);
	position: relative;
	overflow: hidden;
}
.hb-qsn h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.05; margin-top: .2rem; }
.hb-surtitre {
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: .8rem !important;
	font-weight: 800;
	color: var(--hb-bordeaux);
	margin-bottom: .3rem !important;
	display: flex;
	align-items: center;
	gap: .7rem;
}
.hb-surtitre::before { content: ""; width: 2.2rem; height: 3px; background: currentColor; }
.hb-qsn-chapo { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 42rem; }
.hb-centre { justify-content: center; }

/* 1. Bandeau d'ouverture */
.hb-qsn-hero {
	background: radial-gradient(circle at 85% 20%, var(--hb-bordeaux) 0, var(--hb-bordeaux-fonce) 70%);
	color: var(--hb-creme);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
	padding-bottom: calc(clamp(3.5rem, 8vw, 6.5rem) + 4vw);
}
.hb-qsn-hero::after {
	content: "1971";
	position: absolute;
	right: -2vw;
	bottom: -4vw;
	font-size: clamp(8rem, 26vw, 22rem);
	font-weight: 900;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px rgba(246, 239, 228, .12);
	pointer-events: none;
}
.hb-qsn-hero .hb-surtitre { color: var(--hb-or); }
.hb-qsn-hero .hb-qsn-titre {
	font-size: clamp(2.4rem, 6vw, 4.6rem) !important;
	line-height: 1;
	color: inherit;
	margin: .4rem 0 1.2rem;
	text-wrap: balance;
}
.hb-qsn-hero-cols { align-items: center !important; gap: clamp(2rem, 5vw, 4rem) !important; position: relative; z-index: 1; }
.hb-qsn-hero .wp-block-button__link { background: var(--hb-or); color: var(--hb-encre); font-weight: 700; }
.hb-qsn-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--hb-creme); border: 2px solid var(--hb-creme); }
.hb-qsn-photo { margin: 0; position: relative; }
.hb-qsn-photo img {
	border-radius: 18px;
	transform: rotate(2.5deg);
	box-shadow: -18px 18px 0 var(--hb-or), 0 25px 50px rgba(0, 0, 0, .35);
	width: 100%;
	height: auto;
}

/* Emplacements quand une photo manque */
.hb-qsn-repli {
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 28px), var(--hb-bordeaux);
	border: 2px dashed rgba(246, 239, 228, .45);
}
.hb-qsn-repli .hb-qsn-repli-texte { font-size: clamp(2rem, 6vw, 4rem); font-weight: 900; color: var(--hb-creme); margin: 0; opacity: .85; }

/* 2. Bande de chiffres */
.hb-qsn-bande { background: var(--hb-encre); color: var(--hb-creme); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.hb-qsn-bande .hb-chiffres { margin-block: 0 !important; }
.hb-qsn-bande .hb-chiffre { color: var(--hb-or) !important; font-size: clamp(2.6rem, 6vw, 4.2rem) !important; }
.hb-qsn-bande .wp-block-column + .wp-block-column { border-left: 1px solid rgba(246, 239, 228, .15); }
.hb-qsn-bande .hb-chiffre-legende { opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem !important; }

/* 3. Le projet de départ */
.hb-qsn-projet { text-align: center; }
.hb-qsn-projet .hb-surtitre { justify-content: center; }
.hb-qsn-projet .hb-surtitre::before { display: none; }
.hb-qsn-grande-phrase {
	font-size: clamp(1.6rem, 3.6vw, 2.5rem) !important;
	line-height: 1.25;
	font-weight: 700;
	max-width: 46rem;
	margin-inline: auto !important;
	text-wrap: balance;
}
.hb-qsn-grande-phrase::before,
.hb-qsn-grande-phrase::after { content: ""; display: block; width: 3.5rem; height: 4px; background: var(--hb-bordeaux); margin: 1.5rem auto; }
.hb-qsn-signature { font-style: italic; opacity: .75; }

/* 4. Frise alternée */
.hb-qsn-histoire { background: var(--hb-creme); }
.hb-frise-alt { position: relative; margin-block: 3rem 2.5rem !important; }
.hb-frise-alt::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	transform: translateX(-50%);
	background: linear-gradient(var(--hb-bordeaux), var(--hb-or));
	border-radius: 4px;
}
.hb-frise-alt .hb-frise-etape {
	position: relative;
	width: calc(50% - 3rem);
	background: #fff;
	border-radius: 16px;
	padding: 1.6rem 1.8rem;
	box-shadow: 0 12px 30px rgba(29, 18, 16, .08);
	margin: 0 0 2.5rem !important;
}
.hb-frise-alt .hb-frise-etape:nth-child(odd) { margin-right: auto !important; }
.hb-frise-alt .hb-frise-etape:nth-child(even) { margin-left: auto !important; }
.hb-frise-alt .hb-frise-etape::before {
	content: "";
	position: absolute;
	top: 2rem;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hb-or);
	border: 4px solid var(--hb-bordeaux);
	box-shadow: 0 0 0 6px var(--hb-creme);
}
.hb-frise-alt .hb-frise-etape:nth-child(odd)::before { right: calc(-3rem - 14px); }
.hb-frise-alt .hb-frise-etape:nth-child(even)::before { left: calc(-3rem - 14px); }
.hb-frise-alt .hb-frise-etape > * { margin-block: 0 .5rem; }
.hb-frise-annee {
	font-size: clamp(2.2rem, 4vw, 3rem) !important;
	font-weight: 900;
	line-height: 1;
	color: var(--hb-bordeaux);
}
.hb-frise-alt .hb-frise-etape:last-child .hb-frise-annee { color: transparent; -webkit-text-stroke: 1.5px var(--hb-bordeaux); }
.hb-frise-alt h3 { font-size: 1.3rem; }
.hb-qsn-histoire .hb-appel { max-width: 46rem; margin-inline: auto !important; background: #fff; border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; }

/* 5. Salles */
.hb-qsn-salles { gap: 1.5rem !important; margin-block: 2rem !important; }
.hb-qsn-salles > .wp-block-column {
	position: relative;
	padding: 2rem 2rem 1.75rem;
	border-radius: 18px;
	background: var(--hb-encre);
	color: var(--hb-creme);
	overflow: hidden;
}
.hb-qsn-salles > .wp-block-column::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	border: 22px solid var(--hb-bordeaux);
	opacity: .6;
}
.hb-qsn-salles > .wp-block-column:nth-child(2) { background: var(--hb-bordeaux); }
.hb-qsn-salles > .wp-block-column:nth-child(2)::after { border-color: var(--hb-or); opacity: .35; }
.hb-qsn-salles h3 { color: inherit; margin: .2rem 0 .8rem; font-size: 1.6rem; }
.hb-qsn-lieu { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem !important; font-weight: 800; color: var(--hb-or); margin: 0 !important; }
.hb-qsn-horaires { border-top: 1px solid rgba(246, 239, 228, .2); padding-top: .9rem; margin-top: 1rem !important; font-size: .95rem; opacity: .9; }

/* 6. Pratiques */
.hb-qsn-pratiques { background: var(--hb-bordeaux); color: var(--hb-creme); text-align: center; }
.hb-qsn-pratiques .hb-surtitre { color: var(--hb-or); justify-content: center; }
.hb-qsn-pratiques .hb-surtitre::before { display: none; }
.hb-qsn-pratiques h2 { color: inherit; }
.hb-qsn-pratiques .hb-qsn-chapo { margin-inline: auto !important; opacity: .9; }
.hb-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 52rem; margin: 2rem auto 0 !important; }
.hb-puces a,
.hb-puces span {
	display: inline-block;
	padding: .65rem 1.2rem;
	border-radius: 999px;
	border: 2px solid rgba(246, 239, 228, .5);
	color: var(--hb-creme);
	text-decoration: none;
	font-weight: 700;
	transition: background .2s, color .2s, transform .2s;
}
.hb-puces a:hover { background: var(--hb-creme); color: var(--hb-bordeaux); transform: translateY(-2px); }

/* 7. Valeurs */
.hb-qsn-valeurs { gap: 1.5rem !important; margin-top: 2rem !important; }
.hb-qsn-valeurs > .wp-block-column {
	position: relative;
	padding: 2rem 1.8rem;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(122, 26, 26, .12);
	transition: transform .25s, box-shadow .25s;
}
.hb-qsn-valeurs > .wp-block-column:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29, 18, 16, .12); }
.hb-qsn-num { font-size: 3.5rem !important; font-weight: 900; line-height: 1; margin: 0 0 .5rem !important; color: transparent; -webkit-text-stroke: 2px var(--hb-bordeaux); }
.hb-qsn-valeurs h3 { font-size: 1.35rem; margin: 0 0 .5rem; }

/* 8. Mascotte */
.hb-qsn-mascotte { background: var(--hb-encre); color: var(--hb-creme); }
.hb-qsn-mascotte h2 { color: inherit; }
.hb-qsn-mascotte .hb-surtitre { color: var(--hb-or); }
.hb-qsn-mascotte-cols { align-items: center !important; gap: clamp(2rem, 5vw, 4rem) !important; }
.hb-qsn-mascotte-cols > .wp-block-column:first-child { flex-basis: 35% !important; flex-grow: 0 !important; }
.hb-qsn-mascotte-img { margin: 0 auto; max-width: 280px; }
.hb-qsn-mascotte-img img { border-radius: 50%; width: 100%; height: auto; box-shadow: 0 0 0 8px var(--hb-bordeaux), 0 0 0 16px rgba(242, 177, 52, .35); background: var(--hb-creme); }
.hb-qsn-mascotte .hb-qsn-repli { border-radius: 50%; aspect-ratio: 1; max-width: 280px; margin-inline: auto; }
.hb-qsn-mascotte .hb-qsn-repli .hb-qsn-repli-texte { font-size: 1.8rem; }

/* 9. Archives */
.hb-qsn-archives { padding-block: clamp(2.5rem, 5vw, 4rem); }
.hb-qsn-archive { max-width: 900px; margin-inline: auto !important; }
.hb-qsn-archive img { border-radius: 16px; filter: sepia(.25) contrast(1.05); width: 100%; height: auto; box-shadow: 0 20px 45px rgba(29, 18, 16, .18); }
.hb-qsn-archive figcaption { text-align: center; font-style: italic; opacity: .7; }
.hb-qsn-archives .hb-qsn-repli { max-width: 900px; margin-inline: auto; aspect-ratio: 16 / 7; }
.hb-qsn-archives .hb-qsn-repli .hb-qsn-repli-texte { font-size: 1.5rem; }

/* 10. Appel final */
.hb-qsn-final {
	text-align: center;
	background: linear-gradient(135deg, var(--hb-bordeaux), var(--hb-bordeaux-fonce));
	color: var(--hb-creme);
	clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
	padding-top: calc(clamp(3.5rem, 8vw, 6.5rem) + 4vw);
}
.hb-qsn-final h2 { color: inherit; }
.hb-qsn-final .hb-qsn-chapo { margin-inline: auto !important; }
.hb-qsn-final .wp-block-button__link { background: var(--hb-or); color: var(--hb-encre); font-weight: 700; }
.hb-qsn-final .is-style-outline .wp-block-button__link { background: transparent; color: var(--hb-creme); border: 2px solid var(--hb-creme); }

/* Apparition au défilement (navigateurs récents, sans effet si l'animation est réduite) */
@keyframes hb-apparition {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hb-frise-alt .hb-frise-etape,
		.hb-qsn-valeurs > .wp-block-column,
		.hb-qsn-salles > .wp-block-column,
		.hb-qsn-grande-phrase {
			animation: hb-apparition linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 25%;
		}
	}
}

/* Téléphone */
@media (max-width: 781px) {
	.hb-frise-alt::before { left: 10px; transform: none; }
	.hb-frise-alt .hb-frise-etape { width: auto; margin-left: 2.5rem !important; margin-right: 0 !important; }
	.hb-frise-alt .hb-frise-etape:nth-child(n)::before { left: calc(-2.5rem - 2px); right: auto; }
	.hb-qsn-bande .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(246, 239, 228, .15); padding-top: 1.2rem; }
	.hb-qsn-mascotte-cols > .wp-block-column:first-child { flex-basis: 100% !important; }
	.hb-qsn-photo img { transform: none; box-shadow: -10px 10px 0 var(--hb-or); }
}

/* ---------- 0.3.2 : page « École d'arbitrage » ---------- */
:root { --hb-jaune: #f2c230; --hb-rouge: #d0202b; --hb-bleu: #2d6cdf; }
.hb-picto { width: 48px; height: 48px; display: block; }

/* 1. Bandeau : parquet sombre, lignes de terrain */
.hb-arb-hero {
	background:
		radial-gradient(circle at 100% 110%, transparent 0 29%, rgba(246, 239, 228, .07) 29% 29.6%, transparent 29.6% 42%, rgba(246, 239, 228, .05) 42% 42.4%, transparent 42.4%),
		linear-gradient(90deg, transparent calc(50% - 1px), rgba(246, 239, 228, .05) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
		radial-gradient(circle at 20% 0%, var(--hb-bordeaux-fonce), var(--hb-encre) 65%);
	color: var(--hb-creme);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
	padding-bottom: calc(clamp(3.5rem, 8vw, 6.5rem) + 4vw);
}
.hb-arb-hero .hb-surtitre { color: var(--hb-jaune); }
.hb-arb-hero .hb-qsn-titre { font-size: clamp(2.4rem, 6vw, 4.6rem) !important; line-height: 1; color: inherit; margin: .4rem 0 1.2rem; text-wrap: balance; }
.hb-arb-hero .wp-block-button__link { background: var(--hb-jaune); color: var(--hb-encre); font-weight: 800; }
.hb-arb-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--hb-creme); border: 2px solid var(--hb-creme); }
.hb-arb-illu svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .45)); }
.hb-arb-illu text { font-family: inherit; }
@media (prefers-reduced-motion: no-preference) {
	.hb-arb-illu .hb-carton { transform-box: fill-box; transform-origin: 50% 100%; animation: hb-carton-entree .9s cubic-bezier(.2, .8, .2, 1.2) both; }
	.hb-arb-illu .hb-carton-rouge { animation-delay: .15s; }
	.hb-arb-illu .hb-carton-jaune { animation-delay: .3s; }
	.hb-arb-illu .hb-chrono { animation: hb-pulse 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes hb-carton-entree { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes hb-siffle { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -8deg; } 88% { rotate: 6deg; } 92% { rotate: -4deg; } }
@keyframes hb-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }

/* 2. Bande « carton jaune » */
.hb-arb-bande {
	background: var(--hb-jaune);
	color: var(--hb-encre);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	text-align: center;
}
.hb-arb-slogan {
	font-size: clamp(2rem, 5.5vw, 4rem) !important;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -.01em;
	margin: 0 auto 2rem !important;
	max-width: none !important;
}
.hb-arb-bande .hb-chiffres { margin: 0 !important; }
.hb-arb-bande .hb-chiffre { color: var(--hb-encre) !important; font-size: clamp(2.6rem, 6vw, 4rem) !important; }
.hb-arb-bande .wp-block-column + .wp-block-column { border-left: 2px solid rgba(29, 18, 16, .15); }
.hb-arb-bande .hb-chiffre-legende { font-weight: 600; }

/* 3. Cartes « pourquoi » */
.hb-arb-pourquoi { background: var(--hb-creme); }
.hb-arb-cartes { gap: 1.5rem !important; margin-top: 2rem !important; }
.hb-arb-carte {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 1.8rem 1.6rem 1.6rem;
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.hb-arb-carte::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 120px; border-radius: 10px; rotate: 20deg; background: var(--hb-jaune); opacity: .18; }
.hb-arb-carte:nth-child(2)::after { background: var(--hb-rouge); }
.hb-arb-carte:nth-child(3)::after { background: var(--hb-bleu); }
.hb-arb-carte:nth-child(4)::after { background: var(--hb-bordeaux); }
.hb-arb-carte:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 20px 40px rgba(29, 18, 16, .14); }
.hb-arb-carte .hb-picto { color: var(--hb-bordeaux); margin-bottom: .8rem; }
.hb-arb-carte h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.hb-arb-carte p { margin: 0; }

/* 4. Parcours */
.hb-arb-etapes { gap: 1.25rem !important; margin-top: 2.5rem !important; counter-reset: etape; position: relative; }
.hb-arb-etape {
	position: relative;
	padding: 2.4rem 1.4rem 1.5rem;
	border-radius: 18px;
	background: var(--hb-encre);
	color: var(--hb-creme);
	margin-top: 1.5rem !important;
}
.hb-arb-etape:nth-child(even) { background: var(--hb-bordeaux); }
.hb-arb-etape-num {
	position: absolute;
	top: -1.6rem;
	left: 1.4rem;
	width: 3.2rem;
	height: 3.2rem;
	margin: 0 !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	font-weight: 900;
	font-size: 1.5rem !important;
	box-shadow: 0 0 0 6px #fff;
}
.hb-arb-etape .hb-picto { color: var(--hb-jaune); margin-bottom: .6rem; }
.hb-arb-etape h3 { color: inherit; margin: 0 0 .4rem; font-size: 1.3rem; }
.hb-arb-etape p:last-child { margin: 0; opacity: .9; font-size: .95rem; }

/* 5. Niveaux */
.hb-arb-niveaux { background: var(--hb-bordeaux); color: var(--hb-creme); }
.hb-arb-niveaux h2 { color: inherit; }
.hb-arb-niveaux .hb-surtitre { color: var(--hb-jaune); }
.hb-arb-niveaux-grille { gap: 1.25rem !important; margin-top: 2rem !important; align-items: end; }
.hb-arb-niveau {
	position: relative;
	border-radius: 18px;
	padding: 1.6rem 1.5rem 1.4rem;
	background: rgba(0, 0, 0, .22);
	border: 1px solid rgba(246, 239, 228, .15);
}
.hb-arb-niveau::before {
	content: "";
	display: block;
	height: 10px;
	border-radius: 10px;
	margin-bottom: 1.2rem;
	background: linear-gradient(90deg, var(--hb-jaune) var(--hb-niv, 33%), rgba(246, 239, 228, .15) var(--hb-niv, 33%));
}
.hb-arb-niveau-1 { --hb-niv: 33%; }
.hb-arb-niveau-2 { --hb-niv: 66%; min-height: 110%; }
.hb-arb-niveau-3 { --hb-niv: 100%; background: var(--hb-jaune); color: var(--hb-encre); border: 0; box-shadow: 0 20px 45px rgba(0, 0, 0, .3); }
.hb-arb-niveau-3::before { background: var(--hb-encre); }
.hb-arb-niveau-nom { font-size: 1.6rem !important; font-weight: 900; margin: 0 0 .4rem !important; text-transform: uppercase; }
.hb-arb-niveau p:last-child { margin: 0; }

/* 6. Outils + maquettes */
.hb-arb-outils { background: var(--hb-encre); color: var(--hb-creme); }
.hb-arb-outils h2 { color: inherit; }
.hb-arb-outils .hb-surtitre { color: var(--hb-jaune); }
.hb-arb-atout { position: relative; padding-left: 2rem; margin: .7rem 0 !important; }
.hb-arb-atout::before { content: ""; position: absolute; left: 0; top: .2rem; width: 18px; height: 24px; border-radius: 4px; background: var(--hb-jaune); rotate: 12deg; }
.hb-arb-atout:nth-of-type(odd)::before { background: var(--hb-rouge); rotate: -8deg; }
.hb-arb-mock { position: relative; min-height: 26rem; }
.hb-arb-fiche,
.hb-arb-question { border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.hb-arb-fiche { background: #fff; color: var(--hb-encre); width: 82%; rotate: -3deg; }
.hb-arb-fiche p, .hb-arb-question p { margin: 0; }
.hb-arb-fiche-titre { font-weight: 900; font-size: 1.2rem; }
.hb-arb-fiche-sous { font-size: .8rem; opacity: .6; margin-bottom: 1rem !important; }
.hb-arb-ligne { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .8rem; font-size: .85rem; margin: .55rem 0; }
.hb-arb-barre { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--hb-bordeaux) var(--v), #eee var(--v)); }
.hb-arb-fiche-note { margin-top: 1rem !important; padding-top: .8rem; border-top: 1px dashed #ccc; font-size: .82rem; }
.hb-arb-question {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 62%;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	rotate: 4deg;
}
.hb-arb-q-num { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.hb-arb-q-texte { font-weight: 800; font-size: 1.05rem; margin: .4rem 0 .8rem !important; }
.hb-arb-rep { background: rgba(255, 255, 255, .55); border-radius: 8px; padding: .4rem .7rem; margin: .3rem 0 !important; font-size: .9rem; }
.hb-arb-rep-bonne { background: var(--hb-encre); color: var(--hb-jaune); font-weight: 800; }

/* 7 et 8. Questions dépliables */
.hb-arb-sais-tu { background: var(--hb-creme); }
.hb-arb-quiz,
.hb-arb-faq {
	max-width: 46rem;
	margin: 0 auto .9rem !important;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(29, 18, 16, .07);
	overflow: hidden;
}
.hb-arb-quiz summary,
.hb-arb-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.1rem 3.5rem 1.1rem 1.4rem;
	font-weight: 700;
	position: relative;
}
.hb-arb-quiz summary::-webkit-details-marker,
.hb-arb-faq summary::-webkit-details-marker { display: none; }
.hb-arb-quiz summary::after,
.hb-arb-faq summary::after {
	content: "+";
	position: absolute;
	right: 1.2rem;
	top: 50%;
	translate: 0 -50%;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
	font-size: 1.2rem;
	transition: rotate .2s;
}
.hb-arb-quiz summary::after { background: var(--hb-jaune); color: var(--hb-encre); content: "?"; }
.hb-arb-quiz[open] summary::after,
.hb-arb-faq[open] summary::after { rotate: 45deg; }
.hb-arb-quiz[open] summary::after { content: "!"; rotate: 0deg; }
.hb-arb-quiz > p,
.hb-arb-faq > p { padding: 0 1.4rem 1.2rem; margin: 0; }
.hb-arb-quiz[open] { border-left: 6px solid var(--hb-jaune); }
.hb-arb-faq[open] { border-left: 6px solid var(--hb-bordeaux); }
.hb-arb-sais-tu h2, .hb-arb-sais-tu .hb-qsn-chapo,
.hb-arb-parents h2 { text-align: center; margin-inline: auto !important; }
.hb-arb-sais-tu .hb-surtitre, .hb-arb-parents .hb-surtitre { justify-content: center; }

/* 10. Appel final */
.hb-arb-final { position: relative; }
.hb-arb-final::before {
	content: "";
	position: absolute;
	left: 6%;
	top: 30%;
	width: 90px;
	height: 128px;
	border-radius: 12px;
	background: var(--hb-jaune);
	rotate: -14deg;
	opacity: .9;
	box-shadow: 110px 40px 0 -10px var(--hb-rouge);
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hb-arb-carte, .hb-arb-etape, .hb-arb-niveau, .hb-arb-fiche, .hb-arb-question {
			animation: hb-apparition linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 25%;
		}
	}
}

@media (max-width: 781px) {
	.hb-arb-bande .wp-block-column + .wp-block-column { border-left: 0; border-top: 2px solid rgba(29, 18, 16, .15); padding-top: 1rem; }
	.hb-arb-mock { min-height: 0; }
	.hb-arb-fiche { width: auto; rotate: 0deg; }
	.hb-arb-question { position: relative; width: auto; rotate: 2deg; margin-top: -1rem; }
	.hb-arb-niveau-2 { min-height: 0; }
	.hb-arb-final::before { display: none; }
}

/* ---------- 0.3.3 : pages « Organigramme » et « Nos entraîneurs » ---------- */

/* Bandeaux : même allure que l'école d'arbitrage */
.hb-org-hero,
.hb-ent-hero {
	color: var(--hb-creme);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
	padding-bottom: calc(clamp(3.5rem, 8vw, 6.5rem) + 4vw);
}
.hb-org-hero {
	background:
		radial-gradient(circle at 80% 30%, rgba(242, 177, 52, .18), transparent 45%),
		radial-gradient(circle at 10% 100%, var(--hb-bordeaux), var(--hb-bordeaux-fonce) 60%, var(--hb-encre));
}
.hb-ent-hero {
	background:
		repeating-linear-gradient(90deg, rgba(246, 239, 228, .035) 0 2px, transparent 2px 80px),
		radial-gradient(circle at 85% 20%, var(--hb-bordeaux), var(--hb-encre) 65%);
}
.hb-org-hero .hb-surtitre, .hb-ent-hero .hb-surtitre { color: var(--hb-jaune); }
.hb-org-hero .hb-qsn-titre, .hb-ent-hero .hb-qsn-titre { font-size: clamp(2.4rem, 6vw, 4.6rem) !important; line-height: 1; color: inherit; margin: .4rem 0 1.2rem; text-wrap: balance; }
.hb-org-hero .wp-block-button__link, .hb-ent-hero .wp-block-button__link { background: var(--hb-jaune); color: var(--hb-encre); font-weight: 800; }
.hb-org-hero .is-style-outline .wp-block-button__link, .hb-ent-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--hb-creme); border: 2px solid var(--hb-creme); }
.hb-illu svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .4)); }

@media (prefers-reduced-motion: no-preference) {
	.hb-illu .hb-traits path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hb-trace 1.2s ease-out forwards; }
	.hb-illu .hb-traits path:nth-child(n+4) { animation-delay: .6s; }
	.hb-illu .hb-noeud { transform-box: fill-box; transform-origin: center; animation: hb-pop .5s cubic-bezier(.2, .8, .2, 1.4) both; }
	.hb-illu .hb-noeud:nth-of-type(n+2) { animation-delay: .5s; }
	.hb-illu .hb-noeud:nth-of-type(n+5) { animation-delay: 1s; }
	.hb-illu .hb-coeur-pulse { transform-box: fill-box; transform-origin: center; animation: hb-pulse 1.6s ease-in-out infinite; }
}
@keyframes hb-trace { to { stroke-dashoffset: 0; } }
@keyframes hb-pop { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes hb-ecrit { 0%, 100% { translate: 0 0; } 25% { translate: -14px 4px; } 50% { translate: 6px -3px; } 75% { translate: -6px 2px; } }

/* Organigramme : arbre sur fond crème, cartes blanches */
.hb-org-arbre {
	background:
		radial-gradient(circle at 50% 0, rgba(122, 26, 26, .08), transparent 55%),
		var(--hb-creme);
}
.hb-org-arbre h2, .hb-org-arbre .hb-surtitre { text-align: center; justify-content: center; }
.hb-org-arbre .hb-surtitre::before { display: none; }
.hb-org-arbre .hb-membre {
	background: #fff;
	border-radius: 20px;
	padding: 1.5rem 1rem 1.2rem;
	box-shadow: 0 10px 28px rgba(29, 18, 16, .08);
	transition: transform .25s, box-shadow .25s;
}
.hb-org-arbre .hb-membre:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(29, 18, 16, .14); }
.hb-org-arbre .hb-orga-tete .hb-membre {
	background: linear-gradient(160deg, var(--hb-bordeaux), var(--hb-bordeaux-fonce));
	color: var(--hb-creme);
	padding: 2rem 1.5rem 1.6rem;
	box-shadow: 0 25px 50px rgba(122, 26, 26, .35);
}
.hb-org-arbre .hb-orga-tete .hb-membre-fonction { color: var(--hb-jaune); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.hb-org-arbre .hb-orga-tete .hb-membre-photo { box-shadow: 0 0 0 4px var(--hb-bordeaux), 0 0 0 7px var(--hb-jaune); }
.hb-org-arbre .hb-orga-groupe + .hb-orga-groupe::before { opacity: .6; border-left-style: dashed; }

/* Trois étages de l'association */
.hb-org-fonctionnement { background: var(--hb-encre); color: var(--hb-creme); }
.hb-org-fonctionnement h2 { color: inherit; }
.hb-org-fonctionnement .hb-surtitre { color: var(--hb-jaune); }
.hb-org-instances { gap: 2.5rem !important; margin-top: 2.5rem !important; }
.hb-org-inst {
	position: relative;
	padding: 2rem 1.6rem 1.6rem;
	border-radius: 18px;
	border: 1px solid rgba(246, 239, 228, .15);
	background: rgba(246, 239, 228, .04);
}
.hb-org-inst:nth-child(2) { background: rgba(122, 26, 26, .45); }
.hb-org-inst:nth-child(3) { background: var(--hb-bordeaux); border-color: transparent; }
.hb-org-inst:not(:last-child)::after {
	content: "→";
	position: absolute;
	right: -2rem;
	top: 50%;
	translate: 0 -50%;
	font-size: 1.6rem;
	font-weight: 900;
	color: var(--hb-jaune);
}
.hb-org-inst-num {
	font-size: 4rem !important;
	font-weight: 900;
	line-height: .9;
	margin: 0 0 .6rem !important;
	color: transparent;
	-webkit-text-stroke: 2px var(--hb-jaune);
}
.hb-org-inst h3 { color: inherit; font-size: 1.35rem; margin: 0 0 .5rem; }
.hb-org-inst p:last-child { margin: 0; opacity: .9; }

/* Bénévolat */
.hb-org-benevoles { background: var(--hb-bordeaux); color: var(--hb-creme); }
.hb-org-benevoles h2 { color: inherit; }
.hb-org-benevoles .hb-surtitre { color: var(--hb-jaune); }
.hb-puces-gauche { justify-content: flex-start; margin-top: 0 !important; }
.hb-puces span,
.hb-puces strong {
	display: inline-block;
	padding: .65rem 1.2rem;
	border-radius: 999px;
	border: 2px solid rgba(246, 239, 228, .5);
	font-weight: 700;
}
.hb-puces strong { background: var(--hb-jaune); color: var(--hb-encre); border-color: var(--hb-jaune); animation: hb-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hb-puces strong { animation: none; } }

/* Entraîneurs : bande dorée */
.hb-ent-bande { background: linear-gradient(90deg, var(--hb-or), var(--hb-jaune)); }
.hb-compteur { margin: 0; }

/* Staff : cartes sombres */
.hb-ent-staff h2, .hb-ent-staff .hb-surtitre { text-align: center; justify-content: center; }
.hb-ent-staff .hb-surtitre::before { display: none; }
.hb-ent-staff .hb-membres { gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.hb-ent-staff .hb-membre {
	position: relative;
	background: var(--hb-encre);
	color: var(--hb-creme);
	border-radius: 22px;
	padding: 2rem 1.3rem 1.5rem;
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.hb-ent-staff .hb-membre::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5.5rem;
	background: linear-gradient(135deg, var(--hb-bordeaux), var(--hb-bordeaux-fonce));
}
.hb-ent-staff .hb-membre > * { position: relative; }
.hb-ent-staff .hb-membre:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(29, 18, 16, .3); }
.hb-ent-staff .hb-membre-photo { width: 8.5rem; height: 8.5rem; box-shadow: 0 0 0 5px var(--hb-encre), 0 0 0 8px var(--hb-jaune); }
.hb-ent-staff .hb-membre-nom { font-size: 1.25rem; }
.hb-ent-staff .hb-membre-fonction { color: var(--hb-jaune); font-weight: 700; }
.hb-ent-staff .hb-membre-diplome { opacity: .7; }
.hb-ent-staff .hb-membre-equipes a { background: rgba(246, 239, 228, .12); color: var(--hb-creme); }
.hb-ent-staff .hb-membre-equipes a:hover { background: var(--hb-jaune); color: var(--hb-encre); }

/* Qui entraîne mon équipe */
.hb-ent-qui { background: var(--hb-creme); }
.hb-qe {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}
.hb-qe-cat { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(29, 18, 16, .06); }
.hb-qe-cat-nom {
	margin: 0 !important;
	padding: .8rem 1.2rem;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.hb-qe ul { list-style: none; margin: 0; padding: .4rem 0; }
.hb-qe li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1.2rem; border-bottom: 1px solid rgba(122, 26, 26, .08); }
.hb-qe li:last-child { border-bottom: 0; }
.hb-qe li a { font-weight: 800; color: var(--hb-encre); text-decoration: none; white-space: nowrap; }
.hb-qe li a:hover { color: var(--hb-bordeaux); }
.hb-qe-coach { text-align: right; font-size: .92rem; }
.hb-qe-vide { opacity: .45; font-style: italic; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hb-org-arbre .hb-membre, .hb-org-inst, .hb-ent-staff .hb-membre, .hb-qe-cat {
			animation: hb-apparition linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 25%;
		}
	}
}
@media (max-width: 781px) {
	.hb-org-inst:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -2.2rem; translate: 50% 0; }
}

/* ---------- 0.3.4 : accueil et pages équipes « vitrine » ---------- */
.hb-vitrine { padding: 0 !important; }
.hb-vitrine > .hb-qsn:first-child, .hb-acc-hero { margin-top: 0 !important; }

/* Accueil : bannière */
.hb-acc-hero-cols > .wp-block-column:last-child { position: relative; }
.hb-acc-badge {
	position: absolute;
	left: -1.2rem;
	bottom: -1.5rem;
	width: 7.5rem;
	height: 7.5rem;
	margin: 0 !important;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.1;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	font-size: .85rem !important;
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: 0 15px 30px rgba(0, 0, 0, .35);
	rotate: -10deg;
	z-index: 2;
}
.hb-acc-badge strong { font-size: 1.9rem; font-weight: 900; }
.hb-qsn-hero .hb-qsn-titre { font-size: clamp(2.4rem, 6vw, 4.6rem) !important; }
@media (prefers-reduced-motion: no-preference) {
	.hb-illu-ballon .hb-ballon { animation: hb-tir 4s cubic-bezier(.3, .1, .3, 1) infinite; }
	.hb-illu-ballon .hb-trainees path { animation: hb-vitesse 4s ease-in-out infinite; }
	.hb-acc-badge { animation: hb-pulse 3s ease-in-out infinite; }
}
@keyframes hb-tir {
	0% { translate: -30px 20px; rotate: 0deg; }
	55% { translate: 110px -110px; rotate: 300deg; }
	70%, 100% { translate: 105px -105px; rotate: 320deg; }
}
@keyframes hb-vitesse { 0%, 60%, 100% { opacity: 0; } 20%, 45% { opacity: 1; } }

/* Accueil : cartes « le club » cliquables en entier */
.hb-acc-carte { position: relative; }
.hb-acc-lien { margin-top: .8rem !important; font-weight: 800; }
.hb-acc-lien a { color: var(--hb-bordeaux); text-decoration: none; }
.hb-acc-lien a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Accueil : équipes */
.hb-acc-equipes h2, .hb-acc-equipes .hb-surtitre, .hb-acc-equipes .hb-qsn-chapo { text-align: center; justify-content: center; margin-inline: auto !important; }
.hb-acc-equipes .hb-surtitre::before { display: none; }
.hb-acc-equipes .hb-categories .hb-equipe { border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.hb-acc-equipes .hb-categories .hb-equipe:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(29, 18, 16, .15); }

/* Accueil : rejoindre */
.hb-acc-rejoindre h2 { text-align: center; }
.hb-acc-rej-grille { gap: 1.5rem !important; margin-top: 2rem !important; }
.hb-acc-rej { border-radius: 22px; padding: 2.2rem 2rem; position: relative; overflow: hidden; }
.hb-acc-rej h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: inherit; margin: .2rem 0 .6rem; }
.hb-acc-rej-joueur { background: linear-gradient(135deg, var(--hb-bordeaux), var(--hb-bordeaux-fonce)); color: var(--hb-creme); }
.hb-acc-rej-joueur .hb-surtitre { color: var(--hb-jaune); }
.hb-acc-rej-joueur .wp-block-button__link { background: var(--hb-jaune); color: var(--hb-encre); font-weight: 800; }
.hb-acc-rej-benevole { background: var(--hb-jaune); color: var(--hb-encre); }
.hb-acc-rej-benevole .hb-surtitre { color: var(--hb-bordeaux); }
.hb-acc-rej-benevole .wp-block-button__link { background: var(--hb-encre); color: var(--hb-jaune); font-weight: 800; }
.hb-acc-rej::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid currentColor; opacity: .08; }

/* Page « Toutes les équipes » */
.hb-eqs-liste { padding-top: 2rem; }
.hb-eqs-nav {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	padding: .9rem .25rem;
	margin-bottom: 1rem;
	background: color-mix(in srgb, var(--wp--preset--color--papier, #fbf8f3) 92%, transparent);
	backdrop-filter: blur(8px);
	scrollbar-width: none;
}
.hb-eqs-nav a {
	flex: none;
	padding: .5rem 1rem;
	border-radius: 999px;
	background: #fff;
	border: 2px solid rgba(122, 26, 26, .2);
	color: var(--hb-bordeaux);
	font-weight: 800;
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
}
.hb-eqs-nav a:hover { background: var(--hb-bordeaux); color: var(--hb-creme); border-color: var(--hb-bordeaux); }
.hb-eqs-cat { scroll-margin-top: 5rem; padding-block: 2rem; }
.hb-eqs-cat + .hb-eqs-cat { border-top: 1px solid rgba(122, 26, 26, .12); }
.hb-eqs-cat-tete { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.hb-eqs-cat-tete h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hb-eqs-cat-tete p { margin: 0; font-weight: 700; color: var(--hb-bordeaux); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.hb-eqs-cat-tete .hb-surtitre { flex-basis: 100%; }
.hb-eqs-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1.25rem; }
.hb-eqs-voir { text-align: right; font-weight: 800; margin-top: 1.2rem; }
.hb-eqs-voir a { color: var(--hb-bordeaux); text-decoration: none; }

/* Carte équipe */
.hb-eqc {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	color: var(--hb-encre);
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(29, 18, 16, .08);
	transition: transform .25s, box-shadow .25s;
}
.hb-eqc:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(29, 18, 16, .16); }
.hb-eqc-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hb-bordeaux); }
.hb-eqc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s; }
.hb-eqc:hover .hb-eqc-photo img { scale: 1.06; }
.hb-eqc-sans-photo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 900;
	color: var(--hb-creme);
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px),
		linear-gradient(135deg, var(--hb-bordeaux), var(--hb-bordeaux-fonce));
}
.hb-eqc-corps { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem 1.3rem; }
.hb-eqc-nom { font-size: 1.35rem; font-weight: 900; }
.hb-eqc-div { align-self: flex-start; padding: .2rem .7rem; border-radius: 999px; background: var(--hb-creme); color: var(--hb-bordeaux); font-weight: 800; font-size: .8rem; }
.hb-eqc-coach { font-size: .9rem; opacity: .75; }
.hb-eqc-coach::before { content: "Entraîneur : "; font-weight: 700; }
.hb-eqc-lien { margin-top: .4rem; font-weight: 800; color: var(--hb-bordeaux); font-size: .9rem; }

/* Fiche équipe */
.hb-eq-hero .hb-eq-cat a { color: var(--hb-jaune); text-decoration: none; }
.hb-eq-division {
	display: inline-block;
	padding: .35rem 1rem;
	border-radius: 999px;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .85rem !important;
	margin: 0 .5rem 1rem 0 !important;
}
.hb-eq-division:empty, .hb-eq-public:empty { display: none; }
.hb-eq-public { display: inline-block; font-weight: 700; opacity: .85; margin: 0 0 1rem !important; }
.hb-eq-visuel { position: relative; min-height: 14rem; }
.hb-eq-visuel .hb-eq-photo { margin: 0; }
.hb-eq-visuel .hb-eq-photo img { border-radius: 20px; rotate: 2deg; box-shadow: -16px 16px 0 var(--hb-jaune), 0 25px 50px rgba(0, 0, 0, .35); }
.hb-eq-visuel:not(:has(img))::before {
	content: "Photo d'équipe à venir";
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	border: 2px dashed rgba(246, 239, 228, .45);
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 28px);
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--hb-creme);
}
.hb-eq-infos { padding-top: clamp(2.5rem, 5vw, 4rem); }
.hb-eq-infos-grille { gap: 1.25rem !important; margin-top: .5rem !important; }
.hb-eq-info { border-radius: 18px; padding: 1.6rem; background: var(--hb-creme); border-top: 5px solid var(--hb-bordeaux); }
.hb-eq-info:nth-child(2) { border-top-color: var(--hb-jaune); }
.hb-eq-info:nth-child(3) { border-top-color: var(--hb-encre); }
.hb-eq-info .hb-picto { color: var(--hb-bordeaux); margin-bottom: .6rem; }
.hb-eq-label { margin: 0 0 .3rem !important; font-size: .78rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--hb-bordeaux); }
.hb-eq-val { margin: 0 !important; font-size: 1.15rem; font-weight: 700; }
.hb-eq-val:empty::before { content: "À venir"; opacity: .5; font-style: italic; font-weight: 500; }
.hb-eq-texte:not(:has(.wp-block-post-content > *)),
.hb-eq-staff:not(:has(.hb-membre)),
.hb-eq-soeurs:not(:has(.hb-eqc)) { display: none; }
.hb-eq-texte { padding-block: 1rem 3rem; font-size: 1.1rem; }
.hb-eq-soeurs { background: var(--hb-creme); }

/* Page catégorie */
.hb-cat-hero { text-align: left; }
.hb-cat-hero .hb-qsn-titre { font-size: clamp(3rem, 9vw, 6.5rem) !important; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hb-eqc, .hb-eq-info, .hb-acc-rej {
			animation: hb-apparition linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 20%;
		}
	}
}
@media (max-width: 781px) {
	.hb-acc-badge { left: auto; right: .5rem; bottom: -1rem; width: 6rem; height: 6rem; }
	.hb-acc-badge strong { font-size: 1.5rem; }
	.hb-eq-visuel .hb-eq-photo img { rotate: 0deg; box-shadow: -10px 10px 0 var(--hb-jaune); }
}

/* 0.3.5 : tableau tactique dessiné par le feutre */
.hb-illu-tactique .hb-trait-croix { stroke: #1d1210; stroke-width: 6; }
.hb-illu-tactique .hb-trait-fleche { stroke: #d0202b; stroke-width: 5; }
.hb-illu-tactique .hb-feutre-dessine { filter: drop-shadow(-4px 6px 4px rgba(0, 0, 0, .25)); }
@media (prefers-reduced-motion: reduce) {
	.hb-illu-tactique .hb-dessin path { stroke-dashoffset: 0 !important; }
	.hb-illu-tactique .hb-pointe { opacity: 1 !important; }
	.hb-illu-tactique .hb-feutre-dessine { display: none; }
}

/* ---------- 0.3.6 : grilles centrées et titres alignés sur la largeur des grilles ---------- */
/* WordPress remplit les grilles avec des colonnes vides (auto-fill) : les cartes se tassaient à gauche.
   En auto-fit, les colonnes vides disparaissent et les cartes occupent toute la largeur. */
.hb-qsn .is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--hb-col, 14rem), 100%), 1fr)) !important;
}
.hb-arb-cartes { --hb-col: 13rem; }
.hb-arb-etapes { --hb-col: 12rem; }
.hb-arb-niveaux-grille,
.hb-org-instances,
.hb-eq-infos-grille { --hb-col: 15rem; }
.hb-acc-rej-grille { --hb-col: 18rem; }

/* Surtitre, titre et chapeau calés sur le bord gauche des grilles (largeur « wide »),
   sauf dans les sections centrées, qui gardent leurs propres règles. */
:where(.hb-qsn) > .hb-surtitre,
:where(.hb-qsn) > h2 {
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
}
:where(.hb-qsn) > .hb-qsn-chapo {
	max-width: min(42rem, 100%) !important;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2)) !important;
	margin-right: auto !important;
}

/* Trombinoscopes : cartes centrées au lieu d'être tassées à gauche quand elles sont peu nombreuses */
.hb-membres {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.hb-membres > .hb-membre { width: 10.5rem; }
.hb-ent-staff .hb-membres > .hb-membre { width: min(16rem, 100%); }
@media (max-width: 600px) {
	.hb-membres > .hb-membre { width: calc(50% - .75rem); }
	.hb-ent-staff .hb-membres > .hb-membre { width: 100%; }
}

/* ---------- 0.3.7 : classement Score'n'co sur la fiche équipe ---------- */
.hb-eq-classement { background: var(--hb-creme); }
/* Masquée seulement quand l'équipe n'a pas de widget. On teste notre propre cadre (.hb-classement) :
   le script de Score'n'co remplace sa balise .scorenco-widget une fois chargé, ce qui masquait toute la section. */
.hb-eq-classement:not(:has(.hb-classement)) { display: none; }
.hb-classement { max-width: 900px !important; }
.hb-classement-titre { margin: .2rem 0 1.2rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hb-classement-cadre {
	background: #fff;
	border-radius: 20px;
	padding: clamp(.5rem, 2vw, 1.25rem);
	box-shadow: 0 12px 30px rgba(29, 18, 16, .08);
	border-top: 6px solid var(--hb-bordeaux);
	overflow: hidden;
}
.hb-scorenco {
	min-height: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	color: var(--hb-bordeaux);
	font-weight: 700;
}
.hb-scorenco iframe { width: 100% !important; border: 0; }
.hb-scorenco-attente {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 6px solid var(--hb-bordeaux);
	border-color: var(--hb-bordeaux) transparent;
	animation: hb-tourne 1.1s linear infinite;
}
@keyframes hb-tourne { to { transform: rotate(360deg); } }
.hb-classement-pied {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-top: .9rem !important;
	font-size: .85rem;
}
.hb-classement-pied span { opacity: .7; }
.hb-classement-pied a { color: var(--hb-bordeaux); font-weight: 800; text-decoration: none; }

/* ---------- 0.3.9 : plus de place pour le tableau Score'n'co ---------- */
/* Le widget est une iframe (contenu non modifiable depuis le site) : on lui laisse
   toute la largeur « wide » et on retire notre marge intérieure, qui doublait son propre cadre. */
.hb-classement { max-width: var(--wp--style--global--wide-size, 1200px) !important; }
.hb-classement-cadre { padding: 0; border-radius: 16px; }
.hb-classement-cadre iframe.scorenco-widget-iframe { display: block; width: 100% !important; border: 0 !important; }

/* ---------- 0.4.0 : prochains matchs Score'n'co sur l'accueil ---------- */
.hb-acc-matchs { background: var(--hb-creme); }
.hb-acc-matchs:not(:has(.hb-classement)) { display: none; }
.hb-acc-matchs .hb-scorenco { min-height: 320px; }

/* ---------- 0.5.0 : « Où en sont nos équipes ? » ---------- */
.hb-acc-classements {
	background:
		linear-gradient(90deg, transparent calc(50% - 1px), rgba(246, 239, 228, .05) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
		radial-gradient(circle at 15% 0%, var(--hb-bordeaux-fonce), var(--hb-encre) 60%);
	color: var(--hb-creme);
}
.hb-acc-classements:not(:has(.hb-rc)) { display: none; }
.hb-acc-classements h2 { color: inherit; }
.hb-acc-classements .hb-surtitre { color: var(--hb-jaune); }
.hb-rc-grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}
.hb-rc-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.3rem 1.3rem 1.1rem;
	border-radius: 18px;
	background: rgba(246, 239, 228, .06);
	border: 1px solid rgba(246, 239, 228, .14);
	color: var(--hb-creme);
	text-decoration: none;
	overflow: hidden;
	transition: transform .25s, background .25s, border-color .25s;
}
.hb-rc-carte:hover { transform: translateY(-5px); background: rgba(246, 239, 228, .1); border-color: var(--hb-jaune); }
.hb-rc-equipe { font-weight: 900; font-size: 1.15rem; }
.hb-rc-div { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.hb-rc-pos {
	margin-top: .6rem;
	font-size: clamp(2.8rem, 6vw, 3.6rem);
	font-weight: 900;
	line-height: 1;
	color: var(--hb-jaune);
}
.hb-rc-pos sup { font-size: .4em; vertical-align: super; margin-left: .05em; }
.hb-rc-pos small { font-size: .38em; color: var(--hb-creme); opacity: .6; font-weight: 700; margin-left: .15em; }
.hb-rc-jauge {
	display: block;
	height: 6px;
	border-radius: 6px;
	margin: .7rem 0 .5rem;
	background: linear-gradient(90deg, var(--hb-jaune) var(--p), rgba(246, 239, 228, .15) var(--p));
}
.hb-rc-detail { font-size: .85rem; opacity: .85; }
.hb-rc-podium { background: var(--hb-jaune); border-color: var(--hb-jaune); color: var(--hb-encre); }
.hb-rc-podium .hb-rc-pos, .hb-rc-podium .hb-rc-pos small { color: var(--hb-encre); }
.hb-rc-podium .hb-rc-jauge { background: linear-gradient(90deg, var(--hb-encre) var(--p), rgba(29, 18, 16, .15) var(--p)); }
.hb-rc-podium:hover { background: var(--hb-jaune); }
.hb-rc-podium::after { content: "Podium"; position: absolute; top: 1rem; right: -2.2rem; rotate: 45deg; background: var(--hb-encre); color: var(--hb-jaune); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: .2rem 2.5rem; }
.hb-rc-maj { margin-top: 1.2rem !important; font-size: .8rem; opacity: .6; text-align: right; }

/* Badge de position sur les cartes équipes (page Toutes les équipes) */
.hb-eqc-rang {
	position: absolute;
	top: .7rem;
	right: .7rem;
	z-index: 1;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	font-weight: 900;
	font-size: 1.05rem;
	line-height: 1;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.hb-eqc-rang sup { font-size: .6em; }
.hb-eqc-rang small { font-size: .7em; opacity: .7; }

/* ---------- 0.6.0 : prochains matchs (appli club) ---------- */
.hb-acc-prog { background: var(--hb-creme); }
.hb-acc-prog:not(:has(.hb-match)) { display: none; }
.hb-eq-matchs:not(:has(.hb-match)) { display: none; }
.hb-matchs-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.hb-matchs-liste { display: grid; gap: .8rem; margin-top: 1.2rem; max-width: 900px; }
.hb-match {
	display: flex;
	gap: 1rem;
	align-items: stretch;
	background: #fff;
	border-radius: 18px;
	padding: .9rem;
	box-shadow: 0 8px 22px rgba(29, 18, 16, .07);
	border-left: 6px solid var(--hb-bordeaux);
	transition: transform .2s, box-shadow .2s;
}
.hb-match:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(29, 18, 16, .12); }
.hb-match--ext { border-left-color: var(--hb-encre); }
.hb-match-date {
	flex: none;
	width: 4.4rem;
	border-radius: 12px;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.05;
	text-transform: uppercase;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
}
.hb-match--ext .hb-match-date { background: var(--hb-encre); }
.hb-match-date strong { font-size: 1.9rem; font-weight: 900; letter-spacing: 0; color: var(--hb-jaune); }
.hb-match-corps { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.hb-match-corps p { margin: 0 !important; }
.hb-match-haut { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .75rem; }
.hb-match-equipe {
	font-weight: 900;
	padding: .15rem .6rem;
	border-radius: 999px;
	background: var(--hb-bordeaux);
	color: var(--hb-creme) !important;
	text-decoration: none;
}
.hb-match-lieu-type, .hb-match-tag { padding: .15rem .55rem; border-radius: 999px; background: var(--hb-creme); color: var(--hb-bordeaux); font-weight: 700; }
.hb-match--ext .hb-match-lieu-type { background: rgba(29, 18, 16, .07); color: var(--hb-encre); }
.hb-match-tag--statut { background: var(--hb-rouge); color: #fff; text-transform: uppercase; }
.hb-match--statut .hb-match-affiche { text-decoration: line-through; opacity: .6; }
.hb-match-affiche { font-size: 1.12rem; font-weight: 800; line-height: 1.25; display: flex; flex-wrap: wrap; gap: .1rem .45rem; align-items: baseline; }
.hb-match-nous { color: var(--hb-bordeaux); }
.hb-match-vs { font-size: .75rem; opacity: .5; text-transform: uppercase; }
.hb-match-infos { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .86rem; opacity: .85; }
.hb-match-heure { font-weight: 800; }
.hb-match-itineraire { color: var(--hb-bordeaux); font-weight: 800; text-decoration: none; }
.hb-matchs-source { margin-top: 1rem !important; font-size: .78rem; opacity: .6; text-align: right; }
.hb-eqc-prochain { font-size: .82rem; font-weight: 700; color: var(--hb-encre); background: rgba(242, 194, 48, .25); border-radius: 8px; padding: .25rem .5rem; align-self: flex-start; }

/* ---------- 0.6.6 : affichages différents sur téléphone et sur ordinateur ---------- */
/* Classes utilitaires, utilisables sur n'importe quel bloc
   (éditeur › bloc › Avancé › Classe(s) CSS additionnelle(s)) :
   - hb-pc-seulement     : visible uniquement sur ordinateur et tablette en largeur
   - hb-mobile-seulement : visible uniquement sur téléphone                        */
@media (max-width: 781px) {
	.hb-pc-seulement { display: none !important; }
}
@media (min-width: 782px) {
	.hb-mobile-seulement { display: none !important; }
}

/* Accueil, « Nos équipes » : sur téléphone, pas de grille de cartes,
   seulement le titre, la phrase d'introduction et un grand bouton vers la page des équipes. */
@media (max-width: 781px) {
	.hb-acc-equipes .hb-categories { display: none !important; }
	.hb-acc-equipes { padding-block: 2.5rem; }
	.hb-acc-equipes .wp-block-buttons { margin-top: 1.25rem !important; }
	.hb-acc-equipes .wp-block-button,
	.hb-acc-equipes .wp-block-button__link { width: 100%; }
	.hb-acc-equipes .wp-block-button__link {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: .5rem;
		padding: 1.1rem 1.5rem;
		font-size: 1.1rem;
		font-weight: 800;
		border-radius: 14px;
		background: var(--hb-bordeaux);
		color: var(--hb-creme);
	}
	.hb-acc-equipes .wp-block-button__link::after { content: "→"; }
}

/* ---------- 0.7.0 : partenaires ---------- */
.hb-acc-partenaires { text-align: center; }
.hb-acc-partenaires h2, .hb-acc-partenaires .hb-surtitre, .hb-acc-partenaires .hb-qsn-chapo { text-align: center; justify-content: center; margin-inline: auto !important; }
.hb-acc-partenaires .hb-surtitre::before { display: none; }
.hb-partenaires {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 2rem auto 1.5rem;
}
.hb-part {
	width: 11rem;
	height: 7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(29, 18, 16, .06);
	text-decoration: none;
	transition: transform .25s, box-shadow .25s;
}
.hb-part img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.hb-part:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(29, 18, 16, .12); }
.hb-part:hover img { filter: none; opacity: 1; }
.hb-part--majeur { width: 16rem; height: 10rem; border-top: 5px solid var(--hb-jaune); }
.hb-part--majeur img { filter: none; opacity: 1; }
.hb-part-nom { font-weight: 800; color: var(--hb-bordeaux); line-height: 1.2; }
@media (max-width: 600px) {
	.hb-part { width: calc(50% - .5rem); height: 6rem; }
	.hb-part--majeur { width: 100%; height: 8rem; }
	.hb-part img { filter: none; opacity: 1; }
}

/* 0.7.3 : les cartons décoratifs de « Prêt à prendre le sifflet ? » ne chevauchent plus le texte */
.hb-arb-final > * { position: relative; z-index: 1; }
.hb-arb-final::before { z-index: 0; left: 3%; top: 22%; width: 70px; height: 100px; opacity: .45; box-shadow: 80px 35px 0 -8px var(--hb-rouge); }
@media (max-width: 1300px) { .hb-arb-final::before { display: none; } }

/* ---------- 0.8.0 : fenêtre d'événement ---------- */
.hb-evt { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hb-evt[hidden] { display: none; }
.hb-evt-fond { position: absolute; inset: 0; background: rgba(29, 18, 16, .72); backdrop-filter: blur(3px); animation: hb-evt-fondu .3s ease-out; }
.hb-evt-boite {
	position: relative;
	max-width: min(560px, 100%);
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	background: var(--hb-creme, #f6efe4);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	animation: hb-evt-entree .4s cubic-bezier(.2, .9, .3, 1.2);
}
.hb-evt-image { display: block; width: 100%; height: auto; max-height: calc(100vh - 12rem); object-fit: contain; background: #fff; }
.hb-evt-pied { padding: 1rem 1.3rem 1.3rem; text-align: center; }
.hb-evt-pied p { margin: 0; }
.hb-evt-titre { font-weight: 900; font-size: 1.25rem; color: var(--hb-bordeaux, #7a1a1a); }
.hb-evt-date { margin-top: .2rem !important; opacity: .8; }
.hb-evt-bouton {
	display: inline-block;
	margin-top: .9rem;
	padding: .75rem 1.6rem;
	border-radius: 999px;
	background: var(--hb-jaune, #f2c230);
	color: var(--hb-encre, #1d1210);
	font-weight: 800;
	text-decoration: none;
}
.hb-evt-bouton:hover { filter: brightness(1.05); }
.hb-evt-fermer {
	position: absolute;
	top: .6rem;
	right: .6rem;
	z-index: 1;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 50%;
	background: rgba(29, 18, 16, .75);
	color: #fff;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}
.hb-evt-fermer:focus-visible { outline: 3px solid var(--hb-jaune, #f2c230); outline-offset: 2px; }
html.hb-evt-ouvert { overflow: hidden; }
@keyframes hb-evt-fondu { from { opacity: 0; } }
@keyframes hb-evt-entree { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .hb-evt-fond, .hb-evt-boite { animation: none; } }

/* ---------- 0.8.2 : réseaux sociaux ---------- */
.hb-acc-reseaux { text-align: center; background: var(--hb-creme); }
.hb-acc-reseaux h2, .hb-acc-reseaux .hb-surtitre, .hb-acc-reseaux .hb-qsn-chapo { text-align: center; justify-content: center; margin-inline: auto !important; }
.hb-acc-reseaux .hb-surtitre::before { display: none; }
.wp-block-social-links.hb-reseaux-grand { justify-content: center; gap: 1rem !important; margin-top: 1.5rem !important; padding: 0; }
.wp-block-social-links.hb-reseaux-grand .wp-social-link {
	border-radius: 999px;
	padding: .35rem 1.2rem .35rem .5rem;
	font-weight: 800;
	transition: transform .2s, box-shadow .2s;
}
.wp-block-social-links.hb-reseaux-grand .wp-social-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29, 18, 16, .18); }
.wp-block-social-links.hb-reseaux-grand .wp-social-link a { font-size: 1.05rem; padding: .25rem; }
.wp-block-social-links.hb-reseaux-grand .wp-block-social-link-label { margin-left: .4rem; }
.wp-block-social-links.hb-reseaux-pied { gap: .6rem !important; padding: 0; margin: 0; }
.wp-block-social-links.hb-reseaux-pied .wp-social-link { background: rgba(246, 239, 228, .12) !important; color: var(--hb-creme) !important; border-radius: 999px; padding: .15rem .8rem .15rem .35rem; }
.wp-block-social-links.hb-reseaux-pied .wp-social-link:hover { background: var(--hb-jaune) !important; color: var(--hb-encre) !important; }

/* ---------- 0.8.3 : adresses des salles ---------- */
.hb-eq-salle-adresse { margin-top: .4rem !important; font-size: .9rem; }
.hb-salle { display: flex; flex-direction: column; gap: .15rem; }
.hb-salle-adr { opacity: .8; line-height: 1.4; }
.hb-salle-iti { font-weight: 800; color: var(--hb-bordeaux); text-decoration: none; }
.hb-salle-iti:hover { text-decoration: underline; }
.hb-salles-pied { display: flex; flex-direction: column; gap: 1rem; }
.hb-salles-pied .hb-salle-nom { color: var(--hb-creme); }
.hb-salles-pied .hb-salle-iti { color: var(--hb-jaune); font-size: .9rem; }

/* ---------- 0.8.4 : page Calendrier des matchs ---------- */
.hb-cal-filtres {
	position: sticky;
	top: calc(env(safe-area-inset-top, 0px) + .5rem);
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8rem 1.2rem;
	margin: 1.5rem 0;
	padding: .8rem 1rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(29, 18, 16, .08);
}
.hb-cal-select { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.hb-cal-select select { padding: .5rem .8rem; border-radius: 10px; border: 1px solid rgba(29, 18, 16, .2); font: inherit; background: var(--hb-creme); }
.hb-cal-lieux { display: flex; gap: .3rem; background: var(--hb-creme); padding: .25rem; border-radius: 999px; }
.hb-cal-lieux button { border: 0; background: none; padding: .45rem .9rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color: var(--hb-encre); }
.hb-cal-lieux button.actif { background: var(--hb-bordeaux); color: var(--hb-creme); }
.hb-cal-compte { margin: 0 0 0 auto !important; font-size: .9rem; opacity: .75; }
.hb-cal-groupe { margin-top: 2rem; }
.hb-cal-groupe[hidden], .hb-cal-item[hidden] { display: none; }
.hb-cal-titre { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-bordeaux); border-bottom: 2px solid var(--hb-jaune); padding-bottom: .4rem; margin: 0 0 1rem; }
/* v0.9.3 : samedi et dimanche séparés dans chaque week-end */
.hb-cal-jour + .hb-cal-jour { margin-top: 1.6rem; }
.hb-cal-jour[hidden] { display: none; }
.hb-cal-jour .hb-matchs-grille { margin-top: 0; }
.hb-cal-jour-titre { display: inline-block; font-size: .95rem; font-weight: 800; letter-spacing: .03em; color: var(--hb-creme); background: var(--hb-bordeaux); border-radius: 999px; padding: .3rem .9rem; margin: 0 0 .8rem; }
.hb-cal-vide { text-align: center; padding: 2rem; opacity: .7; }
.hb-cal-lien { margin-top: 1rem !important; }
.hb-cal-lien a { font-weight: 800; color: var(--hb-bordeaux); text-decoration: none; }
@media (max-width: 600px) { .hb-cal-compte { margin-left: 0 !important; width: 100%; } }

/* ---------- 0.8.5 : pages légales ---------- */
.hb-legal > * { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; }
.hb-legal h2 { font-size: 1.35rem; margin-top: 2.2rem !important; color: var(--hb-bordeaux); }
.hb-legal ul { padding-left: 1.2rem; }
.hb-legal li { margin-bottom: .5rem; }
.hb-a-completer { background: var(--hb-jaune); color: var(--hb-encre); padding: .05em .3em; border-radius: 4px; font-weight: 700; }
.hb-pied-mail a { color: inherit; font-weight: 700; }

/* ---------- 0.8.9 : abonnement au calendrier ---------- */
.hb-abo { position: relative; display: inline-block; }
.hb-abo summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: var(--hb-jaune);
	color: var(--hb-encre);
	font-weight: 800;
	cursor: pointer;
	user-select: none;
}
.hb-abo summary::-webkit-details-marker { display: none; }
.hb-abo[open] summary { box-shadow: 0 0 0 3px rgba(122, 26, 26, .25); }
.hb-abo-menu {
	position: absolute;
	right: 0;
	top: calc(100% + .4rem);
	z-index: 20;
	width: min(20rem, 85vw);
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: .6rem;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(29, 18, 16, .2);
}
.hb-abo-menu a, .hb-abo-menu button {
	display: block;
	text-align: left;
	padding: .6rem .75rem;
	border-radius: 10px;
	border: 0;
	background: var(--hb-creme);
	color: var(--hb-encre);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.hb-abo-menu a:hover, .hb-abo-menu button:hover { background: var(--hb-jaune); }
.hb-abo-aide { margin: .3rem .2rem 0 !important; font-size: .8rem; opacity: .7; }
.hb-cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.2rem; }
.hb-cal-actions .hb-cal-lien { margin: 0 !important; }
.hb-cal-actions .hb-abo-menu { left: 0; right: auto; }
.hb-vide-doux { opacity: .7; }
@media (max-width: 600px) { .hb-cal-filtres .hb-abo-menu { left: 0; right: auto; } }

/* ---------- 0.9.0 : accord préalable pour Score'n'co ---------- */
.hb-scorenco-accord { padding: 2rem 1.5rem; text-align: center; background: var(--hb-creme); border-radius: 14px; }
.hb-scorenco-accord p { margin: 0 auto !important; max-width: 34rem; }
.hb-scorenco-accord-titre { font-weight: 900; font-size: 1.1rem; color: var(--hb-bordeaux); }
.hb-scorenco-accord-texte { margin-top: .4rem !important; font-size: .9rem; opacity: .8; }
.hb-scorenco-accord-texte a { color: var(--hb-bordeaux); }
.hb-scorenco-accord-btn, .hb-scorenco-retrait {
	margin-top: 1rem;
	padding: .75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--hb-bordeaux);
	color: var(--hb-creme);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.hb-scorenco-retrait { margin-top: .4rem; padding: .45rem 1rem; font-size: .9rem; }
.hb-scorenco-accord-memo { margin-top: .6rem !important; font-size: .75rem; opacity: .6; }

/* ---------- 0.9.1 : Rejoindre le club / Partenaires ---------- */
.hb-quelle-cat { background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 12px 30px rgba(29, 18, 16, .08); margin-top: 1.5rem; }
.hb-qc-form { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hb-qc-form > label { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.hb-qc-form select { padding: .6rem .9rem; border-radius: 12px; border: 1px solid rgba(29, 18, 16, .2); font: inherit; font-size: 1.05rem; background: var(--hb-creme); }
.hb-qc-sexe { display: flex; gap: .3rem; background: var(--hb-creme); padding: .25rem; border-radius: 999px; }
.hb-qc-sexe label { padding: .45rem 1rem; border-radius: 999px; font-weight: 700; cursor: pointer; }
.hb-qc-sexe input { position: absolute; opacity: 0; }
.hb-qc-sexe label:has(input:checked) { background: var(--hb-bordeaux); color: var(--hb-creme); }
.hb-qc-resultat:not(:empty) { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 2px dashed rgba(29, 18, 16, .12); }
.hb-qc-surtitre { margin: 0 !important; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; font-weight: 700; }
.hb-qc-titre { margin: .1rem 0 .8rem !important; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--hb-bordeaux); }
.hb-qc-cat { margin: .6rem 0; padding: .9rem 1rem; background: var(--hb-creme); border-radius: 14px; }
.hb-qc-catnom { font-weight: 900; color: var(--hb-encre); text-decoration: none; }
.hb-qc-eq { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .4rem; font-size: .92rem; }
.hb-qc-eq a { font-weight: 800; color: var(--hb-bordeaux); }
.hb-qc-eq span { opacity: .75; }
.hb-qc-essai { display: inline-block; margin-top: 1rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--hb-jaune); color: var(--hb-encre); font-weight: 800; text-decoration: none; }
.hb-rej-etapes .hb-rej-etape { background: #fff; border-radius: 18px; padding: 1.3rem; box-shadow: 0 8px 22px rgba(29, 18, 16, .06); }
.hb-rej-num { margin: 0 !important; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--hb-bordeaux); color: var(--hb-jaune); font-weight: 900; font-size: 1.2rem; }
.hb-rej-bientot { margin-top: 1.5rem !important; padding: 1rem 1.2rem; border-left: 5px solid var(--hb-jaune); background: #fff; border-radius: 0 12px 12px 0; }
.hb-part-page, .hb-part-devenir { text-align: center; }
.hb-part-page h1, .hb-part-page .hb-surtitre, .hb-part-page .hb-qsn-chapo, .hb-part-devenir h2, .hb-part-devenir .hb-surtitre, .hb-part-devenir .hb-qsn-chapo { margin-inline: auto !important; justify-content: center; text-align: center; }
.hb-part-page .hb-surtitre::before, .hb-part-devenir .hb-surtitre::before { display: none; }
.hb-part-devenir { background: var(--hb-creme); }

/* ---------- 0.9.2 : Mes équipes ---------- */
.hb-suivre {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: 1rem;
	padding: .6rem 1.1rem;
	border-radius: 999px;
	border: 2px solid rgba(246, 239, 228, .6);
	background: transparent;
	color: var(--hb-creme);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.hb-suivre:hover { transform: translateY(-2px); }
.hb-suivre.actif { background: var(--hb-jaune); border-color: var(--hb-jaune); color: var(--hb-encre); }
.hb-suivre-etoile { font-size: 1.25rem; line-height: 1; }
.hb-mes { background: linear-gradient(180deg, var(--hb-jaune) 0, var(--hb-jaune) 6px, var(--hb-creme) 6px); padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; }
.hb-mes[hidden] { display: none; }
.hb-mes-int { max-width: 1200px; margin: 0 auto; }
.hb-mes h2 { margin: .2rem 0 1rem; }
.hb-mes-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.hb-mes-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--hb-bordeaux); color: var(--hb-creme); font-weight: 800; text-decoration: none; }
.hb-mes-chip span { background: var(--hb-jaune); color: var(--hb-encre); border-radius: 999px; padding: .05rem .5rem; font-size: .8rem; }
.hb-mes-vide { padding: 1rem; background: #fff; border-radius: 12px; }
.hb-mes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.2rem; }
.hb-mes-actions .hb-abo-menu { left: 0; right: auto; }
.hb-mes-cal { font-weight: 800; color: var(--hb-bordeaux); text-decoration: none; }
.hb-mes-aide { margin-top: .8rem; font-size: .8rem; opacity: .65; }
