/*
Theme Name: Tripot Hold'em Club
Theme URI: https://www.tripotholdemclub.fr
Description: Thème enfant de Twenty Twenty-Five pour le Tripot Hold'em Club : noir et or, barre d'onglets sur téléphone, rail de navigation sur tablette, menu classique sur ordinateur.
Author: Tripot Hold'em Club
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tripot-thc
*/

/*
 * Sommaire
 * 1. Réglages mobiles de base
 * 2. Icônes de la navigation
 * 3. En-tête et navigation : téléphone (< 768 px), tablette (768 à 1199 px), ordinateur (≥ 1200 px)
 * 4. Pied de page
 * 5. Accueil
 * 6. Intégrations : Events Manager, plugin de classement, bbPress
 *
 * Les couleurs et les polices viennent de theme.json (Apparence > Éditeur > Styles).
 */

/* ===== 1. Réglages mobiles de base ===== */

html {
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
}

/* En dessous de 16 px, l'iPhone zoome sur le champ et ne dézoome pas. */
input,
textarea,
select {
	font-size: max(16px, 1em);
}

a,
button,
.wp-element-button {
	touch-action: manipulation;
}

.wp-element-button,
.wp-block-navigation-item__content {
	-webkit-user-select: none;
	user-select: none;
}

.wp-element-button {
	transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.wp-element-button:active {
	transform: scale(0.97);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid #4a4a4c;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button.is-style-outline > .wp-block-button__link:hover {
		background: var(--wp--preset--color--accent-3);
		color: var(--wp--preset--color--contrast);
	}
}

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

@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		transition: none !important;
		animation: none !important;
	}

	.wp-element-button:active {
		transform: none;
	}
}

/* ===== 2. Icônes de la navigation =====
 * Chaque lien du menu prend son icône grâce à sa classe CSS (onglet Avancé du lien) :
 * onglet-accueil, onglet-agenda, onglet-classements, onglet-forum, onglet-profil,
 * onglet-actus, onglet-club. Sans classe, un point s'affiche.
 */

.thc-nav .wp-block-navigation-item {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}

