/*
Theme Name: Hand Day
Description: Thème enfant GeneratePress pour HandDay.fr — média handball, hubs par compétition, cartes d'articles, lecture confortable.
Template: generatepress
Version: 1.1.0
Text Domain: handday
*/

/* ==========================================================================
   Polices (auto-hébergées)
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Space Grotesk";
	src: url("assets/fonts/space-grotesk.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}

/* ==========================================================================
   Jetons de design
   ========================================================================== */

:root {
	--hd-ink: #0b0f19;
	--hd-ink-2: #334155;
	--hd-muted: #64748b;
	--hd-line: #e2e8f0;
	--hd-bg: #ffffff;
	--hd-card: #ffffff;
	--hd-dark: #0a0e17;
	--hd-accent: #1d4ed8;
	--hd-accent-hi: #60a5fa;
	--hd-accent-soft: #e8f0fe;
	--hd-radius: 18px;
	--hd-radius-sm: 10px;
	--hd-shadow: 0 1px 2px rgba(10, 14, 23, .04), 0 8px 24px -12px rgba(10, 14, 23, .12);
	--hd-shadow-hover: 0 2px 4px rgba(10, 14, 23, .05), 0 18px 40px -16px rgba(10, 14, 23, .22);
	--hd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hd-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--hd-cat: var(--hd-accent);
	--hd-cat-soft: var(--hd-accent-soft);
}

