/*
Theme Name: Etapause
Theme URI: https://etapause.fr
Author: Etapause
Description: Thème vitrine de l’application Etapause, aligné sur la charte de l’app (app/brand/CHARTE.md) : bleu autoroute, vert village, terracotta, pièce soleil, papier crème. Calculateur d’économies et espace membre.
Version: 1.7.2
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: etapause
*/

/* ---------- Police de marque (logotype uniquement, comme dans l'app) ---------- */
@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Jetons : app/brand/tokens.json ---------- */
:root {
	--bleu: #2448C8;
	--bleu-fonce: #1E3FB8;
	--bleu-clair: #E8EEFF;
	--vert: #258651;
	--vert-fonce: #1C7544;
	--vert-clair: #E3F6EB;
	--tuile: #C55132;
	--tuile-fonce: #A9432A;
	--tuile-clair: #FDEBE5;
	--soleil: #FFC93C;
	--soleil-fonce: #9E6300;
	--soleil-clair: #FFF4D6;
	--encre: #16213E;
	--encre-douce: #4A5573;
	--muted: #5C6378; /* 1.6.7 : contraste ≥ 4,5:1 sur crème et vert pâle */
	--ligne: #E6E1D6;
	--creme: #FFF8EC;
	--creme-fonce: #FBEFDC;
	--carte: #FFFFFF;
	--danger: #D93B3B;

	/* compatibilité avec l'extension espace membre */
	--ciel: var(--bleu-clair);
	--gris: var(--encre-douce);
	--bitume: var(--encre);
	--garrigue: var(--vert-fonce);
	--blanc: #FFFFFF;
	--brun: var(--bleu);

	--f-marque: "Fredoka", system-ui, sans-serif;
	--f-texte: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-titre: var(--f-texte);

	--t-xs: .875rem;
	--t-s: 1rem;
	--t-m: 1.0625rem;
	--t-l: 1.25rem;
	--t-xl: clamp(1.85rem, 2.8vw + .7rem, 2.75rem);
	--t-xxl: clamp(2.4rem, 4.4vw + .9rem, 4.1rem);

	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--r-xl: 32px;
	--ombre: 0 4px 12px rgba(22, 33, 62, .08);
	--ombre-flottante: 0 8px 18px rgba(22, 33, 62, .18);

	--gouttiere: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-texte);
	font-size: var(--t-m);
	line-height: 1.6;
	color: var(--encre);
	background: var(--creme);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: .18em; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 900; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; color: inherit; }
h3 { font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--soleil); color: var(--encre); z-index: 1000; border-radius: 8px;
}

.conteneur { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 800px; }

