/* Home tunée banque-credit-onyx.com, passe 1 du 03/12/2026 : « le calcul de la banque ».
   Couleurs, polices, rayons et ombres : variables de global.css uniquement. */

@media (max-width: 700px) {
  [data-bandeau], .announcement-bar { display: none !important; }
}

.tn-home {
  --tn-largeur: 1100px;
  --tn-air: clamp(4rem, 8vw, 6.5rem);
  --tn-titre: var(--font-heading);
  --tn-texte: var(--font-sans);
  --tn-mono: var(--font-mono);
  --tn-accent: var(--primary);
  --tn-pale: var(--widget-fond);
  --tn-autre: var(--muted-foreground);
  --tn-assurance: color-mix(in oklch, var(--primary) 45%, var(--background));
  color: var(--foreground);
  font-family: var(--tn-texte);
}
.tn-home *, .tn-home *::before, .tn-home *::after { box-sizing: border-box; }
.tn-int { width: min(100% - 2.5rem, var(--tn-largeur)); margin-inline: auto; }
.tn-mono { font-family: var(--tn-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tn-home svg { flex: none; }

/* ---------- grammaire commune ---------- */
.tn-home .tn-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem;
  padding: .4rem .9rem .4rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--background); color: var(--tn-accent);
  font: 600 .78rem/1.2 var(--tn-texte); letter-spacing: .08em; text-transform: uppercase;
}
.tn-kicker svg { width: 1rem; height: 1rem; }
.tn-h1, .tn-h2, .tn-home h3 { font-family: var(--tn-titre); color: var(--foreground); letter-spacing: -.02em; margin: 0; }
.tn-h1 em, .tn-h2 em { font-style: normal; color: var(--tn-accent); }
.tn-h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.tn-home .tn-tete { max-width: 46rem; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); text-align: center; }
.tn-home .tn-chapo { margin: 1rem auto 0; max-width: 40rem; color: var(--muted-foreground); font-size: 1.075rem; line-height: 1.6; }
.tn-section { padding-block: var(--tn-air); }
.tn-fond { background: var(--tn-pale); }
.tn-carte {
  background: var(--card); color: var(--card-foreground); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.tn-home .tn-etiquette {
  display: inline-block; margin: 0; padding: .15rem .55rem; border-radius: var(--radius-full);
  background: var(--muted); color: var(--foreground); font: 600 .72rem/1.4 var(--tn-texte); letter-spacing: .06em; text-transform: uppercase;
}
.tn-home .tn-meta { margin: 0; color: var(--muted-foreground); font-size: .875rem; }
.tn-lien {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--tn-accent);
  font-weight: 600; text-decoration: none;
}
.tn-lien svg { width: 1.05rem; height: 1.05rem; transition: transform .2s; }
.tn-lien:hover { text-decoration: underline; text-underline-offset: .3em; }
.tn-lien:hover svg { transform: translateX(3px); }
.tn-centre-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; margin-top: 2rem; }
.tn-pastille {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--radius-full);
  font: 700 .8rem/1.3 var(--tn-texte); white-space: nowrap;
}
.tn-pastille svg { width: 1rem; height: 1rem; }
.tn-etat-ok { background: color-mix(in oklch, var(--success) 16%, var(--card)); color: color-mix(in oklch, var(--success) 70%, var(--foreground)); }
.tn-etat-seuil { background: var(--tn-pale); color: var(--tn-accent); }
.tn-etat-alerte { background: color-mix(in oklch, var(--destructive) 12%, var(--card)); color: color-mix(in oklch, var(--destructive) 75%, var(--foreground)); }
.tn-puce { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; flex: none; }
.tn-seg-pret { background: var(--tn-accent); }
.tn-seg-autre { background: var(--tn-autre); }
.tn-seg-assurance { background: var(--tn-assurance); }
.tn-seg-reste { background: var(--card); border: 1px solid var(--border); }
.tn-jauge-ligne { height: 6px; border-radius: var(--radius-full); background: var(--muted); overflow: hidden; }
.tn-jauge-ligne > span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--tn-accent); }

