/* tuning.css : home « le compteur qui conseille ». Couleurs, polices et rayons : variables de global.css
   (--primary, --accent, --muted, --border…) et jetons de la charte (--r-bouton). Aucune couleur littérale. */

.bh-4784-home.tn-home {
  --tn-encre: hsl(var(--foreground));
  --tn-gris: hsl(var(--muted-foreground));
  --tn-acc: hsl(var(--primary));
  --tn-acc-fonce: hsl(var(--accent-foreground));
  --tn-doux: hsl(var(--accent));
  --tn-fond: hsl(var(--background));
  --tn-fond-2: hsl(var(--muted));
  --tn-bord: hsl(var(--border));
  --tn-titre: var(--font-lexend);
  --tn-texte: var(--font-sans);
  --tn-r: .5rem;
  --tn-ombre: 0 28px 56px -28px hsl(var(--foreground) / .38);
  font-family: var(--tn-texte); color: var(--tn-encre); background: var(--tn-fond);
  font-size: 1.0625rem; line-height: 1.6;
}
.tn-home h1, .tn-home h2, .tn-home h3 { font-family: var(--tn-titre); color: var(--tn-encre); margin: 0; }
.tn-home ul, .tn-home ol, .tn-home dl, .tn-home dd, .tn-home figure { margin: 0; padding: 0; }
.tn-home ul, .tn-home ol { list-style: none; }
.tn-home img { max-width: 100%; display: block; }
.tn-int { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.tn-fl { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
a:hover > .tn-fl { transform: translateX(3px); }

/* ─── grammaire commune : pastille, titres, carte, étiquette, lien ─── */
.tn-kicker {
  display: inline-flex; align-items: center; gap: .55rem; padding: .32rem .85rem .32rem .6rem;
  border: 1px solid hsl(var(--tag-border)); border-radius: 999px; background: var(--tn-fond);
  font-size: .8125rem; font-weight: 600; color: var(--tn-acc-fonce); line-height: 1.3;
}
.tn-kicker i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tn-acc); box-shadow: 0 0 0 3px hsl(var(--primary) / .16); }
.tn-tete { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.tn-h2 {
  margin-top: 1.1rem !important; font-weight: 700; letter-spacing: -.022em; line-height: 1.1;
  font-size: clamp(1.9rem, 1.15rem + 2.3vw, 2.8rem); text-wrap: balance;
}
.tn-h2 em, .tn-h1 em { font-style: normal; color: var(--tn-acc); }
.tn-intro { margin-top: 1rem !important; font-size: 1.125rem; line-height: 1.6; color: var(--tn-gris); max-width: 40rem; }
.tn-sec { padding-block: clamp(4.5rem, 8vw, 6.75rem); border-top: 1px solid var(--tn-bord); background: var(--tn-fond); }
.tn-sec-doux { background: var(--tn-fond-2); }
.tn-carte { background: var(--tn-fond); border: 1px solid var(--tn-bord); border-radius: var(--tn-r); }
.tn-carte-titre { font-family: var(--tn-titre); font-weight: 600; font-size: 1.125rem; color: var(--tn-encre); margin-bottom: 1.1rem !important; }
.tn-etiq {
  display: inline-block; padding: .22rem .6rem; border-radius: .375rem; border: 1px solid hsl(var(--tag-border));
  background: hsl(var(--tag-bg)); color: var(--tn-acc-fonce); font-size: .78rem; font-weight: 600; line-height: 1.35;
}
.bh-4784-home.tn-home a.tn-lien, .bh-4784-home.tn-home .tn-lien {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--tn-acc-fonce) !important;
  text-decoration: underline; text-decoration-color: hsl(var(--primary) / .3); text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.bh-4784-home.tn-home a.tn-lien:hover { text-decoration-color: currentColor; }
.bh-4784-home.tn-home .bh-4784-bouton { min-height: 48px; padding: .7em 1.3em; border-radius: var(--r-bouton); }
.bh-4784-home.tn-home .bh-4784-bouton.tn-bouton-2 {
  background: var(--tn-fond) !important; color: var(--tn-acc-fonce) !important; border: 1px solid var(--tn-bord);
}
.bh-4784-home.tn-home .bh-4784-bouton.tn-bouton-2:hover { border-color: var(--tn-acc); }

/* ─── hero : le compteur qui conseille ─── */
.tn-hero { background: var(--tn-fond); padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.tn-hero-grille { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.tn-hero-texte { min-width: 0; }
.tn-h1 {
  margin-top: 1.25rem !important; font-family: 'Outfit', var(--tn-titre) !important; font-weight: 700;
  font-size: clamp(2.45rem, 1.3rem + 3.3vw, 3.6rem); line-height: 1.04; letter-spacing: -.028em; text-wrap: balance;
}
.tn-h1 em { white-space: nowrap; background: linear-gradient(transparent 70%, var(--tn-doux) 70% 94%, transparent 94%); }
.tn-chapeau { margin: 1.4rem 0 2rem !important; font-size: 1.1875rem; line-height: 1.6; color: var(--tn-gris); max-width: 33rem; }
.tn-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.tn-reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem !important; padding-top: 1.4rem; border-top: 1px solid var(--tn-bord); max-width: 33rem; }
.tn-reperes > div { padding-inline: 1.25rem; border-left: 1px solid var(--tn-bord); }
.tn-reperes > div:first-child { padding-left: 0; border-left: 0; }
.tn-reperes dt { font-family: var(--tn-titre); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tn-reperes dd { margin-top: .4rem; font-size: .9375rem; color: var(--tn-gris); line-height: 1.35; }

.tn-scene { position: relative; min-width: 0; padding: 0 2.5rem 2.5rem 0; }
.tn-scene-photo { position: relative; aspect-ratio: 1 / 1; border-radius: .75rem; overflow: hidden; background: var(--tn-fond-2); }
.tn-scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 29% 50%; }
.tn-scene-photo img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .tn-scene-photo:hover img { transform: scale(1.035); } .tn-scene-photo:hover { cursor: ew-resize; } }
.tn-afficheur {
  position: absolute; left: 19.4%; top: 68.6%; width: 29.4%; height: 14.6%; border-radius: .45rem;
  border: 2px solid hsl(var(--background)); box-shadow: 0 0 0 4px hsl(var(--primary) / .55);
}
.tn-legende {
  position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .8rem .38rem .65rem; border-radius: 999px; background: hsl(var(--background) / .94);
  font-size: .8125rem; font-weight: 600; color: var(--tn-encre); line-height: 1.2;
}
.tn-legende::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tn-acc); }
.tn-fiche {
  position: absolute; right: 0; bottom: 0; width: min(264px, 56%);
  padding: 1.15rem 1.2rem 1.1rem; background: var(--tn-fond); border: 1px solid var(--tn-bord); border-radius: .75rem; box-shadow: var(--tn-ombre);
}
.tn-fiche-titre { font-size: .8125rem; font-weight: 600; color: var(--tn-gris); }
.tn-fiche-km { margin-top: .15rem !important; font-size: .9375rem; color: var(--tn-gris); font-weight: 500; }
.tn-fiche-km b { font-family: var(--tn-titre); font-weight: 700; font-size: 2.15rem; letter-spacing: -.02em; color: var(--tn-encre); font-variant-numeric: tabular-nums; margin-right: .2rem; }
.tn-piste { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: .7rem 0 .9rem; padding-top: 14px; }
.tn-piste-barre { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--tn-fond-2); overflow: hidden; }
.tn-piste-plein { position: absolute; inset: 0 auto 0 0; width: var(--tn-p, 56%); background: var(--tn-acc); border-radius: 3px; transition: width .9s cubic-bezier(.5, 0, .2, 1); }
.tn-piste button {
  font: inherit; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  padding: .32rem .2rem; border-radius: .375rem; border: 1px solid var(--tn-bord); background: var(--tn-fond); color: var(--tn-gris);
  transition: background .25s, color .25s, border-color .25s;
}
.tn-piste button[aria-pressed="true"] { background: var(--tn-doux); border-color: hsl(var(--primary) / .35); color: var(--tn-acc-fonce); }
.tn-verdict dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--tn-bord); }
.tn-verdict dt { font-size: .75rem; color: var(--tn-gris); font-weight: 600; }
.tn-verdict dd { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.tn-verdict-chiffre { margin: .75rem 0 .7rem !important; font-size: .875rem; line-height: 1.45; color: var(--tn-gris); }
.tn-verdict-chiffre strong { font-family: var(--tn-titre); font-size: 1.05rem; color: var(--tn-acc); }
.tn-verdict .tn-lien { font-size: .9375rem; }
.tn-js .tn-verdict.tn-entre { animation: tn-entre .5s ease both; }
@keyframes tn-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tn-js .tn-compteur.tn-actif .tn-afficheur { animation: tn-pouls 2.4s ease-in-out infinite; }
@keyframes tn-pouls { 50% { box-shadow: 0 0 0 9px hsl(var(--primary) / .18); } }

/* ─── parcours en cinq décisions ─── */
.tn-etapes { position: relative; }
.tn-etapes::before, .tn-etapes::after { content: ""; position: absolute; left: .6rem; top: 2.2rem; width: 2px; border-radius: 1px; }
.tn-etapes::before { bottom: 2.2rem; background: var(--tn-bord); }
.tn-etapes::after { height: var(--tn-rail, 0px); background: var(--tn-acc); transition: height .8s cubic-bezier(.5, 0, .2, 1); }
.tn-etape {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 1.5rem 3rem;
  padding: 1.75rem 0 1.75rem 2.75rem; border-top: 1px solid var(--tn-bord);
}
.tn-etape:last-child { border-bottom: 1px solid var(--tn-bord); }
.tn-etape::before {
  content: ""; position: absolute; left: .15rem; top: 2.05rem; width: 1rem; height: 1rem; border-radius: 50%; z-index: 1;
  background: var(--tn-fond); border: 2px solid var(--tn-bord); transition: background .4s, border-color .4s, box-shadow .4s;
}
.tn-etape.tn-passe::before { background: var(--tn-acc); border-color: var(--tn-acc); }
.tn-etape.tn-ici::before { background: var(--tn-acc); border-color: var(--tn-acc); box-shadow: 0 0 0 6px hsl(var(--primary) / .16); }
.tn-etape-num { font-size: .8125rem; font-weight: 700; color: var(--tn-acc); letter-spacing: .02em; }
.tn-etape h3 { margin-top: .3rem !important; font-weight: 600; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
.tn-etape-repere { margin-top: .55rem !important; font-size: .975rem; color: var(--tn-gris); line-height: 1.5; max-width: 30rem; }
.tn-etape-repere strong { color: var(--tn-encre); font-weight: 700; }
.bh-4784-home.tn-home a.tn-rub {
  display: inline-flex; margin-top: .9rem; padding: .3rem .7rem; border-radius: .375rem; font-size: .8125rem; font-weight: 600;
  background: hsl(var(--tag-bg)); border: 1px solid hsl(var(--tag-border)); color: var(--tn-acc-fonce) !important; text-decoration: none;
}
.bh-4784-home.tn-home a.tn-rub:hover { background: hsl(var(--tag-bg-hover)); }
.tn-etape-guides { display: grid; gap: .5rem; align-content: start; }
.bh-4784-home.tn-home .tn-etape-guides a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .72rem .95rem;
  border: 1px solid var(--tn-bord); border-radius: var(--tn-r); background: var(--tn-fond); text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
}
.tn-etape-guides span { font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--tn-encre); }
.tn-etape-guides small { flex: none; font-size: .8125rem; color: var(--tn-gris); font-variant-numeric: tabular-nums; }
.bh-4784-home.tn-home .tn-etape-guides a:hover, .tn-etape.tn-ici .tn-etape-guides li:first-child a { border-color: hsl(var(--primary) / .45); }
.bh-4784-home.tn-home .tn-etape-guides a:hover { transform: translateX(4px); }

