/* ==========================================================================
   TCL Lauragais — « Ligne de départ »
   ========================================================================== */

:root {
	--ink: #111214;
	--ink-2: #1B1D21;
	--ink-3: #26292E;
	--paper: #F4F3EF;
	--white: #FFFFFF;
	--line: #E2E1DC;
	--line-strong: #C9C8C2;
	--text: #111214;
	--text-2: #3B3E44;
	--muted: #5A5D63;
	--muted-on-dark: #A9ADB4;
	--soft-on-dark: #C9CCD1;

	--swim: #2F8FDB;
	--bike: #5CBF45;
	--run: #E6007E;
	--kids: #F2C230;
	--swim-text: #1F6FB2;
	--bike-text: #2E7D1F;
	--run-text: #D10073;

	--tcl-accent: #5CBF45;

	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
	--container: 1240px;
	--narrow: 820px;
	--gutter: 32px;
	--header-h: 92px;
	--shadow: 0 18px 40px rgba(17, 18, 20, 0.12);
}

@media (max-width: 720px) {
	:root {
		--gutter: 16px;
		--header-h: 76px;
	}
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--swim-text);
}

:focus-visible {
	outline: 3px solid var(--swim);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.005em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
	border-radius: 999px;
}

.skip-link:focus {
	top: 16px;
}

/* Layout ----------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.section {
	padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
	padding-block: clamp(40px, 6vw, 72px);
}

.section--flush-top {
	padding-top: 0;
}

.section--white {
	background: var(--white);
}

.section--dark {
	background: var(--ink);
	color: var(--white);
}

.section-gap,
.display-title.section-gap {
	margin-top: 64px;
}

.grid {
	display: grid;
	gap: 24px;
}

.grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.stack > * + * {
	margin-top: 20px;
}

.stack > * {
	margin-bottom: 0;
}

.panel {
	border-radius: var(--r-lg);
	padding: clamp(28px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
}

.panel--dark {
	background: var(--ink);
	color: var(--white);
}

/* utility ---------------------------------------------------------------- */
.m-0 {
	margin: 0 !important;
}
.mt-2 {
	margin-top: 0.5rem !important;
}
.mb-2 {
	margin-bottom: 0.5rem !important;
}
.ml-2 {
	margin-left: 0.5rem !important;
}
.mr-2 {
	margin-right: 0.5rem !important;
}
.mt-3 {
	margin-top: 1rem !important;
}
.mb-3 {
	margin-bottom: 1rem !important;
}
.ml-3 {
	margin-left: 1rem !important;
}
.mr-3 {
	margin-right: 1rem !important;
}
.mt-4 {
	margin-top: 2rem !important;
}
.mb-4 {
	margin-bottom: 2rem !important;
}
.ml-4 {
	margin-left: 2rem !important;
}
.mr-4 {
	margin-right: 2rem !important;
}
.mt-5 {
	margin-top: 3rem !important;
}
.mb-5 {
	margin-bottom: 3rem !important;
}
.ml-5 {
	margin-left: 3rem !important;
}
.mr-5 {
	margin-right: 3rem !important;
}

.p-0 {
	padding: 0 !important;
}
.p-2 {
	padding: 0.5rem !important;
}
.pt-2 {
	padding-top: 0.5rem !important;
}
.pb-2 {
	padding-bottom: 0.5rem !important;
}
.pl-2 {
	padding-left: 0.5rem !important;
}
.pr-2 {
	padding-right: 0.5rem !important;
}
.pt-3 {
	padding-top: 1rem !important;
}
.pb-3 {
	padding-bottom: 1rem !important;
}
.pl-3 {
	padding-left: 1rem !important;
}
.pr-3 {
	padding-right: 1rem !important;
}

