/*
Theme Name: Frein Moteur
Theme URI: https://freinmoteur.fr
Author: La rédaction
Description: Thème maison de freinmoteur.fr : vitrine oblique, anthracite et ambre.
Version: 1.0.0
Text Domain: freinmoteur
*/

/* ------------------------------------------------------------------ FONTES */

@font-face { font-family: "Saira"; src: url(assets/fonts/saira-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Saira"; src: url(assets/fonts/saira-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(assets/fonts/public-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(assets/fonts/public-sans-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ------------------------------------------------------------------ JETONS */

:root {
	--ink: #121417;
	--ink-2: #1b1e22;
	--steel: #2b3036;
	--concrete: #eef0f1;
	--paper: #ffffff;
	--amber: #ffb000;
	--amber-2: #ff8f00;
	--amber-ink: #8a5800;
	--amber-wash: #fff5d9;
	--red: #ff3b30;
	--cyan: #00e5ff;
	--text: #1a1d21;
	--muted: #5b636d;
	--on-dark: #c3c9d0;
	--rule: #d9dde1;
	--skew: -14deg;
	--wrap: 1240px;
	--display: "Saira", "Arial Narrow", sans-serif;
	--body: "Public Sans", system-ui, sans-serif;
	--glow: 0 0 18px rgba(255, 176, 0, .55), 0 0 60px rgba(255, 176, 0, .3);
	--map: url(assets/img/carte.svg);
}

/* ------------------------------------------------------------------ BASE */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-style: italic; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
button, input { font: inherit; }

.fm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.fm-wrap--text { max-width: 808px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.fm-skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.fm-arrow { display: inline-block; vertical-align: middle; flex: none; transition: transform .2s; }

/* Glitch : dédoublement de couleur, avec un sursaut toutes les sept secondes. */
.fm-glitch { text-shadow: -.035em 0 rgba(0, 229, 255, .55), .035em 0 rgba(255, 176, 0, .7); animation: fm-glitch 7s steps(1) infinite; }
@keyframes fm-glitch {
	0%, 93%, 100% { text-shadow: -.035em 0 rgba(0, 229, 255, .55), .035em 0 rgba(255, 176, 0, .7); transform: none; }
	94% { text-shadow: -.09em 0 rgba(0, 229, 255, .7), .07em 0 rgba(255, 176, 0, .85); transform: translateX(2px) skewX(-3deg); }
	95% { text-shadow: .06em 0 rgba(0, 229, 255, .7), -.08em 0 rgba(255, 176, 0, .85); transform: translateX(-2px); }
	96% { text-shadow: -.02em 0 rgba(0, 229, 255, .5), .02em 0 rgba(255, 176, 0, .6); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .fm-glitch { animation: none; } }

/* Fond sombre à texture de carte. */
.fm-dark { background-color: var(--ink); color: var(--on-dark); }

/* ------------------------------------------------------------------ LOGO */

.fm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.fm-logo__mark { width: 14px; height: 30px; background: linear-gradient(180deg, var(--amber), var(--amber-2)); transform: skewX(var(--skew)); box-shadow: var(--glow); }
.fm-logo__name { font: italic 800 25px/1 var(--display); color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.fm-logo__name b { color: var(--amber); font-weight: 800; margin-left: .18em; }

/* ------------------------------------------------------------------ BOUTONS ET ÉTIQUETTES */

.fm-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--amber); color: var(--ink); font: italic 700 17px/1 var(--display); text-decoration: none; padding: 15px 26px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background .2s, box-shadow .2s; }
.fm-btn:hover { background: #ffc233; }
.fm-btn:hover .fm-arrow { transform: translateX(4px); }

.fm-tag { display: inline-block; background: var(--amber); color: var(--ink); font: italic 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.fm-tag--dark { background: var(--ink); color: var(--amber); }

.fm-kicker { font: italic 600 14px/1 var(--display); color: var(--amber); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.fm-kicker::before { content: ""; width: 26px; height: 3px; background: var(--amber); box-shadow: var(--glow); }

/* ------------------------------------------------------------------ EN-TÊTE */

.fm-header { background: var(--ink); position: relative; z-index: 20; border-bottom: 1px solid #23272c; }
.fm-header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.fm-brand { text-decoration: none; flex: none; }
.fm-nav { margin-left: auto; }
.fm-nav ul { list-style: none; padding: 0; display: flex; }
.fm-nav a { position: relative; display: block; padding: 0 16px; line-height: 72px; color: var(--on-dark); text-decoration: none; font: italic 600 16px/72px var(--display); white-space: nowrap; }
.fm-nav a span { position: relative; z-index: 1; }
.fm-nav a::before { content: ""; position: absolute; inset: 0 2px; background: var(--amber); transform: skewX(-20deg) scaleY(0); transform-origin: bottom; transition: transform .2s; }
.fm-nav a:hover { color: #fff; }
.fm-nav a[aria-current="page"] { color: var(--ink); }
.fm-nav a[aria-current="page"]::before { transform: skewX(-20deg) scaleY(1); box-shadow: var(--glow); }
.fm-header__search { color: #fff; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--steel); transform: skewX(var(--skew)); flex: none; }
.fm-header__search svg { transform: skewX(14deg); }
.fm-header__search:hover { border-color: var(--amber); color: var(--amber); }
.fm-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex: none; }
.fm-burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transform: skewX(var(--skew)); }

/* ------------------------------------------------------------------ HAUT DE PAGE */

.fm-hero { position: relative; z-index: 2; overflow: hidden; color: var(--on-dark); background:
	radial-gradient(ellipse at 70% 40%, rgba(255, 176, 0, .1), transparent 60%),
	linear-gradient(rgba(18, 20, 23, .82), rgba(18, 20, 23, .9)),
	var(--map) center / cover, var(--ink);
	padding: 84px 0 calc(7vw + 90px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%); margin-bottom: -7vw; }
.fm-hero__band { position: absolute; top: -20%; bottom: -20%; left: 61%; width: 130px; background: linear-gradient(180deg, var(--amber), var(--amber-2)); transform: skewX(-22deg); box-shadow: var(--glow); opacity: .92; }
.fm-hero__band::after { content: ""; position: absolute; top: 0; bottom: 0; left: 170px; width: 14px; background: var(--amber); box-shadow: var(--glow); opacity: .7; }
.fm-hero__arcs { position: absolute; width: 560px; right: -60px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 2 9; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 176, 0, .9)); opacity: .7; pointer-events: none; }
.fm-hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.fm-hero__title { color: #fff; font-weight: 800; font-size: clamp(40px, 5.4vw, 74px); line-height: .98; margin-bottom: 26px; }
.fm-hero__lead { font-size: 18px; max-width: 560px; margin-bottom: 32px; }

.fm-une { position: relative; display: block; background: var(--paper); color: var(--text); text-decoration: none; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); padding: 26px 13% 30px 11%; transition: transform .25s; }
.fm-une:hover { transform: translateY(-4px); }
.fm-une__img { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 20px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); background: var(--concrete); }
.fm-une__img img { width: 100%; height: 100%; object-fit: cover; }
.fm-une__title { font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); margin: 14px 0 12px; }
.fm-une__more { display: inline-flex; align-items: center; gap: 10px; font: italic 600 15px/1 var(--display); color: var(--amber-ink); }
.fm-une:hover .fm-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ TITRES DE SECTION */

.fm-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.fm-sechead__title { font-weight: 800; font-size: clamp(28px, 3vw, 38px); display: flex; align-items: center; gap: 14px; }
.fm-sechead__title::before { content: ""; width: 12px; height: .9em; background: var(--amber); transform: skewX(var(--skew)); flex: none; }
.fm-sechead__more { display: inline-flex; align-items: center; gap: 10px; font: italic 600 15px/1 var(--display); color: var(--amber-ink); text-decoration: none; white-space: nowrap; }
.fm-sechead__more:hover .fm-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ RUBRIQUES */

.fm-rubs { background: var(--concrete); padding: calc(7vw + 56px) 0 72px; }
.fm-rubs__grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 18px 10px; }
.fm-rub { position: relative; }
.fm-rub--big { grid-row: span 2; }
.fm-rub--big::before, .fm-rub:nth-child(5)::before { content: ""; position: absolute; left: -6px; bottom: -12px; width: 46%; height: 40%; background: var(--amber); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.fm-rub a { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); text-decoration: none; color: var(--text); clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); padding: 20px 14% 20px 13%; overflow: hidden; transition: transform .25s; }
.fm-rub--big a { clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); padding: 30px 12% 30px 11%; }
.fm-rub a:hover { transform: translateY(-4px); }
.fm-rub__name { position: relative; z-index: 1; font: italic 800 21px/1.05 var(--display); max-width: 70%; }
.fm-rub--big .fm-rub__name { font-size: clamp(28px, 2.8vw, 38px); }
.fm-rub__count { position: relative; z-index: 1; font-size: 13px; color: var(--muted); margin-top: 6px; }
.fm-rub__img { position: absolute; right: 0; bottom: 0; width: 66%; height: 60%; object-fit: cover; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); transition: transform .4s; }
.fm-rub--big .fm-rub__img { width: 88%; height: 68%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.fm-rub a:hover .fm-rub__img { transform: scale(1.04); }
.fm-rub__go { position: absolute; left: 13%; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 30px; height: 26px; background: var(--ink); color: var(--amber); font: 700 18px/1 var(--display); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.fm-rub a:hover .fm-rub__go { background: var(--amber); color: var(--ink); }

/* ------------------------------------------------------------------ SECTIONS ET CARTES */

.fm-section { padding: 72px 0; }
.fm-section--tint { background: var(--concrete); }
.fm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }

.fm-card__link { display: block; text-decoration: none; color: var(--text); }
.fm-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--concrete); clip-path: polygon(0 0, 100% 0, 100% 80%, 86% 100%, 0 100%); margin-bottom: 16px; }
.fm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fm-card__link:hover .fm-card__img img { transform: scale(1.04); }
.fm-card .fm-tag { margin-bottom: 12px; }
.fm-card__title { font-weight: 700; font-size: 21px; line-height: 1.15; margin-bottom: 10px; }
.fm-card__link:hover .fm-card__title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fm-card__excerpt { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.fm-card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.fm-empty { font-size: 18px; color: var(--muted); }

/* ------------------------------------------------------------------ VOYANTS */

.fm-voyants { position: relative; color: var(--on-dark); background:
	linear-gradient(rgba(18, 20, 23, .86), rgba(18, 20, 23, .93)),
	var(--map) center / cover, var(--ink);
	clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); padding: calc(5vw + 64px) 0 84px; overflow: hidden; }