/* ─── profils en onglets ─── */
.tn-onglets-liste { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border: 1px solid var(--tn-bord); border-radius: .65rem; background: var(--tn-fond); }
.tn-onglets-liste button {
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; padding: .55rem 1.1rem; border: 0; border-radius: .45rem;
  background: transparent; color: var(--tn-gris); transition: background .25s, color .25s;
}
.tn-onglets-liste button:hover { color: var(--tn-encre); }
.tn-onglets-liste button[aria-selected="true"] { background: var(--tn-acc); color: hsl(var(--primary-foreground)); }
.tn-panneau {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 1.25rem; overflow: hidden;
  background: var(--tn-fond); border: 1px solid var(--tn-bord); border-radius: .75rem;
}
.tn-panneau[hidden] { display: none; }
.tn-js .tn-panneau.tn-entre { animation: tn-entre .55s ease both; }
.tn-panneau-photo { min-height: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tn-panneau-photo img { width: 100%; height: 100%; object-fit: cover; }
.tn-panneau-fiche { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.tn-panneau-fiche h3 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.012em; }
.tn-crit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 1.4rem !important; }
.tn-crit > div { padding-top: .7rem; border-top: 1px solid var(--tn-bord); }
.tn-crit dt { font-size: .8125rem; color: var(--tn-gris); font-weight: 600; }
.tn-crit dd { margin-top: .15rem; font-family: var(--tn-titre); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.tn-panneau-guides { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .45rem; }
.bh-4784-home.tn-home .tn-panneau-guides a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--tn-bord);
  font-weight: 600; color: var(--tn-acc-fonce) !important; text-decoration: none; line-height: 1.35;
}
.tn-panneau-guides a::after { content: "→"; flex: none; transition: transform .2s; }
.tn-panneau-guides a:hover::after { transform: translateX(4px); }

