/* ==========================================================================
   M'Road Solution — feuille de style principale
   1. Polices · 2. Variables · 3. Base · 4. Mise en page · 5. Typographie
   6. Boutons · 7. En-tête · 8. Menu mobile · 9. Bannière d'accueil
   10. En-tête des pages · 11. Bandeau garage · 12. Pied de page
   13. Barre mobile · 14. Contenus éditoriaux · 15. Animations · 16. Accessibilité
   ========================================================================== */

/* 1. Polices (hébergées dans le thème — aucune requête vers Google) ------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* 2. Variables ------------------------------------------------------------ */
:root {
	/* Couleurs (bleu nuit et jaune relevés sur le logo officiel) */
	--c-black: #05070b;
	--c-night: #020b1c;       /* bleu nuit profond */
	--c-night-2: #071633;
	--c-night-3: #0d2350;
	--c-white: #ffffff;
	--c-paper: #f3f4f6;
	--c-paper-2: #e8eaee;
	--c-text: #121722;
	--c-muted: #596273;
	--c-muted-light: #a3adbf;
	--c-yellow: #f6c431;      /* jaune vif / doré */
	--c-yellow-hi: #ffd659;
	--c-yellow-deep: #d9a40e;
	--c-line-dark: rgba(255, 255, 255, 0.14);
	--c-line-light: rgba(5, 7, 11, 0.1);

	/* Typographie */
	--f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Mise en page */
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
	--radius: 4px;
	--radius-lg: 10px;
	--section-y: clamp(72px, 10vw, 136px);

	/* Mouvement */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--t-fast: 0.2s;
	--t: 0.45s;
	--t-slow: 0.9s;

	--shadow-card: 0 1px 2px rgba(2, 11, 28, 0.06), 0 12px 32px -12px rgba(2, 11, 28, 0.18);
	--shadow-lift: 0 2px 4px rgba(2, 11, 28, 0.08), 0 28px 60px -20px rgba(2, 11, 28, 0.35);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) ease; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--c-yellow); color: var(--c-night); }

.site-main:focus { outline: none; }

/* 4. Mise en page --------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--c-paper); }
.section--night { background: var(--c-night); color: var(--c-white); }

.center { text-align: center; }

.actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 28px;
}

/* 5. Typographie ---------------------------------------------------------- */
h1, h2, h3, h4,
.display {
	margin: 0 0 0.5em;
	font-family: var(--f-display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: inherit;
}

h1 { font-size: clamp(42px, 6.4vw, 88px); font-style: italic; }
h2 { font-size: clamp(34px, 4.6vw, 60px); font-style: italic; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }

p { margin: 0 0 1.1em; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--c-yellow);
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.kicker::before {
	content: "";
	width: 34px;
	height: 2px;
	background: currentColor;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { color: var(--c-muted); font-size: 18px; }
.section--night .section-head p { color: var(--c-muted-light); }

.text-yellow { color: var(--c-yellow); }

/* 6. Boutons -------------------------------------------------------------- */
.btn {
	--btn-bg: var(--c-yellow);
	--btn-fg: var(--c-night);
	--btn-bd: var(--c-yellow);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 28px;
	overflow: hidden;
	border: 1.5px solid var(--btn-bd);
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--f-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	isolation: isolate;
	transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

/* Reflet qui balaie le bouton au survol */
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.75s var(--ease);
}

.btn .icon { flex: none; transition: transform var(--t) var(--ease); }

.btn:hover::after { transform: translateX(120%); }
.btn:hover .icon-arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Coin coupé « sportif » réservé aux boutons pleins (un contour serait interrompu). */
.btn--primary,
.btn--dark { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }

.btn--primary:hover { --btn-bg: var(--c-yellow-hi); --btn-bd: var(--c-yellow-hi); box-shadow: 0 10px 30px -10px rgba(246, 196, 49, 0.65); }

.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--c-white); --btn-bd: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-night); --btn-bd: var(--c-white); }