/* Couleur par famille de compétitions (hubs d'origine) : nuances de bleu et de noir, charte bleu/noir/blanc */
.hd-f--fra-m     { --hd-cat: #1d4ed8; --hd-cat-soft: #e3ecff; }
.hd-f--fra-f     { --hd-cat: #2563eb; --hd-cat-soft: #e8f0fe; }
.hd-f--coupes    { --hd-cat: #0b0f19; --hd-cat-soft: #eef1f6; }
.hd-f--regional  { --hd-cat: #0369a1; --hd-cat-soft: #e0f2fe; }
.hd-f--etrangers { --hd-cat: #1e40af; --hd-cat-soft: #e6ecfb; }
.hd-f--jo        { --hd-cat: #334155; --hd-cat-soft: #eef1f6; }
.hd-f--mondial   { --hd-cat: #1e3a8a; --hd-cat-soft: #e3e9f8; }
.hd-f--euro      { --hd-cat: #0284c7; --hd-cat-soft: #e0f2fe; }
.hd-f--divers    { --hd-cat: var(--hd-accent); --hd-cat-soft: var(--hd-accent-soft); }

/* ==========================================================================
   Base
   ========================================================================== */

body {
	background: var(--hd-bg);
	color: var(--hd-ink-2);
	font-family: var(--hd-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hd-display);
	color: var(--hd-ink);
	letter-spacing: -.02em;
	line-height: 1.2;
	font-weight: 700;
}

a { color: var(--hd-accent); }
a:hover, a:focus { color: var(--hd-ink); }

:focus-visible {
	outline: 3px solid var(--hd-accent-hi);
	outline-offset: 2px;
	border-radius: 4px;
}

.hd-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hd-muted { color: var(--hd-muted); font-weight: 500; }

.site-content { padding: 0; }
.one-container .site-content,
.one-container.no-sidebar .site-main,
.separate-containers .site-main { margin: 0; padding: 0; }
.site.grid-container { background: transparent; }

/* #main : l'emporte sur les resets GeneratePress (.one-container.no-sidebar .site-main) */
#main.hd-main {
	padding: 32px 24px 80px;
}

.hd-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hd-cat);
	margin: 0 0 10px;
}

/* ==========================================================================
   En-tête & navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--hd-line);
}

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

.site-header .inside-header {
	padding: 14px 24px;
	max-width: 1248px;
	margin: 0 auto;
	align-items: center;
}

.site-branding, .site-logo { margin: 0; }
.main-title { margin: 0; line-height: 1; font-size: inherit; }

.hd-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--hd-ink);
}

.hd-brand__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: #fff;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.hd-brand__name {
	font-family: var(--hd-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--hd-ink);
	white-space: nowrap;
}

.hd-brand__tld { color: var(--hd-accent); }

.main-navigation,
.main-navigation ul ul { background: transparent; }

.main-navigation .main-nav ul li a {
	font-size: 15px;
	font-weight: 500;
	color: var(--hd-ink-2);
	padding: 0 14px;
	line-height: 44px;
	border-radius: 999px;
	transition: background-color .15s, color .15s;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a {
	color: var(--hd-ink);
	background: var(--hd-accent-soft);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--hd-accent);
	background: var(--hd-accent-soft);
}

.main-navigation .menu-bar-items { color: var(--hd-ink-2); }
.main-navigation .menu-bar-item > a { padding: 0 12px; line-height: 44px; }

.navigation-search input[type="search"] {
	background: #fff;
	color: var(--hd-ink);
	font-size: 16px;
	border-radius: 12px;
}

.menu-toggle {
	font-family: var(--hd-font);
	font-weight: 600;
	color: var(--hd-ink);
	border-radius: 10px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.hd-section { margin-top: 56px; }

.hd-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.hd-section__head h1,
.hd-section__head h2 {
	font-size: clamp(24px, 3vw, 30px);
	margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hd-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
	gap: 32px;
	padding: 64px 56px;
	border-radius: 28px;
	background:
		radial-gradient(700px 400px at 85% 20%, rgba(59, 130, 246, .35), transparent 60%),
		radial-gradient(500px 360px at 10% 110%, rgba(96, 165, 250, .12), transparent 60%),
		var(--hd-dark);
	color: #cbd5e1;
}

.hd-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
	pointer-events: none;
}

.hd-hero > * { position: relative; z-index: 1; }

.hd-hero .hd-eyebrow { color: var(--hd-accent-hi); }

.hd-hero__title {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: -.035em;
	color: #fff;
	margin: 0 0 18px;
}

.hd-hero__title span {
	background: linear-gradient(90deg, #93c5fd, #3b82f6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hd-hero__lead {
	font-size: 18px;
	max-width: 34em;
	margin: 0 0 28px;
}

.hd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}

.hd-btn:hover { transform: translateY(-1px); }

.hd-btn--primary {
	background: var(--hd-accent-hi);
	color: var(--hd-dark);
}

.hd-btn--primary:hover, .hd-btn--primary:focus { background: #93c5fd; color: var(--hd-dark); }

.hd-btn--ghost {
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .22);
}

.hd-btn--ghost:hover, .hd-btn--ghost:focus { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

.hd-hero__stats {
	display: flex;
	gap: 36px;
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.hd-hero__stats div { display: flex; flex-direction: column-reverse; }
.hd-hero__stats dt { font-size: 13px; color: #94a3b8; margin: 0; }
.hd-hero__stats dd { font-family: var(--hd-display); font-size: 26px; font-weight: 700; color: #fff; margin: 0; }

.hd-hero__art svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
	transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}

/* ==========================================================================
   Thèmes (tuiles catégories)
   ========================================================================== */

.hd-topics {
	list-style: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.hd-topic a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 20px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	text-decoration: none;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}

.hd-topic a:hover, .hd-topic a:focus {
	transform: translateY(-3px);
	box-shadow: var(--hd-shadow-hover);
	border-color: transparent;
}

.hd-topic__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: var(--hd-cat-soft);
	color: var(--hd-cat);
}

.hd-topic__name { font-family: var(--hd-display); font-weight: 700; font-size: 17px; color: var(--hd-ink); line-height: 1.25; }
.hd-topic__count { font-size: 14px; color: var(--hd-muted); }

/* ==========================================================================
   Cartes d'articles
   ========================================================================== */

.hd-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	overflow: hidden;
	box-shadow: var(--hd-shadow);
	transition: transform .2s, box-shadow .2s;
}

.hd-card:hover, .hd-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--hd-shadow-hover);
}

.hd-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hd-cat-soft);
}

.hd-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.hd-card:hover .hd-card__img { transform: scale(1.04); }

.hd-card__media--ph {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7), transparent 55%),
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .35) 14px 15px),
		var(--hd-cat-soft);
}

