/*
Theme Name: Tools Racing
Theme URI: https://tools-racing.fr
Author: Tools Racing
Description: Thème du site Tools Racing — les outils pour le sport automobile. Présentation des applications .ctpro, développement sur-mesure, formulaire de contact avec envoi d'e-mail et outils RGPD intégrés.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tools-racing
*/

/*
 * Polices : hébergées localement dans assets/fonts (aucun appel à Google).
 * Les @font-face sont ajoutés par inc/setup.php pour les seuls fichiers présents.
 */

/* ---------- Jetons (couleurs mesurées sur le logo officiel) ---------- */
:root {
	--tr-navy: #0B1F4B;
	--tr-navy-deep: #071430;
	--tr-blue: #1B4FC4;
	--tr-blue-light: #5BA0FF;
	--tr-red: #E4252D;
	--tr-red-text: #C8001A;
	--tr-red-light: #FF5A66;
	--tr-checker-blue: #2F6FE0;
	--tr-checker-sky: #8DB8FF;
	--tr-ink: #0B1F4B;
	--tr-text: #3B4A6B;
	--tr-muted: #4A5878;
	--tr-line: #DDE3EE;
	--tr-field: #C9D3E6;
	--tr-soft: #F4F6FA;
	--tr-blue-soft: #EEF3FF;
	--tr-red-soft: #FDECEE;
	--tr-on-navy: #D5DDEE;
	--tr-white: #FFFFFF;
	--tr-font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--tr-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tr-gutter: clamp(16px, 4vw, 40px);
	--tr-section: clamp(64px, 9vw, 120px);
	--tr-radius: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--tr-white);
	color: var(--tr-ink);
	font-family: var(--tr-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--tr-blue); }
a:hover { color: var(--tr-navy); }
:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	padding: 12px 18px; border-radius: 10px;
	background: var(--tr-navy); color: var(--tr-white); font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--tr-white); }

.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--tr-gutter); }
.container--narrow { max-width: 920px; }
.section { padding-block: var(--tr-section); }
.section--soft { background: var(--tr-soft); }

.display {
	font-family: var(--tr-font-display);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	line-height: 0.95;
	color: var(--tr-ink);
}
.text-red { color: var(--tr-red); }
.text-blue-light { color: var(--tr-blue-light); }