.btn--dark { --btn-bg: var(--c-night); --btn-fg: var(--c-white); --btn-bd: var(--c-night); }
.btn--dark:hover { --btn-bg: var(--c-night-3); --btn-bd: var(--c-night-3); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-night); --btn-bd: var(--c-night); }
.btn--outline:hover { --btn-bg: var(--c-night); --btn-fg: var(--c-white); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-display);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-night);
	background: linear-gradient(var(--c-yellow), var(--c-yellow)) 0 100% / 0 2px no-repeat;
	transition: background-size var(--t) var(--ease);
}

.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 7. En-tête -------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	color: var(--c-white);
	transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), height var(--t) var(--ease), transform var(--t) var(--ease);
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(2, 11, 28, 0.85), rgba(2, 11, 28, 0));
	transition: opacity var(--t) var(--ease);
}

.site-header.is-scrolled {
	--header-h: 70px;
	background: rgba(2, 11, 28, 0.94);
	box-shadow: 0 1px 0 var(--c-line-dark), 0 12px 40px -20px rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
}

.site-header.is-scrolled::before { opacity: 0; }

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.brand__logo {
	width: 56px;
	height: auto;
	transition: transform var(--t) var(--ease), width var(--t) var(--ease);
}

.site-header.is-scrolled .brand__logo { width: 46px; }
.brand:hover .brand__logo { transform: rotate(-8deg); }

.brand__name {
	display: flex;
	flex-direction: column;
	font-family: var(--f-display);
	font-weight: 800;
	font-style: italic;
	line-height: 0.92;
	text-transform: uppercase;
}

.brand__line1 { font-size: 23px; letter-spacing: 0.04em; color: var(--c-yellow); }
.brand__line2 { font-size: 15px; letter-spacing: 0.32em; color: var(--c-white); }

.primary-nav { margin-left: auto; }

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.5vw, 26px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list a {
	position: relative;
	display: block;
	padding: 10px 0;
	font-family: var(--f-display);
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.86);
}

.primary-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--c-yellow);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--t) var(--ease);
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a { color: var(--c-white); }

.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header-call {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 46px;
	padding: 0 18px;
	border: 1.5px solid var(--c-yellow);
	border-radius: 999px;
	color: var(--c-yellow);
	font-family: var(--f-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.06em;
	transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.header-call:hover { background: var(--c-yellow); color: var(--c-night); }
.header-call .icon { animation: mroad-ring 4s var(--ease) infinite 3s; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	height: 46px;
	margin-left: auto;
	padding: 0 14px;
	border: 1.5px solid var(--c-line-dark);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.04);
	color: var(--c-white);
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.nav-toggle__bars { position: relative; display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast) ease, width var(--t) var(--ease); }
.nav-toggle__bars span:nth-child(3) { width: 60%; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* Numéro réduit à l'icône sur écrans moyens */
@media (max-width: 1440px) {
	.header-call { width: 46px; padding: 0; justify-content: center; }
	.header-call__number { display: none; }
}

/* Menu « burger » sous 1200 px */
@media (max-width: 1199px) {
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-call { margin-left: auto; }
	.header-call + .nav-toggle { margin-left: 0; }
}

@media (max-width: 600px) {
	:root { --header-h: 70px; }
	.brand__logo { width: 46px; }
	.brand__line1 { font-size: 20px; }
	.brand__line2 { font-size: 13px; }
	.nav-toggle__label { display: none; }
	.nav-toggle { width: 46px; padding: 0; justify-content: center; }
	.site-header .header-call { display: none; } /* la barre d'appel mobile prend le relais */
	.nav-toggle { margin-left: auto; }
}

/* 8. Menu mobile ---------------------------------------------------------- */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	background:
		linear-gradient(115deg, transparent 62%, rgba(246, 196, 49, 0.08) 62%, rgba(246, 196, 49, 0.08) 64%, transparent 64%),
		radial-gradient(120% 80% at 100% 0%, var(--c-night-3) 0%, var(--c-night) 55%, var(--c-black) 100%);
	color: var(--c-white);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.mobile-nav[hidden] { display: flex; } /* l'attribut hidden sert de repli sans JavaScript */
html:not(.js) .mobile-nav[hidden] { display: none; }

.mobile-nav.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--t) var(--ease), visibility 0s;
}

