/*
Theme Name: Trainou Tonic Sports
Theme URI: https://trainou-tonic-sports.fr/
Author: NDGS Connect
Author URI: https://connect.ndgs.fr
Description: Thème sur mesure pour la salle Trainou Tonic Sports (Traînou). Accueil piloté depuis le Customizer (bandeau, horaires avec statut « ouvert maintenant », activités, tarifs, actualités), polices auto-hébergées, compatible éditeur de blocs et Kubio.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tts
Tags: one-column, custom-logo, custom-menu, editor-style, featured-images, block-patterns
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--tts-orange: #ff8000;
	--tts-violet: #9b5cff;
	--ink: #0e0e11;
	--ink-2: #17171c;
	--ink-3: #22222a;
	--line: rgba(255, 255, 255, .1);
	--line-dark: rgba(14, 14, 17, .1);
	--paper: #f5f4f0;
	--white: #fff;
	--text: #1b1b1f;
	--text-light: #e9e9ee;
	--muted: #6b6b74;
	--muted-light: #a3a3ad;
	--orange-text: #c65f00; /* orange lisible sur fond clair (contraste AA) */

	--display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
	--body: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--container: 1180px;
	--gutter: clamp(1.1rem, 4vw, 2rem);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--cut: clamp(28px, 5vw, 72px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--ink);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease); }

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

p { margin: 0 0 1em; }

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

::selection { background: var(--tts-orange); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.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:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: .7em 1.2em; background: var(--tts-orange); color: var(--ink);
	font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */
.btn,
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button[type="submit"]:not(.nav-toggle) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .9em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--body);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary,
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button[type="submit"]:not(.nav-toggle) { background: var(--tts-orange); color: var(--ink); }
.btn--primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.nav-toggle):hover { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 128, 0, .7); }

.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--ink); }

.btn--sm { padding: .65em 1.2em; font-size: .88rem; white-space: nowrap; }

.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--ink); }

/* ==========================================================================
   4. Barre d'infos + en-tête
   ========================================================================== */