/* ─── à la une ─── */
.tn-une-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.tn-une-table { padding: 1.6rem 1.6rem 1.4rem; }
.tn-une h3 { margin-top: .8rem !important; font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.tn-une h3 a { text-decoration: none; }
.tn-une h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tn-une-table > p { margin-top: .5rem !important; color: var(--tn-gris); font-size: .9375rem; }
.tn-mini { width: 100%; margin-top: 1.1rem; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.tn-mini th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--tn-gris); padding: 0 .4rem .45rem 0; }
.tn-mini td { padding: .6rem .4rem .6rem 0; border-top: 1px solid var(--tn-bord); vertical-align: middle; line-height: 1.3; }
.tn-mini td:nth-child(2), .tn-mini td:nth-child(3) { white-space: nowrap; }
.tn-oui, .tn-non { display: inline-block; padding: .15rem .5rem; border-radius: .35rem; font-size: .75rem; font-weight: 700; }
.tn-oui { background: var(--tn-doux); color: var(--tn-acc-fonce); }
.tn-non { background: var(--tn-encre); color: var(--tn-fond); }
.tn-carte-photo { overflow: hidden; display: flex; flex-direction: column; }
.tn-carte-photo > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tn-carte-corps { padding: 1.25rem 1.4rem 1.5rem; }
.tn-carte-chiffre { margin-top: .75rem !important; color: var(--tn-gris); font-size: .9375rem; line-height: 1.5; }
.tn-carte-chiffre strong { font-family: var(--tn-titre); font-size: 1.25rem; color: var(--tn-acc); }
.tn-prix { margin-top: 1rem !important; display: grid; gap: .5rem; }
.tn-prix li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) 4.6rem; gap: .6rem; align-items: center; font-size: .8125rem; }
.tn-prix span { color: var(--tn-gris); font-weight: 600; }
.tn-prix b { height: 8px; border-radius: 4px; background: var(--tn-acc); width: calc(var(--v) * 100%); transform-origin: left; transition: transform 1s cubic-bezier(.5, 0, .2, 1); }
.tn-prix em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ─── électrique : jauges + calculateur ─── */
.tn-elec-grille { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.tn-jauges { display: flex; flex-direction: column; }
.tn-jauges ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tn-jauges li { flex: 1; }
.tn-jauges, .tn-calcul { padding: 1.6rem 1.6rem 1.5rem; }
.tn-jauges li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 6.6rem; gap: .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--tn-bord); }
.tn-j-lib { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.tn-j-val { font-size: .875rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-j-barre, .tn-t-barre { position: relative; display: block; height: 12px; border-radius: 6px; background: var(--tn-fond-2); }
.tn-j-barre::after { content: ""; position: absolute; left: 91.3%; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--tn-encre); opacity: .55; }
.tn-j-barre b, .tn-t-barre b {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--b) * 100%); border-radius: 6px; transform-origin: left;
  background: linear-gradient(90deg, var(--tn-acc) 0 calc(var(--a) / var(--b) * 100%), hsl(var(--primary) / .35) 0);
  transition: transform 1.1s cubic-bezier(.5, 0, .2, 1);
}
.tn-jauges li:nth-child(2) b, .tn-trousse li:nth-child(2) b { transition-delay: .1s; }
.tn-jauges li:nth-child(3) b, .tn-trousse li:nth-child(3) b { transition-delay: .2s; }
.tn-jauges li:nth-child(4) b, .tn-trousse li:nth-child(4) b { transition-delay: .3s; }
.tn-jauges li:nth-child(5) b, .tn-trousse li:nth-child(5) b { transition-delay: .4s; }
.tn-j-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem !important; font-size: .875rem; color: var(--tn-gris); }
.tn-j-note i { width: 2px; height: 1rem; background: var(--tn-encre); opacity: .55; }
.tn-calcul-champs { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.tn-calcul label { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--tn-gris); }
.tn-calcul input {
  width: 100%; min-width: 0; font: inherit; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tn-encre);
  padding: .5rem .65rem; border: 1px solid var(--tn-bord); border-radius: .375rem; background: var(--tn-fond);
}
.tn-calcul input:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
.tn-calcul-resultat { margin-top: 1.25rem; padding: 1.1rem 1.2rem 1rem; border-radius: var(--tn-r); background: var(--tn-doux); color: var(--tn-acc-fonce); }
.tn-calcul-resultat > p:first-child { font-family: var(--tn-titre); font-weight: 700; line-height: 1; }
.tn-calcul-resultat output[data-tn-ans] { font-size: 2.8rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tn-calcul-resultat > p:first-child span { font-size: 1.25rem; margin-left: .2rem; }
.tn-calcul-detail { margin-top: .35rem !important; font-size: .9375rem; }
.tn-calcul-jauge { position: relative; display: block; height: 8px; margin-top: .9rem; border-radius: 4px; background: var(--tn-fond); overflow: hidden; }
.tn-calcul-jauge b { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--tn-acc); border-radius: 4px; transition: width .6s ease; }
.tn-calcul-echelle { display: flex; justify-content: space-between; margin-top: .35rem !important; font-size: .75rem; font-variant-numeric: tabular-nums; }
.tn-calcul-note { margin-top: .8rem !important; font-size: .8125rem; color: var(--tn-gris); }