.mobile-nav__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
}

.mobile-nav__list { margin: 0; padding: 0; list-style: none; counter-reset: item; }

.mobile-nav__list li {
	border-bottom: 1px solid var(--c-line-dark);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(2) { transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(3) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(4) { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(5) { transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(6) { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(7) { transition-delay: 0.24s; }

.mobile-nav__list a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	font-family: var(--f-display);
	font-size: clamp(26px, 7vw, 34px);
	font-weight: 800;
	font-style: italic;
	line-height: 1.1;
	text-transform: uppercase;
}

.mobile-nav__list a::before {
	counter-increment: item;
	content: counter(item, decimal-leading-zero);
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--c-yellow);
}

.mobile-nav__list .current-menu-item > a,
.mobile-nav__list a:hover { color: var(--c-yellow); }

.mobile-nav__footer { display: grid; gap: 12px; }
.mobile-nav__meta { margin: 0; color: var(--c-muted-light); font-size: 14px; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; }

@media (min-width: 1200px) { .mobile-nav { display: none !important; } }

/* 9. Bannière d'accueil --------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: clamp(640px, 100svh, 1000px);
	overflow: hidden;
	background: var(--c-night);
	color: var(--c-white);
	isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -3; }

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 40%;
	transform: scale(1.08);
	animation: mroad-kenburns 14s var(--ease) forwards;
}

.hero__veil {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(2, 11, 28, 0.96) 0%, rgba(2, 11, 28, 0.86) 32%, rgba(2, 11, 28, 0.45) 62%, rgba(2, 11, 28, 0.2) 100%),
		linear-gradient(0deg, rgba(2, 11, 28, 0.95) 0%, rgba(2, 11, 28, 0) 38%);
}

/* Bandes « course » jaunes */
.hero__stripes {
	position: absolute;
	right: -6%;
	bottom: 18%;
	z-index: -1;
	display: grid;
	gap: 10px;
	width: 46%;
	transform: skewY(-12deg);
	pointer-events: none;
}

.hero__stripes span {
	display: block;
	height: 5px;
	background: linear-gradient(90deg, transparent, var(--c-yellow));
	transform-origin: right;
	animation: mroad-stripe 1.4s var(--ease) both 0.6s;
}

.hero__stripes span:last-child { width: 72%; margin-left: auto; opacity: 0.55; animation-delay: 0.8s; }

.hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: calc(var(--header-h) + 40px);
	padding-bottom: 48px;
}

.hero__logo { margin-bottom: 26px; }
.hero__logo-img { width: clamp(84px, 9vw, 112px); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }

.hero__title { max-width: 17ch; margin-bottom: 22px; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); }

.hero__text {
	max-width: 560px;
	margin-bottom: 36px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.6;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Deux points de présentation sous le texte de la bannière */
.hero__highlights {
	display: grid;
	gap: 12px;
	max-width: 600px;
	margin: -14px 0 38px;
	padding: 0;
	list-style: none;
}

.hero__title + .hero__highlights { margin-top: 4px; }

.hero__highlights li {
	position: relative;
	padding-left: 24px;
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 500;
	line-height: 1.5;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c-yellow);
	box-shadow: 0 0 0 4px rgba(246, 196, 49, 0.18);
}

.hero__bar {
	border-top: 1px solid var(--c-line-dark);
	background: rgba(2, 11, 28, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hero__points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	list-style: none;
}

.hero__points li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 24px;
	font-family: var(--f-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hero__points li + li { border-left: 1px solid var(--c-line-dark); }
.hero__points li:first-child { padding-left: 0; }
.hero__points .icon { flex: none; color: var(--c-yellow); }
.hero__points em { font-style: normal; color: var(--c-yellow); }

@media (max-width: 900px) {
	.hero__points { grid-template-columns: 1fr; }
	.hero__points li { padding: 14px 0; }
	.hero__points li + li { border-left: 0; border-top: 1px solid var(--c-line-dark); }
	.hero__stripes { width: 70%; bottom: 40%; opacity: 0.6; }
}

@media (max-width: 600px) {
	.hero { min-height: auto; }
	.hero__content { padding-top: calc(var(--header-h) + 32px); }
	.hero__media img { object-position: 70% 50%; }
	.hero__veil { background: linear-gradient(180deg, rgba(2, 11, 28, 0.7) 0%, rgba(2, 11, 28, 0.88) 55%, rgba(2, 11, 28, 0.98) 100%); }
	.hero__actions .btn { width: 100%; }
	.hero__kicker { align-items: flex-start; letter-spacing: 0.16em; line-height: 1.5; }
	.hero__kicker::before { flex: none; margin-top: 0.7em; }
	.hero__highlights { gap: 10px; margin: -12px 0 32px; }
}

/* 10. En-tête des pages intérieures -------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px);
	background: var(--c-night);
	color: var(--c-white);
	isolation: isolate;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.55); transform: scale(1.05); animation: mroad-kenburns 14s var(--ease) forwards; }

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(2, 11, 28, 0.97) 0%, rgba(2, 11, 28, 0.82) 50%, rgba(2, 11, 28, 0.55) 100%);
}

.page-hero__lines {
	position: absolute;
	inset: auto 0 0;
	height: 4px;
	background: linear-gradient(90deg, var(--c-yellow) 0 120px, transparent 120px);
}

.page-hero__title { max-width: 18ch; margin-bottom: 0; }
.page-hero__text { max-width: 640px; margin: 22px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 19px; }

/* 11. Bandeau garage ----------------------------------------------------- */
.garage-band {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(460px, 62vw, 680px);
	overflow: hidden;
	background: var(--c-night);
	color: var(--c-white);
	text-align: center;
	isolation: isolate;
}

.garage-band__media { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }

.garage-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.35) brightness(0.62) contrast(1.08);
}

.garage-band__veil {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 60% 55% at 50% 50%, rgba(2, 11, 28, 0.55) 0%, rgba(2, 11, 28, 0.82) 70%, rgba(2, 11, 28, 0.95) 100%),
		linear-gradient(180deg, rgba(2, 11, 28, 0.6), rgba(7, 22, 51, 0.5));
}