.topbar { background: #000; color: var(--muted-light); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.topbar__info li { display: inline-flex; align-items: center; gap: .45em; }
.topbar__info .icon { color: var(--tts-orange); width: 1em; height: 1em; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar .social__link { width: 28px; height: 28px; }

.live-status,
.hours__status {
	display: inline-flex; align-items: center; gap: .5em;
	font-size: .78rem; font-weight: 500; color: var(--muted-light); white-space: nowrap;
}
.live-status::before,
.hours__status::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none;
}
.live-status.is-open,
.hours__status.is-open { color: #fff; }
.live-status.is-open::before,
.hours__status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: tts-pulse 2s infinite; }

@keyframes tts-pulse {
	0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
	70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(14, 14, 17, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
	color: #fff;
	transition: box-shadow .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 64px; }

.site-header__brand { flex: none; }
.custom-logo-link { display: block; }
.site-header .custom-logo { max-height: 54px; width: auto; transition: max-height .3s var(--ease); }
.site-header.is-scrolled .custom-logo { max-height: 44px; }

.brand-text { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-text__mark {
	font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem;
	background: var(--tts-orange); color: var(--ink); padding: .05em .4em; transform: skewX(-8deg);
}
.brand-text__name { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; }

.main-nav { margin-left: auto; }
.main-nav__menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav__menu > li { position: relative; }
.main-nav__menu a {
	display: block; padding: .55em .85em; border-radius: var(--radius-sm);
	font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--text-light); white-space: nowrap;
	position: relative;
}
.main-nav__menu > li > a::after {
	content: ""; position: absolute; left: .85em; right: .85em; bottom: .25em; height: 2px;
	background: var(--tts-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav__menu > li > a:hover { color: #fff; }
.main-nav__menu > li > a:hover::after,
.main-nav__menu > .current-menu-item > a::after,
.main-nav__menu > .current-menu-ancestor > a::after,
.main-nav__menu > .current_page_item > a::after { transform: scaleX(1); }
.main-nav__menu .current-menu-item > a,
.main-nav__menu .current_page_item > a { color: #fff; }

/* Sous-menus */
.main-nav__menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem;
	background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease);
}
.main-nav__menu li:hover > .sub-menu,
.main-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.main-nav__mobile-extra { display: none; }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center;
	background: transparent; color: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle span { display: inline-flex; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-open .nav-toggle .nav-toggle__open { display: none; }
.nav-open .nav-toggle .nav-toggle__close { display: inline-flex; }

@media (max-width: 1199px) {
	.nav-toggle { display: inline-flex; }
	.site-header__cta { display: none; }
	.main-nav {
		position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 99;
		background: var(--ink); padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease);
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
	.main-nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav__menu a {
		padding: .75rem 0; border-bottom: 1px solid var(--line); border-radius: 0;
		font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1.1;
	}
	.main-nav__menu > li > a::after { display: none; }
	.main-nav__menu .current-menu-item > a,
	.main-nav__menu .current_page_item > a { color: var(--tts-orange); }
	.main-nav__menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 0 1rem; }
	.main-nav__menu .sub-menu a { font-size: 1.25rem; }
	.main-nav__mobile-extra { display: block; margin-top: 2rem; color: var(--muted-light); }
	.main-nav__mobile-extra .social { margin-top: 1rem; }
}
@media (max-width: 820px) {
	.topbar__info .topbar__address, .topbar__info .topbar__email { display: none; }
}
@media (max-width: 480px) {
	.topbar .social { display: none; }
}

/* ==========================================================================
   5. Sections
   ========================================================================== */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section--paper { background: var(--paper); color: var(--text); }
.section--ink { background: var(--ink); color: var(--text-light); }
.section--ink .section__title { color: #fff; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .section__title { margin: 0; }
.section__title { font-size: clamp(2.3rem, 5.2vw, 4rem); }

.kicker {
	display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1rem;
	font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--orange-text);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--tts-orange); transform: skewX(-20deg); }
.kicker--light { color: var(--tts-orange); }

/* ---- Hero ---- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	min-height: clamp(560px, calc(100svh - 116px), 860px);
	display: flex; align-items: center;
	padding-block: clamp(4rem, 9vw, 6rem) calc(var(--cut) + clamp(3rem, 6vw, 4.5rem));
	background:
		radial-gradient(1200px 600px at 85% 10%, rgba(155, 92, 255, .25), transparent 60%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
		var(--ink);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero--image {
	background:
		linear-gradient(90deg, rgba(14, 14, 17, .94) 0%, rgba(14, 14, 17, .72) 50%, rgba(14, 14, 17, .4) 100%),
		linear-gradient(0deg, rgba(14, 14, 17, .7), transparent 40%),
		var(--hero-bg) center / cover no-repeat,
		var(--ink);
}
.hero__glow {
	position: absolute; width: 60vw; max-width: 760px; aspect-ratio: 1; right: -12vw; top: -20%;
	background: radial-gradient(circle, color-mix(in srgb, var(--tts-violet) 45%, transparent), transparent 65%);
	filter: blur(30px); opacity: .6; pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title {
	font-size: clamp(3.1rem, 8.4vw, 7rem); line-height: .9; margin-bottom: 1.5rem; color: #fff;
	text-wrap: balance;
}
.hero__title::after {
	content: ""; display: block; width: 120px; height: 8px; margin-top: 1.4rem;
	background: linear-gradient(90deg, var(--tts-orange), var(--tts-violet)); transform: skewX(-20deg);
}
.hero__text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__hours .hours { background: rgba(23, 23, 28, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero { min-height: 0; }
}

/* ---- Horaires ---- */
.hours {
	position: relative; padding: 1.6rem 1.6rem 1.4rem; border-radius: var(--radius);
	background: var(--ink-2); border: 1px solid var(--line); color: var(--text-light);
}
.hours::before {
	content: ""; position: absolute; left: -1px; top: 1.6rem; bottom: 1.6rem; width: 4px;
	background: linear-gradient(var(--tts-orange), var(--tts-violet)); border-radius: 0 4px 4px 0;
}
.hours__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hours__title { font-size: 1.7rem; margin: 0; color: #fff; }
.hours__list { margin: 0; }
.hours__row {
	display: flex; justify-content: space-between; gap: 1rem; padding: .62rem .7rem; margin-inline: -.7rem;
	border-bottom: 1px dashed var(--line); border-radius: 6px;
}
.hours__row:last-child { border-bottom: 0; }
.hours__row dt { color: var(--muted-light); }
.hours__row dd { margin: 0; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours__row.is-today { background: color-mix(in srgb, var(--tts-orange) 14%, transparent); border-bottom-color: transparent; }
.hours__row.is-today dt { color: var(--tts-orange); font-weight: 600; }
.hours__note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted-light); }

.hours--compact { padding: 0; background: none; border: 0; }
.hours--compact::before { display: none; }
.hours--compact .hours__row { padding: .35rem 0; margin: 0; font-size: .9rem; }
.hours--compact .hours__row.is-today { background: none; }

/* ---- Bandeau défilant ---- */
.ticker {
	position: relative; z-index: 2; margin-top: calc(var(--cut) * -0.5); overflow: hidden;
	background: var(--tts-orange); color: var(--ink);
	transform: rotate(-1.6deg) scale(1.03); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}
.ticker__track { display: flex; width: max-content; animation: tts-ticker 90s linear infinite; }
.ticker__group { display: flex; }
.ticker__item {
	display: inline-flex; align-items: center; gap: 1.6rem; padding: .7rem 0 .7rem 1.6rem;
	font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem); white-space: nowrap; letter-spacing: .02em;
}
.ticker__item::after { content: ""; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
@keyframes tts-ticker { to { transform: translateX(-50%); } }

/* ---- Présentation ---- */
.about { padding-top: clamp(5rem, 10vw, 8rem); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media::before {
	content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: var(--radius);
	background: repeating-linear-gradient(115deg, var(--tts-orange) 0 3px, transparent 3px 14px); opacity: .35;
}
.about__img, .about__placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__placeholder {
	display: grid; place-items: center; overflow: hidden;
	background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--tts-violet) 55%, transparent), transparent 55%), var(--ink);
}
.about__placeholder span {
	font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(6rem, 16vw, 11rem);
	color: transparent; -webkit-text-stroke: 2px var(--tts-orange); line-height: 1;
}
.about .section__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.prose { font-size: 1.04rem; color: #3a3a42; }
.prose p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 460px; }
	.about__img, .about__placeholder { aspect-ratio: 4 / 3; }
}