.hd-ph {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 24px;
	background: #fff;
	color: var(--hd-cat);
	box-shadow: 0 10px 30px -10px var(--hd-cat);
	transition: transform .3s;
}

.hd-card:hover .hd-ph { transform: rotate(-4deg) scale(1.05); }

.hd-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 22px;
}

.hd-badge {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--hd-cat-soft);
	color: var(--hd-cat);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.hd-badge:hover, .hd-badge:focus { background: var(--hd-cat); color: #fff; }

.hd-card__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}

.hd-card__title a {
	color: var(--hd-ink);
	text-decoration: none;
}

/* Toute la carte est cliquable */
.hd-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hd-card:hover .hd-card__title a { color: var(--hd-cat); }

.hd-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hd-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 13.5px;
	color: var(--hd-muted);
}

.hd-meta--lg { gap: 20px; font-size: 15px; }
.hd-meta--lg span { display: inline-flex; align-items: center; gap: 6px; }

/* Pagination */
.hd-pagination { margin-top: 44px; }

.hd-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.hd-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	color: var(--hd-ink-2);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.hd-pagination a.page-numbers:hover { border-color: var(--hd-accent); color: var(--hd-accent); }
.hd-pagination .page-numbers.current { background: var(--hd-ink); border-color: var(--hd-ink); color: #fff; }
.hd-pagination .page-numbers.dots { background: none; border: 0; }

/* ==========================================================================
   En-têtes d'archives
   ========================================================================== */

.hd-archive-head {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	margin-bottom: 36px;
	padding: 40px;
	border-radius: 24px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	box-shadow: var(--hd-shadow);
}

.hd-archive-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.hd-archive-head__desc { max-width: 42em; color: var(--hd-ink-2); }
.hd-archive-head__desc p:last-child { margin-bottom: 0; }
.hd-archive-head__count { margin: 6px 0 0; color: var(--hd-muted); font-size: 15px; }

.hd-archive-head__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: var(--hd-cat-soft);
	color: var(--hd-cat);
}

.hd-archive-head .search-form { margin-top: 18px; max-width: 480px; }

.hd-empty {
	padding: 40px;
	text-align: center;
	background: var(--hd-card);
	border-radius: var(--hd-radius);
	border: 1px dashed var(--hd-line);
}

/* Formulaire de recherche */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid var(--hd-line);
	background: var(--hd-bg);
	font-size: 16px;
	color: var(--hd-ink);
}
.search-form .search-submit {
	height: 48px;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--hd-ink);
	color: #fff;
	font-weight: 600;
}
.search-form .search-submit:hover { background: var(--hd-accent); }

/* ==========================================================================
   Article & page
   ========================================================================== */

.hd-single {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 64px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: 28px;
	box-shadow: var(--hd-shadow);
}

.hd-single__head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--hd-line); }

.hd-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--hd-muted);
}

.hd-crumbs a { color: var(--hd-muted); text-decoration: none; }
.hd-crumbs a:last-child { color: var(--hd-cat); font-weight: 600; }
.hd-crumbs a:hover { color: var(--hd-ink); }

.hd-single__title {
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.1;
	letter-spacing: -.03em;
	margin: 0 0 18px;
}

.hd-page .hd-single__title { margin-bottom: 0; }

/* Contenu d'article */
.hd-prose {
	font-size: 18px;
	line-height: 1.8;
	color: var(--hd-ink-2);
}

.hd-prose > * { margin-top: 0; margin-bottom: 1.3em; }
.hd-prose h2 { font-size: 28px; margin: 1.8em 0 .6em; }
.hd-prose h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.hd-prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }

.hd-prose a {
	color: var(--hd-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(29, 78, 216, .4);
}

.hd-prose a:hover { text-decoration-color: currentColor; }

/* Anciens contenus : pas de centrage forcé, images mises en valeur */
.hd-prose p, .hd-prose div, .hd-prose span, .hd-prose li { text-align: left !important; }

.hd-prose img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.6em auto;
	border-radius: 14px;
	box-shadow: 0 10px 30px -14px rgba(10, 14, 23, .35);
}

.hd-prose a:has(> img) { display: block; text-decoration: none; }