/* boutons du site : primaire plein (home.css), secondaire contour */
.tn-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.tn-actions-centre { justify-content: center; margin-top: 2.25rem; }
.bh-9de1-home .tn-actions .bh-9de1-bouton { min-height: 48px; padding: .8em 1.15em; }
.bh-9de1-home .bh-9de1-bouton svg { width: 1.1em; height: 1.1em; }
.bh-9de1-home .bh-9de1-bouton.bouton-second {
  background: var(--background) !important; color: var(--foreground) !important; border: 1px solid var(--border);
}
.bh-9de1-home .bh-9de1-bouton.bouton-second:hover { border-color: var(--tn-accent); color: var(--tn-accent) !important; }

/* ---------- HERO ---------- */
.tn-hero {
  display: flex; align-items: center; min-height: calc(100svh - var(--hauteur-entete, 120px));
  padding-block: clamp(2rem, 5vh, 3.5rem); background: var(--background); overflow: hidden;
}
.tn-hero-grille { display: grid; gap: 2.5rem; align-items: center; }
.tn-hero-texte { min-width: 0; }
.tn-h1 {
  font-family: "Outfit Variable", var(--tn-titre); font-weight: 700;
  font-size: clamp(2.2rem, 1.3rem + 2.5vw, 3.3rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance;
}
.tn-h1 em { position: relative; white-space: nowrap; }
.tn-h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 2px;
  background: currentColor; opacity: .22; transform-origin: left;
}
.tn-home .tn-hero-chapo { margin: 1.4rem 0 1.9rem; max-width: 34rem; color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.62; }
.tn-reperes { display: flex; gap: 2.25rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tn-reperes div { display: grid; gap: .15rem; }
.tn-reperes dt { font: 700 1.9rem/1 var(--tn-titre); color: var(--foreground); letter-spacing: -.02em; }
.tn-reperes dd { margin: 0; color: var(--muted-foreground); font-size: .9rem; }

/* scène : photo 4/5 à droite, fiche posée sur le mur de briques à gauche */
.tn-scene { position: relative; min-width: 0; }
.tn-scene-photo { position: relative; margin: 0; border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); }
.tn-scene-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.tn-scene-photo figcaption {
  position: absolute; right: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: var(--radius-full); background: var(--background); color: var(--foreground);
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-md);
}
.tn-scene-photo figcaption svg { width: 1rem; height: 1rem; color: var(--tn-accent); }