.d-none {
	display: none !important;
}
.p-relative {
	position: relative;
}
.d-flex {
	display: flex;
}
.flex-wrap {
	flex-wrap: wrap;
}
.flex-nowrap {
	flex-wrap: nowrap;
}
.justify-content-between {
	justify-content: space-between !important;
}
.align-items-center{
	align-items: center !important;
}
.align-content-center{
	align-content: center !important;
}
.align-self-start {
	align-self: start !important;
}
.align-self-end {
	align-self: end !important;
}
.text-nowrap {
	white-space: nowrap !important;
}
.text-right {
	text-align: end;
}
.text-left {
	text-align: start;
}
.text-center {
	text-align: center;
}
.text-success {
	color: #28a745;
}
.text-warning {
	color: #ffc107;
}
.text-danger {
	color: #dc3545;
}
.valign-top {
	vertical-align: top;
}
.valign-middle {
	vertical-align: middle;
}
.valign-bottom {
	vertical-align: bottom;
}
.bg-success {
	background: #28a745;
}
.bg-success-light {
	background: #28a74550;
}
.bg-warning {
	background: #ffc107;
}
.bg-warning-light {
	background: #ffc10750;
}
.bg-danger {
	background: #dc3545;
}
.bg-danger-light {
	background: #dc354550;
}
.list-unstyled {
	list-style: none;
}

/* Typographie ------------------------------------------------------------ */

.display-title {
	margin: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(44px, 6vw, 64px);
	line-height: 0.95;
	text-transform: uppercase;
}

.display-title--md {
	font-size: clamp(40px, 5vw, 56px);
}

.display-title--sm {
	font-size: clamp(32px, 4vw, 40px);
	margin-bottom: 24px;
}

.eyebrow {
	display: block;
	margin: 0 0 10px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow--light {
	color: var(--soft-on-dark);
}

.eyebrow.is-natation { color: var(--swim-text); }
.eyebrow.is-velo { color: var(--bike-text); }
.eyebrow.is-course { color: var(--run-text); }

.lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-2);
}

.text-accent {
	color: var(--tcl-accent);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	min-height: 44px;
}

.text-link:hover {
	text-decoration: underline;
}

.text-link--light {
	color: var(--white);
}

.text-link--light:hover {
	color: var(--white);
}

/* Triple bande ----------------------------------------------------------- */

.tcl-stripe {
	display: inline-flex;
	gap: 5px;
	height: 44px;
	margin-bottom: 24px;
}

.tcl-stripe > span {
	width: 9px;
	background: var(--swim);
	transform: skewX(-18deg);
}

.tcl-stripe > span:nth-child(2) { background: var(--bike); }
.tcl-stripe > span:nth-child(3) { background: var(--run); }

.tcl-stripe--lg {
	height: 56px;
	gap: 6px;
	margin-bottom: 28px;
}

.tcl-stripe--lg > span {
	width: 10px;
}

.tcl-stripe--xl {
	height: 90px;
	gap: 6px;
	margin: 0;
}

.tcl-stripe--xl > span {
	width: 14px;
}

.tcl-stripe--bar {
	display: flex;
	height: 6px;
	gap: 0;
	margin: 0;
}

.tcl-stripe--bar > span {
	flex: 1;
	width: auto;
	transform: none;
}

/* Boutons ---------------------------------------------------------------- */

.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	color: var(--white);
	background: #000;
}

.button--lg {
	min-height: 56px;
	padding: 16px 28px;
}

.button--accent,
.button--accent:hover {
	background: var(--tcl-accent);
	color: var(--ink);
}

.button--accent:hover {
	filter: brightness(1.06);
}

.button--soft {
	background: var(--paper);
	color: var(--ink);
}

.button--soft:hover {
	background: var(--line);
	color: var(--ink);
}

.button--ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--white);
}

.button--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
}

.button--outline,
.is-style-outline .wp-block-button__link {
	background: var(--white);
	border-color: var(--line-strong);
	color: var(--ink);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.icon-button:hover {
	color: var(--tcl-accent);
}

.icon-button--solid {
	background: var(--white);
	border-color: var(--white);
	color: var(--ink);
}

.icon-button--solid:hover {
	color: var(--ink);
}

/* En-tête ---------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--ink);
	color: var(--white);
}

.site-header--overlay {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
}

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

@media (max-width: 782px) {
	.admin-bar .site-header--overlay {
		top: 46px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px 28px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
	color: var(--white);
	text-decoration: none;
}

.brand:hover {
	color: var(--white);
}

.brand__logo {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	object-fit: cover;
}

.brand__name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 21px;
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.primary-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--white);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a,
.primary-nav .menu > .current_page_ancestor > a {
	color: var(--tcl-accent);
}

.primary-nav .menu-item-has-children > a::after,
.primary-nav .page_item_has_children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.primary-nav .sub-menu,
.primary-nav .children {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: var(--white);
	border-radius: 16px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children,
.primary-nav li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu a,
.primary-nav .children a {
	display: flex;
	width: 100%;
	padding: 6px 12px;
	border-radius: 10px;
	color: var(--ink);
}

.primary-nav .sub-menu a:hover,
.primary-nav .children a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: var(--paper);
	color: var(--ink);
}

.site-header .primary-nav .primary-nav__cta,
.submenu-toggle {
	display: none;
}

/* Les boutons de l'en-tête ne doivent pas hériter des styles WooCommerce (.woocommerce a.button). */
.site-header .site-header__inner a.button.button--accent {
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--tcl-accent);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.cart-link__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--tcl-accent);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.menu-toggle {
	display: none;
}

