/* =========================================================================
   MATCHS & TOURNOIS — module hurricane-tournois.php
   Chargé après la feuille du thème (dépendance « hurricane ») : reprend la
   charte « nuit de match » (--nuit, --tribune, --craie, --gris, --rouge…).
   Sert aussi à l'aperçu en direct de la fiche, dans l'administration.
   ========================================================================= */

/* ---- Ligne de match : colonne du verdict élargie (« Victoire · forfait ») */
.hm-matchs .hm-match { grid-template-columns: 190px 1fr auto 1fr 170px; }
.hm-matchs .hm-verdict { line-height: 1.5; }
.hm-verdict.ff { white-space: normal; text-align: center; }
.hm-verdict.e { background: rgba(229, 162, 75, .15); color: #E5A24B; }
.hm-verdict.c {
	background: rgba(244, 239, 234, .06);
	color: var(--craie, #F4EFEA);
	border: 1px solid rgba(229, 36, 64, .55);
	text-transform: none;
	letter-spacing: .03em;
	font-size: 12px;
}
.hm-verdict sup { font-size: .75em; line-height: 0; }

/* ---- Carte d'un tournoi ------------------------------------------------ */
.hm-tournoi {
	position: relative;
	padding: 18px 16px 8px;
	border-bottom: 1px solid var(--ligne-doux, #251E20);
	background: linear-gradient(90deg, rgba(229, 36, 64, .07), rgba(229, 36, 64, 0) 42%);
	scroll-margin-top: 90px;
}
.hm-tournoi:last-child { border-bottom: 0; }
.hm-tournoi::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--rouge, #E52440);
}
.hm-t-tete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px 24px;
}
.hm-t-id { min-width: 0; flex: 1 1 360px; }
.hm-t-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 9px;
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--gris, #9C8F8A);
}
.hm-t-meta b { color: var(--craie-2, #D8CFC9); font-weight: 600; }
.hm-t-type {
	font-family: var(--mono, monospace);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--craie-2, #D8CFC9);
	border: 1px solid var(--ligne, #2F2628);
	border-radius: 2px;
	padding: 1px 7px;
}
.hm-tournoi .disc {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 2px;
	line-height: 1.5;
}
.hm-tournoi .disc.flag { background: rgba(229, 36, 64, .15); color: var(--rouge-vif, #FF3D57); }
.hm-tournoi .disc.footus { background: rgba(70, 179, 128, .13); color: var(--vert, #46B380); }
.hm-tournoi .hm-t-nom {
	font-family: var(--display, Impact, sans-serif);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: var(--craie, #F4EFEA);
	font-size: clamp(24px, 3.1vw, 32px);
	line-height: 1.1; /* les accents des capitales (É) ne touchent pas la ligne du dessus */
	margin: 0;
	overflow-wrap: anywhere;
}
.hm-t-sous { margin: 6px 0 0; font-size: 14px; color: var(--gris, #9C8F8A); line-height: 1.5; }
.hm-t-sous b { color: var(--craie, #F4EFEA); font-weight: 700; }
.hm-t-sous .tag {
	display: inline;
	margin: 0 0 0 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--gris-2, #6E6260);
}

/* Encadrés Bilan / Classement / Points : seulement ce qui est rempli */
.hm-t-res { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.hm-t-res > .hm-verdict { align-self: center; }
.hm-t-bilan, .hm-t-place, .hm-t-pts {
	background: var(--nuit, #100D0E);
	border: 1px solid var(--ligne, #2F2628);
	border-radius: 3px;
	padding: 8px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 110px;
}
.hm-t-pts { min-width: 96px; }
.hm-t-place { border-color: rgba(229, 36, 64, .5); }
.hm-t-res .lbl {
	font-family: var(--mono, monospace);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gris, #9C8F8A);
	margin-bottom: 2px;
	line-height: 1.4;
}
.hm-t-bilan .val {
	font-family: var(--display, Impact, sans-serif);
	font-size: 27px;
	line-height: 1.05;
	color: var(--craie, #F4EFEA);
	white-space: nowrap;
}
.hm-t-bilan .v { color: var(--vert, #46B380); }
.hm-t-bilan .d { color: var(--gris, #9C8F8A); }
.hm-t-bilan .sep { color: var(--gris-2, #6E6260); margin: 0 .22em; }
.hm-t-place .val, .hm-t-pts .val {
	font-family: var(--display, Impact, sans-serif);
	font-size: 34px;
	line-height: 1;
	color: var(--craie, #F4EFEA);
	white-space: nowrap;
}
.hm-t-place sup { font-size: .5em; position: relative; top: -.1em; margin-left: 1px; }
.hm-t-place .sur {
	font-family: var(--mono, monospace);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gris, #9C8F8A);
	margin-top: 4px;
	line-height: 1.3;
}
.hm-t-pts .u { font-size: .5em; color: var(--gris, #9C8F8A); margin-left: .18em; }

/* Rencontres, regroupées par jour pour un tournoi sur plusieurs jours */
.hm-tournoi .hm-t-rencontres {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	border-top: 1px dashed var(--ligne, #2F2628);
}
.hm-r {
	display: grid;
	grid-template-columns: 174px 1fr auto 1fr 170px;
	gap: 16px;
	align-items: center;
	padding: 8px 0;
	margin: 0;
	border-bottom: 1px dashed var(--ligne-doux, #251E20);
}
.hm-r:last-child { border-bottom: 0; }
.hm-r .n {
	font-family: var(--mono, monospace);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gris, #9C8F8A);
}
.hm-r .nous { font-size: 14px; color: var(--gris, #9C8F8A); }
.hm-r .score { font-size: 20px; font-weight: 700; color: var(--craie, #F4EFEA); text-align: center; white-space: nowrap; }
.hm-r .score .t { font-size: 15px; color: var(--gris-2, #6E6260); }
.hm-r .eux { text-align: right; font-size: 15px; color: var(--craie-2, #D8CFC9); overflow-wrap: anywhere; }
.hm-r .hm-verdict { justify-self: end; }
.hm-r-jour {
	font-family: var(--mono, monospace);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--craie-2, #D8CFC9);
	padding: 12px 0 4px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.hm-r-jour::before { content: ""; width: 18px; height: 2px; background: var(--rouge, #E52440); flex: none; }
.hm-r-lib { display: none; }
.hm-t-vide { margin: 12px 0 8px; font-size: 14px; font-style: italic; color: var(--gris, #9C8F8A); }

/* ---- Ligne compacte d'un tournoi (tableau d'affichage de l'accueil) ---- */
a.hm-match-t {
	position: relative;
	color: inherit;
	text-decoration: none;
	background: linear-gradient(90deg, rgba(229, 36, 64, .07), rgba(229, 36, 64, 0) 45%);
	transition: background-color .15s;
}
a.hm-match-t:hover, a.hm-match-t:focus-visible { background-color: rgba(244, 239, 234, .03); color: inherit; }
a.hm-match-t::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--rouge, #E52440);
}
.hm-match-t .score { font-size: 22px; }
.hm-match-t .score .v { color: var(--vert, #46B380); }
.hm-match-t .eux .voir {
	display: block;
	font-family: var(--mono, monospace);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rouge-vif, #FF3D57);
	margin-top: 2px;
}

/* ---- Téléphone -------------------------------------------------------- */
@media (max-width: 700px) {
	.hm-matchs .hm-match { grid-template-columns: 1fr auto 1fr; }
	.hm-t-id { flex-basis: 100%; }
	.hm-t-res { width: 100%; }
	.hm-t-bilan, .hm-t-place, .hm-t-pts { flex: 1 1 0; min-width: 92px; }
	.hm-r { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; }
	.hm-r .nous, .hm-r .n .long { display: none; }
	.hm-r .eux { text-align: left; }
	.hm-r .hm-verdict { grid-column: auto; justify-self: end; font-size: 10px; padding: 3px 7px; }
	.hm-r-lib {
		display: block;
		font-family: var(--mono, monospace);
		font-size: 10px;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--gris, #9C8F8A);
		padding: 8px 0 2px;
		margin: 0;
	}
	.hm-match-t .eux { font-size: 14px; line-height: 1.35; }
}