.tn-fiche {
  position: relative; z-index: 2; padding: 1.1rem 1.15rem 1rem; background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.tn-fiche-tete { display: grid; gap: .3rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.tn-fiche-sur { word-spacing: .15em; display: inline-flex; align-items: center; gap: .4rem; color: var(--tn-accent); font: 700 .72rem/1.2 var(--tn-texte); letter-spacing: .08em; text-transform: uppercase; }
.tn-fiche-sur svg { width: .95rem; height: .95rem; }
.tn-fiche-titre { font: 600 .98rem/1.3 var(--tn-titre); color: var(--foreground); }
.tn-cas { display: grid; grid-template-columns: repeat(3, auto); gap: .3rem; margin: 1.1rem 0 1.1rem; }
.tn-cas .tn-cas-bouton { padding-inline: .3rem; font-size: .72rem; }
.tn-cas-bouton {
  min-height: 32px; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--background); color: var(--foreground); font: 600 .74rem/1.2 var(--tn-texte); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.tn-cas-bouton:hover { border-color: var(--tn-accent); }
.tn-cas-bouton.is-actif { background: var(--tn-accent); border-color: var(--tn-accent); color: var(--primary-foreground); }
.tn-cas-bouton:focus-visible, .tn-onglet:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.tn-ligne-rev { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .86rem; color: var(--muted-foreground); }
.tn-ligne-rev strong { color: var(--foreground); font-size: 1rem; }

/* règle graduée 0-50 % des revenus */
.tn-regle { margin: .55rem 0 .2rem; }
.tn-regle-barre {
  position: relative; display: flex; height: 26px; border-radius: var(--radius-md); overflow: visible;
  background: repeating-linear-gradient(135deg, var(--muted) 0 6px, var(--background) 6px 12px); border: 1px solid var(--border);
}
.tn-seg { display: block; height: 100%; width: var(--w, 0%); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.tn-seg:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.tn-seg + .tn-seg { box-shadow: inset 2px 0 0 var(--card); }
.tn-regle-seuil { position: absolute; top: -7px; bottom: -7px; left: 70%; width: 2px; background: var(--foreground); }
.tn-regle-seuil span {
  position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); padding: .05rem .35rem; border-radius: var(--radius-sm);
  background: var(--foreground); color: var(--background); font: 700 .68rem/1.3 var(--tn-mono); white-space: nowrap;
}
.tn-regle { padding-top: 1.1rem; }
.tn-regle-grad { position: relative; height: 1.1rem; margin-top: .3rem; font: 500 .66rem/1 var(--tn-mono); color: var(--muted-foreground); }
.tn-regle-grad span { position: absolute; left: var(--x); transform: translateX(-50%); }
.tn-regle-grad span::before { content: ""; position: absolute; left: 50%; top: -.38rem; width: 1px; height: .3rem; background: var(--border); }
.tn-regle-grad span:first-child { transform: none; }
.tn-regle-grad span:last-child { transform: translateX(-100%); }

.tn-postes { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; }
.tn-postes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; }
.tn-postes strong { font-size: .88rem; }
.tn-poste-reste { padding-top: .35rem; border-top: 1px dashed var(--border); color: var(--muted-foreground); }
.tn-verdict { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: .6rem; }
.tn-verdict-sur { display: block; color: var(--muted-foreground); font-size: .78rem; }
.tn-verdict-taux { display: block; font-size: 1.85rem; font-weight: 700; line-height: 1.05; color: var(--foreground); }
.tn-capacite {
  display: grid; gap: .15rem; margin-top: .6rem;
  padding: .5rem .75rem; border-radius: var(--radius-md); background: var(--tn-pale); font-size: .82rem; color: var(--muted-foreground);
}
.tn-capacite strong { color: var(--tn-accent); font-size: 1rem; white-space: nowrap; }
.tn-fiche-lien { display: flex; align-items: center; gap: .35rem; min-height: 36px; margin-top: .3rem; color: var(--tn-accent); font-size: .85rem; font-weight: 600; text-decoration: none; }
.tn-fiche-lien svg { width: 1rem; height: 1rem; }
.tn-fiche-lien:hover { text-decoration: underline; }

@media (min-width: 1024px) {
  .tn-hero-grille { grid-template-columns: minmax(0, 1fr) 570px; gap: 2.5rem; }
  .tn-scene { height: 500px; }
  .tn-scene-photo { position: absolute; right: 0; top: 0; width: 360px; height: 450px; aspect-ratio: auto; }
  .tn-scene-photo img { object-position: 72% 40%; }
  .tn-fiche { position: absolute; left: 0; top: 30px; width: 300px; }
}
@media (min-width: 1180px) {
  .tn-hero-grille { grid-template-columns: minmax(0, 1fr) 600px; gap: 3rem; }
  .tn-scene { height: 500px; }
  .tn-scene-photo { width: 380px; height: 475px; }
  .tn-fiche { width: 300px; top: 12px; }
}
@media (max-width: 1023px) {
  .tn-hero { min-height: 0; }
  .tn-hero-texte { max-width: 40rem; }
  .tn-scene { max-width: 34rem; }
  .tn-fiche { margin: -4.5rem .9rem 0; }
  .tn-scene-photo figcaption { display: none; }
}
@media (max-width: 600px) {
  .tn-hero { padding-top: 1.5rem; }
  .tn-home .tn-kicker { margin-bottom: .9rem; }
  .tn-h1 { font-size: clamp(2.05rem, 8.6vw, 2.5rem); }
  .tn-home .tn-hero-chapo { margin: 1rem 0 1.4rem; font-size: 1rem; }
  .tn-reperes { gap: 1.5rem; margin-top: 1.6rem; padding-top: 1.1rem; }
  .tn-reperes dt { font-size: 1.6rem; }
  .tn-fiche { margin: -3.5rem .5rem 0; padding: 1rem; }
  .tn-int { width: min(100% - 2rem, var(--tn-largeur)); }
}

/* ---------- À LA UNE : relevé ---------- */
.tn-une-grille { display: grid; gap: 1.5rem; }
.tn-vedette { overflow: hidden; display: flex; flex-direction: column; }
.tn-vedette-photo { position: relative; display: block; aspect-ratio: 4 / 3; max-height: 360px; overflow: hidden; }
.tn-vedette-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tn-vedette:hover .tn-vedette-photo img { transform: scale(1.03); }
.tn-vedette-chiffre {
  position: absolute; left: .9rem; bottom: .9rem; display: inline-flex; align-items: baseline; gap: .45rem; max-width: calc(100% - 1.8rem);
  padding: .45rem .8rem; border-radius: var(--radius-md); background: var(--card); color: var(--muted-foreground); font-size: .82rem; box-shadow: var(--shadow-md);
}
.tn-vedette-chiffre strong { color: var(--tn-accent); font-size: 1.05rem; }
.tn-vedette-corps { display: grid; gap: .65rem; padding: 1.4rem 1.5rem 1.5rem; }
.tn-vedette-corps h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
.tn-vedette-corps h3 a, .tn-releve-texte a, .tn-rub h3 a, .tn-rub-liste a, .tn-auteur h3 a, .tn-auteur-liste a { color: inherit; text-decoration: none; }
.tn-vedette-corps h3 a:hover, .tn-releve-texte a:hover, .tn-rub h3 a:hover, .tn-rub-liste a:hover, .tn-auteur h3 a:hover, .tn-auteur-liste a:hover { color: var(--tn-accent); text-decoration: underline; text-underline-offset: .2em; }
.tn-home .tn-vedette-corps p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }
.tn-vedette-corps .tn-etiquette { justify-self: start; color: var(--foreground); }
.tn-releve { padding: 1.25rem 1.5rem .75rem; display: flex; flex-direction: column; }
.tn-releve-tete {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .85rem; border-bottom: 2px solid var(--foreground);
  font: 700 .8rem/1.2 var(--tn-texte); letter-spacing: .06em; text-transform: uppercase;
}
.tn-releve-tete span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.tn-releve-tete svg { width: 1.05rem; height: 1.05rem; color: var(--tn-accent); }
.tn-releve-liste { list-style: none; margin: 0; padding: 0; flex: 1; }
.tn-releve-ligne {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 9.5rem; gap: 1rem; align-items: center;
  padding: .95rem .25rem; border-bottom: 1px solid var(--border); transition: background .2s;
}
.tn-releve-ligne:hover { background: var(--tn-pale); }
.tn-releve-ligne time { color: var(--muted-foreground); font-size: .82rem; }
.tn-releve-texte { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.tn-releve-texte a { font: 600 1.02rem/1.3 var(--tn-titre); }
.tn-releve-montant { display: grid; text-align: right; gap: .1rem; }
.tn-releve-montant strong { font-size: 1.1rem; color: var(--tn-accent); }
.tn-releve-montant span { font-size: .75rem; color: var(--muted-foreground); line-height: 1.3; }
.tn-releve > .tn-lien { align-self: flex-end; }
@media (min-width: 960px) {
  .tn-une-grille { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: stretch; }
}
@media (max-width: 600px) {
  .tn-releve { padding: 1rem 1rem .5rem; }
  .tn-releve-ligne { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .tn-releve-ligne time { display: none; }
  .tn-releve-montant { text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: .5rem; }
}

/* ---------- CALCULATEUR ---------- */
.tn-calcul-grille { display: grid; gap: 1.5rem; }
.tn-calcul-saisie { display: grid; gap: 1.1rem; padding: 1.5rem; align-content: start; }
.tn-home .tn-calcul-pre { margin: 0; font-size: .88rem; color: var(--muted-foreground); }
.tn-calcul-presets { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: -.4rem; }
.tn-calcul-presets .tn-cas-bouton { min-height: 40px; padding-inline: .95rem; font-family: var(--tn-mono); }
.tn-calcul-saisie label { display: grid; gap: .45rem; font-weight: 600; font-size: .95rem; }
.tn-champ { position: relative; display: block; }
.tn-champ input {
  width: 100%; min-height: 50px; padding: .6rem 2.4rem .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--background); color: var(--foreground); font: 600 1.1rem var(--tn-mono);
}
.tn-champ input:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.tn-champ > span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); font-weight: 600; }
.tn-calcul-resultat { padding: 1.5rem; }
.tn-calcul-resultat .tn-verdict { margin-top: 0; margin-bottom: .6rem; }
.tn-calcul-resultat .tn-verdict-taux { font-size: 3rem; }
.tn-calcul-chiffres { display: grid; gap: .1rem; margin: 1rem 0 0; }
.tn-calcul-chiffres div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.tn-calcul-chiffres dt { color: var(--muted-foreground); font-size: .92rem; }
.tn-calcul-chiffres dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.tn-home .tn-note { margin: .8rem 0 .2rem; font-size: .8rem; color: var(--muted-foreground); }
@media (min-width: 900px) {
  .tn-calcul-grille { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

/* ---------- RUBRIQUES ---------- */
.tn-rub-grille { display: grid; gap: 1.5rem; }
.tn-rub { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; transition: box-shadow .25s, transform .25s; }
.tn-rub:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tn-rub-tete { display: flex; align-items: center; gap: .9rem; }
.tn-rub-icone {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-lg);
  background: var(--tn-pale); color: var(--tn-accent); flex: none;
}
.tn-rub-icone svg { width: 1.35rem; height: 1.35rem; }
.tn-rub h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.tn-home .tn-rub-intro { margin: 0; color: var(--muted-foreground); line-height: 1.55; }
.tn-rub-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); flex: 1; }
.tn-rub-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.tn-rub-liste a { font-weight: 600; line-height: 1.35; }
.tn-rub-liste strong { color: var(--tn-accent); font-size: .95rem; white-space: nowrap; }
.tn-rub .tn-jauge-ligne > span { transform-origin: left; }
@media (min-width: 900px) { .tn-rub-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- COÛT ---------- */
.tn-onglets { max-width: 56rem; margin-inline: auto; }
.tn-onglets-barre { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; }
.tn-onglet {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-full); background: var(--card); color: var(--foreground); font: 600 .9rem/1.2 var(--tn-texte); cursor: pointer;
}
.tn-onglet svg { width: 1rem; height: 1rem; color: var(--tn-accent); }
.tn-onglet.is-actif { background: var(--tn-accent); color: var(--primary-foreground); border-color: var(--tn-accent); }
.tn-onglet.is-actif svg { color: currentColor; }
.tn-panneau { padding: 1.6rem 1.75rem 1rem; }
.tn-panneau + .tn-panneau { margin-top: 1rem; }
.tn-js .tn-panneau + .tn-panneau { margin-top: 0; }
.tn-js .tn-panneau[hidden] { display: none; }
.tn-home .tn-panneau-titre { margin: 0 0 1.25rem; font: 600 1.15rem/1.35 var(--tn-titre); }
.tn-barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tn-barres li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 9rem; gap: 1rem; align-items: center; }
.tn-barres-l { font-weight: 600; }
.tn-barres-piste { height: 14px; border-radius: var(--radius-full); background: var(--muted); overflow: hidden; }
.tn-barres-val { display: block; height: 100%; width: var(--w); min-width: 4px; border-radius: inherit; background: var(--tn-accent); transform-origin: left; }
.tn-barres-n { display: flex; justify-content: flex-end; gap: .6rem; align-items: baseline; }
.tn-barres-n span { color: var(--muted-foreground); font-size: .85rem; }
.tn-table { width: 100%; border-collapse: collapse; }
.tn-table th, .tn-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--border); text-align: left; }
.tn-table thead th { font-size: .8rem; color: var(--muted-foreground); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tn-table td { width: 38%; }
.tn-table td .tn-mono { display: inline-block; min-width: 4.8rem; margin-left: .6rem; font-weight: 700; }
.tn-mini { display: inline-block; vertical-align: middle; height: 10px; width: calc(var(--w) * .6); border-radius: var(--radius-full); background: var(--tn-autre); transform-origin: left; }
.tn-mini-cout { background: var(--tn-accent); }
.tn-duo { display: grid; gap: 1rem; }
.tn-duo > div { padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.tn-home .tn-duo p { margin: .4rem 0 0; color: var(--muted-foreground); line-height: 1.55; }
.tn-home .tn-duo .tn-duo-titre { margin: 0; display: flex; align-items: center; gap: .5rem; color: var(--foreground); font: 700 1.05rem var(--tn-titre); }
.tn-duo-titre svg { width: 1.2rem; height: 1.2rem; color: var(--tn-accent); }
.tn-regles { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.tn-regles li { display: grid; gap: .6rem; padding: 1.2rem 1.3rem; align-content: start; }
.tn-regles svg { width: 1.5rem; height: 1.5rem; color: var(--tn-accent); margin-top: .1rem; }
.tn-regles strong { font-family: var(--tn-titre); font-size: 1.02rem; }
.tn-home .tn-regles p { margin: .3rem 0 0; color: var(--muted-foreground); font-size: .92rem; line-height: 1.5; }
@media (min-width: 760px) { .tn-duo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tn-regles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tn-panneau { padding: 1.2rem 1.1rem .75rem; }
  .tn-barres li { grid-template-columns: minmax(0, 1fr) auto; }
  .tn-barres-piste { grid-column: 1 / -1; grid-row: 2; }
  .tn-mini { display: none; }
}

/* ---------- AVANT / APRÈS ---------- */
.tn-duels { display: grid; gap: 1.5rem; }
.tn-duel { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; }
.tn-duel-tete { display: flex; align-items: center; gap: .8rem; }
.tn-duel h3 { font-size: 1.25rem; font-weight: 700; }
.tn-home .tn-duel-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; font-size: .85rem; color: var(--muted-foreground); }
.tn-duel-legende > span { display: inline-flex; align-items: center; gap: .4rem; }
.tn-duel-ligne { display: grid; gap: .35rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.tn-home .tn-duel-ligne p { margin: 0; font-weight: 600; font-size: .92rem; }
.tn-duel-barre { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; align-items: center; gap: .75rem; }
.tn-duel-barre > span { display: block; height: 12px; width: var(--w); min-width: 4px; border-radius: var(--radius-full); transform-origin: left; }
.tn-duel-barre strong { text-align: right; font-size: .95rem; }
.tn-home .tn-duel-conclusion { margin: .25rem 0 0; padding: .8rem .9rem; border-radius: var(--radius-md); background: var(--tn-pale); font-size: .9rem; line-height: 1.5; flex: 1; }
.tn-duel .tn-lien { font-size: .92rem; }
@media (min-width: 1000px) { .tn-duels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px) { .tn-duels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- MOBILITÉ ---------- */
.tn-parcours { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: e; }
.tn-etape {
  position: relative; display: grid; gap: .45rem; align-content: start; padding: 1.25rem 1.2rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .35s, box-shadow .35s, transform .35s;
}
.tn-etape strong { font: 700 1.1rem/1.2 var(--tn-titre); }
.tn-etape-detail { max-width: 46rem; margin: 1.5rem auto 0; padding: 1.1rem 1.4rem; display: grid; gap: .6rem; }
.tn-home .tn-etape-detail p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }
.tn-etape-detail p .tn-mono { color: var(--tn-accent); font-weight: 700; margin-right: .35rem; }
.tn-etape-detail p strong { color: var(--foreground); margin-right: .35rem; }
.tn-js-etapes .tn-etape-detail p:not(.is-actif) { display: none; }
.tn-js-etapes .tn-etape-detail p.is-actif { font-size: 1.05rem; }
.tn-etape-n {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-full); border: 2px solid var(--border);
  background: var(--background); color: var(--muted-foreground); font-weight: 700; font-size: .9rem; transition: background .35s, color .35s, border-color .35s;
}
.tn-etape-qui { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; padding: .15rem .55rem; border-radius: var(--radius-full); background: var(--muted); font-size: .78rem; font-weight: 600; }
.tn-etape-qui svg { width: .9rem; height: .9rem; }
.tn-etape.is-actif { border-color: var(--tn-accent); box-shadow: var(--shadow-md); }
.tn-etape.is-actif .tn-etape-n, .tn-etape.is-fait .tn-etape-n { background: var(--tn-accent); border-color: var(--tn-accent); color: var(--primary-foreground); }
@media (min-width: 1000px) {
  .tn-parcours { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tn-parcours::before {
    content: ""; position: absolute; top: calc(1.25rem + 1.2rem); left: 2.5rem; right: 2.5rem; height: 2px; background: var(--border); z-index: 0;
  }
  .tn-parcours::after {
    content: ""; position: absolute; top: calc(1.25rem + 1.2rem); left: 2.5rem; height: 2px; width: calc((100% - 5rem) * var(--tn-av, 0)); background: var(--tn-accent);
    transition: width .6s; z-index: 0;
  }
  .tn-etape { z-index: 1; background: transparent; border-color: transparent; box-shadow: none; padding-inline: .5rem; }
  .tn-etape.is-actif { background: var(--card); border-color: var(--tn-accent); box-shadow: var(--shadow-md); transform: translateY(-4px); padding-inline: 1rem; }
}

/* ---------- QUIZ (kit vivant) ---------- */
.tn-quiz-carte { max-width: 46rem; margin-inline: auto; padding: 1.75rem 2rem 1.5rem; }
.tn-home .tn-quiz-chiffre { display: inline-flex; align-items: baseline; gap: .5rem; margin: 0 0 .75rem; padding: .3rem .75rem; border-radius: var(--radius-full); background: var(--tn-pale); color: var(--muted-foreground); font-size: .82rem; font-weight: 600; }
.tn-quiz-chiffre .tn-mono { color: var(--tn-accent); font-size: 1rem; font-weight: 700; }
.tn-home .tn-quiz-texte { margin: 0; font: 600 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.3 var(--tn-titre); }
.tn-quiz-q + .tn-quiz-q { margin-top: 1.5rem; }
.tn-home .tn-quiz-expl { margin: .75rem 0 0; color: var(--muted-foreground); line-height: 1.55; }
.tn-quiz-expl a { color: var(--tn-accent); font-weight: 600; }
.tn-quiz .kv-choix { margin: 1.1rem 0 .5rem; }
.tn-quiz .kv-bouton { border: 1px solid var(--border); border-radius: var(--radius-md); padding: .55rem 1.2rem; font-weight: 600; background: var(--background); color: var(--foreground); }
.tn-quiz .kv-bouton:hover { border-color: var(--tn-accent); }
.tn-quiz .kv-bouton.kv-choisi, .tn-quiz .kv-suivante, .tn-quiz .kv-encore { background: var(--tn-accent); color: var(--primary-foreground); border-color: var(--tn-accent); }
.tn-quiz .kv-quiz-pied { border-top: 1px solid var(--border); padding-top: 1rem; }
.tn-quiz .kv-quiz-prog span { border: 0; height: 6px; border-radius: var(--radius-full); background: var(--muted); }
.tn-quiz .kv-quiz-prog span::after { background: var(--tn-accent); border-radius: inherit; }
.tn-quiz .bh-9de1-quiz-score:empty { display: none; }
.tn-quiz .kv-juste .tn-quiz-expl::before { content: "Exact. "; color: var(--success); font-weight: 700; }
.tn-quiz .kv-rate .tn-quiz-expl::before { content: "Pas tout à fait. "; color: var(--destructive); font-weight: 700; }
.tn-quiz .kv-nuance .tn-quiz-expl::before { content: "C’est nuancé. "; color: var(--tn-accent); font-weight: 700; }
@media (max-width: 600px) { .tn-quiz-carte { padding: 1.25rem 1.1rem; } }

/* ---------- RÉDACTION ---------- */
.tn-auteurs { display: grid; gap: 1.5rem; }
.tn-auteur { display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem; }
.tn-auteur-tete { display: flex; align-items: center; gap: 1rem; }
.tn-auteur-tete img { width: 72px; height: 72px; border-radius: var(--radius-full); object-fit: cover; flex: none; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--border); }
.tn-auteur h3 { font-size: 1.2rem; font-weight: 700; }
.tn-home .tn-auteur-spe { margin: 0; color: var(--muted-foreground); line-height: 1.5; }
.tn-auteur-compte { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.tn-auteur-compte .tn-mono { font-weight: 700; font-size: .9rem; color: var(--tn-accent); }
.tn-auteur-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.tn-auteur-liste li { padding: .55rem 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .95rem; line-height: 1.35; }
@media (min-width: 900px) { .tn-auteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- APPEL ---------- */
.tn-appel { border-top: 1px solid var(--border); }
.tn-controles { max-width: 56rem; margin-inline: auto; padding: .75rem 1.75rem 1.1rem; }
.tn-controles ol { list-style: none; margin: 0; padding: 0; }
.tn-controle {
  display: grid; grid-template-columns: 2rem 8rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--border);
}
.tn-controle strong { font: 700 1.05rem var(--tn-titre); }
.tn-controle-signal { color: var(--muted-foreground); font-size: .92rem; }
.tn-controle-fix { font-size: .92rem; font-weight: 600; }
.tn-coche {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: var(--radius-sm); border: 2px solid var(--border);
  color: transparent; transition: background .3s, border-color .3s, color .3s;
}
.tn-coche svg { width: 1.05rem; height: 1.05rem; }
.tn-controle { position: relative; transition: background .35s; border-radius: var(--radius-md); }
.tn-controle.is-actif { background: var(--tn-pale); box-shadow: -.6rem 0 0 var(--tn-pale), .6rem 0 0 var(--tn-pale); }
.tn-controle.is-actif strong { color: var(--tn-accent); }
.tn-controle.is-coche .tn-coche { background: var(--tn-accent); border-color: var(--tn-accent); color: var(--primary-foreground); }
.tn-controles-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; }
@media (max-width: 760px) {
  .tn-controles { padding: .5rem 1.1rem 1rem; }
  .tn-controle { grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .8rem; }
  .tn-controle-signal, .tn-controle-fix { grid-column: 2; }
}

/* ---------- mouvement ---------- */
.tn-js .tn-anime { opacity: 0; transform: translateY(24px); }
.tn-js .tn-anime.is-vu { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { transition: none !important; animation: none !important; }
  .tn-js .tn-anime { opacity: 1; transform: none; }
}

@media (max-width: 600px) { .tn-hors-mobile { display: none; } }