/* ---- Activités ---- */
.activities {
	background:
		radial-gradient(900px 500px at 0% 100%, color-mix(in srgb, var(--tts-violet) 18%, transparent), transparent 60%),
		var(--ink);
}
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tts-orange) 60%, transparent); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.05); }
.card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2.2rem; }
.card--image .card__top { margin-bottom: 1rem; }
.card__icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
	background: color-mix(in srgb, var(--tts-orange) 14%, transparent); color: var(--tts-orange);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__num {
	font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3rem; line-height: .8;
	color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}
.card__title { font-size: 1.9rem; color: #fff; margin-bottom: .6rem; }
.card__text { color: var(--muted-light); font-size: .95rem; margin: 0; }

@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---- Bandeau tarifs ---- */
.pricing-band {
	position: relative; overflow: hidden; color: var(--ink);
	background: linear-gradient(105deg, var(--tts-orange) 0%, var(--tts-orange) 45%, color-mix(in srgb, var(--tts-orange) 40%, var(--tts-violet)) 100%);
	padding-block: clamp(3rem, 6vw, 4.5rem);
}
.pricing-band::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(115deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 18px);
}
.pricing-band__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: center; }
.pricing-band__from { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pricing-band__amount { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: .9; }
.pricing-band__amount small { font-size: .4em; margin-left: .1em; }
.pricing-band__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .35rem; }
.pricing-band__text p { margin: 0; max-width: 520px; color: rgba(14, 14, 17, .82); }
@media (max-width: 900px) { .pricing-band__inner { grid-template-columns: 1fr; } .pricing-band__inner .btn { justify-self: start; } }