.hd-prose ul, .hd-prose ol { margin-left: 1.3em; }
.hd-prose li { margin-bottom: .45em; }
.hd-prose li::marker { color: var(--hd-accent); }

.hd-prose blockquote {
	margin: 1.8em 0;
	padding: 18px 24px;
	border: 0;
	border-left: 4px solid var(--hd-accent-hi);
	border-radius: 0 12px 12px 0;
	background: var(--hd-accent-soft);
	font-style: normal;
	color: var(--hd-ink);
}

.hd-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	display: block;
	overflow-x: auto;
}

.hd-prose th, .hd-prose td { padding: 10px 12px; border: 1px solid var(--hd-line); text-align: left; }
.hd-prose th { background: var(--hd-bg); color: var(--hd-ink); }

.hd-prose .wp-block-embed,
.hd-prose iframe { margin: 2em 0; border-radius: 14px; overflow: hidden; }

.hd-prose strong { color: var(--hd-ink); }

.hd-prose .wp-block-list, .hd-prose ul { padding-left: 0; }

/* Tags */
.hd-single__tags {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--hd-line);
	color: var(--hd-muted);
}

.hd-single__tags .hd-icon { margin-top: 7px; }
.hd-single__tags ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hd-single__tags a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--hd-bg);
	border: 1px solid var(--hd-line);
	color: var(--hd-ink-2);
	font-size: 14px;
	text-decoration: none;
}
.hd-single__tags a:hover { border-color: var(--hd-accent); color: var(--hd-accent); }

/* Précédent / suivant */
.hd-postnav {
	max-width: 820px;
	margin: 24px auto 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.hd-postnav a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 24px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	color: var(--hd-ink);
	font-family: var(--hd-display);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

.hd-postnav a span { font-family: var(--hd-font); font-size: 13px; font-weight: 500; color: var(--hd-muted); }
.hd-postnav a:hover { border-color: var(--hd-accent); box-shadow: var(--hd-shadow); }
.hd-postnav__next { grid-column: 2; text-align: right; }

.hd-related { max-width: 1200px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer { background: var(--hd-dark); }

.hd-footer { color: #94a3b8; font-size: 15px; }

.hd-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
}

.hd-brand--footer .hd-brand__name { color: #fff; }
.hd-brand--footer .hd-brand__tld { color: var(--hd-accent-hi); }
.hd-footer__about p { margin: 16px 0 0; max-width: 30em; line-height: 1.6; }

.hd-footer__col h2 {
	font-family: var(--hd-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	margin: 6px 0 16px;
}

.hd-footer__col ul { list-style: none; margin: 0; }
.hd-footer__col li { margin-bottom: 10px; }
.hd-footer__col a { color: #94a3b8; text-decoration: none; }
.hd-footer__col a:hover { color: var(--hd-accent-hi); }

.hd-footer__bottom {
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 24px 28px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 14px;
}

.hd-footer__bottom p { margin: 0; }

.generate-back-to-top {
	border-radius: 999px;
	background: var(--hd-accent-hi);
	color: var(--hd-dark);
}

/* ==========================================================================
   Hand Day : navigation sous l'en-tête, hubs, contenus d'origine
   ========================================================================== */

/* L'en-tête défile, la barre de compétitions reste collée en haut */
.site-header { position: relative; background: var(--hd-card); }
.admin-bar .site-header { top: auto; }

.main-navigation {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--hd-line);
}

.admin-bar .main-navigation { top: 32px; }

.main-navigation .inside-navigation {
	max-width: 1248px;
	margin: 0 auto;
	padding: 6px 24px;
}

.main-navigation .main-nav > ul > li > a { padding: 0 12px; font-size: 14.5px; }

.main-navigation .main-nav ul ul {
	background: #fff;
	border: 1px solid var(--hd-line);
	border-radius: 14px;
	box-shadow: var(--hd-shadow-hover);
	padding: 6px;
	width: 260px;
}

.main-navigation .main-nav ul ul li a {
	line-height: 1.35;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
}

.main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 0; }

/* En-tête de page hub */
.hd-hub .hd-single__head { display: grid; justify-items: start; gap: 4px; }
.hd-hub .hd-archive-head__icon { margin: 4px 0 6px; }
.hd-single__head .hd-badge { margin-bottom: 12px; }

.hd-archive-head__count a { color: var(--hd-cat); font-weight: 600; text-decoration: none; }
.hd-archive-head__count a:hover, .hd-archive-head__count a:focus { text-decoration: underline; }

.hd-meta a { color: inherit; text-decoration: none; font-weight: 600; }
.hd-meta a:hover, .hd-meta a:focus { color: var(--hd-accent); text-decoration: underline; }

/* Image à la une (seulement quand l'article n'a aucune image dans son contenu) */
.hd-single__cover { margin: 0 0 32px; }
.hd-single__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hd-radius);
	box-shadow: var(--hd-shadow);
}

/* Chapô d'origine (premier titre Divi) */
.hd-prose .hd-lead {
	font-size: 1.15em;
	line-height: 1.6;
	font-weight: 500;
	color: var(--hd-ink);
	border-left: 4px solid var(--hd-cat);
	padding-left: 18px;
	margin-bottom: 1.6em;
}

/* Hand Day TV : chaînes vidéo des clubs */
.hd-prose .hd-channels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.hd-prose .hd-channels li { margin: 0; }

.hd-prose .hd-channels a {
	display: block;
	padding: 14px 16px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius-sm);
	font-weight: 600;
	text-decoration: none;
	color: var(--hd-ink);
	transition: border-color .15s, color .15s;
}