/* ─── duel SUV / berline ─── */
.tn-duel-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem; align-items: stretch; }
.tn-duel-photo { border-radius: .75rem; overflow: hidden; min-height: 100%; aspect-ratio: 4 / 3; }
.tn-duel-photo img { width: 100%; height: 100%; object-fit: cover; }
.tn-duel-fiche { padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column; }
.tn-bascule { display: inline-flex; align-self: flex-start; gap: .25rem; padding: .25rem; border-radius: .55rem; background: var(--tn-fond-2); }
.tn-bascule button {
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; padding: .45rem .9rem; border: 0; border-radius: .4rem;
  background: transparent; color: var(--tn-gris); transition: background .25s, color .25s;
}
.tn-bascule button[aria-pressed="true"] { background: var(--tn-fond); color: var(--tn-encre); box-shadow: 0 1px 3px hsl(var(--foreground) / .12); }
.tn-duel-leg { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.2rem 0 .3rem !important; font-size: .8125rem; font-weight: 600; color: var(--tn-gris); }
.tn-duel-leg span { display: inline-flex; align-items: center; gap: .45rem; }
.tn-duel-leg span::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px; }
.tn-l-berline::before { background: var(--tn-gris); }
.tn-l-suv::before { background: var(--tn-acc); }
.tn-duel-lignes li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--tn-bord); }
.tn-d-lib { font-weight: 600; font-size: .9375rem; }
.tn-d-barres { display: grid; gap: 5px; }
.tn-d-barres b {
  display: flex; justify-content: flex-end; align-items: center; height: 24px; min-width: 3rem; border-radius: 4px; padding-right: .5rem;
  width: calc(var(--v) * 100%); transform-origin: left; transition: width .7s cubic-bezier(.5, 0, .2, 1), transform 1s cubic-bezier(.5, 0, .2, 1);
}
.tn-d-barres i { font-style: normal; font-size: .8125rem; font-weight: 700; color: hsl(var(--background)); font-variant-numeric: tabular-nums; }
.tn-b-berline { background: var(--tn-gris); }
.tn-b-suv { background: var(--tn-acc); }
.tn-duel-verdict { margin: 1rem 0 .9rem !important; padding-top: 1rem; border-top: 1px solid var(--tn-bord); font-size: .9375rem; color: var(--tn-gris); }
.tn-duel-verdict strong { color: var(--tn-encre); }
.tn-duel-fiche .tn-lien { margin-top: auto; }