.fm-section + .fm-voyants, .fm-rubs + .fm-voyants { margin-top: -1px; }
.fm-voyants__head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.fm-voyants__title { color: #fff; font-weight: 800; font-size: clamp(34px, 4vw, 54px); }
.fm-voyants__head p { margin: 0; font-size: 17px; }
.fm-voyants__head .is-rouge { color: var(--red); }
.fm-voyants__head .is-ambre { color: var(--amber); }
.fm-voyants__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fm-voyant { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 22px 22px 20px; background: #0b0c0e; border: 1px solid #262a30; text-decoration: none; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); transition: border-color .2s, background .2s; }
.fm-voyant__svg { width: 58px; height: 58px; transition: filter .2s, transform .2s; }
.fm-voyant--rouge .fm-voyant__svg { color: var(--red); filter: drop-shadow(0 0 5px rgba(255, 59, 48, .8)); }
.fm-voyant--ambre .fm-voyant__svg { color: var(--amber); filter: drop-shadow(0 0 5px rgba(255, 176, 0, .8)); }
.fm-voyant__label { color: #fff; font: italic 700 18px/1.15 var(--display); }
.fm-voyant__lvl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.fm-voyant--rouge .fm-voyant__lvl { color: #ff7a72; }
.fm-voyant--ambre .fm-voyant__lvl { color: var(--amber); }
.fm-voyant:hover { background: #15171a; border-color: var(--amber); }
.fm-voyant--rouge:hover { border-color: var(--red); }
.fm-voyant:hover .fm-voyant__svg { transform: scale(1.08); filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 22px currentColor); }

/* ------------------------------------------------------------------ EN-TÊTES DE PAGE */

.fm-pagehead { position: relative; color: var(--on-dark); background:
	linear-gradient(rgba(18, 20, 23, .84), rgba(18, 20, 23, .92)),
	var(--map) center / cover, var(--ink);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); padding: 56px 0 calc(4vw + 60px); overflow: hidden; }
.fm-pagehead::before { content: ""; position: absolute; top: -10%; bottom: -10%; right: 9%; width: 70px; background: var(--amber); transform: skewX(-22deg); box-shadow: var(--glow); opacity: .85; }
.fm-pagehead__in { position: relative; display: grid; gap: 48px; align-items: center; }
.fm-pagehead--split .fm-pagehead__in { grid-template-columns: 1.1fr .9fr; }
.fm-pagehead__title { color: #fff; font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 18px; }
.fm-pagehead__lead { font-size: 18px; max-width: 620px; }
.fm-pagehead__lead p:last-child { margin: 0; }
.fm-pagehead__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.fm-pagehead__img img { width: 100%; height: 100%; object-fit: cover; }
.fm-pagehead--article { padding-bottom: calc(4vw + 90px); }
.fm-crumbs { font-size: 14px; margin-bottom: 18px; color: var(--on-dark); }
.fm-crumbs a { color: var(--amber); text-decoration: none; }
.fm-crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ ARTICLE */

.fm-article__title { color: #fff; font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 18px; }
.fm-article__meta { font-size: 14px; margin: 0; }
.fm-article__cover { position: relative; z-index: 2; margin-top: calc(-4vw - 60px); margin-bottom: 40px; }
.fm-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 95% 100%, 0 100%); }
.fm-article > .fm-content:first-child, .fm-pagehead--article + .fm-content { padding-top: 0; }
.fm-content { margin-bottom: 72px; font-size: 18px; line-height: 1.72; }
.fm-pagehead--article + .fm-content { margin-top: 32px; }
.fm-content > * + * { margin-top: 1.1em; }
.fm-content h2 { font-weight: 800; font-size: clamp(26px, 2.6vw, 32px); margin-top: 1.9em; display: flex; gap: 12px; align-items: baseline; }
.fm-content h2::before { content: ""; width: 10px; height: .78em; background: var(--amber); transform: skewX(var(--skew)); flex: none; }
.fm-content h3 { font-weight: 700; font-size: 23px; margin-top: 1.6em; }
.fm-content p { margin: 0; }
.fm-content p + p { margin-top: 1.1em; }
.fm-content a { color: var(--amber-ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fm-content a:hover { color: var(--ink); background: var(--amber-wash); }
.fm-content ul { list-style: none; padding-left: 0; }
.fm-content ul > li { position: relative; padding-left: 26px; }
.fm-content ul > li + li, .fm-content ol > li + li { margin-top: .45em; }
.fm-content ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--amber); transform: skewX(var(--skew)); }
.fm-content ol { padding-left: 1.3em; }
.fm-content ol > li::marker { font: italic 700 1em var(--display); color: var(--amber-ink); }
.fm-content img { height: auto; }
.fm-content figure { margin: 1.6em 0; }
.fm-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.fm-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); font-style: italic; }
.fm-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.fm-content thead th { background: var(--ink); color: #fff; font: italic 700 15px/1.3 var(--display); text-align: left; padding: 12px 14px; border-bottom: 3px solid var(--amber); }
.fm-content td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fm-content tbody tr:nth-child(even) td { background: var(--concrete); }
.fm-callout { background: var(--amber-wash); border-left: 5px solid var(--amber); padding: 20px 24px; }
.fm-callout > strong:first-child { display: block; font: italic 800 18px/1.2 var(--display); color: var(--ink); margin-bottom: 8px; }
.fm-callout p { margin: 0; }
.fm-callout p + p { margin-top: .7em; }

/* ------------------------------------------------------------------ RECHERCHE ET PAGINATION */

.fm-search { display: flex; max-width: 560px; margin: 8px 0 20px; }
.fm-search input { flex: 1; min-width: 0; border: 1px solid var(--steel); background: #0b0c0e; color: #fff; padding: 14px 16px; }
.fm-search input::placeholder { color: #8a929b; }
.fm-search button { border: 0; background: var(--amber); color: var(--ink); font: italic 700 16px/1 var(--display); padding: 0 24px; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); margin-left: -6px; }
.fm-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.fm-pagination a, .fm-pagination span { display: grid; place-items: center; min-width: 44px; height: 42px; padding: 0 14px; background: var(--concrete); color: var(--text); text-decoration: none; font: italic 700 15px/1 var(--display); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.fm-pagination .current { background: var(--amber); color: var(--ink); }
.fm-pagination a:hover { background: var(--ink); color: var(--amber); }

.fm-404-voyant { justify-self: center; color: var(--amber); filter: drop-shadow(0 0 12px rgba(255, 176, 0, .9)) drop-shadow(0 0 40px rgba(255, 176, 0, .5)); }
.fm-404-voyant svg { width: 260px; height: 260px; }

/* ------------------------------------------------------------------ PIED DE PAGE */

.fm-footer { color: var(--on-dark); background:
	linear-gradient(rgba(18, 20, 23, .93), rgba(18, 20, 23, .96)),
	var(--map) center / cover, var(--ink);
	border-top: 4px solid var(--amber); }
.fm-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 60px; padding-bottom: 44px; }
.fm-footer__brand p { margin-top: 16px; max-width: 340px; }
.fm-footer__title { font: italic 700 15px/1 var(--display); color: var(--amber); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.fm-footer ul { list-style: none; padding: 0; }
.fm-footer li + li { margin-top: 8px; }
.fm-footer a { color: var(--on-dark); text-decoration: none; }
.fm-footer a:hover { color: var(--amber); }
.fm-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #272b31; padding-top: 18px; padding-bottom: 26px; font-size: 13px; }
.fm-footer__base p { margin: 0; }


/* ------------------------------------------------------------------ COMBINÉ D'INSTRUMENTS */

.fm-dash { --lc-rouge: #ff3b30; --lc-ambre: #ffb000; --lc-vert: #2fd16b; --lc-bleu: #3d8bff; }
.fm-dash__bezel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "rpm screen kmh" "lamps lamps lamps"; gap: 18px 30px; align-items: center; padding: 36px 44px 24px; background: radial-gradient(ellipse at 50% 25%, #1d2025 0%, #0a0b0d 72%); border: 1px solid #2a2e34; clip-path: polygon(5% 0, 95% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); }
.fm-dash__gauge--rpm { grid-area: rpm; }
.fm-dash__gauge--kmh { grid-area: kmh; }
.fm-gauge { width: 100%; max-width: 270px; margin: 0 auto; overflow: visible; }
.fm-gauge__track { fill: none; stroke: #262a30; stroke-width: 7; }
.fm-gauge__red { fill: none; stroke: var(--red); stroke-width: 7; filter: drop-shadow(0 0 4px rgba(255, 59, 48, .8)); }
.fm-gauge__tick { stroke: #59616b; stroke-width: 1.4; }
.fm-gauge__tick.is-major { stroke: #e3e6e9; stroke-width: 2.6; }
.fm-gauge__num { fill: #c3c9d0; font: italic 700 17px var(--display); text-anchor: middle; }
.fm-gauge__num.is-red { fill: var(--red); }
.fm-gauge__unit { fill: #6b737c; font: 600 10px var(--body); text-anchor: middle; letter-spacing: .12em; text-transform: uppercase; }
.fm-gauge__needle { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(-135deg); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.fm-gauge__needle path { fill: var(--amber); filter: drop-shadow(0 0 5px rgba(255, 176, 0, .9)); }
.fm-gauge__needle circle { fill: #121417; stroke: var(--amber); stroke-width: 2.5; }
.fm-dash.is-running .fm-dash__gauge--rpm .fm-gauge__needle { transform: rotate(-108deg); animation: fm-idle 1.8s ease-in-out infinite; }
.fm-dash.is-ignition .fm-gauge__needle { animation: fm-sweep 1.6s ease-in-out; }
@keyframes fm-sweep { 0% { transform: rotate(-135deg); } 45% { transform: rotate(135deg); } 100% { transform: rotate(-135deg); } }
@keyframes fm-idle { 0%, 100% { transform: rotate(-108deg); } 50% { transform: rotate(-105.5deg); } }

.fm-dash__screen { grid-area: screen; --sc: var(--amber); position: relative; min-height: 290px; padding: 24px 26px 22px; color: var(--on-dark); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), linear-gradient(160deg, #15181c, #0c0e10); border: 1px solid #2c3137; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.fm-dash__screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sc); box-shadow: 0 0 14px var(--sc); }
.fm-lvl--rouge { --sc: var(--red); }
.fm-lvl--ambre { --sc: var(--amber); }
.fm-lvl--vert { --sc: #2fd16b; }
.fm-lvl--bleu { --sc: #3d8bff; }
.fm-dash__screen.is-flash { opacity: .25; }
.fm-dash__screen { transition: opacity .25s; }
.fm-dash__screen-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.fm-dash__screen-ico { color: var(--sc); filter: drop-shadow(0 0 6px var(--sc)) drop-shadow(0 0 16px var(--sc)); flex: none; }
.fm-dash__screen-ico svg { width: 52px; height: 52px; }
.fm-dash__screen-label { margin: 0; color: #fff; font: italic 800 25px/1.05 var(--display); }
.fm-dash__screen-lvl { margin: 5px 0 0; color: var(--sc); font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; }
.fm-dash__screen-txt { font-size: 15.5px; line-height: 1.55; margin-bottom: 12px; }
.fm-dash__screen-do { font-size: 15px; line-height: 1.55; margin-bottom: 16px; color: #e3e6e9; }
.fm-dash__screen-do strong { display: block; color: var(--sc); font: italic 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.fm-dash__screen-link { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font: italic 700 16px/1 var(--display); text-decoration: none; }
.fm-dash__screen-link:hover .fm-arrow { transform: translateX(4px); }

.fm-dash__lamps { grid-area: lamps; list-style: none; padding: 18px 0 0; margin: 4px 0 0; border-top: 1px solid #23272c; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.fm-lamp { --lc: var(--lc-ambre); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 2px 8px; text-decoration: none; color: color-mix(in srgb, var(--lc) 20%, #2b3036); transition: color .2s, filter .2s; outline-offset: 0; }
.fm-lamp--rouge { --lc: var(--lc-rouge); }
.fm-lamp--vert { --lc: var(--lc-vert); }
.fm-lamp--bleu { --lc: var(--lc-bleu); }
.fm-lamp .fm-voyant__svg { width: 40px; height: 40px; transition: filter .2s, transform .2s; }
.fm-lamp__name { color: #6b737c; font: 600 10.5px/1.2 var(--body); text-align: center; text-transform: uppercase; letter-spacing: .04em; transition: color .2s; }
.fm-lamp:hover { color: color-mix(in srgb, var(--lc) 70%, #2b3036); }
.fm-lamp:hover .fm-lamp__name { color: #c3c9d0; }
.fm-lamp.is-on, .fm-dash.is-ignition .fm-lamp { color: var(--lc); }
.fm-lamp.is-on .fm-voyant__svg, .fm-dash.is-ignition .fm-lamp .fm-voyant__svg { filter: drop-shadow(0 0 5px var(--lc)) drop-shadow(0 0 14px var(--lc)); transform: scale(1.06); }
.fm-lamp.is-on .fm-lamp__name { color: #fff; }
.fm-dash__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 14px; color: var(--on-dark); }
.fm-dash__legend span { font-weight: 700; display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; }
.fm-dash__legend span::before { content: ""; width: 9px; height: 9px; background: currentColor; box-shadow: 0 0 8px currentColor; transform: skewX(var(--skew)); }
.fm-dash__legend .is-rouge { color: var(--red); }
.fm-dash__legend .is-ambre { color: var(--amber); }
.fm-dash__legend .is-vert { color: #2fd16b; }
.fm-voyants--rub { clip-path: none; margin-top: calc(-4vw - 2px); padding-top: calc(4vw + 56px); }
@media (prefers-reduced-motion: reduce) { .fm-gauge__needle, .fm-dash.is-running .fm-dash__gauge--rpm .fm-gauge__needle { animation: none !important; transition: none; } }

/* ------------------------------------------------------------------ PICTOS DE RUBRIQUE */

.fm-rub__ico { position: absolute; left: 13%; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 46px; height: 40px; background: var(--ink); color: var(--amber); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .2s, color .2s; }
.fm-rub--big .fm-rub__ico { width: 58px; height: 50px; left: 11%; bottom: 26px; }
.fm-rub--big .fm-rub__ico svg { width: 32px; height: 32px; }
.fm-rub a:hover .fm-rub__ico { background: var(--amber); color: var(--ink); }
.fm-pagehead__ico { display: inline-grid; place-items: center; width: 62px; height: 52px; margin-bottom: 18px; background: var(--amber); color: var(--ink); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.fm-article__rub { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--amber); text-decoration: none; font: italic 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.fm-article__rub:hover span { text-decoration: underline; }

/* ------------------------------------------------------------------ COMPTE-TOURS DE LECTURE ET SOMMAIRE */

.fm-rev { position: sticky; top: 0; z-index: 30; height: 5px; background: #1b1e22 repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, .25) calc(10% - 1px) 10%); }
.fm-rev__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-2)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(255, 176, 0, .7); }
.fm-rev.is-red .fm-rev__fill { background: linear-gradient(90deg, var(--amber) 0%, var(--amber-2) 70%, var(--red) 100%); box-shadow: 0 0 12px rgba(255, 59, 48, .7); }

.fm-article__body { max-width: var(--wrap); margin: 32px auto 0; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); column-gap: 40px; }
.fm-article__body > .fm-content { grid-column: 2; grid-row: 1; }
.fm-toc { grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: 30px; max-width: 260px; margin-top: 6px; }
.fm-toc__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: italic 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.fm-toc__title span { font: 500 12px/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.fm-toc ol { list-style: none; margin: 0; padding: 0; }
.fm-toc li + li { margin-top: 2px; }
.fm-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .2s; }
.fm-toc__gear { display: grid; place-items: center; width: 30px; height: 24px; background: #e3e6e9; font: italic 800 13px/1 var(--display); color: var(--muted); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); transition: background .2s, border-color .2s, color .2s; }
.fm-toc a:hover { color: var(--ink); }
.fm-toc a:hover .fm-toc__gear { background: var(--ink); color: var(--amber); }
.fm-toc a.is-on { color: var(--ink); font-weight: 600; }
.fm-toc a.is-on .fm-toc__gear { background: var(--amber); color: var(--ink); box-shadow: none; }
.fm-content h2 { scroll-margin-top: 24px; }

@media (max-width: 1180px) {
	.fm-article__body { display: block; max-width: 808px; }
	.fm-toc { position: static; max-width: none; margin: 0 0 32px; padding: 18px 20px; background: var(--concrete); }
	.fm-toc a { padding: 6px 0; }
}
@media (max-width: 960px) {
	.fm-dash__bezel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "screen screen" "rpm kmh" "lamps lamps"; padding: 28px 26px 20px; clip-path: polygon(4% 0, 96% 0, 100% 10%, 100% 100%, 0 100%, 0 10%); }
	.fm-gauge { max-width: 210px; }
	.fm-dash__lamps { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 10px; }
}
@media (max-width: 600px) {
	.fm-dash__bezel { grid-template-areas: "screen screen" "lamps lamps"; padding: 22px 14px 14px; gap: 14px; }
	.fm-dash__gauge { display: none; }
	.fm-dash__screen { min-height: 0; padding: 20px 18px; }
	.fm-dash__screen-label { font-size: 21px; }
	.fm-dash__lamps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.fm-lamp .fm-voyant__svg { width: 36px; height: 36px; }
	.fm-lamp__name { font-size: 10px; }
	.fm-article__body { padding: 0 16px; }
}

/* ------------------------------------------------------------------ RESPONSIVE */

@media (max-width: 1120px) {
	.fm-burger { display: block; margin-left: auto; }
	.fm-header__search { margin-left: auto; }
	.fm-burger { margin-left: 0; }
	.fm-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #23272c; display: none; margin: 0; }
	.fm-nav.is-open { display: block; }
	.fm-nav ul { flex-direction: column; padding: 8px 24px 20px; }
	.fm-nav a { line-height: 50px; padding: 0 14px; }
	.fm-nav a::before { inset: 4px 0; }
}

@media (max-width: 960px) {
	.fm-hero__in, .fm-pagehead--split .fm-pagehead__in, .fm-voyants__head { grid-template-columns: 1fr; gap: 36px; }
	.fm-hero { padding-top: 56px; }
	.fm-hero__band { left: 72%; width: 90px; }
	.fm-hero__arcs { width: 420px; top: 30%; right: -160px; }
	.fm-une { max-width: 620px; }
	.fm-rubs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-rub--big { grid-column: span 2; grid-row: auto; min-height: 300px; }
	.fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-voyants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-footer__in { grid-template-columns: 1fr 1fr; }
	.fm-footer__brand { grid-column: span 2; }
	.fm-pagehead::before { right: -20px; }
	.fm-404-voyant { display: none; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.fm-wrap { padding: 0 16px; }
	.fm-logo__name { font-size: 21px; }
	.fm-header__in { gap: 12px; }
	.fm-hero__lead, .fm-pagehead__lead { font-size: 16.5px; }
	.fm-une { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); padding: 18px 9% 22px 8%; }
	.fm-rubs__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; grid-auto-rows: minmax(150px, auto); }
	.fm-rub--big { grid-column: auto; min-height: 240px; }
	.fm-rub a { clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); padding: 18px 9% 18px 8%; }
	.fm-rub__go { left: 8%; }
	.fm-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.fm-voyant { padding: 16px 14px; }
	.fm-voyant__label { font-size: 16px; }
	.fm-content { font-size: 17px; }
	.fm-footer__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.fm-footer__brand { grid-column: auto; }
	.fm-sechead { flex-wrap: wrap; }
	.fm-pagehead::before { right: -56px; width: 46px; opacity: .6; }
	.fm-hero__band { left: 80%; opacity: .55; }
}

/* ------------------------------------------------------------------ HAUT DE PAGE TABLEAU DE BORD */
.fm-hero--dash { padding: 64px 0 calc(7vw + 24px); }
.fm-hero--dash .fm-hero__band { left: 84%; top: 46%; width: 110px; opacity: .55; }
.fm-hero__top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; margin-bottom: 36px; }
.fm-hero--dash .fm-hero__title { margin-bottom: 0; font-size: clamp(38px, 4.8vw, 66px); }
.fm-hero--dash .fm-hero__lead { margin: 0; }
.fm-hero--dash .fm-dash__legend { color: var(--on-dark); }
.fm-card--lead { grid-column: span 2; grid-row: span 2; }
.fm-card--lead .fm-card__img { aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% 86%, 93% 100%, 0 100%); }
.fm-card--lead .fm-card__title { font-size: clamp(24px, 2.4vw, 32px); }
.fm-card--lead .fm-card__excerpt { font-size: 17px; }
@media (max-width: 960px) {
	.fm-hero__top { grid-template-columns: 1fr; gap: 20px; }
	.fm-card--lead { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
	.fm-hero--dash { padding-top: 40px; }
	.fm-card--lead { grid-column: auto; }
}

.fm-content h2 + p, .fm-content h3 + p, .fm-content h2 + ul, .fm-content h3 + ul { margin-top: .7em; }
.fm-toc { background: transparent; }
@media (max-width: 1180px) { .fm-toc { background: var(--concrete); } .fm-toc__gear { background: #fff; } }