.hd-prose .hd-channels a:hover, .hd-prose .hd-channels a:focus { border-color: var(--hd-accent); color: var(--hd-accent); }

@media (max-width: 768px) {
	.main-navigation .inside-navigation { padding: 4px 16px; }
	.admin-bar .main-navigation { top: 0; }
	.main-navigation .main-nav ul ul { width: auto; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.hd-topics { grid-template-columns: repeat(3, 1fr); }
	.hd-grid { grid-template-columns: repeat(2, 1fr); }
	.hd-hero { grid-template-columns: 1fr; padding: 48px 40px; }
	.hd-hero__art { max-width: 460px; }
}

@media (max-width: 768px) {
	body { font-size: 16px; }
	.site-header .inside-header { padding: 10px 16px; }
	#main.hd-main { padding: 16px 16px 56px; }
	.hd-footer__inner, .hd-footer__bottom { padding-left: 16px; padding-right: 16px; }
	.hd-section { margin-top: 44px; }
	.hd-hero { padding: 36px 24px; border-radius: 22px; }
	.hd-hero__art { display: none; }
	.hd-hero__lead { font-size: 16px; }
	.hd-hero__stats { gap: 24px; margin-top: 28px; }
	.hd-hero__stats dd { font-size: 21px; }
	.hd-topics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.hd-topic a { padding: 16px; }
	.hd-grid { grid-template-columns: 1fr; gap: 18px; }
	.hd-archive-head { padding: 26px 22px; flex-direction: column; gap: 14px; }
	.hd-single { padding: 28px 20px; border-radius: 20px; }
	.hd-prose { font-size: 17px; }
	.hd-postnav { grid-template-columns: 1fr; }
	.hd-postnav__next { grid-column: auto; }
	.hd-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }

	.main-navigation.toggled .main-nav ul li a { line-height: 48px; border-radius: 10px; }
	.main-navigation.toggled .main-nav > ul { padding: 8px 0 12px; }
}

/* Formulaire de contact (module LinkFarm Toolkit [lft_contact]) */
.lft-contact {
	--lft-accent: var(--hd-accent);
	--lft-ink: var(--hd-ink);
	--lft-line: #cbd5e1;
	--lft-radius: var(--hd-radius-sm);
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	box-shadow: var(--hd-shadow);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	scroll-margin-top: 7rem; /* le message de confirmation reste visible sous l'en-tête collant */
}
.lft-contact .lft-contact__submit { font-family: var(--hd-display); letter-spacing: .01em; }
.lft-contact .lft-contact__submit:hover, .lft-contact .lft-contact__submit:focus-visible { background: var(--hd-dark); filter: none; }

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