/* ---- Actualités ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card {
	display: flex; flex-direction: column; overflow: hidden; position: relative;
	background: #fff; border-radius: var(--radius); border: 1px solid var(--line-dark);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(14, 14, 17, .45); }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder {
	display: grid; place-items: center; height: 100%;
	font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.5rem; color: transparent; -webkit-text-stroke: 1px var(--tts-orange);
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.post-card__meta { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: .5rem; }
.post-card__title { font-size: 1.65rem; margin-bottom: .6rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.post-card__excerpt { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; }
.post-card:hover .post-card__more { color: var(--orange-text); }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---- Nous trouver ---- */
.visit__grid { display: grid; grid-template-columns: 1fr minmax(300px, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .icon { color: var(--tts-orange); margin-top: .25em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--tts-orange); }
.contact-list--big { font-size: 1.15rem; margin-bottom: 2rem; gap: 1.1rem; color: #fff; }
.contact-list--light .icon { color: var(--orange-text); }
.contact-list--light a:hover { color: var(--orange-text); }

.social { display: flex; gap: .5rem; }
.social__link {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); color: inherit; transition: all .2s var(--ease);
}
.social__link:hover { background: var(--tts-orange); border-color: var(--tts-orange); color: var(--ink); }
.social__link .icon { width: 18px; height: 18px; }

/* ==========================================================================
   6. Pages intérieures
   ========================================================================== */
.page-hero {
	position: relative; overflow: hidden; color: #fff;
	padding-block: clamp(3.5rem, 8vw, 6rem) calc(var(--cut) + clamp(2.5rem, 5vw, 3.5rem));
	background:
		radial-gradient(800px 420px at 90% 0%, color-mix(in srgb, var(--tts-violet) 30%, transparent), transparent 60%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
		var(--ink);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.page-hero__title { font-size: clamp(2.7rem, 7vw, 5.5rem); margin: 0; text-wrap: balance; }
.page-hero__title span { color: var(--tts-orange); }
.page-hero__subtitle { margin: 1rem 0 0; max-width: 640px; color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.page-hero__subtitle p { margin: 0; }
.page-hero__meta { margin: 0 0 .8rem; color: var(--tts-orange); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; font-size: .82rem; color: var(--muted-light); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--tts-orange); }

.tts-inner .site-main { background: var(--paper); }
.section--content { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---- Contenu éditorial ---- */
.entry-content { font-size: 1.04rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.6em; }
.entry-content h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.4em; }
.entry-content h4 { font-size: 1.35rem; margin-top: 1.3em; }
.entry-content a:not(.wp-block-button__link):not(.btn):not([class*="kubio"]) { color: var(--orange-text); font-weight: 500; }
.entry-content a:not(.wp-block-button__link):not(.btn):hover { color: var(--ink); }
.entry-content ul:not([class*="kubio"]), .entry-content ol:not([class*="kubio"]) { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--tts-orange); }
.entry-content blockquote {
	margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--tts-orange);
	background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem;
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry-content hr { border: 0; height: 3px; width: 80px; background: var(--tts-orange); margin: 3rem 0; transform: skewX(-20deg); }
.entry-content table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-dark); text-align: left; }
.entry-content th { background: var(--ink); color: #fff; font-weight: 600; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }

.alignwide { max-width: var(--container); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

/* Blocs Fichier (CGV, règlement…) */
.wp-block-file {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
}
.wp-block-file a:not(.wp-block-file__button) { font-weight: 600; color: var(--text) !important; text-decoration: none; }
.wp-block-file .wp-block-file__button { background: var(--ink); color: #fff; border-radius: 999px; padding: .55em 1.2em; font-size: .85rem; text-decoration: none; }
.wp-block-file .wp-block-file__button:hover { background: var(--tts-orange); color: var(--ink); }

/* ---- Formulaires (y compris extensions de contact) ---- */
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"],
.entry-content input[type="number"], .entry-content input[type="url"], .entry-content input[type="password"],
.entry-content input[type="date"], .entry-content select, .entry-content textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea, .search-form__input {
	width: 100%; padding: .85em 1em; font: inherit; font-size: 1rem; color: var(--text);
	background: #fff; border: 1.5px solid #d8d6d0; border-radius: var(--radius-sm);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus,
.comment-form input:focus, .comment-form textarea:focus, .search-form__input:focus {
	outline: none; border-color: var(--tts-orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tts-orange) 22%, transparent);
}
.entry-content label { font-weight: 500; font-size: .92rem; }
.entry-content input[type="checkbox"], .entry-content input[type="radio"] { accent-color: var(--tts-orange); width: 1.1em; height: 1.1em; }

.search-form { display: flex; gap: .5rem; max-width: 460px; }

/* ---- Pattern « Page Tarifs » ---- */
.tts-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 760px; color: #3a3a42; margin-bottom: 3rem; }
.entry-content .kicker { margin-top: 1rem; }
.entry-content .kicker + h2 { margin-top: 0; }
.tts-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; margin-block: 2rem 1.2rem; }
.tts-pricing--pass { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .tts-pricing { grid-template-columns: 1fr; max-width: 520px; } .tts-pricing--pass { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none; } }
.tts-price-card {
	position: relative; padding: 2rem 1.8rem; margin: 0 !important; background: #fff; border: 1px solid var(--line-dark);
	border-radius: var(--radius); display: flex; flex-direction: column;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tts-price-card:hover { transform: translateY(-4px); border-color: var(--tts-orange); box-shadow: 0 24px 50px -30px rgba(14, 14, 17, .45); }
.tts-price-card > * { margin-block: 0; }
.tts-price-card h3 { font-size: 1.9rem; margin: 0 0 .3rem; }
.tts-price-card__tagline { color: var(--muted); margin-bottom: 1.2rem !important; }
.tts-price-card__price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.6rem; line-height: 1; margin-bottom: 1.4rem !important; margin-top: auto !important; white-space: nowrap; }
.tts-price-card ul + .wp-block-buttons, .tts-price-card ul + .tts-price-card__onsite { margin-top: 0; }
.tts-price-card__price small { font-family: var(--body); font-style: normal; font-weight: 500; font-size: .9rem; color: var(--muted); margin-left: .2em; }
.tts-price-card ul { list-style: none; padding: 0 !important; margin: 0 0 1.6rem !important; }
.tts-price-card li { padding: .55rem 0 .55rem 1.7rem; border-bottom: 1px dashed var(--line-dark); position: relative; margin: 0; }
.tts-price-card li::before { content: ""; position: absolute; left: 0; top: 1em; width: 12px; height: 6px; border-left: 2.5px solid var(--tts-orange); border-bottom: 2.5px solid var(--tts-orange); transform: rotate(-45deg); }
.tts-price-card ul:has(+ .wp-block-buttons), .tts-price-card ul:has(+ .tts-price-card__onsite) { flex: 1; }
.tts-price-card .wp-block-buttons { margin-top: auto; }
.tts-price-card .wp-block-button, .tts-price-card .wp-block-button__link { width: 100%; }
.tts-price-card__onsite {
	margin-top: auto !important; padding: .85em 1em; border-radius: 999px; text-align: center; font-size: .9rem; font-weight: 600;
	border: 2px dashed var(--line-dark); color: var(--muted);
}
.tts-pricing--pass .tts-price-card { padding: 1.6rem 1.4rem; }
.tts-pricing--pass .tts-price-card h3 { font-size: 1.6rem; }
.tts-pricing--pass .tts-price-card__price { font-size: 3rem; }
.tts-price-card.is-featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(14, 14, 17, .7); }
.tts-price-card.is-featured:hover { border-color: var(--tts-orange); }
.tts-price-card.is-featured h3 { color: #fff; }
.tts-price-card.is-featured .tts-price-card__tagline, .tts-price-card.is-featured small { color: var(--muted-light); }
.tts-price-card.is-featured li { border-color: var(--line); }
.tts-badge {
	position: absolute; top: -12px; right: 1.2rem; padding: .25em .9em !important; border-radius: 999px;
	background: var(--tts-violet); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.tts-note { color: var(--muted); font-size: .9rem; }

/* ---- Codes courts dans le contenu ---- */
.tts-embed { margin: 1.5rem 0; }
.tts-embed .hours { max-width: 460px; }
.tts-embed .hours__title { font-size: 1.6rem; }

/* ---- Navigation articles / pagination ---- */
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.post-navigation a { display: block; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid var(--line-dark); }
.post-navigation a:hover { border-color: var(--tts-orange); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font-size: .78rem; color: var(--orange-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.nav-title { font-weight: 600; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem;
	border-radius: 999px; background: #fff; border: 1px solid var(--line-dark); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Commentaires ---- */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.2rem; background: #fff; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.comment-form p { margin-bottom: 1rem; }

.empty { text-align: center; padding: 3rem 0; }
.empty .search-form { margin: 1.5rem auto 0; }

/* ---- 404 ---- */
.error-404 { background: var(--ink); color: #fff; text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.error-404__code {
	font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(8rem, 26vw, 16rem); line-height: .8; margin: 0 0 1rem;
	color: transparent; -webkit-text-stroke: 2px var(--tts-orange);
}
.error-404 p { color: var(--muted-light); margin: 1rem 0 2rem; }

/* ==========================================================================
   7. Pied de page
   ========================================================================== */
.site-footer { position: relative; background: #08080a; color: var(--muted-light); font-size: .94rem; }
.site-footer__stripe { height: 6px; background: linear-gradient(90deg, var(--tts-orange), var(--tts-violet)); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem); }
.site-footer__brand p { margin: 1.2rem 0 1.4rem; max-width: 320px; }
.site-footer .custom-logo { max-height: 64px; width: auto; }
.footer__title { font-size: 1.35rem; color: #fff; margin-bottom: 1.1rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { color: var(--tts-orange); }
.site-footer .hours__row dd { color: var(--text-light); font-weight: 500; }
.site-footer__bottom { border-top: 1px solid var(--line); font-size: .82rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.3rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { color: var(--text-light); font-weight: 600; text-decoration: none; }
.site-footer__credit a:hover { color: var(--tts-orange); }

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

/* ==========================================================================
   8. Accessibilité — mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker__track { animation: none; }
}

/* ==========================================================================
   9. Impression
   ========================================================================== */
@media print {
	.topbar, .site-header, .ticker, .site-footer__stripe, .nav-toggle { display: none !important; }
	body, .section--ink, .page-hero, .hero { background: #fff !important; color: #000 !important; clip-path: none !important; }
}