.menu-toggle .menu-toggle__open {
	display: inline-flex;
}

.menu-toggle .menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: inline-flex;
}

@media (max-width: 1100px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-header__inner {
		justify-content: space-between;
	}

	.primary-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		gap: 24px;
		padding: calc(var(--header-h) + 16px) var(--gutter) 120px;
		overflow-y: auto;
		background: var(--ink);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s;
	}

	.admin-bar .primary-nav {
		top: 46px;
	}

	.nav-open .primary-nav {
		opacity: 1;
		visibility: visible;
	}

	.nav-open {
		overflow: hidden;
	}

	.nav-open .site-header--overlay {
		position: fixed;
	}

	.primary-nav .menu {
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
	}

	.primary-nav .menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--ink-3);
	}

	.primary-nav .menu > li > a {
		flex: 1;
		min-height: 60px;
		font-family: var(--font-display);
		font-style: italic;
		font-weight: 800;
		font-size: 32px;
		text-transform: uppercase;
	}

	.primary-nav .menu-item-has-children > a::after,
	.primary-nav .page_item_has_children > a::after {
		display: none;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		border: 0;
		background: transparent;
		color: var(--white);
		cursor: pointer;
	}

	.submenu-toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.primary-nav .sub-menu,
	.primary-nav .children {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		padding: 0 0 12px;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .is-open > .sub-menu,
	.primary-nav .is-open > .children {
		display: block;
	}

	.primary-nav .sub-menu a,
	.primary-nav .children a {
		color: var(--soft-on-dark);
		font-size: 17px;
		padding: 8px 0;
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .children a:hover {
		background: transparent;
		color: var(--white);
	}

	.site-header .primary-nav .primary-nav__cta {
		display: inline-flex;
		align-self: stretch;
		flex: none;
		color: var(--ink);
		font-weight: 700;
	}
}

@media (max-width: 600px) {
	.site-header .site-header__inner .site-header__cta {
		display: none;
	}

	.brand__logo {
		width: 44px;
		height: 44px;
	}

	.brand__name {
		font-size: 18px;
	}

	.site-header__actions {
		gap: 8px;
	}

	.site-header__actions > .icon-button:first-child {
		display: none;
	}
}

/* Hero ------------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	opacity: 0.55;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(17, 18, 20, 0.85) 0%, rgba(17, 18, 20, 0.1) 28%, rgba(17, 18, 20, 0.2) 55%, rgba(17, 18, 20, 0.95) 100%);
}

.hero__content {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px));
	padding-bottom: 72px;
}

.hero__title {
	max-width: 900px;
	margin: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(56px, 9vw, 128px);
	line-height: 0.88;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.hero__text {
	max-width: 560px;
	margin: 28px 0 36px;
	font-size: 19px;
	line-height: 1.55;
	color: #E4E6E9;
}

.hero__stats {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin: 0 auto;
	padding-block: 28px;
}

.stats__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stats__value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
}

.stats__label {
	margin: 0;
	font-size: 14px;
	color: var(--muted-on-dark);
}

@media (max-width: 720px) {
	.hero__content {
		padding-bottom: 40px;
	}

	.hero__text {
		font-size: 17px;
	}

	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stats__value {
		font-size: 32px;
	}
}

/* En-tête de page -------------------------------------------------------- */

.page-hero {
	position: relative;
	background: var(--ink);
	color: var(--white);
	padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
	overflow: hidden;
}

.page-hero .tcl-stripe {
	margin-bottom: 20px;
}

.page-hero__title {
	max-width: 960px;
	margin: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(44px, 7vw, 88px);
	line-height: 0.92;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.page-hero__subtitle {
	max-width: 640px;
	margin: 20px 0 0;
	font-size: 18px;
	color: #E4E6E9;
}

/* Sections --------------------------------------------------------------- */

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
	margin-bottom: 48px;
}

.section-head--compact {
	margin-bottom: 36px;
}

.section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.section-head__intro {
	max-width: 460px;
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

.section-head--center .section-head__intro {
	max-width: 580px;
}

.section-foot {
	margin: 32px 0 0;
	text-align: center;
}

/* Disciplines ------------------------------------------------------------ */

.discipline {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background: var(--white);
	border-radius: var(--r-md);
	border-top: 6px solid var(--swim);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discipline:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.discipline.is-natation .tcl-icon { color: var(--swim); }
.discipline.is-velo { border-top-color: var(--bike); }
.discipline.is-velo .tcl-icon { color: var(--bike-text); }
.discipline.is-course { border-top-color: var(--run); }
.discipline.is-course .tcl-icon { color: var(--run-text); }

.discipline__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.discipline__title {
	margin: 0;
	font-size: 36px;
}

.discipline p {
	margin: 0;
	color: var(--text-2);
}

.discipline__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: var(--text-2);
}

.discipline__list li {
	position: relative;
	padding-left: 18px;
}

.discipline__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--line-strong);
}