/* Fines lignes : trame technique + cadre */
.garage-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.garage-band__frame {
	position: absolute;
	inset: clamp(16px, 3vw, 36px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	pointer-events: none;
}

.garage-band__corner { position: absolute; width: 28px; height: 28px; border-color: var(--c-yellow); border-style: solid; border-width: 0; }
.garage-band__corner--tl { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.garage-band__corner--tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; }
.garage-band__corner--bl { bottom: -1px; left: -1px; border-bottom-width: 3px; border-left-width: 3px; }
.garage-band__corner--br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }

.garage-band__content { padding-block: 80px; }

.garage-band__label {
	display: inline-block;
	margin: 0 0 22px;
	padding: 8px 18px;
	border: 1px solid rgba(246, 196, 49, 0.7);
	color: var(--c-yellow);
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-transform: uppercase;
}

.garage-band__title {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(48px, 10.5vw, 150px);
	font-style: italic;
	font-weight: 800;
	line-height: 0.88;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.garage-band__title-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
	background: linear-gradient(90deg, var(--c-yellow), var(--c-yellow)) 0 50% / 0 100% no-repeat;
	-webkit-background-clip: text;
	background-clip: text;
	transition: background-size 1.6s var(--ease) 0.4s;
}

.garage-band__title.is-visible .garage-band__title-outline { background-size: 100% 100%; -webkit-text-stroke-color: var(--c-yellow); }

.garage-band__place {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 28px 0 0;
	font-family: var(--f-display);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 700;
	letter-spacing: 0.5em;
	text-transform: uppercase;
}

.garage-band__place span:not(.garage-band__rule) { margin-right: -0.5em; }
.garage-band__rule { width: clamp(40px, 8vw, 110px); height: 1px; background: linear-gradient(90deg, transparent, var(--c-yellow), transparent); }

