/* Haltéro Hero v1.2 : visuel + actualités + prochaine compétition.
   Sélecteurs préfixés .hhr et propriétés sensibles en !important pour ne pas être
   écrasés par les styles globaux d'Elementor / du thème (titres, liens, boutons). */

body:has(.hhr) {
	overflow-x: clip;
}

.hhr {
	--hhr-navy: #00122b;
	--hhr-ink: #1c3557;
	--hhr-red: #e63946;
	--hhr-rasp: #cc3466;
	--hhr-muted: #5b6b82;
	--hhr-gutter: max(24px, calc((100vw - 1200px) / 2));
	position: relative;
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0 calc(50% - 50vw);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #1b2a41;
	text-align: left;
}
.hhr *,
.hhr *::before,
.hhr *::after {
	box-sizing: border-box;
}

/* ---------- Bandeau bleu ---------- */
.hhr .hhr-hero {
	color: #fff;
	background: linear-gradient(165deg, #0053c5 0%, #00122b 42%, #00122b 100%);
	padding: 48px var(--hhr-gutter) 130px;
}
.hhr .hhr-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: stretch;
}

/* ---------- Gauche : visuel ---------- */
.hhr .hhr-visual {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(165deg, #0a4fb0 0%, #0a2244 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hhr .hhr-visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border-radius: 0;
	box-shadow: none;
}
.hhr .hhr-visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 18, 43, 0.55) 0%, rgba(0, 18, 43, 0) 45%);
}

/* ---------- Droite : actualités ---------- */
.hhr .hhr-feed {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.hhr .hhr-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Oswald', 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #bcd3f5;
}
.hhr .hhr-label a {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	color: #fff !important;
	opacity: 0.85;
	text-decoration: none !important;
}
.hhr .hhr-label a:hover {
	opacity: 1;
	text-decoration: underline !important;
}

.hhr a.hhr-feat {
	position: relative;
	display: block;
	min-height: 290px;
	overflow: hidden;
	border-radius: 14px;
	background: #0a2244;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hhr .hhr-feat img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}
.hhr a.hhr-feat:hover img {
	transform: scale(1.03);
}
.hhr .hhr-feat::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 18, 43, 0.95) 0%, rgba(0, 18, 43, 0.35) 55%, rgba(0, 18, 43, 0) 100%);
}
.hhr .hhr-feat-in {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: block;
	padding: 22px;
}
.hhr .hhr-pill {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 30px;
	background: var(--hhr-red);
	color: #fff;
	font-family: 'Oswald', 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hhr h3.hhr-feat-title {
	margin: 10px 0 6px !important;
	padding: 0 !important;
	font-family: 'Poppins', system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 22px !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
}
.hhr .hhr-meta {
	display: block;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.78);
}

.hhr .hhr-list {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
}
.hhr a.hhr-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff !important;
	text-decoration: none !important;
}
.hhr a.hhr-row:last-child {
	border-bottom: 0;
}
.hhr a.hhr-row:hover {
	background: rgba(255, 255, 255, 0.08);
}
.hhr .hhr-row img {
	flex: none;
	width: 64px;
	height: 48px;
	max-width: none;
	object-fit: cover;
	border-radius: 8px;
}
.hhr .hhr-row-txt {
	display: block;
	min-width: 0;
}
.hhr .hhr-row-txt b {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}
.hhr .hhr-row-txt span {
	font-size: 12px;
	color: #bcd3f5;
}

/* ---------- Prochaine compétition : chevauche le bandeau ---------- */
.hhr .hhr-next {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 24px;
	margin: -92px var(--hhr-gutter) 0;
	padding: 22px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(0, 18, 43, 0.18);
}
.hhr .hhr-date {
	width: 72px;
	padding: 8px 0;
	border-radius: 12px;
	background: var(--hhr-navy);
	color: #fff;
	text-align: center;
}
.hhr .hhr-date b {
	display: block;
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
	color: #fff;
}
.hhr .hhr-date span {
	font-family: 'Oswald', 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.12em;
}
.hhr .hhr-tagline {
	display: block;
	margin-bottom: 4px;
	font-family: 'Oswald', 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hhr-muted);
}
.hhr h4 {
	margin: 0 0 3px !important;
	padding: 0 !important;
	font-family: 'Poppins', system-ui, sans-serif !important;
	font-weight: 600 !important;
	font-size: 18px !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	color: var(--hhr-ink) !important;
}
.hhr h4 a {
	color: inherit !important;
	font: inherit !important;
	text-decoration: none !important;
}
.hhr h4 a:hover {
	text-decoration: underline !important;
}
.hhr .hhr-next p {
	margin: 0 !important;
	font-size: 14px;
	color: var(--hhr-muted) !important;
}
.hhr .hhr-count {
	padding: 8px 14px;
	border-radius: 30px;
	background: #fff1f2;
	color: var(--hhr-red);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.hhr a.hhr-btn {
	display: inline-flex;
	align-items: center;
	padding: 13px 24px !important;
	border: 0 !important;
	border-radius: 30px !important;
	background: var(--hhr-red) !important;
	color: #fff !important;
	font-family: 'Poppins', system-ui, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	transition: background 0.2s ease;
}
.hhr a.hhr-btn:hover,
.hhr a.hhr-btn:focus-visible {
	background: var(--hhr-rasp) !important;
	color: #fff !important;
}

@media (max-width: 900px) {
	.hhr {
		--hhr-gutter: 20px;
	}
	.hhr .hhr-hero {
		padding: 24px var(--hhr-gutter) 120px;
	}
	.hhr .hhr-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.hhr .hhr-visual {
		min-height: 260px;
	}
	.hhr .hhr-next {
		grid-template-columns: auto 1fr;
		gap: 14px;
		margin: -84px 16px 0;
		padding: 18px;
	}
	.hhr .hhr-count {
		justify-self: start;
	}
	.hhr a.hhr-btn {
		grid-column: 1 / -1;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhr .hhr-feat img {
		transition: none;
	}
	.hhr a.hhr-feat:hover img {
		transform: none;
	}
}