.section { padding-block: var(--section); }
.section--bleu-clair { background: var(--bleu-clair); }
.section--creme-fonce { background: var(--creme-fonce); }
.section--vert-clair { background: var(--vert-clair); }
.surtitre { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; background: var(--vert); color: #fff; font-size: var(--t-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.section__tete { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__tete--ligne { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.titre-section { font-size: var(--t-xl); }
.chapo { font-size: var(--t-l); line-height: 1.5; color: var(--encre-douce); max-width: 60ch; }
.mention { font-size: var(--t-xs); color: var(--muted); margin-top: 32px; max-width: 70ch; }
.lien-fort { font-weight: 800; }

/* ---------- Boutons (pilules, charte) ---------- */
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .75em 1.4em;
	font: 800 var(--t-s)/1.1 var(--f-texte);
	border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton--tuile { background: var(--tuile); color: #fff; box-shadow: var(--ombre); }
.bouton--tuile:hover { background: var(--tuile-fonce); color: #fff; }
.bouton--soleil { background: var(--soleil); color: var(--encre); }
.bouton--soleil:hover { background: #FFD45F; color: var(--encre); }
.bouton--fantome { border-color: var(--ligne); color: var(--encre); background: var(--carte); }
.bouton--fantome:hover { border-color: var(--bleu); color: var(--bleu); }
.bouton--bleu { background: var(--bleu); color: #fff; }
.bouton--bleu:hover { background: var(--bleu-fonce); color: #fff; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.store {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 20px 9px 16px; min-height: 56px;
	border-radius: var(--r-m); text-decoration: none;
	background: var(--encre); color: #fff;
	font-weight: 800; font-size: 1.05rem; line-height: 1.1;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-weight: 500; font-size: .75rem; opacity: .85; }
.store:hover { background: #0B1430; color: #fff; }
.stores--clair .store { background: #fff; color: var(--encre); }
.stores--clair .store:hover { background: var(--soleil); color: var(--encre); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu); }
.logo img { width: 44px; height: 44px; }
.logo__mot { font: 700 1.75rem/1 var(--f-marque); letter-spacing: -.01em; }
.logo:hover { color: var(--bleu-fonce); }
.logo--inverse { color: #fff; }
.logo--inverse:hover { color: #fff; }

/* ---------- En-tête ---------- */
.entete {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 248, 236, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.entete.est-defile { border-bottom-color: var(--ligne); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__liste { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__liste a { color: var(--encre); text-decoration: none; font-weight: 700; font-size: var(--t-s); }
.nav__liste a:hover { color: var(--bleu); }
.nav__actions { display: flex; gap: 10px; }
.nav__bouton { display: none; }

@media (max-width: 1000px) {
	.nav__bouton {
		display: grid; place-items: center; width: 48px; height: 48px;
		background: var(--bleu-clair); border: 0; border-radius: var(--r-m); cursor: pointer;
	}
	.nav__burger, .nav__burger::before, .nav__burger::after {
		display: block; width: 22px; height: 2.5px; background: var(--bleu); border-radius: 2px;
		position: relative; transition: transform .2s ease;
	}
	.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
	.nav__burger::before { top: -7px; }
	.nav__burger::after { top: 7px; }
	[aria-expanded="true"] .nav__burger { background: transparent; }
	[aria-expanded="true"] .nav__burger::before { transform: translateY(7px) rotate(45deg); }
	[aria-expanded="true"] .nav__burger::after { transform: translateY(-7px) rotate(-45deg); }

	.nav {
		position: absolute; inset: 76px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 24px var(--gouttiere) 32px;
		background: var(--creme); border-bottom: 1px solid var(--ligne);
		box-shadow: var(--ombre-flottante);
		display: none;
	}
	.nav.est-ouvert { display: flex; }
	.nav__liste { flex-direction: column; gap: 4px; }
	.nav__liste a { display: block; padding: 10px 0; font-size: var(--t-l); }
	.nav__actions { flex-direction: column; }
}

/* ---------- Signalétique ---------- */
.panneau-bleu {
	background: var(--bleu); color: #fff;
	border-radius: var(--r-l);
	box-shadow: inset 0 0 0 7px var(--bleu), inset 0 0 0 10px #fff;
	padding: clamp(32px, 5vw, 56px);
}
.plaque-sortie {
	display: inline-grid; place-items: center;
	min-width: 2.3em; height: 1.75em; padding: 0 .45em;
	background: var(--bleu); color: #fff;
	border-radius: var(--r-s); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--bleu);
	font: 900 1em/1 var(--f-texte); font-variant-numeric: tabular-nums;
}
.plaque-sortie--grande { font-size: 1.6rem; box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--bleu); }
.plaque-sortie--inverse { font-size: 1.5rem; background: #fff; color: var(--bleu); box-shadow: inset 0 0 0 3px var(--bleu), 0 0 0 3px #fff; margin-bottom: 22px; }

/* ---------- Téléphones (captures de l'app) ---------- */
.telephone {
	margin: 0; flex: none;
	width: min(300px, 70vw);
	padding: 10px; border-radius: 46px;
	background: var(--encre);
	box-shadow: 0 30px 60px -24px rgba(22, 33, 62, .55), inset 0 0 0 2px #2B3658;
}
.telephone img { width: 100%; height: auto; border-radius: 37px; background: var(--creme); }

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(180deg, #3B6BFF 0%, var(--bleu-fonce) 100%);
	color: #fff; padding-top: clamp(40px, 6vw, 80px); overflow: hidden;
}
.hero__grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__bandeau {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--soleil); color: var(--encre);
	padding: 6px 16px 6px 8px; border-radius: 999px;
	font-weight: 900; font-size: var(--t-s); margin-bottom: 24px;
}
.hero__bandeau img { width: 28px; height: 28px; }
a.hero__bandeau { text-decoration: none; transition: transform .15s ease; }
a.hero__bandeau:hover { transform: translateY(-1px); }
.hero__bandeau b { font-weight: 900; }
/* Haut de page en deux diapositives qui alternent (la première seule sans JavaScript) */
.hero__diapos { display: grid; }
.hero__diapo { grid-area: 1 / 1; transition: opacity .7s ease, visibility .7s; }
.hero__diapo:not(.est-actif) { opacity: 0; visibility: hidden; }
.hero__bandeau-icone { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-size: 1rem; line-height: 1; }
.hero__actions { margin: 28px 0 0; }
/* Charte « van » (campagne Instagram) : coucher de soleil, soleil, collines et petit van */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #FF9A5A 0%, #FFC24A 45%, #FFE6AE 100%); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero.est-van::before { opacity: 1; }
.hero > * { position: relative; }
.hero__diapo--van { color: var(--encre); }
.hero__diapo--van .hero__titre { font-family: "Fredoka", var(--f-titre); font-weight: 700; color: var(--bleu); letter-spacing: -.01em; }
.hero__diapo--van .hero__titre em, .van .titre-section em { font-style: normal; color: var(--tuile); }
.hero__diapo--van .hero__intro { color: var(--encre); }
.hero__diapo--van .hero__note { color: var(--encre-douce); }
.hero__diapo--van .hero__bandeau { background: var(--tuile); color: #fff; transform: rotate(-2deg); }
.hero__diapo--van .bouton--soleil { background: var(--bleu); color: #fff; }
.hero__diapo--van .bouton--soleil:hover { background: var(--bleu-fonce); color: #fff; }
.hero.est-van .hero__point { border-color: var(--encre); }
.hero.est-van .hero__point.est-actif { background: var(--tuile); border-color: var(--tuile); }
.hero.est-van .hero__pause { background: rgba(22, 33, 62, .12); color: var(--encre); }
.van-soleil { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #FFE7A8; opacity: .8; right: 4%; top: -10px; z-index: 0; }
.hero__diapo--van .telephone { z-index: 1; }
.hero__diapo--van .telephone--avant { z-index: 2; }
.hero__van { display: block; width: 150px; height: auto; margin-top: 18px; }
.hero__diapo.est-actif .hero__van { animation: van-roule 1.6s cubic-bezier(.2,.8,.3,1) both; }
@keyframes van-roule { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
.van { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFC98A 0%, #FFE3AE 28%, #FFF3D9 60%, var(--creme) 100%); padding-bottom: 0; }
.van .conteneur { position: relative; z-index: 1; }
.van .titre-section { font-family: "Fredoka", var(--f-titre); font-weight: 700; color: var(--bleu); letter-spacing: -.01em; }
.van .surtitre { background: var(--tuile); transform: rotate(-2deg); }
.van .pastilles li { background: #fff; }
.van .atouts-ve__icone { background: var(--soleil-clair, #FFF4D6); }
.van-soleil--section { width: 320px; height: 320px; top: 40px; right: 6%; }
.van-paysage { position: relative; height: clamp(120px, 14vw, 200px); margin-top: clamp(32px, 5vw, 56px); }
.van-paysage svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.van-paysage__van { position: absolute; width: clamp(130px, 14vw, 200px); left: 12%; bottom: 38%; animation: van-cahot 1.2s ease-in-out infinite alternate; }
@keyframes van-cahot { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@media (max-width: 760px) { .van-soleil { width: 180px; height: 180px; } .van-soleil--section { top: 20px; right: -40px; } }
@media (prefers-reduced-motion: reduce) { .hero::before { transition: none; } .hero__diapo.est-actif .hero__van, .van-paysage__van { animation: none; } }
.hero__nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hero__nav[hidden] { display: none; }
.hero__point { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero__point.est-actif { background: var(--soleil); border-color: var(--soleil); width: 30px; border-radius: 999px; }
.hero__pause { margin-left: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 11px; cursor: pointer; }
.hero__point:focus-visible, .hero__pause:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero__diapo { transition: none; } }
.hero__titre { font-size: var(--t-xxl); line-height: 1.02; letter-spacing: -.03em; margin-bottom: .45em; text-wrap: balance; }
.hero__intro { font-size: var(--t-l); line-height: 1.5; color: #E2E9FF; max-width: 34em; margin: 0; }
.hero__note { margin: 16px 0 0; font-size: var(--t-xs); color: #C9D5FF; }

.hero__telephones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 600px; padding-top: 8px; }
.hero__telephones .telephone { width: 270px; }
.telephone--avant { position: relative; z-index: 2; transform: translateX(-70px) rotate(-4deg); }
.telephone--arriere { position: absolute; z-index: 1; right: 0; top: 36px; transform: rotate(7deg); }

.route { margin-top: 0; position: relative; z-index: 3; pointer-events: none; }
.hero__grille { padding-bottom: clamp(24px, 3vw, 40px); }
.route__svg { width: 100%; height: clamp(120px, 13vw, 200px); }
.route__pieces .piece { opacity: 0; animation: piece 1.4s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(3.5s + var(--d)); transform-box: fill-box; transform-origin: center; }
@keyframes piece {
	0% { opacity: 0; transform: translateY(14px) scale(.4); }
	50% { opacity: 1; transform: translateY(-34px) scale(1.1); }
	100% { opacity: 1; transform: translateY(-26px) scale(1); }
}

@media (max-width: 900px) {
	.hero__grille { grid-template-columns: 1fr; }
	.hero__telephones { min-height: 0; padding-top: 12px; }
	.hero__telephones .telephone { width: 220px; }
	.telephone--avant { transform: translateX(-40px) rotate(-4deg); }
	.telephone--arriere { right: 8%; top: 24px; }
}
@media (max-width: 480px) {
	.hero__telephones .telephone { width: 190px; padding: 8px; border-radius: 36px; }
	.hero__telephones .telephone img { border-radius: 29px; }
	.telephone--avant { transform: translateX(-34px) rotate(-4deg); }
	.telephone--arriere { right: 2%; }
}

/* ---------- Constat : tickets ---------- */
.tickets {
	filter: drop-shadow(0 14px 20px rgba(22, 33, 62, .14)) drop-shadow(0 1px 2px rgba(22, 33, 62, .1));
	display: grid; grid-template-columns: repeat(2, minmax(0, 470px)); gap: clamp(24px, 6vw, 72px); align-items: start; padding-top: 12px;
}
.ticket {
	position: relative; background: var(--carte); padding: 30px 30px 44px;
	font-variant-numeric: tabular-nums;
	--dent: 10px;
	-webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--dent) * 2) 100%;
	mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--dent) * 2) 100%;
}
.ticket--aire { transform: rotate(-1.5deg); background: #F4F2EE; color: var(--encre-douce); }
.ticket--village { transform: rotate(1deg) translateY(18px); }
.ticket__titre { font-size: var(--t-l); color: var(--encre); border-bottom: 2px dashed var(--ligne); padding-bottom: 14px; margin-bottom: 14px; }
.ticket__lignes { margin: 0; }
.ticket__lignes div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: var(--t-s); }
.ticket__lignes dd { margin: 0; font-weight: 800; white-space: nowrap; }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed var(--ligne); font: 900 1.6rem/1 var(--f-texte); color: var(--encre); }
.ticket__total span { font-size: var(--t-m); font-weight: 700; }
.ticket__tampon {
	display: block; width: fit-content; margin: 20px 0 0 auto;
	padding: 6px 14px; border-radius: 999px;
	background: var(--vert); color: #fff;
	font: 900 1.4rem/1.1 var(--f-texte); font-variant-numeric: tabular-nums;
	transform: rotate(-4deg);
}
.ticket__tampon small { font-size: .7em; font-weight: 700; }
@media (max-width: 720px) {
	.tickets { grid-template-columns: 1fr; }
	.ticket--village { transform: rotate(1deg); }
}

/* ---------- Étapes ---------- */
.etapes__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); position: relative; }
.etapes__liste::before {
	content: ""; position: absolute; top: 1.4rem; left: 2rem; right: 10%;
	height: 4px; background: repeating-linear-gradient(90deg, var(--bleu) 0 22px, transparent 22px 36px); opacity: .3;
}
.etape { position: relative; }
.etape .plaque-sortie { margin-bottom: 22px; position: relative; }
.etape h3 { font-size: var(--t-l); }
.etape p { color: var(--encre-douce); margin: 0; font-size: var(--t-s); max-width: 34ch; }
@media (max-width: 760px) {
	.etapes__liste { grid-template-columns: 1fr; }
	.etapes__liste::before { top: 2rem; bottom: 2rem; left: 1.5rem; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--bleu) 0 22px, transparent 22px 36px); }
	.etape { padding-left: 76px; }
	.etape .plaque-sortie { position: absolute; left: 0; top: 0; }
}

/* ---------- Fonctions (captures) ---------- */
.fonction { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.fonction + .fonction { margin-top: clamp(56px, 8vw, 104px); }
.fonction .telephone { width: 280px; justify-self: center; }
.fonction--inverse { grid-template-columns: minmax(0, 1fr) auto; }
.fonction--inverse .telephone { order: 2; }
.fonction__texte h3 { font-size: clamp(1.5rem, 2vw + .6rem, 2.1rem); font-weight: 900; letter-spacing: -.02em; }
.fonction__texte p { color: var(--encre-douce); font-size: var(--t-l); line-height: 1.5; max-width: 52ch; }
.puces { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.puces li { position: relative; padding-left: 34px; font-size: var(--t-m); }
.puces li::before {
	content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--vert-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231C7544' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pastilles { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li { background: var(--carte); border: 1.5px solid var(--ligne); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: var(--t-xs); }
@media (max-width: 820px) {
	.fonction, .fonction--inverse { grid-template-columns: 1fr; }
	.fonction--inverse .telephone { order: 0; }
	.fonction .telephone { width: 230px; }
}

/* ---------- Calculateur ---------- */
.calcul__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.calcul__form { display: grid; gap: 22px; margin-top: 12px; }
.champ label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: var(--t-s); margin-bottom: 8px; }
.champ output { font-weight: 900; color: var(--bleu); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--bleu) var(--p, 50%), var(--ligne) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--ligne); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--bleu); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--soleil); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(22, 33, 62, .3); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--soleil); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(22, 33, 62, .3); }

.compteur {
	position: sticky; top: 100px;
	background: var(--vert); color: #fff;
	border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px);
	box-shadow: var(--ombre-flottante);
}
.compteur__libelle { color: #fff; font-weight: 700; margin: 0 0 6px; }
.compteur__valeur { font: 900 clamp(3rem, 7vw, 4.8rem)/1 var(--f-texte); letter-spacing: -.03em; margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.compteur__valeur.est-negatif { color: var(--soleil-clair); }
.compteur__detail { margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
.compteur__detail div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: var(--t-s); }
.compteur__detail dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.compteur__annee { margin: 20px 0 6px; color: #fff; font-size: var(--t-s); }
.compteur__annee b { color: #fff; }
.compteur__note { margin: 0; font-size: var(--t-xs); color: #fff; opacity: 1; }
@media (max-width: 860px) {
	.calcul__grille { grid-template-columns: 1fr; }
	.compteur { position: static; }
}

/* ---------- Cagnotte et badges ---------- */
.carnet-app__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.badge {
	display: grid; justify-items: center; text-align: center; gap: 4px;
	background: var(--carte); border-radius: var(--r-l); padding: 22px 14px 18px;
	box-shadow: var(--ombre);
}
.badge__emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.badge b { font-weight: 800; font-size: var(--t-s); line-height: 1.2; }
.badge small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.badge .badge__seuil { color: var(--bleu); font-weight: 700; margin-top: 2px; }
@media (max-width: 860px) { .carnet-app__grille { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Chiffres : panneau de direction ---------- */
.chiffres__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.panneau-direction {
	background: var(--bleu); color: #fff;
	border-radius: var(--r-l);
	box-shadow: inset 0 0 0 7px var(--bleu), inset 0 0 0 10px #fff, 0 24px 40px -24px rgba(30, 63, 184, .6);
	padding: 30px 40px;
}
.panneau-direction div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 10px 0; }
.panneau-direction span { font: 700 clamp(1.05rem, 2vw, 1.4rem)/1.2 var(--f-texte); }
.panneau-direction b { font: 900 clamp(1.6rem, 3vw, 2.3rem)/1 var(--f-texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) { .chiffres__grille { grid-template-columns: 1fr; } .panneau-direction { padding: 24px 26px; } }

/* ---------- Bêta ---------- */
.beta__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.beta__form { background: var(--carte); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombre); }
@media (max-width: 860px) { .beta__grille { grid-template-columns: 1fr; } }

/* ---------- Formulaires (partagés avec l'espace membre) ---------- */
.form-ligne { display: grid; gap: 6px; margin-bottom: 16px; }
.form-ligne label { font-weight: 700; font-size: var(--t-s); }
.form-ligne input[type="email"], .form-ligne input[type="text"], .form-ligne input[type="password"] {
	width: 100%; min-height: 52px; padding: 12px 16px;
	font: 500 var(--t-m) var(--f-texte); color: var(--encre);
	background: var(--carte); border: 2px solid var(--ligne); border-radius: var(--r-m);
}
.form-ligne input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(36, 72, 200, .18); }
.form-case { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); color: var(--encre-douce); margin-bottom: 18px; }
.form-case input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--bleu); }
.form-choix { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.form-choix legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: var(--t-xs); }
.form-choix .form-case { margin-bottom: 0; align-items: center; font-size: var(--t-s, 1rem); color: var(--encre); }
.form-choix .form-case input { margin-top: 0; }
.avis { padding: 14px 18px; border-radius: var(--r-m); margin-bottom: 18px; font-weight: 700; font-size: var(--t-s); }
.avis--ok { background: var(--vert-clair); color: var(--vert-fonce); }
.avis--erreur { background: var(--tuile-clair); color: #8F2F18; }
.choix-plateforme { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.choix-plateforme legend { font-weight: 700; font-size: var(--t-s); margin-bottom: 6px; padding: 0; }
.choix-plateforme label { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); }
.choix-plateforme input { width: 18px; height: 18px; accent-color: var(--bleu); }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.testeurs-places { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--soleil); color: var(--encre); font-weight: 700; font-size: var(--t-s); }

/* ---------- FAQ ---------- */
.faq .titre-section { margin-bottom: 32px; }
.faq__item { background: var(--carte); border-radius: var(--r-l); margin-bottom: 12px; box-shadow: var(--ombre); }
.faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 24px; font: 800 var(--t-l)/1.3 var(--f-texte);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
	background:
		linear-gradient(var(--bleu), var(--bleu)) center / 14px 2.5px no-repeat,
		linear-gradient(var(--bleu), var(--bleu)) center / 2.5px 14px no-repeat,
		var(--bleu-clair);
	transition: transform .2s ease;
}
.faq__item[open] summary::after {
	transform: rotate(45deg);
	background:
		linear-gradient(#fff, #fff) center / 14px 2.5px no-repeat,
		linear-gradient(#fff, #fff) center / 2.5px 14px no-repeat,
		var(--bleu);
}
.faq__item p { padding: 0 24px 22px; margin: 0; color: var(--encre-douce); max-width: 64ch; }

/* ---------- Carnet de route (articles) ---------- */
.cartes-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.carte-article__lien { display: block; text-decoration: none; color: inherit; }
.carte-article__visuel { aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--bleu); display: grid; place-items: center; margin-bottom: 16px; position: relative; }
.carte-article:nth-child(3n+2) .carte-article__visuel { background: var(--vert); }
.carte-article:nth-child(3n) .carte-article__visuel { background: var(--tuile); }
.carte-article__visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte-article__plaque { color: #fff; font: 900 var(--t-l)/1.2 var(--f-texte); padding: 10px 18px; border: 3px solid #fff; border-radius: var(--r-s); }
.carte-article time { font-size: var(--t-xs); color: var(--muted); }
.carte-article h3 { font-size: var(--t-l); margin: 4px 0 8px; }
.carte-article p { font-size: var(--t-s); color: var(--encre-douce); margin: 0; }
.carte-article__lien:hover h3 { color: var(--bleu); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 900px) { .cartes-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cartes-articles { grid-template-columns: 1fr; } }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--bleu-clair); text-decoration: none; font-weight: 800; }
.pagination .current { background: var(--bleu); color: #fff; }

/* ---------- Final ---------- */
.final { padding-block: var(--section); }
.final__panneau { text-align: center; padding-block: clamp(48px, 7vw, 88px); }
.final__titre { font-size: var(--t-xl); max-width: 16em; margin-inline: auto; text-wrap: balance; }
.final .stores { justify-content: center; }

/* ---------- Pages intérieures ---------- */
.page-tete { background: var(--bleu-clair); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.page-tete__titre { font-size: var(--t-xl); max-width: 22em; }
.page-tete__meta { display: flex; align-items: center; gap: 14px; font-size: var(--t-xs); color: var(--encre-douce); margin-bottom: 16px; }
.plaque-cat { background: var(--bleu); color: #fff; text-decoration: none; padding: 4px 12px; border-radius: 999px; font-weight: 800; }
.plaque-cat:hover { color: #fff; background: var(--bleu-fonce); }
.section--page { padding-top: clamp(40px, 6vw, 64px); }
.page-tete--404 { background: var(--creme); padding-block: var(--section); }
.panneau-404 { max-width: 760px; }
.panneau-404 .hero__sortie { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #DCE6FF; margin-bottom: 18px; }
.panneau-404 .plaque-sortie { background: #fff; color: var(--bleu); }
.panneau-404 p { color: #E2E9FF; }

.texte > * { max-width: 70ch; }
.texte h2 { font-size: 1.75rem; margin-top: 1.8em; }
.texte h3 { font-size: 1.3rem; margin-top: 1.6em; }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li { margin-bottom: .4em; }
.texte blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--soleil); font-size: var(--t-l); color: var(--encre); }
.texte table { width: 100%; border-collapse: collapse; font-size: var(--t-s); background: var(--carte); border-radius: var(--r-m); overflow: hidden; }
.texte th, .texte td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.texte th { background: var(--bleu-clair); }
.texte__une { border-radius: var(--r-l); margin-bottom: 32px; }
.encart-app { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--soleil-clair); border-radius: var(--r-l); padding: 22px 26px; margin: 48px 0; }
.encart-app p { margin: 0; font: 800 var(--t-l)/1.3 var(--f-texte); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 800; font-size: var(--t-s); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #C3C8D8; position: relative; }
.pied__route { height: 12px; background: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 78px) center / auto 4px no-repeat, #0E1630; }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.pied__marque p { margin: 16px 0 0; max-width: 28ch; }
.pied__titre { font: 800 var(--t-s)/1.3 var(--f-texte); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 10px; }
.pied a { color: #C3C8D8; text-decoration: none; font-size: var(--t-s); }
.pied a:hover { color: var(--soleil); }
.pied .store { background: #24305A; color: #fff; }
.pied .store:hover { background: #2E3B6B; color: #fff; }
.pied .reseaux { display: flex; gap: 12px; margin-top: 20px; }
.pied .reseaux li { margin: 0; }
.pied .reseau { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #24305A; color: #fff; transition: background .15s, color .15s, transform .15s; }
.pied .reseau svg { width: 22px; height: 22px; }
.pied .reseau:hover, .pied .reseau:focus-visible { background: var(--soleil); color: var(--encre); transform: translateY(-2px); }
.pied__bas { padding-block: 0 32px; font-size: var(--t-xs); }
.pied__bas p { margin: 0; padding-top: 22px; border-top: 1px solid #2B3658; }
.pied__bas p + p { border-top: 0; padding-top: 8px; opacity: .8; }
.pied__copyright a { color: inherit; text-decoration: underline; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__marque { grid-column: 1 / -1; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Recharge électrique */
.atouts-ve { list-style: none; padding: 0; margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.atouts-ve li { background: var(--carte); border-radius: var(--r-l); padding: 26px; box-shadow: 0 10px 24px rgba(22, 33, 62, .07); }
.atouts-ve h3 { font-size: var(--t-l); margin: 10px 0 8px; }
.atouts-ve p { margin: 0; color: var(--encre-douce); font-size: var(--t-s); line-height: 1.55; }
.atouts-ve__icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--vert-clair); font-size: 1.5rem; }
@media (max-width: 900px) { .atouts-ve { grid-template-columns: 1fr; } }

/* ---------- Bouton « bientôt » (App Store) ---------- */
.store--bientot { opacity: .82; }
.store--bientot small { font-weight: 700; }

/* ---------- Formulaire de contact ---------- */
.form-ligne select, .form-ligne textarea {
	width: 100%; padding: 12px 16px;
	font: 500 var(--t-m) var(--f-texte); color: var(--encre);
	background: var(--carte); border: 2px solid var(--ligne); border-radius: var(--r-m);
}
.form-ligne select { min-height: 52px; }
.form-ligne textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.form-ligne select:focus, .form-ligne textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(36, 72, 200, .18); }
.form-contact { background: var(--carte); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 36px); box-shadow: var(--ombre); margin-top: 16px; }
.form-info { font-size: var(--t-xs); color: var(--muted); }
.texte mark { background: var(--soleil); padding: 0 4px; border-radius: 4px; }