.garage-band__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.garage-band__tags li {
	padding: 6px 14px;
	border: 1px solid var(--c-line-dark);
	background: rgba(2, 11, 28, 0.4);
	font-family: var(--f-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

/* 12. Pied de page -------------------------------------------------------- */
.site-footer {
	position: relative;
	background: var(--c-black);
	color: rgba(255, 255, 255, 0.72);
	font-size: 15.5px;
}

.site-footer__stripe { height: 4px; background: linear-gradient(90deg, var(--c-yellow) 0 30%, var(--c-night-3) 30% 100%); }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
	gap: clamp(32px, 4vw, 56px);
	padding-block: clamp(56px, 7vw, 88px);
}

.site-footer__brand p { max-width: 340px; }
.brand--footer { margin-bottom: 22px; }
.brand--footer .brand__logo { width: 72px; }
.site-footer__rdv { color: var(--c-yellow); font-weight: 600; }

.site-footer__title {
	margin-bottom: 20px;
	color: var(--c-white);
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.site-footer__links,
.site-footer__contact { margin: 0; padding: 0; list-style: none; }

.site-footer__links li + li { margin-top: 10px; }

.site-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(var(--c-yellow), var(--c-yellow)) 0 100% / 0 1px no-repeat;
	transition: color var(--t-fast) ease, background-size var(--t) var(--ease);
}

.site-footer__links a:hover { color: var(--c-white); background-size: 100% 1px; }

.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contact li + li { margin-top: 14px; }
.site-footer__contact .icon { flex: none; margin-top: 3px; color: var(--c-yellow); }
.site-footer__contact a:hover { color: var(--c-white); }

.site-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--c-line-dark); border-radius: 50%; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.site-footer__social a:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-night); }

.site-footer__bottom { border-top: 1px solid var(--c-line-dark); font-size: 14px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.site-footer__bottom p { margin: 0; }
.site-footer__tagline { font-family: var(--f-display); font-style: italic; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-yellow); }

@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 13. Barre d'actions mobile --------------------------------------------- */
.mobile-bar { display: none; }

@media (max-width: 900px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

	.mobile-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 80;
		display: grid;
		grid-template-columns: 1.4fr 1fr 1fr;
		height: calc(64px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(2, 11, 28, 0.97);
		border-top: 1px solid var(--c-line-dark);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		transform: translateY(0);
		transition: transform var(--t) var(--ease);
	}

	body.is-locked .mobile-bar { transform: translateY(100%); }

	.mobile-bar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		color: var(--c-white);
		font-family: var(--f-display);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.mobile-bar__item + .mobile-bar__item { border-left: 1px solid var(--c-line-dark); }

	.mobile-bar__item--call {
		flex-direction: row;
		gap: 10px;
		background: var(--c-yellow);
		color: var(--c-night);
		font-size: 17px;
	}

	.mobile-bar__item--call .icon { animation: mroad-ring 4s var(--ease) infinite 2s; }
}

/* 14. Contenus éditoriaux ------------------------------------------------- */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(28px, 3.2vw, 40px); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--c-night-3); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--c-night); }
.entry-content ul { padding-left: 1.2em; }
.entry-content li::marker { color: var(--c-yellow-deep); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--c-yellow); font-size: 1.1em; }

.post-summary + .post-summary { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--c-line-light); }
.post-summary__title { font-size: 30px; }

/* 15. Animations ---------------------------------------------------------- */
@keyframes mroad-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes mroad-stripe { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); } }
@keyframes mroad-ring {
	0%, 86%, 100% { transform: rotate(0); }
	88% { transform: rotate(-14deg); }
	90% { transform: rotate(12deg); }
	92% { transform: rotate(-10deg); }
	94% { transform: rotate(8deg); }
}

/* Apparition au défilement (uniquement si JavaScript actif) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 16. Accessibilité ------------------------------------------------------- */
.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: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--c-yellow);
	color: var(--c-night);
	font-weight: 700;
	transform: translateY(-200%);
	transition: transform var(--t-fast) ease;
}

.skip-link:focus { transform: none; }

:focus-visible {
	outline: 3px solid var(--c-yellow);
	outline-offset: 3px;
}

/* Les boutons ont un coin coupé (clip-path) : le contour de focus est tracé à l'intérieur. */
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
	.js [data-reveal] { opacity: 1; transform: none; }
	.hero__media img, .page-hero__media img { transform: none; }
}