/* ─── essai : dix points à cocher ─── */
.tn-essai-grille { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.tn-essai-cote { position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); }
.tn-essai-photo { aspect-ratio: 1 / 1; border-radius: .75rem; overflow: hidden; }
.tn-essai-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.tn-essai-score { margin-top: 1rem; padding: 1.2rem 1.3rem 1.3rem; background: var(--tn-fond); border: 1px solid var(--tn-bord); border-radius: var(--tn-r); }
.tn-essai-score > p { font-family: var(--tn-titre); font-weight: 700; font-size: 1.25rem; color: var(--tn-gris); }
.tn-essai-score b { font-size: 2.6rem; letter-spacing: -.02em; color: var(--tn-acc); font-variant-numeric: tabular-nums; }
.tn-essai-score span { font-family: var(--tn-texte); font-weight: 600; font-size: .9375rem; margin-left: .3rem; }
.tn-essai-jauge { position: relative; display: block; height: 8px; margin: .7rem 0 1.1rem; border-radius: 4px; background: var(--tn-fond-2); overflow: hidden; }
.tn-essai-jauge b { position: absolute; inset: 0 auto 0 0; width: var(--tn-e, 0%); background: var(--tn-acc); border-radius: 4px; transition: width .45s ease; }
.tn-essai-liste { display: grid; gap: .5rem; counter-reset: tn-p; }
.tn-essai-liste li { counter-increment: tn-p; }
.tn-essai-liste label {
  display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) minmax(0, 1.25fr); gap: .3rem 1rem; align-items: center; cursor: pointer;
  padding: .85rem 1.1rem; border: 1px solid var(--tn-bord); border-radius: var(--tn-r); background: var(--tn-fond);
  transition: border-color .25s, background .25s;
}
.tn-essai-liste input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: hsl(var(--primary)); cursor: pointer; }
.tn-e-point { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.tn-e-point::before { content: counter(tn-p) ". "; color: var(--tn-gris); font-variant-numeric: tabular-nums; }
.tn-e-alerte { font-size: .875rem; color: var(--tn-gris); line-height: 1.4; transition: color .25s; }
.tn-essai-liste label:has(input:checked) { border-color: hsl(var(--primary) / .5); background: var(--tn-doux); }
.tn-essai-liste label:has(input:checked) .tn-e-alerte { color: var(--tn-acc-fonce); }
.tn-essai-liste label:hover { border-color: hsl(var(--primary) / .5); }

/* ─── au volant : trousse + éco-conduite ─── */
.tn-volant-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.tn-trousse { padding: 1.6rem 1.6rem 1.4rem; }
.tn-trousse li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 5.6rem; gap: .9rem; align-items: center; padding: .62rem 0; border-top: 1px solid var(--tn-bord); font-size: .9375rem; }
.tn-trousse li > span:first-child { font-weight: 600; }
.tn-trousse em { font-style: normal; font-weight: 700; font-size: .875rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-trousse-total { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1rem !important; padding-top: 1rem; border-top: 1px solid var(--tn-bord); font-size: .9375rem; color: var(--tn-gris); }
.tn-trousse-total strong { color: var(--tn-encre); font-family: var(--tn-titre); font-size: 1.125rem; }
.tn-eco { overflow: hidden; display: flex; flex-direction: column; }
.tn-eco > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tn-eco .tn-carte-corps { display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.tn-eco-chiffre { font-size: 1rem; color: var(--tn-gris); font-weight: 600; }
.tn-eco-chiffre strong { display: block; font-family: var(--tn-titre); font-size: 2.3rem; line-height: 1.05; letter-spacing: -.02em; color: var(--tn-acc); }
.tn-eco-leviers { display: grid; gap: .45rem; }
.tn-eco-leviers li { position: relative; padding-left: 1.3rem; font-size: .9375rem; color: var(--tn-gris); line-height: 1.45; }
.tn-eco-leviers li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--tn-acc); }
.tn-eco-leviers b { color: var(--tn-encre); }
.tn-eco .tn-lien { margin-top: auto; }