.eyebrow {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 16px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--tr-red-text);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--tr-red); }
.eyebrow--light { color: #FF8A94; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	border-radius: 999px; border: 1.5px solid transparent;
	font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn--navy { background: var(--tr-navy); color: var(--tr-white); }
.btn--navy:hover { background: #142B63; color: var(--tr-white); }
.btn--red { background: var(--tr-red); color: var(--tr-white); font-weight: 700; }
.btn--red:hover { background: #C41E26; color: var(--tr-white); }
.btn--outline { border-color: var(--tr-navy); color: var(--tr-navy); background: transparent; }
.btn--outline:hover { background: var(--tr-navy); color: var(--tr-white); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .brand .custom-logo { display: block; height: 48px; width: auto; }
.site-footer .brand img { height: 64px; }
@media (max-width: 600px) { .brand img, .brand .custom-logo { height: 40px; } }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--tr-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-block: 14px;
}
.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	border: 1.5px solid var(--tr-line); border-radius: 12px;
	background: var(--tr-white); color: var(--tr-ink); cursor: pointer;
}
.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.main-nav a { color: var(--tr-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.main-nav a:hover { color: var(--tr-red); }
.main-nav .nav-cta a,
.main-nav a.nav-cta {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
	border-radius: 999px; background: var(--tr-red); color: var(--tr-white);
}
.main-nav .nav-cta a:hover,
.main-nav a.nav-cta:hover { background: #C41E26; color: var(--tr-white); }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.site-header__inner { flex-wrap: wrap; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
	.main-nav li a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--tr-line); }
	.main-nav .nav-cta a,
	.main-nav a.nav-cta { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
	display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px);
	padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px);
}
.hero__content { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__badge {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 14px; border-radius: 999px;
	background: var(--tr-soft); border: 1px solid var(--tr-line);
	font-size: 14px; font-weight: 600;
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tr-red); }
.hero__title { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.9; letter-spacing: -0.01em; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--tr-text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 20px 28px; padding-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding-right: 28px; border-right: 1px solid var(--tr-line); }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat__value { font-family: var(--tr-font-display); font-weight: 800; font-style: italic; font-size: 40px; line-height: 1; color: var(--tr-blue); }
.stat__value--red { color: var(--tr-red); }
.stat__label { font-size: 14px; font-weight: 500; color: var(--tr-muted); }

.hero__visual {
	flex: 1 1 440px; min-width: 0; margin: 0;
	position: relative; overflow: hidden;
	min-height: 540px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 56px;
	border-radius: 28px; background: var(--tr-navy);
	display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.hero__visual figcaption {
	position: absolute; left: 28px; bottom: 20px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B8C4DE;
}

/* Damier incliné repris du logo (version fond sombre) : 5 colonnes x 3 rangées. */
.checker {
	position: absolute;
	display: grid;
	grid-template-columns: repeat(5, var(--cell, 46px));
	grid-auto-rows: var(--cell, 46px);
	transform: skewX(-12deg);
	pointer-events: none;
}
.checker span:nth-child(1), .checker span:nth-child(5),
.checker span:nth-child(11), .checker span:nth-child(15) { background: var(--tr-white); }
.checker span:nth-child(3), .checker span:nth-child(13) { background: var(--tr-red); }
.checker span:nth-child(7) { background: var(--tr-checker-blue); }
.checker span:nth-child(9) { background: var(--tr-checker-sky); }
.hero__visual .checker { top: 32px; right: 40px; }

.float-card {
	position: relative; z-index: 1;
	width: min(340px, 100%);
	background: var(--tr-white); color: var(--tr-ink);
	border-radius: 16px; padding: 18px;
	box-shadow: 0 24px 48px rgba(4, 12, 32, 0.35);
	display: flex; flex-direction: column; gap: 10px;
}
.float-card--end { align-self: flex-end; }
.float-card--shift { margin-left: clamp(0px, 3vw, 40px); flex-direction: row; align-items: center; gap: 14px; }
.float-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.float-card__title { font-size: 16px; font-weight: 700; }
.float-card__text { font-size: 14px; color: var(--tr-text); }
.float-card__car { display: flex; align-items: baseline; gap: 10px; }
.float-card__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tr-navy); display: flex; align-items: center; justify-content: center; }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bars span { height: 8px; border-radius: 4px; background: var(--tr-blue); }

.app-name { font-weight: 700; }
.app-name span { color: var(--tr-blue); }
.app-name--red span { color: var(--tr-red-text); }
.car-number { font-family: var(--tr-font-display); font-weight: 800; font-style: italic; font-size: 34px; line-height: 1; }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--blue { color: var(--tr-blue); background: var(--tr-blue-soft); }
.pill--red { color: var(--tr-red-text); background: var(--tr-red-soft); }

/* ---------- Bandeau ---------- */
.ticker { background: var(--tr-navy); color: var(--tr-white); }
.ticker__inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
	padding-block: 18px;
	font-family: var(--tr-font-display); font-weight: 700; font-style: italic;
	font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; letter-spacing: 0.02em;
}
.ticker__item span span { color: var(--tr-blue-light); }
.ticker__sep { color: var(--tr-red); }
.ticker__more { flex-basis: 100%; text-align: center; color: var(--tr-red-light); text-decoration: none; }
.ticker__more:hover { color: var(--tr-white); }