.discipline__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	min-height: 44px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.discipline__link .tcl-icon {
	color: currentColor !important;
}

/* Planning --------------------------------------------------------------- */

.planning__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: -12px 0 24px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--muted);
}

.planning--dark .planning__legend {
	color: var(--soft-on-dark);
}

.planning__legend li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--swatch);
}

.planning__scroll {
	overflow-x: auto;
	scrollbar-width: thin;
}

.planning__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(132px, 1fr));
	gap: 10px;
	min-width: 960px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.planning__day {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 240px;
	padding: 16px 12px;
	border-radius: 14px;
	background: var(--white);
}

.planning--dark .planning__day {
	background: var(--ink-2);
}

.planning__day-name {
	margin: 0;
	font-weight: 700;
	font-style: normal;
	font-size: 20px;
	letter-spacing: 0.04em;
}

.planning__sessions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.session {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	border-radius: 10px;
	border-left: 4px solid var(--swatch);
	background: var(--paper);
	font-size: 13px;
	line-height: 1.35;
}

.planning--dark .session {
	background: var(--ink-3);
}

.session__time {
	font-weight: 700;
}

.session__label {
	color: var(--text-2);
}

.session__place {
	color: var(--muted);
	font-size: 12px;
}

.planning--dark .session__label {
	color: var(--soft-on-dark);
}

.planning--dark .session__place {
	color: var(--muted-on-dark);
}