/* ─── lexique + questions ─── */
.tn-lex-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 3rem; align-items: start; }
.tn-decodeur { padding: 1.6rem 1.6rem 1.4rem; }
.tn-annonce { padding: 1.1rem 1.2rem; border-radius: var(--tn-r); background: var(--tn-fond-2); font-size: 1.0625rem; line-height: 1.9; color: var(--tn-encre); }
.tn-nowrap { white-space: nowrap; }
.tn-nowrap button { margin-right: -.2rem; }
.tn-annonce button {
  display: inline; font: inherit; font-weight: 600; color: var(--tn-acc-fonce); background: transparent; border: 0; padding: 0 .2rem; margin: 0 -.05rem;
  border-radius: 4px; cursor: pointer; text-decoration: underline; text-decoration-color: hsl(var(--primary) / .45);
  text-decoration-thickness: 2px; text-underline-offset: 4px; transition: background-color .25s ease, color .25s ease;
}
.tn-annonce button[aria-pressed="true"] { background: var(--tn-acc); color: hsl(var(--primary-foreground)); text-decoration-color: transparent; }
.tn-annonce button:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.tn-lex { display: grid; gap: .5rem; margin-top: 1.1rem !important; }
.tn-lex > div { padding: .8rem 1.1rem; border: 1px solid var(--tn-bord); border-left: 3px solid var(--tn-bord); border-radius: var(--tn-r); background: var(--tn-fond); transition: border-color .3s ease, background-color .3s ease; }
.tn-js .tn-lex > div:not(.tn-ici) { display: none; }
.tn-js .tn-lex > div { padding: 1.1rem 1.2rem; min-height: 7.2rem; }
.tn-js .tn-lex > div.tn-ici { animation: tn-def .45s ease both; }
@keyframes tn-def { from { opacity: 0; transform: translateY(8px); } }
.tn-lex > div.tn-ici { border-color: hsl(var(--primary) / .35); border-left-color: var(--tn-acc); background: var(--tn-doux); }
.tn-lex dt { display: flex; align-items: baseline; gap: .7rem; font-family: var(--tn-titre); font-weight: 600; font-size: 1.0625rem; }
.tn-lex dt span { font-family: var(--tn-texte); font-size: .75rem; font-weight: 700; color: var(--tn-gris); font-variant-numeric: tabular-nums; }
.tn-lex dd { margin-top: .15rem; font-size: .9375rem; color: var(--tn-gris); line-height: 1.5; }
.tn-faq details { border-bottom: 1px solid var(--tn-bord); }
.tn-faq details:first-child { border-top: 1px solid var(--tn-bord); }
.tn-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; cursor: pointer; list-style: none;
  font-family: var(--tn-titre); font-weight: 600; font-size: 1.125rem; line-height: 1.3;
}
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 1px solid var(--tn-bord); background: var(--tn-fond); color: var(--tn-acc); font-weight: 500; transition: transform .25s;
}
.tn-faq details[open] summary::after { transform: rotate(45deg); }
.tn-faq details p { padding: 0 2.5rem 1.15rem 0; color: var(--tn-gris); font-size: 1rem; }