.thc-nav .onglet-accueil {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.thc-nav .onglet-agenda {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.thc-nav .onglet-classements {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0zM8 6H5.5a2.5 2.5 0 0 0 2.6 3.6M16 6h2.5a2.5 2.5 0 0 1-2.6 3.6M12 13v4M9 20h6M10 17h4'/%3E%3C/svg%3E");
}

.thc-nav .onglet-forum {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8l-4 3zM16 9h3a1 1 0 0 1 1 1v9l-3-2.5h-6a1 1 0 0 1-1-1V14'/%3E%3C/svg%3E");
}

.thc-nav .onglet-profil {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.thc-nav .onglet-actus {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6zM9 10h6M9 14h6M9 18h4'/%3E%3C/svg%3E");
}

.thc-nav .onglet-club {
	--thc-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-2.6 3.6-7.5 6.4-7.5 10.3a4.1 4.1 0 0 0 6.9 3L10 20.5h4l-1.4-4.7a4.1 4.1 0 0 0 6.9-3c0-3.9-4.9-6.7-7.5-10.3z'/%3E%3C/svg%3E");
}

/* ===== 3. En-tête et navigation ===== */

.wp-site-blocks .thc-header {
	gap: 16px;
	padding: 12px 16px;
	background: var(--wp--preset--color--noir);
}

.wp-site-blocks .thc-marque {
	gap: 10px;
}

.thc-marque .wp-block-site-logo img {
	display: block;
	width: 44px;
	height: auto;
}

.wp-site-blocks .thc-marque-texte {
	gap: 0;
}

.thc-marque .wp-block-site-title,
.thc-marque .wp-block-site-tagline {
	margin: 0;
}

.thc-marque .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.thc-header .thc-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

/* Téléphone et tablette : onglets avec icône */
@media (max-width: 1199px) {
	.thc-header .thc-nav .ordi-seulement {
		display: none !important;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		box-sizing: border-box;
		min-height: 52px;
		padding: 30px 2px 4px;
		border-radius: 12px;
		color: var(--wp--preset--color--accent-4);
		font-size: 11px;
		font-weight: 500;
		line-height: 1.2;
		text-align: center;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content::after {
		content: "";
		position: absolute;
		top: 5px;
		left: 50%;
		width: 24px;
		height: 24px;
		margin-left: -12px;
		background-color: currentColor;
		-webkit-mask: var(--thc-icone) center / contain no-repeat;
		mask: var(--thc-icone) center / contain no-repeat;
	}

	.thc-header .thc-nav .current-menu-item > .wp-block-navigation-item__content,
	.thc-header .thc-nav .wp-block-navigation-item__content[aria-current="page"] {
		color: var(--wp--preset--color--accent-2);
		font-weight: 700;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content:active {
		background-color: var(--wp--preset--color--accent-5);
	}
}

/* Téléphone : barre d'onglets fixée en bas de l'écran */
@media (max-width: 767px) {
	.wp-site-blocks {
		padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
	}

	.wp-site-blocks .thc-header {
		padding-top: max(12px, env(safe-area-inset-top, 0px));
	}

	.thc-header .thc-actions,
	.thc-marque .wp-block-site-tagline {
		display: none;
	}

	.wp-site-blocks .thc-header .thc-nav {
		position: fixed;
		z-index: 100;
		right: 0;
		bottom: 0;
		left: 0;
		margin: 0;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #2b2b2d;
		background: #151515;
	}

	.wp-site-blocks .thc-header .thc-nav .wp-block-navigation__container {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 4px;
		width: 100%;
	}
}

/* Tablette : rail de navigation à gauche */
@media (min-width: 768px) and (max-width: 1199px) {
	.wp-site-blocks {
		padding-left: 96px;
	}

	.wp-site-blocks .thc-header {
		position: fixed;
		z-index: 100;
		top: 0;
		bottom: 0;
		left: 0;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		box-sizing: border-box;
		width: 96px;
		gap: 22px;
		padding: 24px 0;
		overflow-y: auto;
		border-right: 1px solid #2b2b2d;
		background: #151515;
	}

	.admin-bar .wp-site-blocks .thc-header {
		top: 32px;
	}

	.thc-header .thc-marque-texte,
	.thc-header .thc-actions {
		display: none;
	}

	.thc-marque .wp-block-site-logo img {
		width: 56px;
	}

	.wp-site-blocks .thc-header .thc-nav .wp-block-navigation__container {
		flex-direction: column;
		gap: 8px;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content {
		width: 80px;
		padding-top: 40px;
		font-size: 12px;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 56px;
		height: 32px;
		margin-left: -28px;
		border-radius: 16px;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content::after {
		top: 4px;
	}

	.thc-header .thc-nav .current-menu-item > .wp-block-navigation-item__content::before,
	.thc-header .thc-nav .wp-block-navigation-item__content[aria-current="page"]::before {
		background: #2e2810;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content:active {
		background-color: transparent;
	}
}

/* Ordinateur : en-tête collé en haut, menu horizontal */
@media (min-width: 1200px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		z-index: 100;
		top: 0;
	}

	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 32px;
	}

	.wp-site-blocks .thc-header {
		gap: 28px;
		padding: 14px max(32px, calc((100% - 1200px) / 2));
		border-bottom: 1px solid #262627;
	}

	.wp-site-blocks .thc-header .thc-nav {
		flex: 1;
	}

	.wp-site-blocks .thc-header .thc-nav .wp-block-navigation__container {
		flex-wrap: wrap;
		gap: 4px;
	}

	.thc-header .thc-nav .wp-block-navigation-item__content {
		padding: 10px 14px;
		border-radius: 10px;
		color: #d2cec5;
		font-size: 15px;
		font-weight: 600;
	}

	.thc-header .thc-nav .current-menu-item > .wp-block-navigation-item__content,
	.thc-header .thc-nav .wp-block-navigation-item__content[aria-current="page"] {
		box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent-1);
		color: var(--wp--preset--color--accent-2);
		font-weight: 700;
	}

	.thc-header .thc-actions .wp-block-button__link {
		padding: 0.65rem 1.1rem;
		font-size: 15px;
	}
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
	.thc-header .thc-nav .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--accent-3);
		color: var(--wp--preset--color--contrast);
	}
}

/* ===== 4. Pied de page ===== */

.thc-pied {
	border-top: 1px solid #262627;
	background: var(--wp--preset--color--noir);
	font-size: 15px;
}

.thc-pied a {
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.thc-pied a:hover {
		color: var(--wp--preset--color--contrast);
	}
}

.thc-pied .wp-block-site-logo img {
	width: 60px;
	height: auto;
}

.thc-pied .thc-pied-titre {
	margin: 0 0 10px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 15px;
	font-weight: 700;
}

.thc-pied ul.wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.thc-pied ul.wp-block-list li + li {
	margin-top: 8px;
}

.thc-pied-bas {
	border-top: 1px solid #262627;
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
}

/* ===== 5. Accueil ===== */

.thc-section-titre {
	margin: 0;
}

.thc-sous-titre {
	margin: 4px 0 0;
	color: var(--wp--preset--color--accent-4);
}

.thc-bloc {
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 24px;
	background: var(--wp--preset--color--accent-3);
}

/* Bandeau d'accueil */
.thc-bandeau {
	border-bottom: 1px solid #262627;
	background-color: var(--wp--preset--color--base);
	background-image: url("assets/images/motif-cartes.svg");
	background-size: 120px 120px;
}

ul.thc-pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.thc-pastilles li {
	padding: 6px 12px;
	border: 1px solid #3a3112;
	border-radius: 999px;
	color: var(--wp--preset--color--accent-2);
	font-size: 13px;
	font-weight: 600;
}

/* Le mot en italique du titre s'écrit à la main, comme le « Hold'em » du logo. */
.thc-titre-bandeau em {
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--kaushan-script);
	font-size: 1.2em;
	font-style: normal;
	font-weight: 400;
}

.thc-intro {
	max-width: 34em;
	color: #d2cec5;
	font-size: 1.1875rem;
}

/* Les deux cartes à jouer : le dos avec le logo, la face avec le prochain tournoi */
.thc-main {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	aspect-ratio: 420 / 450;
}

.wp-block-image.thc-carte-dos {
	position: absolute;
	top: 3%;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 60%;
	margin: 0;
	aspect-ratio: 5 / 7;
	border: 1px solid #3a3112;
	border-radius: 18px;
	background: var(--wp--preset--color--accent-3);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
	transform: rotate(-9deg);
}

.wp-block-image.thc-carte-dos img {
	width: 82%;
	height: auto;
}

.wp-block-group.thc-carte-face {
	position: absolute;
	top: 9%;
	right: 0;
	box-sizing: border-box;
	width: 64%;
	margin: 0;
	padding: 16px 18px;
	aspect-ratio: 5 / 7;
	border-radius: 18px;
	background: var(--wp--preset--color--creme);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
	color: #111111;
	transform: rotate(5deg);
}

.thc-face {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

.thc-face p {
	margin: 0;
}

.thc-face .thc-coin,
.thc-face .thc-face-titre {
	color: #111111;
}

.thc-face .thc-coin {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.thc-face .thc-coin::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-2.6 3.6-7.5 6.4-7.5 10.3a4.1 4.1 0 0 0 6.9 3L10 20.5h4l-1.4-4.7a4.1 4.1 0 0 0 6.9-3c0-3.9-4.9-6.7-7.5-10.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-2.6 3.6-7.5 6.4-7.5 10.3a4.1 4.1 0 0 0 6.9 3L10 20.5h4l-1.4-4.7a4.1 4.1 0 0 0 6.9-3c0-3.9-4.9-6.7-7.5-10.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.thc-face-corps {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.thc-face .thc-face-etiquette {
	color: #6b5a0f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.thc-face .thc-face-titre {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}

.thc-face .thc-face-infos,
.thc-face .thc-face-places {
	color: #3a3835;
	font-size: 14px;
}

.thc-face .thc-face-infos::first-letter {
	text-transform: uppercase;
}

.thc-face .thc-face-places {
	font-weight: 600;
}

.thc-face .thc-face-bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 12px;
	background: #111111;
	color: #e8c547;
	font-weight: 700;
	text-decoration: none;
}

/* Téléphone et tablette : seule la face reste, à plat, en carte sombre.
 * Quand les colonnes s'empilent, elle passe avant le titre. */
@media (max-width: 781px) {
	.thc-bandeau-colonnes > .wp-block-column:last-child {
		order: -1;
	}
}

@media (max-width: 767px) {
	.thc-bandeau ul.thc-pastilles {
		display: none;
	}
}

@media (max-width: 1199px) {
	.thc-main {
		max-width: none;
		aspect-ratio: auto;
	}

	.wp-block-image.thc-carte-dos {
		display: none;
	}

	.wp-block-group.thc-carte-face {
		position: relative;
		top: auto;
		right: auto;
		width: 100%;
		padding: 18px;
		aspect-ratio: auto;
		border: 1px solid #3a3112;
		border-radius: 20px;
		background: var(--wp--preset--color--accent-3);
		box-shadow: none;
		color: var(--wp--preset--color--contrast);
		transform: none;
	}

	.thc-face .thc-coin {
		display: none;
	}

	.thc-face .thc-face-etiquette {
		color: var(--wp--preset--color--accent-4);
	}

	.thc-face .thc-face-titre {
		color: var(--wp--preset--color--contrast);
		font-size: 25px;
	}

	.thc-face .thc-face-infos,
	.thc-face .thc-face-places {
		color: #d2cec5;
		font-size: 15px;
	}

	.thc-face .thc-face-bouton {
		min-height: 50px;
		margin-top: 6px;
		background: var(--wp--preset--color--accent-1);
		color: #111111;
		font-size: 17px;
	}
}

/* L'esprit du club : trois cartes T, H, C */
.thc-carte-esprit {
	--thc-lettre: "";
	position: relative;
	box-sizing: border-box;
	min-height: 250px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 22px;
	background: var(--wp--preset--color--accent-3);
	transition: transform 160ms ease-out;
}

.thc-carte-esprit.thc-pique {
	--thc-lettre: "T";
	--thc-enseigne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-2.6 3.6-7.5 6.4-7.5 10.3a4.1 4.1 0 0 0 6.9 3L10 20.5h4l-1.4-4.7a4.1 4.1 0 0 0 6.9-3c0-3.9-4.9-6.7-7.5-10.3z'/%3E%3C/svg%3E");
	--thc-couleur-enseigne: var(--wp--preset--color--contrast);
}

.thc-carte-esprit.thc-coeur {
	--thc-lettre: "H";
	--thc-enseigne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.7c0 5.6-7.5 10.2-7.5 10.2z'/%3E%3C/svg%3E");
	--thc-couleur-enseigne: var(--wp--preset--color--rouge);
}

.thc-carte-esprit.thc-trefle {
	--thc-lettre: "C";
	--thc-enseigne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='3.6'/%3E%3Ccircle cx='7.4' cy='13' r='3.6'/%3E%3Ccircle cx='16.6' cy='13' r='3.6'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M11 13h2l.8 6.5h1.7V21h-7v-1.5h1.7z'/%3E%3C/svg%3E");
	--thc-couleur-enseigne: var(--wp--preset--color--contrast);
}

.thc-carte-esprit .thc-coin {
	margin: 0;
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}

.thc-carte-esprit .thc-coin::after {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin-top: 6px;
	background-color: var(--thc-couleur-enseigne);
	-webkit-mask: var(--thc-enseigne) center / contain no-repeat;
	mask: var(--thc-enseigne) center / contain no-repeat;
}

.thc-carte-esprit::after {
	content: var(--thc-lettre);
	content: var(--thc-lettre) / "";
	position: absolute;
	right: 22px;
	bottom: 16px;
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	transform: rotate(180deg);
}

ul.thc-mots {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 23px;
	font-weight: 600;
	list-style: none;
}

@media (hover: hover) and (pointer: fine) {
	.thc-carte-esprit:hover {
		transform: translateY(-3px);
	}
}

/* Actualités */
.thc-actus .wp-block-post-featured-image {
	margin: 0;
}

.thc-actu {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 22px;
	background: var(--wp--preset--color--accent-3);
	transition: transform 160ms ease-out;
}

.thc-actu .wp-block-post-featured-image img {
	display: block;
}

.thc-actu-texte {
	gap: 8px;
	padding: 18px 20px 22px;
}

.thc-actu .wp-block-post-terms {
	color: var(--wp--preset--color--accent-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.thc-actu .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.thc-actu .wp-block-post-title {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
}

.thc-actu .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.thc-actu .wp-block-post-date {
	font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
	.thc-actu:hover {
		transform: translateY(-3px);
	}
}

/* ===== 6. Intégrations ===== */

/* Events Manager : la carte « Prochain tournoi » et la liste « À venir » (formats définis dans
 * les compositions d'accueil). Events Manager les enveloppe dans un cadre « pixelbones » qui
 * impose ses couleurs de liens et ses marges avec !important : on les neutralise ici. */
.thc-main .em-view-container,
.thc-main .em-events-list,
.thc-agenda .em-view-container,
.thc-agenda .em-events-list {
	display: block;
	margin: 0;
	padding: 0;
}

.thc-carte-face .em-view-container,
.thc-carte-face .em-events-list {
	height: 100%;
}

.em.pixelbones .thc-face p,
.em.pixelbones .thc-evt p {
	margin: 0 !important;
	line-height: 1.35 !important;
}

.em.pixelbones a.thc-face-bouton {
	background-color: #111111 !important;
	color: #e8c547 !important;
	text-decoration: none;
}

.em.pixelbones a.thc-evt {
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: none;
}

@media (max-width: 767px) {
	.em.pixelbones a.thc-face-bouton {
		background-color: var(--wp--preset--color--accent-1) !important;
		color: #111111 !important;
	}
}

.thc-evt {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.thc-evt + .thc-evt {
	border-top: 1px solid #262627;
}

.thc-evt-date {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: center;
	width: 52px;
	padding: 6px 0;
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
}

.thc-evt-date span {
	color: var(--wp--preset--color--accent-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.thc-evt-date strong {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 21px;
	line-height: 1.15;
}

.thc-evt-texte {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.thc-evt-titre {
	font-size: 16px;
	font-weight: 600;
}

.thc-evt-infos {
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
}

/* Plugin de classement : dans la carte de l'accueil, la liste [poker_classements] perd son propre cadre */
.thc-bloc .ptc-liste {
	margin-right: -12px;
	margin-left: -12px;
	border: 0;
	border-radius: 0;
	background: none;
}

.thc-bloc .ptc-legende {
	margin-top: 0;
}

/* Plugin de classement : l'ancien tableau [poker_classement_saison], habillé aux couleurs du club */
.thc-classement .poker-ranking-container {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.thc-classement .poker-ranking-title {
	display: none;
}

.thc-classement .poker-ranking-subtitle {
	margin: 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
}

.thc-classement .poker-ranking-table {
	margin-top: 12px;
	font-variant-numeric: tabular-nums;
}

.thc-classement .poker-ranking-table thead {
	border: 0;
	background: none;
}

.thc-classement .poker-ranking-table th {
	padding: 8px 10px;
	color: var(--wp--preset--color--accent-4);
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.thc-classement .poker-ranking-table td {
	padding: 12px 10px;
	border-top: 1px solid #262627;
	border-bottom: 0;
	color: var(--wp--preset--color--contrast);
}

.thc-classement .poker-ranking-table tbody tr,
.thc-classement .poker-ranking-table tbody tr:hover,
.thc-classement .poker-podium-1,
.thc-classement .poker-podium-2,
.thc-classement .poker-podium-3 {
	border-left: 0;
	background: none;
}

.thc-classement .poker-ranking-table .poker-col-position {
	width: 44px;
}

.thc-classement .poker-ranking-table .poker-col-points {
	width: auto;
	white-space: nowrap;
}

.thc-classement td.poker-col-points {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
}

@media (max-width: 767px) {
	.thc-classement .poker-ranking-table th,
	.thc-classement .poker-ranking-table td {
		padding-right: 6px;
		padding-left: 6px;
	}
}

.thc-classement .poker-medal {
	font-size: 18px;
	animation: none;
}

.thc-classement .poker-info,
.thc-classement .poker-error {
	color: var(--wp--preset--color--accent-4);
}

/* bbPress : derniers sujets ([thc_sujets_recents]) */
ul.thc-sujets {
	margin: 0;
	padding: 0;
	list-style: none;
}

.thc-sujet + .thc-sujet {
	border-top: 1px solid #262627;
}

.thc-sujet a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.thc-sujet-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.thc-sujet-texte {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.thc-sujet-titre {
	font-size: 16px;
	font-weight: 600;
}

.thc-sujet-infos {
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
}

.thc-sujet-reponses {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	color: #d2cec5;
	font-size: 14px;
}

.thc-sujet-reponses::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8l-4 3zM16 9h3a1 1 0 0 1 1 1v9l-3-2.5h-6a1 1 0 0 1-1-1V14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8l-4 3zM16 9h3a1 1 0 0 1 1 1v9l-3-2.5h-6a1 1 0 0 1-1-1V14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.thc-annonce {
	display: inline-block;
	margin-right: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: #111111;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 2px;
}

.thc-vide {
	color: var(--wp--preset--color--accent-4);
}

/* bbPress : pages du forum en version sombre (le style d'origine de bbPress est clair) */
#bbpress-forums {
	font-size: 15px;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results,
#bbpress-forums ul.bbp-lead-topic {
	overflow: hidden;
	border-color: var(--wp--preset--color--accent-6);
	border-radius: 16px;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer,
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
	border-color: var(--wp--preset--color--accent-6);
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-4);
}

#bbpress-forums div.even,
#bbpress-forums ul.even,
#bbpress-forums div.odd,
#bbpress-forums ul.odd,
#bbpress-forums .bbp-forum-content {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
	border-top-color: #262627;
}

#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums .bbp-breadcrumb,
#bbpress-forums .bbp-pagination,
#bbpress-forums .bbp-reply-post-date,
#bbpress-forums .bbp-topic-post-date {
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
}

#bbpress-forums fieldset.bbp-form {
	border-color: var(--wp--preset--color--accent-6);
	border-radius: 14px;
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="search"],
#bbpress-forums textarea,
#bbpress-forums select {
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbp_search_submit {
	padding: 8px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-1);
	color: #111111;
	font-weight: 700;
	cursor: pointer;
}

div.bbp-template-notice,
div.bbp-template-notice.info,
div.bbp-template-notice.important {
	border-color: var(--wp--preset--color--accent-6);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
}