.planning__rest {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.planning--dark .planning__rest {
	color: #8C9097;
}

@media (max-width: 720px) {
	/* Sur mobile : liste verticale par jour plutôt qu'un tableau à faire défiler. */
	.planning__grid {
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.planning__day {
		min-height: 0;
	}

	.planning__day.is-empty {
		display: none;
	}
}

/* Mise en avant (photo + texte) ------------------------------------------ */

.photo-card {
	position: relative;
	margin: 0;
}

.photo-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
}

.photo-card__tag {
	position: absolute;
	left: 24px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	background: var(--white);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.photo-card__tag-small {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.photo-card__tag-main {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.1;
	text-transform: uppercase;
}

.chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips li {
	padding: 14px 16px;
	background: var(--white);
	border-radius: var(--r-sm);
	font-size: 15px;
	font-weight: 600;
}

/* Événements ------------------------------------------------------------- */

.event-list {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--line);
}

.event-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.event-row:hover {
	color: var(--ink);
}

.event-row:hover .event-row__arrow {
	transform: translateX(6px);
}

.event-row__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 0;
	border-radius: 14px;
	background: var(--paper);
}

.section--white .event-row__date {
	background: var(--paper);
}

.site-main:not(.site-main--home) .event-row__date {
	background: var(--white);
}

.event-row__day {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 36px;
	line-height: 1;
}

.event-row__month {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.event-row__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.event-row__body .eyebrow {
	margin: 0;
	font-size: 12px;
}

.event-row__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.05;
	text-transform: uppercase;
}

.event-row__meta {
	font-size: 15px;
	color: var(--muted);
}

.event-row__arrow {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.event-list--past .event-row {
	opacity: 0.7;
}

@media (max-width: 600px) {
	.event-row {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 16px;
	}

	.event-row__arrow {
		display: none;
	}

	.event-row__day {
		font-size: 30px;
	}

	.event-row__title {
		font-size: 24px;
	}
}

.event-layout {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.event-facts {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: var(--white);
	border-radius: var(--r-md);
}

.event-facts p {
	display: flex;
	gap: 12px;
	margin: 0;
	font-weight: 600;
}

.event-facts .tcl-icon {
	flex: none;
	margin-top: 3px;
	color: var(--muted);
}

@media (max-width: 860px) {
	.event-layout {
		grid-template-columns: 1fr;
	}

	.event-facts {
		position: static;
	}
}

/* Formules d'adhésion ---------------------------------------------------- */

.plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	align-items: stretch;
}

.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 36px 32px;
	background: var(--white);
	border-radius: 24px;
}

.plan--featured {
	background: var(--ink);
	color: var(--white);
}

.plan__badge {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tcl-accent);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.plan:not(.plan--featured) .plan__badge {
	background: var(--paper);
}

.plan__title {
	margin: 0;
	font-size: 32px;
}

.plan__badge + .plan__title {
	padding-right: 130px;
}

.plan__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted);
}

.plan--featured .plan__desc {
	color: var(--soft-on-dark);
}

.plan__price {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 64px;
	line-height: 1;
}

.plan__price span {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
}

.plan--featured .plan__price span {
	color: var(--soft-on-dark);
}

.plan__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.plan__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.plan__list .tcl-icon {
	flex: none;
	margin-top: 3px;
	color: var(--bike-text);
}

.plan--featured .plan__list .tcl-icon {
	color: var(--tcl-accent);
}

.plan__cta {
	margin-top: auto;
}

/* Boutique (accueil) ----------------------------------------------------- */

.product-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--white);
	text-decoration: none;
	border-radius: 18px;
}

.product-tile:hover {
	color: var(--white);
}

.product-tile__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 18px;
	background: var(--ink-2);
}

.product-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-tile:hover .product-tile__media img {
	transform: scale(1.04);
}

.product-tile__info {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 0 4px 4px;
}

.product-tile__name {
	font-size: 16px;
	font-weight: 600;
}

.product-tile__price {
	flex: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
}

.product-tile__price del {
	opacity: 0.6;
	font-size: 16px;
}

.product-tile__price ins {
	text-decoration: none;
}

/* Partenaires ------------------------------------------------------------ */

.partners__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	padding: 16px 20px;
	background: var(--white);
	border-radius: 14px;
	color: var(--muted);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.partners__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	color: var(--ink);
}

.partners__item img {
	max-height: 64px;
	width: auto;
	object-fit: contain;
}

.partners__name {
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
}

/* Cartes d'articles ------------------------------------------------------ */

.post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--white);
	border-radius: var(--r-md);
	color: var(--ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card__link:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	color: var(--ink);
}

.post-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--ink);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.post-card__meta {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.post-card__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1;
	text-transform: uppercase;
}

.post-card__excerpt {
	font-size: 15px;
	color: var(--text-2);
}

.pagination,
.navigation.pagination {
	margin-top: 48px;
}

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

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	color: var(--white);
}

.post-navigation .nav-links {
	justify-content: space-between;
	margin-top: 48px;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: var(--white);
	border-radius: var(--r-sm);
	text-decoration: none;
}

.nav-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav-title {
	font-weight: 600;
}

/* Contenu éditorial ------------------------------------------------------ */

.entry-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 15px;
}

.entry-thumbnail {
	margin: 0 0 40px;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--r-md);
}

.entry-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-2);
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 1.6em 0 0.5em;
	color: var(--ink);
}

.entry-content h1 { font-size: clamp(40px, 5vw, 56px); font-style: italic; color: var(--ink); }
.entry-content h2 { font-size: clamp(32px, 4vw, 44px); font-style: italic; }
.entry-content h3 { font-size: 30px; }
.entry-content h4 { font-size: 24px; }
.entry-content h5 { font-size: 20px; }
.entry-content h6 { font-size: 17px; letter-spacing: 0.06em; }