/* ─── auteurs ─── */
.tn-auteurs-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tn-auteur img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tn-r); transition: transform .5s ease; }
.tn-auteur { overflow: hidden; }
.tn-auteur:hover img { transform: scale(1.02); }
.tn-auteur h3 { margin-top: 1rem !important; font-weight: 600; font-size: 1.1875rem; }
.tn-auteur h3 a { text-decoration: none; }
.tn-auteur h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tn-auteur p { margin: .15rem 0 .65rem !important; font-size: .9375rem; color: var(--tn-gris); line-height: 1.4; }
.tn-auteurs-lien { margin-top: 2rem !important; }

/* ─── contact ─── */
.tn-contact-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tn-contact-texte .tn-intro { margin-bottom: 1.75rem !important; }
.tn-question { padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--tn-ombre); }
.tn-question dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--tn-bord); }
.tn-question dt { font-weight: 700; font-size: .9375rem; color: var(--tn-acc-fonce); }
.tn-question dd { font-size: .9375rem; color: var(--tn-gris); line-height: 1.45; }
.tn-question-note { margin-top: .4rem !important; padding-top: .9rem; border-top: 1px solid var(--tn-bord); font-size: .875rem; font-weight: 600; }

/* ─── barres remplies à l'arrivée à l'écran (sans JS : pleines) ─── */
.tn-js [data-tn-barres]:not(.tn-vu) b, .tn-js [data-tn-duel]:not(.tn-vu) .tn-d-barres b { transform: scaleX(0); }