/* ---------- Applications ---------- */
.apps { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.apps__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 12px; }
.apps__head > div { flex: 1 1 520px; min-width: 0; }
.apps__head h2 { font-size: clamp(40px, 5vw, 68px); }
.apps__head p { flex: 1 1 360px; max-width: 440px; font-size: 17px; color: var(--tr-text); }
.apps__nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .apps__nav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.apps__nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 8px; border: 1px solid var(--tr-line); border-radius: 999px; background: var(--tr-white); color: var(--tr-ink); font-family: var(--tr-font-display); font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; text-decoration: none; transition: border-color .15s, transform .15s; }
.apps__nav a span { min-width: 0; overflow-wrap: anywhere; }
.apps__nav a em { font-style: inherit; color: var(--tr-blue); }
.apps__nav a:hover { border-color: var(--tr-navy); transform: translateY(-1px); }
.apps__nav .app-icon { width: 34px; height: 34px; border-radius: 9px; }
@media (max-width: 600px) { .apps__nav a { font-size: 16px; gap: 8px; padding-right: 12px; } .apps__nav .app-icon { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .apps__nav a { transition: none; } .apps__nav a:hover { transform: none; } }

.app {
	display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px);
	padding: clamp(24px, 4vw, 56px);
	background: var(--tr-white); border: 1px solid var(--tr-line); border-radius: var(--tr-radius);
}
.app--reverse { flex-direction: row-reverse; }
.app__content { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.app__num { font-family: var(--tr-font-display); font-weight: 800; font-style: italic; font-size: 56px; line-height: 1; color: var(--accent); }
.app__logo { display: block; height: 60px; width: auto; }
.app__kind { font-size: 14px; font-weight: 700; color: var(--tr-muted); }
@media (max-width: 600px) { .app__logo { height: 46px; } .app__num { font-size: 44px; } }
.app-icon { display: block; flex: none; width: 24px; height: 24px; }
.app-name { display: inline-flex; align-items: center; }
.app-name .app-icon { margin-right: 8px; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; }
.ticker__item .app-icon { width: 36px; height: 36px; }
.app__title { font-size: clamp(32px, 3.4vw, 46px); line-height: 0.98; }
.app__desc { font-size: 17px; line-height: 1.65; color: var(--tr-text); }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.checklist svg { flex: none; color: var(--accent); }
.app__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--tr-line); }
.app__footer p { font-size: 14px; color: var(--tr-muted); }
.app__footer strong { color: var(--tr-ink); }
.app__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--accent-text); text-decoration: none; }
.app__link:hover { color: var(--tr-navy); }
.app__visual {
	flex: 1 1 380px; min-width: 0; margin: 0;
	padding: clamp(18px, 2.4vw, 32px); border-radius: 20px;
	background: var(--accent-soft);
	display: flex; flex-direction: column; gap: 12px;
}
.app__visual figcaption { font-size: 12px; color: var(--tr-muted); }
.app--navy .app__visual { background: var(--tr-navy); }
.app--navy .app__visual figcaption { color: #B8C4DE; }

.accent-blue { --accent: var(--tr-blue); --accent-text: var(--tr-blue); --accent-soft: var(--tr-blue-soft); }
.accent-red { --accent: var(--tr-red); --accent-text: var(--tr-red-text); --accent-soft: var(--tr-red-soft); }
.accent-navy { --accent: var(--tr-navy); --accent-text: var(--tr-blue); --accent-soft: #E6E9F1; }

/* Aperçus d'interface */
.mock {
	background: var(--tr-white); border-radius: 14px; padding: 20px;
	box-shadow: 0 12px 32px rgba(11, 31, 75, 0.10);
	display: flex; flex-direction: column; gap: 14px;
}
.mock__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.mock__top-note { font-size: 12px; font-weight: 600; color: var(--tr-muted); }
.mock__title { font-size: 17px; font-weight: 700; }
.mock__small { font-size: 13px; color: var(--tr-muted); }
.mock__action {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; border-radius: 10px;
	background: var(--accent); color: var(--tr-white); font-weight: 600; font-size: 15px;
}
.mock__action--outline { background: transparent; color: var(--tr-ink); border: 1.5px solid var(--tr-navy); }
.progress { height: 10px; border-radius: 5px; background: var(--tr-line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--tr-blue); }
.mock__rows { display: flex; flex-direction: column; gap: 10px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tr-soft); font-size: 14px; font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 13px; }
.doc-grid div { display: flex; flex-direction: column; gap: 2px; }
.doc-grid dt { color: var(--tr-muted); }
.doc-grid dd { margin: 0; font-weight: 600; }
.signature { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--tr-field); }
.mock__buttons { display: flex; gap: 8px; }
.mock__buttons > * { flex: 1; }
.pilot { display: flex; align-items: center; gap: 12px; }
.pilot__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--tr-navy); color: var(--tr-white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.pilot__name { font-size: 16px; font-weight: 700; }
.equip-list { list-style: none; }
.equip-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDF0F6; }
.equip-list li:last-child { border-bottom: 0; }
.equip-list strong { display: block; font-size: 14px; }
.equip-list small { font-size: 12px; color: var(--tr-muted); }
.mock__alert { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--tr-red-soft); color: var(--tr-red-text); font-size: 13px; font-weight: 600; }
.mock__alert svg { flex: none; }
.stock-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stock-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.stock-list__name { font-weight: 600; }
.stock-list__bar { height: 8px; border-radius: 4px; background: var(--tr-line); overflow: hidden; }
.stock-list__bar span { display: block; height: 100%; background: #1E7B3A; }
.stock-list__bar.is-full span { background: var(--tr-red); }
.stock-list__count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock-list__count.is-full { color: var(--tr-red-text); }
.scan-field { display: flex; flex-direction: column; gap: 6px; }
.scan-field__label { font-size: 13px; font-weight: 600; }
.scan-field__input { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--tr-blue); box-shadow: 0 0 0 4px var(--tr-blue-soft); font-size: 17px; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.scan-field__input svg { flex: none; color: var(--tr-blue); }
.scan-field__caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: middle; background: var(--tr-blue); }
.scan-field__hint { font-size: 12px; font-weight: 600; color: var(--tr-blue); }
.tyre-list { list-style: none; }
.tyre-list li { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDF0F6; }
.tyre-list li:last-child { border-bottom: 0; }
.tyre-list strong { display: block; font-size: 14px; }
.tyre-list small { font-size: 12px; color: var(--tr-muted); }
.brand-tag { display: block; padding: 4px 0; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-align: center; }
.brand-tag--michelin { background: #27509B; color: var(--tr-white); }
.brand-tag--pirelli { background: #FFD100; color: #111111; }
.log-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.log-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--tr-soft); font-size: 14px; font-weight: 600; }
.log-list li.is-alert { background: var(--tr-red-soft); color: var(--tr-red-text); }
.log-list__time { font-size: 13px; font-weight: 700; color: var(--tr-blue); font-variant-numeric: tabular-nums; }
.log-list li.is-alert .log-list__time { color: var(--tr-red-text); }
.log-list__tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 6px; background: var(--tr-white); font-size: 11px; font-weight: 700; color: var(--tr-navy); }
.log-list li.is-flag { background: #FFF6CC; color: #5C4A00; }
.log-list li.is-flag .log-list__time { color: #5C4A00; }
.flag-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flag-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; border: 1.5px solid var(--tr-line); min-width: 0; }
.flag-card strong { font-size: 14px; line-height: 1.2; }
.flag-card__swatch { display: flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.flag-card__swatch--yellow { background: #FFD100; }
.flag-card__swatch--sc { background: #0B1220; color: #FFD100; }
.flag-card__swatch--line { background: var(--tr-blue); color: var(--tr-white); }
.flag-card__swatch--finish { background: repeating-conic-gradient(var(--tr-navy) 0 25%, var(--tr-white) 0 50%) 0 0 / 12px 12px; border: 1px solid var(--tr-navy); }
.wa-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #E8F8EE; color: #14532D; font-size: 13px; }
.wa-line__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #25D366; }


/* ---------- Atouts ---------- */
.atouts { display: flex; flex-direction: column; gap: 40px; }
.atouts h2 { max-width: 760px; font-size: clamp(36px, 4.4vw, 60px); }
.atouts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.atout { border-top: 4px solid var(--accent); background: var(--tr-soft); border-radius: 4px 4px 18px 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.atout svg { color: var(--accent); }
.atout h3 { font-size: 20px; font-weight: 700; }
.atout p { color: var(--tr-text); }

/* ---------- Sur-mesure ---------- */
.custom { position: relative; overflow: hidden; background: var(--tr-navy); color: var(--tr-white); padding-block: clamp(72px, 10vw, 136px); }
.custom .checker { --cell: 84px; top: 72px; right: 64px; opacity: 0.9; }
@media (max-width: 900px) { .custom .checker { --cell: 32px; top: 28px; right: 20px; opacity: 0.6; } }
.custom__inner { position: relative; display: flex; flex-direction: column; gap: 48px; }
.custom__intro { max-width: 780px; display: flex; flex-direction: column; gap: 22px; }
.custom__intro .eyebrow { margin-bottom: 0; }
.custom__intro h2 { color: var(--tr-white); font-size: clamp(42px, 5.6vw, 80px); line-height: 0.92; }
.custom__intro p { max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: var(--tr-on-navy); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(11, 31, 75, 0.6); font-size: 15px; font-weight: 500; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: rgba(11, 31, 75, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(6px); }
.step__num { font-family: var(--tr-font-display); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; color: var(--tr-red-light); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15px; color: var(--tr-on-navy); }
.custom__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.custom__cta p { color: var(--tr-on-navy); }
.custom__cta .btn { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 64px); }
.contact__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__intro .eyebrow { margin-bottom: 0; }
.contact__intro h2 { font-size: clamp(40px, 5vw, 68px); line-height: 0.92; }
.contact__intro > p { font-size: 17px; color: var(--tr-text); }
.contact__info { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact__info li { display: flex; align-items: center; gap: 12px; }
.contact__info svg { flex: none; color: var(--tr-blue); }
.contact__info a { color: var(--tr-ink); font-weight: 600; }
.rights-box { background: var(--tr-white); border: 1px solid var(--tr-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rights-box strong { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.rights-box svg { color: var(--tr-blue); }
.rights-box p { font-size: 14px; color: var(--tr-text); }
.rights-box a { font-size: 14px; font-weight: 600; }

.contact__card {
	flex: 1.5 1 520px; min-width: 0;
	background: var(--tr-white); border: 1px solid var(--tr-line); border-radius: var(--tr-radius);
	padding: clamp(24px, 3.5vw, 44px);
	box-shadow: 0 20px 48px rgba(11, 31, 75, 0.08);
}
.tr-form { display: flex; flex-direction: column; gap: 22px; }
.tr-form h3 { font-size: 22px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .tr-form legend { font-size: 14px; font-weight: 600; color: var(--tr-ink); }
.req { color: var(--tr-red-text); }
.opt { font-weight: 400; color: var(--tr-muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1.5px solid var(--tr-field); border-radius: 10px;
	background: var(--tr-white); color: var(--tr-ink);
	font: inherit; font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tr-blue); box-shadow: 0 0 0 3px rgba(27, 79, 196, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--tr-red); }
.field__error { font-size: 13px; font-weight: 600; color: #A30014; }
.tr-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tr-form legend { padding: 0; margin-bottom: 10px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 16px;
	border: 1.5px solid var(--tr-field); border-radius: 999px;
	background: var(--tr-white); font-size: 15px; font-weight: 500; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--tr-blue); background: var(--tr-blue-soft); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--tr-blue); }
.consent-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--tr-soft); }
.consent-box label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.consent-box input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tr-blue); }
.consent-box.has-error { box-shadow: inset 0 0 0 1.5px var(--tr-red); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-submit .btn { min-height: 54px; padding: 0 30px; border: 0; }
.form-submit span { font-size: 13px; color: var(--tr-muted); }
.form-legal { font-size: 12.5px; line-height: 1.6; color: var(--tr-muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.notice-box svg { flex: none; margin-top: 1px; }
.notice-box--error { background: var(--tr-red-soft); color: #A30014; }
.notice-box ul { margin: 6px 0 0 18px; font-weight: 500; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 24px; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tr-blue-soft); color: var(--tr-blue); display: flex; align-items: center; justify-content: center; }
.form-success h3 { font-size: 40px; line-height: 1; }
.form-success p { font-size: 17px; color: var(--tr-text); max-width: 460px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 32px; }
.faq h2 { font-size: clamp(36px, 4.4vw, 60px); }
.faq__list { border-top: 1px solid var(--tr-line); }
.faq details { border-bottom: 1px solid var(--tr-line); padding-block: 22px; }
.faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 44px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; line-height: 1; color: var(--tr-red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--tr-text); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--tr-navy-deep); color: var(--tr-on-navy); }
.flagbar { display: flex; height: 6px; }
.flagbar span { flex: 1; }
.flagbar span:nth-child(1) { background: var(--tr-blue); }
.flagbar span:nth-child(2) { background: var(--tr-white); }
.flagbar span:nth-child(3) { background: var(--tr-red); }
.site-footer__inner { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 32px; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--tr-white); }
.site-footer nav { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-white); }
.site-footer a, .footer-link-button { color: var(--tr-on-navy); text-decoration: none; }
.site-footer a:hover, .footer-link-button:hover { color: var(--tr-white); text-decoration: underline; }
.footer-link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: #A9B6D3; }

/* ---------- Pages légales et contenus ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--tr-navy); color: var(--tr-white); }
.page-hero .checker { --cell: 36px; top: 32px; right: 48px; }
@media (max-width: 700px) { .page-hero .checker { --cell: 22px; top: 18px; right: 18px; opacity: 0.6; } }
.page-hero__inner { position: relative; padding-block: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { max-width: 680px; color: var(--tr-white); font-size: clamp(44px, 6vw, 76px); line-height: 0.92; }
.page-hero p { max-width: 600px; font-size: 17px; color: var(--tr-on-navy); }
.page-hero .page-hero__date { font-size: 14px; color: #B8C4DE; }

.prose { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); color: var(--tr-text); font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 44px; font-family: var(--tr-font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--tr-ink); }
.prose h2 .num { color: var(--tr-red); }
.prose h3 { margin-top: 28px; font-size: 19px; color: var(--tr-ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--tr-ink); }
.prose .toc { background: var(--tr-soft); border-radius: 18px; padding: 24px 28px; }
.prose .toc p { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tr-ink); }
.prose .toc ol { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 24px; font-size: 15px; }
.prose .toc li + li { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--tr-line); border-radius: 14px; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th { background: var(--tr-soft); color: var(--tr-ink); text-align: left; padding: 14px 16px; }
.table-wrap td { padding: 14px 16px; border-top: 1px solid var(--tr-line); vertical-align: top; }
.rights-grid { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rights-grid li { margin: 0 !important; border: 1px solid var(--tr-line); border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.todo { background: #FFF4D6; color: #6B4E00; padding: 0 4px; border-radius: 4px; }

.post-list { display: flex; flex-direction: column; gap: 28px; }
.post-card { padding-bottom: 28px; border-bottom: 1px solid var(--tr-line); }
.post-card h2 { font-size: 26px; }
.post-card h2 a { color: var(--tr-ink); text-decoration: none; }
.post-card time { font-size: 14px; color: var(--tr-muted); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
	position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
	max-width: 560px; margin-left: auto;
	background: var(--tr-white); color: var(--tr-ink);
	border-radius: 22px; overflow: hidden;
	box-shadow: 0 30px 60px rgba(4, 12, 32, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cookie-banner h2 { font-size: 28px; line-height: 1; }
.cookie-banner p { font-size: 14px; color: var(--tr-text); }
.cookie-options { border: 1px solid var(--tr-line); border-radius: 14px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--tr-line); }
.cookie-option:last-child { border-bottom: 0; }
.cookie-option strong { display: block; font-size: 15px; }
.cookie-option small { font-size: 13px; color: var(--tr-muted); }
.cookie-option em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--tr-blue); white-space: nowrap; }
.cookie-option input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--tr-blue); }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cookie-actions .btn { min-height: 48px; padding: 0 12px; font-size: 14px; font-weight: 700; }
@media (max-width: 480px) { .cookie-actions { grid-template-columns: 1fr; } }

/* ---------- Ajustement : chiffres clés du hero sur une ligne ---------- */
.hero__stats { gap: 20px 0; }
.stat { flex: 1 1 140px; padding: 0 20px; border-right: 0; border-left: 1px solid var(--tr-line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value { font-size: clamp(30px, 3vw, 40px); }
.stat__value { white-space: nowrap; }
@media (max-width: 520px) {
	.hero__stats { gap: 14px; }
	.stat { flex-basis: 100%; padding-left: 0; border-left: 0; }
}