.entry-content a:not(.button):not(.wp-block-button__link):not(.btn) {
	color: var(--swim-text);
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
	margin: 0 0 1.2em;
}

.entry-content li + li {
	margin-top: 0.3em;
}

.entry-content ul:not([class]) > li::marker,
.entry-content .wp-block-list > li::marker {
	color: var(--bike-text);
}

.entry-content img {
	border-radius: var(--r-sm);
}

.entry-content blockquote,
.wp-block-quote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--tcl-accent);
	font-size: 20px;
	font-weight: 500;
	color: var(--ink);
}

.entry-content hr,
.wp-block-separator {
	margin: 3em 0;
	border: 0;
	height: 1px;
	background: var(--line);
}

.entry-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: 15px;
	background: var(--white);
	border-radius: var(--r-sm);
	overflow: hidden;
}

.wp-block-table,
.entry-content .table-responsive {
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th,
.entry-content tr:first-child th {
	background: var(--ink);
	color: var(--white);
	font-weight: 600;
}

.entry-content figure {
	margin: 2em 0;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
}

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-block-columns {
	gap: 32px;
	margin-bottom: 1.5em;
}

.wp-block-image img {
	height: auto;
}

.wp-block-gallery {
	gap: 12px;
}

.wp-block-embed iframe {
	max-width: 100%;
}

.wp-block-button {
	margin: 0;
}

/* Formulaires (Contact Form 7, recherche, commentaires) ------------------ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--swim);
	box-shadow: 0 0 0 3px rgba(47, 143, 219, 0.25);
}

label {
	font-weight: 600;
	color: var(--ink);
}

input[type="submit"],
button[type="submit"]:not(.button) {
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7 form p {
	margin-bottom: 20px;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
	color: var(--run-text);
}

.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 18px;
	border-radius: var(--r-sm);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.search-form .button {
	flex: none;
	width: 48px;
	padding: 0;
}

.search-bar {
	margin-bottom: 40px;
}

.empty-state {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	font-size: 18px;
}

.comments {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: 20px;
	margin-bottom: 16px;
	background: var(--white);
	border-radius: var(--r-sm);
}

.comment-meta img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

/* Pied de page ----------------------------------------------------------- */

.site-footer {
	background: var(--ink);
	color: var(--white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(0, 3fr);
	gap: 40px;
	padding-block: 64px 32px;
}

.site-footer__brand img {
	width: 88px;
	height: 88px;
	border-radius: 12px;
	object-fit: cover;
}

.site-footer__brand p {
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted-on-dark);
}

.site-footer__brand strong {
	color: var(--white);
	font-weight: 600;
}

.social-links {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu > li > a,
.footer-menu > li > span,
.site-footer__title {
	display: block;
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	color: var(--white);
	text-decoration: none;
}

.footer-menu .sub-menu,
.footer-menu .children {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu .sub-menu a,
.footer-menu .children a,
.site-footer__widgets a {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	color: var(--soft-on-dark);
	font-size: 15px;
	text-decoration: none;
}

.footer-menu a:hover,
.site-footer__widgets a:hover {
	color: var(--white);
}

.site-footer__widgets {
	font-size: 15px;
	color: var(--soft-on-dark);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 24px 40px;
	border-top: 1px solid var(--ink-3);
	font-size: 13px;
	color: #8C9097;
}

.site-footer__bottom a {
	color: #8C9097;
}

.site-footer__bottom a:hover {
	color: var(--white);
}

@media (max-width: 760px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* Message (boutique fermée, etc.) --------------------------------------- */

.notice-box {
	margin: 0 0 24px;
	padding: 20px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--tcl-accent);
	border-radius: var(--r-sm);
	color: var(--text);
	font-weight: 500;
}

/* Impression ------------------------------------------------------------- */

@media print {
	.site-header,
	.tabbar,
	.site-footer,
	.hero__image,
	.hero__scrim {
		display: none !important;
	}

	body,
	.hero,
	.page-hero,
	.panel--dark,
	.section--dark {
		background: #fff !important;
		color: #000 !important;
	}
}