/* ─── défilement : Lenis (CSS officiel) ; ancres sans scroll-behavior smooth du thème ─── */
html:has(.tn-home) { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ─── tablettes et mobiles ─── */
@media (max-width: 1000px) {
  .tn-hero-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-scene { max-width: 560px; }
  .tn-une-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tn-une-table { grid-column: 1 / -1; }
  .tn-elec-grille, .tn-duel-grille, .tn-volant-grille, .tn-lex-grille, .tn-contact-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-auteurs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-essai-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-essai-cote { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
  .tn-essai-score { margin-top: 0; }
}
@media (max-width: 700px) {
  [data-bandeau], .announcement-bar { display: none !important; }
  .tn-int { width: min(100% - 2rem, 1120px); }
  .tn-hero { padding-block: 1.5rem 3rem; }
  .tn-h1 { margin-top: .9rem !important; font-size: clamp(2.15rem, 9.4vw, 2.6rem); }
  .tn-chapeau { font-size: 1.0625rem; margin: 1rem 0 1.4rem !important; }
  .tn-actions .bh-4784-bouton { flex: 1 1 auto; }
  .tn-reperes { margin-top: 1.75rem !important; }
  .tn-reperes > div { padding-inline: .8rem; }
  .tn-reperes dt { font-size: 1.75rem; }
  .tn-reperes dd { font-size: .875rem; }
  .tn-scene { padding: 0; }
  .tn-fiche { position: relative; width: auto; margin: -2.5rem .75rem 0; }
  .tn-legende { left: .75rem; top: .75rem; }
  .tn-etapes::before, .tn-etapes::after { left: .45rem; }
  .tn-etape { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0 1.5rem 2.1rem; }
  .tn-etape::before { left: 0; top: 1.8rem; }
  .tn-etape h3 { font-size: 1.2rem; }
  .tn-onglets-liste { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tn-panneau { grid-template-columns: minmax(0, 1fr); }
  .tn-panneau-photo { aspect-ratio: 3 / 2; min-height: 0; }
  .tn-crit { grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
  .tn-une-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-une-table { padding: 1.25rem 1.1rem; }
  .tn-mini { font-size: .8125rem; }
  .tn-jauges, .tn-calcul, .tn-duel-fiche, .tn-trousse, .tn-question { padding: 1.25rem 1.1rem; }
  .tn-jauges li, .tn-trousse li { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .75rem; }
  .tn-j-barre, .tn-t-barre { grid-column: 1 / -1; grid-row: 2; }
  .tn-duel-photo { aspect-ratio: 3 / 2; min-height: 0; }
  .tn-d-barres b { min-width: 2.6rem; }
  .tn-essai-cote { grid-template-columns: minmax(0, 1fr); }
  .tn-essai-liste label { grid-template-columns: 1.4rem minmax(0, 1fr); padding: .8rem .9rem; }
  .tn-e-alerte { grid-column: 2; }
  .tn-auteurs-grille { gap: 1rem .75rem; }
  .tn-auteur h3 { font-size: 1.0625rem; }
  .tn-question dl > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .tn-faq details p { padding-right: 0; }
}

/* ─── mouvement réduit : rendu statique complet ─── */
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { animation: none !important; transition: none !important; }
  .tn-js [data-tn-barres]:not(.tn-vu) b, .tn-js [data-tn-duel]:not(.tn-vu) .tn-d-barres b { transform: none; }
  .tn-js .tn-lex > div:not(.tn-ici) { display: block; }
  .tn-js .tn-lex > div { min-height: 0; }
}
