/* Home simero-formation.fr : « Le devis passé au crible ». Couleurs : variables de theme.css / global.css uniquement. */
.tn-home { --tn-encre: var(--c-texte-site, #252525); --tn-ombre: 6px 6px 0 var(--tn-encre); --tn-filet: color-mix(in srgb, var(--tn-encre) 14%, transparent);
	--tn-doux: color-mix(in srgb, var(--tn-encre) 78%, var(--c-fond)); --tn-mono: var(--f-titre, "iA Writer Mono"), ui-monospace, monospace;
	--tn-texte: var(--f-texte, Inter), Inter, system-ui, sans-serif; overflow-x: clip; color: var(--tn-encre); font-family: var(--tn-texte); }
.tn-home *, .tn-home *::before, .tn-home *::after { box-sizing: border-box; }
.tn-home .ico { width: 20px; height: 20px; flex: none; }
.tn-home a { color: var(--c-bleu); }
.tn-home b, .tn-home strong { color: inherit; }
.tn-home [data-formule] { font: inherit; color: inherit; }
.tn-home [data-calcul] { display: grid; }

/* En-tête : sans flou (défilement fluide), bandeau masqué en mobile */
.barre { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--c-fond) 97%, transparent); }
@media (max-width: 700px) { [data-bandeau], .announcement-bar { display: none !important; } }

/* ───── Grammaire commune ───── */
.tn-s { padding-block: clamp(72px, 9vw, 120px); background: var(--c-carte); }
.tn-fond { background: var(--c-fond); border-block: 1px solid var(--tn-filet); }
.tn-in { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.tn-etroit { max-width: 860px; }
.tn-tete { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); }
.tn-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border: 2px solid var(--tn-encre);
	border-radius: 999px; background: var(--c-carte); font-family: var(--tn-mono); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
	text-transform: uppercase; color: var(--tn-encre); line-height: 1.3; }
.tn-kicker .ico { width: 16px; height: 16px; color: var(--c-bleu); display: inline-block; }
.tn-home h2 { font-family: var(--tn-mono); font-weight: 400; font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em;
	color: var(--tn-encre); margin: 0; text-wrap: balance; }
.tn-home h1 em, .tn-home h2 em { font-style: normal; color: var(--c-bleu); background: linear-gradient(transparent 60%, var(--c-surligne) 60%);
	-webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em; }
.tn-intro { font-size: 1.08rem; line-height: 1.65; color: var(--tn-doux); max-width: 62ch; margin: 16px auto 0; }
.tn-carte { background: var(--c-carte); border: 2px solid var(--tn-encre); border-radius: 6px; box-shadow: var(--tn-ombre); padding: 24px; min-width: 0; }
.tn-fond .tn-carte { background: var(--c-carte); }
.tn-home h3 { font-family: var(--tn-mono); font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--tn-encre); margin: 0 0 8px; text-align: left; }
.tn-home h3 a { color: var(--tn-encre); text-decoration: none; background: linear-gradient(var(--c-bleu), var(--c-bleu)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.tn-home h3 a:hover { background-size: 100% 3px; }
.tn-pastille { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 2px solid var(--c-bleu); border-radius: 999px;
	color: var(--c-bleu); font-family: var(--tn-mono); font-weight: 700; font-size: .74rem; white-space: nowrap; }
.tn-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-thickness: .2ex; text-underline-offset: .25em; }
.tn-fleche .ico { width: 18px; height: 18px; transition: transform .25s ease; }
.tn-fleche:hover .ico { transform: translateX(4px); }
.tn-suite { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }
.tn-home .btn .ico { width: 18px; height: 18px; margin-left: 10px; }
.tn-note { font-size: .9rem; color: var(--tn-doux); margin: 14px 0 0; line-height: 1.55; }
.tn-g2 { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-g3 { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-g4 { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tn-c0 { background: var(--c-bleu); color: white; }
.tn-c1 { background: var(--c-petrole); color: white; }
.tn-c2 { background: var(--c-ciel); color: var(--tn-encre); }
.tn-c3 { background: var(--c-surligne); color: var(--tn-encre); }
.tn-mini-jauge { display: block; height: 8px; border: 2px solid var(--tn-encre); border-radius: 999px; background: var(--c-fond); overflow: hidden; }
.tn-mini-jauge > span { display: block; height: 100%; background: var(--c-bleu); border-radius: 999px; transform-origin: left; }
.tn-fiche-tete { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--tn-mono); font-weight: 700; font-size: .92rem; }
.tn-fiche-tete .ico { color: var(--c-bleu); }
.tn-fiche-tete small { margin-left: auto; font-weight: 400; font-size: .78rem; color: var(--tn-doux); white-space: nowrap; }
.tn-lignes { margin: 0; display: grid; }
.tn-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-ligne dt { font-size: .92rem; color: var(--tn-doux); }
.tn-ligne dd { margin: 0; font-family: var(--tn-mono); font-weight: 700; font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-jauge { position: relative; height: 14px; margin: 16px 0 0; border: 2px solid var(--tn-encre); border-radius: 999px; background: var(--c-surligne); overflow: hidden; }
.tn-jauge-couv { position: absolute; inset: 0 auto 0 0; background: var(--c-bleu); transition: width .5s ease; }
.tn-jauge-l { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 10px 0 0; font-size: .85rem; color: var(--tn-doux); }
.tn-jauge-l span { display: inline-flex; align-items: center; gap: 8px; }
.tn-jauge-l b { color: var(--tn-encre); font-family: var(--tn-mono); }
.tn-pt-couv, .tn-pt-reste { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--tn-encre); border-radius: 50%; background: var(--c-bleu); }
.tn-pt-reste { background: var(--c-surligne); }
.tn-devis-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 2px solid var(--tn-encre); }
.tn-devis-total span { font-family: var(--tn-mono); font-weight: 700; font-size: .9rem; }
.tn-devis-total strong { font-family: var(--tn-mono); font-weight: 700; font-size: 1.7rem; line-height: 1; background: var(--c-surligne); padding: 4px 8px; border-radius: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ───── HERO : le devis passé au crible ───── */
.tn-devis { background: var(--c-fond); min-height: calc(100svh - var(--header-h, 100px)); display: grid; align-items: center; padding-block: clamp(28px, 4.5vh, 56px); }
.tn-devis-in { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); display: grid;
	grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.tn-devis-texte { min-width: 0; }
.tn-devis h1 { font-family: var(--tn-mono); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 20px; color: var(--tn-encre); }
.tn-devis-chapo { font-size: 1.08rem; line-height: 1.65; color: var(--tn-doux); max-width: 46ch; margin: 0; }
.tn-devis-actions { display: flex; flex-wrap: wrap; gap: 16px 18px; margin: 28px 0 0; }
.tn-reperes { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 32px 0 0; padding: 20px 0 0; border-top: 2px solid var(--tn-encre); }
.tn-reperes li { display: grid; gap: 2px; }
.tn-reperes b { font-family: var(--tn-mono); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--tn-encre); }
.tn-reperes span { font-size: .88rem; color: var(--tn-doux); }

/* scène : la fiche à gauche, posée sur le bord de la vraie photo */
.tn-devis-scene { position: relative; min-width: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; padding: 0 6px 6px 0; }
.tn-devis-photo { grid-column: 2; grid-row: 1; position: relative; margin: 0 0 0 -48px; aspect-ratio: 4 / 5; border: 2px solid var(--tn-encre); border-radius: 6px;
	overflow: hidden; box-shadow: var(--tn-ombre); background: var(--c-carte); }
.tn-devis-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; display: block; transform-origin: 55% 45%; }
.tn-devis-etat { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--c-carte);
	border: 2px solid var(--tn-encre); border-radius: 999px; font-family: var(--tn-mono); font-weight: 700; font-size: .74rem; line-height: 1.3; }
.tn-pt { width: 10px; height: 10px; border-radius: 50%; background: var(--c-etoile); border: 2px solid var(--tn-encre); flex: none; transition: background .3s ease; }
.tn-devis-etat.tn-ok .tn-pt { background: var(--c-bleu); }
.tn-devis-fiche { grid-column: 1; grid-row: 1; position: relative; z-index: 2; padding: 18px 18px 16px; }
.tn-devis-fiche .tn-fiche-tete { margin-bottom: 20px; font-size: .86rem; }
.tn-devis-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 18px; }
.tn-devis-profils button { min-height: 36px; padding: 4px 6px; border: 2px solid var(--tn-encre); border-radius: 6px; background: var(--c-carte); color: var(--tn-encre);
	font-family: var(--tn-texte); font-weight: 600; font-size: .74rem; line-height: 1.15; hyphens: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tn-devis-profils button:hover { background: var(--c-surligne); }
.tn-devis-profils button.tn-actif { background: var(--c-bleu); color: white; border-color: var(--c-bleu); }
.tn-devis-fiche .tn-ligne { padding: 7px 0; }
.tn-devis-fiche .tn-ligne dt { font-size: .82rem; }
.tn-devis-fiche .tn-ligne dd { font-size: .88rem; }
.tn-ligne.tn-lu dd { color: var(--c-bleu); }
.tn-ligne.tn-vise { background: var(--c-surligne); }
.tn-devis-fiche .tn-jauge { margin-top: 12px; height: 12px; }
.tn-devis-fiche .tn-devis-total span { font-size: .84rem; }
.tn-devis-fiche .tn-devis-total strong { font-size: 1.4rem; }
.tn-devis-fiche .tn-fleche { margin-top: 10px; font-size: .84rem; }

.tn-devis-scene { grid-template-columns: 318px minmax(0, 1fr); }
.tn-ligne dt small { display: block; font-size: .74rem; color: var(--c-gris); margin-top: 1px; }
.tn-ligne.tn-attente dd { opacity: .35; }
.tn-devis-fiche .tn-jauge-l { margin-top: 8px; font-size: .78rem; }
.tn-devis-fiche .tn-jauge-l b { font-size: .8rem; }
.tn-tete .tn-kicker { margin-inline: auto; }

/* ───── 2. Calculateur + échelle des cas ───── */
.tn-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
.tn-calc-champs { display: grid; gap: 14px; align-content: start; }
.tn-calc-champs .tn-fiche-tete { margin-bottom: 4px; }
.tn-calc-champs label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.tn-calc-champs input[type="number"] { font: 700 1.05rem var(--tn-mono); padding: 10px 12px; min-height: 46px; border: 2px solid var(--tn-encre); border-radius: 6px; background: white; color: var(--tn-encre); width: 100%; transition: background .4s ease; }
.tn-calc-champs input[type="number"]:focus { outline: 3px solid var(--c-ciel); outline-offset: 1px; }
.tn-calc-champs input.tn-flash { background: var(--c-surligne); }
.tn-calc-champs .tn-case { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.tn-calc-champs .tn-case input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-bleu); }
.tn-ticket { display: flex; flex-direction: column; }
.tn-ticket .tn-devis-total { margin-top: auto; padding-top: 16px; }
.tn-ticket .tn-jauge { margin-top: 22px; }
.tn-ticket .tn-devis-total strong { font-size: 2.2rem; }
.tn-ticket .tn-lignes { margin-bottom: 4px; }
.tn-ticket .tn-ligne { padding: 15px 0; }
.tn-ticket .tn-ligne dt { font-size: .98rem; }
.tn-ticket .tn-ligne dd { font-size: 1.1rem; }
.tn-ticket .tn-jauge { height: 18px; }
.tn-echelle { max-width: 1000px; margin: 40px auto 0; display: grid; gap: 0; }
.tn-echelle > .tn-fiche-tete { margin-bottom: 6px; }
.tn-ech-ligne { display: grid; grid-template-columns: 250px minmax(0, 1fr) 90px 200px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-ech-l { margin: 0; display: flex; align-items: center; gap: 12px; }
.tn-ech-l > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tn-ech-l b { font-family: var(--tn-mono); font-size: .95rem; }
.tn-ech-l small { font-size: .8rem; color: var(--tn-doux); line-height: 1.35; }
.tn-ech-mesure { min-width: 0; display: grid; gap: 6px; }
.tn-ech-piste { display: flex; width: var(--w, 100%); height: 24px; border: 2px solid var(--tn-encre); border-radius: 4px; overflow: hidden; transform-origin: left; }
.tn-ech-couv { flex-basis: 0; background: var(--c-bleu); }
.tn-ech-reste { flex-basis: 0; background: var(--c-surligne); border-left: 2px solid var(--tn-encre); }
.tn-ech-calc { margin: 0; font-family: var(--tn-mono); font-size: .78rem; color: var(--tn-doux); }
.tn-ech-v { font-family: var(--tn-mono); font-size: 1.25rem; text-align: right; white-space: nowrap; }
.tn-ech-act { margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.tn-ech-act .tn-fleche { font-size: .88rem; }
.tn-mini-btn { min-height: 36px; padding: 0 12px; border: 2px solid var(--tn-encre); border-radius: 6px; background: var(--c-carte); color: var(--tn-encre); font-family: var(--tn-mono); font-weight: 700; font-size: .78rem; cursor: pointer; box-shadow: 3px 3px 0 var(--tn-encre); transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.tn-mini-btn:hover { background: var(--c-surligne); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--tn-encre); }
.tn-echelle > .tn-jauge-l { margin-top: 16px; align-items: center; }
.tn-echelle > .tn-jauge-l .tn-fleche { margin-left: auto; color: var(--c-bleu); }
.tn-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--tn-encre); border-radius: 6px; background: var(--c-surligne); flex: none; }
.tn-ico .ico { width: 20px; height: 20px; }

/* ───── 3. Comparatif : une fiche, deux colonnes ───── */
.tn-comp, .tn-comp.tn-carte { max-width: 1040px; margin: 0 auto; padding: 0; overflow: hidden; }
.tn-comp-tete, .tn-comp-ligne { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
.tn-comp-tete { border-bottom: 2px solid var(--tn-encre); }
.tn-comp-coin { margin: 0; padding: 24px; display: flex; align-items: flex-end; gap: 10px; font-family: var(--tn-mono); font-weight: 700; font-size: .9rem; }
.tn-comp-coin .ico { color: var(--c-bleu); }
.tn-comp-col { padding: 24px; border-left: 2px solid var(--tn-encre); display: grid; gap: 8px; align-content: start; transition: background .25s ease; }
.tn-comp-col[data-col="b"] { background: color-mix(in srgb, var(--c-surligne) 55%, var(--c-carte)); }
.tn-comp-nom { margin: 0; font-family: var(--tn-mono); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.tn-comp-somme { margin: 0; font-family: var(--tn-mono); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--c-bleu); font-variant-numeric: tabular-nums; }
.tn-comp-barre { height: 14px; }
.tn-comp-col .tn-note { margin: 4px 0 0; }
.tn-comp-ligne + .tn-comp-ligne { border-top: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-comp-ligne h3 { margin: 0; padding: 18px 24px; display: flex; align-items: center; gap: 12px; font-size: .98rem; }
.tn-comp-ligne p { margin: 0; padding: 18px 24px; border-left: 2px solid var(--tn-encre); font-size: .95rem; line-height: 1.6; color: var(--tn-doux); transition: background .25s ease; }
.tn-comp-ligne p[data-col="b"] { background: color-mix(in srgb, var(--c-surligne) 30%, var(--c-carte)); }
.tn-comp-mob { display: none; }
.tn-comp.tn-vise-a [data-col="a"], .tn-comp.tn-vise-b [data-col="b"] { background: var(--c-surligne); color: var(--tn-encre); }
.tn-lex-n { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 4px; background: var(--c-surligne); border: 2px solid var(--tn-encre); font-family: var(--tn-mono); font-size: .78rem; flex: none; }

/* ───── 4. Parcours : photo et légende de l’étape active ───── */
.tn-etapes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.tn-etapes-vis { position: sticky; top: calc(var(--header-h, 100px) + 24px); margin: 0; padding: 0; overflow: hidden; }
.tn-etapes-img { position: relative; aspect-ratio: 16 / 11; max-height: 400px; overflow: hidden; border-bottom: 2px solid var(--tn-encre); background: var(--c-fond); }
.tn-etapes-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease, transform .6s ease; transform: scale(1.03); }
.tn-etapes-img img.tn-on { opacity: 1; transform: none; }
.tn-etapes-vis figcaption { padding: 16px 20px 18px; display: grid; gap: 12px; }
.tn-etape-cap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tn-etape-cap b { font-family: var(--tn-mono); font-size: .82rem; padding: 2px 8px; border: 2px solid var(--tn-encre); border-radius: 4px; background: var(--c-surligne); white-space: nowrap; }
.tn-etape-cap span { font-family: var(--tn-mono); font-weight: 700; font-size: 1.05rem; }
.tn-etapes-vis .tn-mini-jauge > span { transition: width .4s ease; }
.tn-etapes-liste { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; }
.tn-etapes-liste::before { content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px; width: 3px; background: color-mix(in srgb, var(--tn-encre) 18%, transparent); }
.tn-etapes-liste li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 16px; border: 2px solid transparent; border-radius: 6px; cursor: default; }
.tn-etape-n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--tn-encre); border-radius: 50%; background: var(--c-carte); font-family: var(--tn-mono); font-weight: 700; font-size: .95rem; }
.tn-etapes-liste li.tn-passe .tn-etape-n { background: var(--c-surligne); }
.tn-etapes-liste li.tn-actif { background: var(--c-carte); border-color: var(--tn-encre); box-shadow: var(--tn-ombre); }
.tn-etapes-liste li.tn-actif .tn-etape-n { background: var(--c-bleu); color: white; border-color: var(--c-bleu); }
.tn-etapes-liste h3 { margin: 10px 0 6px; }
.tn-etapes-liste p { margin: 0 0 8px; font-size: .98rem; line-height: 1.6; color: var(--tn-doux); }
.tn-etapes-liste .tn-fleche { font-size: .9rem; }
.tn-parcours { background: var(--c-carte); }
.tn-parcours .tn-etapes-liste li.tn-actif { background: var(--c-fond); }

/* ───── 5. Avant de se lancer : deux fiches de même hauteur ───── */
.tn-avant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.tn-check { min-width: 0; display: flex; flex-direction: column; }
.tn-check .tn-jauge { margin: 0 0 18px; }
.tn-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tn-check label { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 2px solid var(--tn-encre); border-radius: 6px; cursor: pointer; transition: background .25s ease; }
.tn-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--c-bleu); }
.tn-coche { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--tn-encre); color: var(--tn-encre); background: var(--c-carte); transition: background .25s ease, color .25s ease; }
.tn-check label:has(input:checked) { background: var(--c-surligne); }
.tn-check label:has(input:checked) .tn-coche { background: var(--c-bleu); color: white; border-color: var(--c-bleu); }
.tn-check label span:last-child { display: grid; gap: 2px; font-size: .95rem; color: var(--tn-doux); line-height: 1.5; }
.tn-check label b { font-family: var(--tn-mono); color: var(--tn-encre); font-size: 1rem; }
.tn-check > .tn-note { margin-top: auto; padding-top: 16px; }
.tn-quiz { min-width: 0; display: flex; flex-direction: column; }
.tn-quiz-boite { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.tn-quiz-boite .tn-question { padding: 28px 24px; border: 2px dashed color-mix(in srgb, var(--tn-encre) 35%, transparent); border-radius: 6px; background: var(--c-fond); }
.tn-quiz-boite .tn-question + .tn-question { margin-top: 12px; }
.tn-quiz-boite .tn-question:not([hidden]) { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tn-quiz-boite [data-question-texte] { font-family: var(--tn-mono); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; margin: 0 0 20px; text-align: center; text-wrap: balance; }
.tn-quiz-boite .kv-choix { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tn-quiz-boite [data-explication] { padding: 12px 14px; background: var(--c-surligne); border-radius: 4px; margin: 18px 0 0; line-height: 1.55; }
.tn-quiz-boite [data-quiz-score]:empty { display: none; }
.tn-quiz-score { margin: 0 0 12px; font-family: var(--tn-mono); font-weight: 700; text-align: center; }
.tn-quiz-boite .kv-bouton { min-height: 46px; min-width: 110px; border: 2px solid var(--tn-encre); border-radius: 6px; padding: 0 22px; font-family: var(--tn-mono); font-weight: 700; font-size: 1rem; color: var(--tn-encre); background: var(--c-carte); box-shadow: 3px 3px 0 var(--tn-encre); cursor: pointer; }
.tn-quiz-boite .kv-bouton:disabled { opacity: .5; cursor: default; }
.tn-quiz-boite .kv-bouton.kv-choisi { background: var(--c-bleu); color: white; border-color: var(--tn-encre); }
.tn-quiz-boite .kv-suivante, .tn-quiz-boite .kv-encore { background: var(--c-bleu); color: white; }
.tn-quiz-boite .kv-quiz-pied { margin-top: 20px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tn-quiz-boite .kv-quiz-prog span { border-color: var(--tn-encre); }
.tn-quiz-boite .kv-quiz-prog span::after { background: var(--c-bleu); }
.tn-quiz-boite [data-question].kv-juste, .tn-quiz-boite [data-question].kv-rate, .tn-quiz-boite [data-question].kv-nuance { box-shadow: none; }

/* ───── 6. Rubriques : une fiche par auteur, ses guides datés ───── */
.tn-repart { max-width: 900px; margin: 0 auto 40px; }
.tn-repart-barre { display: flex; gap: 4px; height: 34px; }
.tn-repart-seg { flex-basis: 0; min-width: 34px; display: grid; place-items: center; border: 2px solid var(--tn-encre); border-radius: 6px; font-family: var(--tn-mono); font-weight: 700; font-size: .9rem; transform-origin: left; }
.tn-repart-leg { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: .9rem; }
.tn-repart-leg li { display: inline-flex; align-items: center; gap: 8px; }
.tn-repart-leg i { width: 14px; height: 14px; border: 2px solid var(--tn-encre); border-radius: 3px; }
.tn-repart-leg b { font-family: var(--tn-mono); }
.tn-aut { display: flex; flex-direction: column; gap: 18px; }
.tn-aut-tete { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.tn-aut-tete img { width: 120px; height: 150px; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--tn-encre); border-radius: 6px; display: block; filter: saturate(.85) contrast(1.03); }
.tn-aut-id { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.tn-aut-id h3 { margin: 4px 0 0; font-size: 1.15rem; }
.tn-num { padding: 2px 9px; border: 2px solid var(--tn-encre); border-radius: 6px; font-family: var(--tn-mono); font-weight: 700; font-size: .8rem; }
.tn-aut-nom { margin: 0; font-size: .9rem; color: var(--tn-doux); line-height: 1.5; }
.tn-aut-nom a { font-weight: 600; }
.tn-rub-compte { margin: 2px 0 0; font-size: .86rem; color: var(--tn-doux); }
.tn-rub-compte b { font-family: var(--tn-mono); color: var(--tn-encre); font-size: 1.1rem; }
.tn-aut-id .tn-mini-jauge { width: 100%; max-width: 260px; }
.tn-aut-guides { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 2px solid var(--tn-encre); }
.tn-aut-guides li { counter-increment: g; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 12px 0; border-bottom: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-aut-guides li::before { content: counter(g, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--tn-mono); font-weight: 700; font-size: .8rem; color: var(--c-bleu); padding-top: 3px; }
.tn-aut-guides a { color: var(--tn-encre); font-weight: 600; font-size: .96rem; line-height: 1.45; text-decoration: none; }
.tn-aut-guides a:hover { color: var(--c-bleu); text-decoration: underline; }
.tn-aut-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-family: var(--tn-mono); font-size: .76rem; color: var(--tn-doux); }
.tn-aut-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tn-aut-meta .ico { width: 14px; height: 14px; color: var(--c-bleu); }
.tn-aut-plus { margin-top: auto; font-size: .88rem; }
.tn-duo { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 18px; }

/* ───── 7. Repères : bande pétrole ───── */
.tn-sombre { background: var(--c-petrole); color: white; border: 0; }
.tn-sombre .tn-tete h2 { color: white; }
.tn-sombre .tn-tete h2 em { color: var(--c-surligne); background: none; text-decoration: underline; text-decoration-color: var(--c-ciel); text-decoration-thickness: 4px; text-underline-offset: .22em; }
.tn-sombre .tn-kicker { background: var(--c-petrole); color: white; border-color: white; }
.tn-sombre .tn-kicker .ico { color: var(--c-surligne); }
.tn-compteurs { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tn-compteurs li { display: grid; gap: 8px; padding: 26px 22px; border: 2px solid white; border-radius: 6px; box-shadow: 6px 6px 0 var(--c-ciel); text-align: center; }
.tn-compteurs b { font-family: var(--tn-mono); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--c-surligne); font-variant-numeric: tabular-nums; }
.tn-compteurs span { font-size: 1rem; color: white; }
.tn-compteurs b span { color: inherit; font-size: inherit; }
.tn-sombre .tn-carte { color: var(--tn-encre); box-shadow: 6px 6px 0 var(--c-ciel); border-color: white; }
.tn-frise-corps { padding: clamp(24px, 3vw, 40px); }
.tn-frise-corps[data-frise]::before, .tn-frise-corps[data-frise]::after { content: none; display: none; }
.tn-axe { position: relative; height: 92px; margin: 10px 28px 24px; }
.tn-axe::before, .tn-axe-plein { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--tn-encre) 15%, transparent); }
.tn-axe-plein { background: var(--c-bleu); transform-origin: left; }
.tn-axe-ecart { position: absolute; top: 14px; transform: translateX(-50%); font-family: var(--tn-mono); font-size: .8rem; color: var(--tn-doux); white-space: nowrap; }
.tn-axe-pt { position: absolute; top: 37px; width: 0; }
.tn-axe-pt i { position: absolute; left: -9px; top: 0; width: 18px; height: 18px; border: 2px solid var(--tn-encre); border-radius: 50%; background: var(--c-bleu); }
.tn-axe-pt b { position: absolute; left: 0; transform: translateX(-50%); top: 26px; font-family: var(--tn-mono); font-size: .9rem; white-space: nowrap; }
.tn-axe-pt:nth-child(odd) b { top: -30px; }
.tn-jalons { list-style: none; margin: 0; padding: 0; display: grid; }
.tn-jalons li { display: grid; grid-template-columns: 90px 200px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-annee { font-family: var(--tn-mono); font-weight: 700; font-size: 1.3rem; color: var(--c-bleu); }
.tn-jalons h3 { margin: 0; }
.tn-jalons p { margin: 0; color: var(--tn-doux); }

/* ───── 8. Avis ───── */
.tn-avis-note { max-width: 1000px; margin: 0 auto 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.tn-avis-moy { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.tn-avis-moy b { font-family: var(--tn-mono); font-size: 4rem; line-height: 1; color: var(--c-bleu); }
.tn-avis-moy span { font-family: var(--tn-mono); font-weight: 700; font-size: 1.3rem; }
.tn-avis-src { display: grid; gap: 6px; min-width: 0; }
.tn-avis-note .tn-note { margin: 0; }
.tn-avis-rep { list-style: none; margin: 0; padding: 0 0 0 28px; display: grid; gap: 8px; border-left: 2px solid var(--tn-encre); }
.tn-avis-rep li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; font-family: var(--tn-mono); font-size: .85rem; }
.tn-avis-rep .tn-mini-jauge { height: 12px; }
.tn-avis-rep .tn-mini-jauge > span { background: var(--c-etoile); }
.tn-avis-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1000px; margin: 0 auto; }
.tn-avi { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tn-etoiles { margin: 0; color: var(--c-etoile); font-size: 1.15rem; letter-spacing: 2px; -webkit-text-stroke: .4px var(--tn-encre); }
.tn-avi blockquote { margin: 0; padding: 0; border: 0; font-style: normal; font-size: .98rem; line-height: 1.65; color: var(--tn-encre); }
.tn-avi figcaption { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); font-size: .88rem; }
.tn-avi figcaption b { font-family: var(--tn-mono); }
.tn-plus-avis { margin-top: 36px; }
.tn-plus-avis > summary { display: flex; width: max-content; margin: 0 auto 28px; gap: 10px; list-style: none; }
.tn-plus-avis > summary::-webkit-details-marker { display: none; }
.tn-chevron { transition: transform .25s ease; }
details[open] > summary .tn-chevron { transform: rotate(180deg); }

/* ───── 9. Questions et lexique ───── */
.tn-faq .tn-in { display: grid; gap: 16px; }
.tn-faq .tn-tete { margin-bottom: clamp(20px, 3vw, 36px); }
.tn-faq-q { padding: 0; }
.tn-faq-q summary { display: grid; grid-template-columns: auto minmax(0, 1fr) 22px; gap: 14px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--tn-mono); font-weight: 700; font-size: .98rem; line-height: 1.4; min-height: 44px; }
.tn-faq-q summary::-webkit-details-marker { display: none; }
.tn-faq-q p { margin: 0; padding: 0 20px 18px 68px; color: var(--tn-doux); line-height: 1.65; }
.tn-lexique { margin-top: 36px; }
.tn-lex-t { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center !important; font-size: 1.15rem !important; margin: 0 0 20px !important; }
.tn-lex-t .ico { color: var(--c-bleu); display: inline-block; }
.tn-lex { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tn-lex > div { padding: 14px 0; border-bottom: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); }
.tn-lex dt { font-family: var(--tn-mono); font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.tn-lex dd { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--tn-doux); }

/* ───── Animations : états de départ posés par tuning.js seulement ───── */
.tn-anim .tn-revele { opacity: 0; transform: translateY(18px); }

/* ───── Réactif ───── */
@media (max-width: 1100px) {
	.tn-compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tn-ech-ligne { grid-template-columns: 230px minmax(0, 1fr) 90px; }
	.tn-ech-act { grid-column: 1 / -1; justify-content: flex-start; }
	.tn-avis-note { grid-template-columns: auto minmax(0, 1fr); }
	.tn-avis-rep { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 2px solid var(--tn-encre); }
}
@media (max-width: 960px) {
	.tn-devis { min-height: 0; padding-block: 24px 56px; }
	.tn-devis-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tn-devis-scene { max-width: 660px; width: 100%; margin: 0 auto; }
	.tn-etapes { grid-template-columns: minmax(0, 1fr); }
	.tn-etapes-vis { position: sticky; top: calc(var(--header-h, 80px) + 8px); z-index: 2; max-width: 560px; width: 100%; margin: 0 auto; }
	.tn-calc { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
	.tn-avant { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
	.tn-g2.tn-auteurs { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
	.tn-jalons li { grid-template-columns: 80px minmax(0, 1fr); }
	.tn-jalons li p { grid-column: 2; }
	.tn-comp-tete, .tn-comp-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tn-comp-coin, .tn-comp-ligne h3 { grid-column: 1 / -1; }
	.tn-comp-coin { padding-bottom: 0; }
	.tn-comp-col[data-col="a"], .tn-comp-ligne p[data-col="a"] { border-left: 0; }
	.tn-comp-ligne h3 { padding-bottom: 0; }
}
@media (max-width: 700px) {
	.tn-g2, .tn-g3, .tn-g4, .tn-avis-liste { grid-template-columns: minmax(0, 1fr); }
	.tn-devis h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); margin-bottom: 14px; }
	.tn-devis .tn-kicker { margin-bottom: 14px; }
	.tn-devis-chapo { font-size: 1rem; }
	.tn-devis-actions { margin-top: 22px; }
	.tn-devis-actions .btn { flex: 1 1 100%; }
	.tn-reperes { gap: 12px 24px; margin-top: 24px; padding-top: 16px; }
	.tn-reperes b { font-size: 1.4rem; }
	.tn-devis-scene { grid-template-columns: minmax(0, 1fr); padding: 0 4px 4px 0; }
	.tn-devis-photo { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 1 / 1; }
	.tn-devis-photo img { object-position: 45% 40%; }
	.tn-devis-fiche { grid-column: 1; grid-row: 2; margin: -40px 10px 0; }
	.tn-carte { padding: 16px; box-shadow: 4px 4px 0 var(--tn-encre); }
	.tn-calc-champs .tn-case { display: block; position: relative; }
	.tn-calc-champs .tn-case input { position: absolute; left: 0; top: 0; margin: 0; }
	.tn-calc-champs .tn-case span { display: block; text-indent: 32px; }
	.tn-ech-ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
	.tn-ech-l { grid-column: 1; }
	.tn-ech-v { grid-column: 2; grid-row: 1; }
	.tn-ech-mesure { grid-column: 1 / -1; }
	.tn-ech-l small { display: none; }
	.tn-echelle > .tn-jauge-l .tn-fleche { margin-left: 0; }
	.tn-comp-tete, .tn-comp-ligne { display: block; }
	.tn-comp.tn-carte { padding: 0; }
	.tn-avis-note { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; }
	.tn-avis-rep { width: 100%; }
	.tn-comp-col { border-left: 0; border-top: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); padding: 16px 18px; }
	.tn-comp-coin { padding: 18px 18px 12px; }
	.tn-comp-ligne h3 { padding: 16px 18px 6px; }
	.tn-comp-ligne p { border-left: 0; padding: 8px 18px; }
	.tn-comp-ligne p:last-child { padding-bottom: 16px; }
	.tn-comp-mob { display: block; font-family: var(--tn-mono); font-weight: 700; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--tn-encre); margin-bottom: 2px; }
	.tn-etapes-liste::before { display: none; }
	.tn-etapes-liste li { display: block; padding: 14px; }
	.tn-etapes-liste li .tn-etape-n { width: 40px; height: 40px; }
	.tn-etapes-img { aspect-ratio: 16 / 9; }
	.tn-etapes-vis { position: relative; top: 0; }
	.tn-check label { display: block; position: relative; padding: 14px 0; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--tn-encre) 30%, transparent); border-radius: 0; }
	.tn-check input { position: absolute; left: 0; top: 17px; }
	.tn-check label span:last-child { display: block; }
	.tn-check label b { display: block; padding-left: 34px; margin-bottom: 4px; }
	.tn-coche { display: none; }
	.tn-quiz-boite .tn-question { padding: 18px 6px; border-width: 0 0 2px; border-radius: 0; background: none; }
	.tn-in, .tn-devis-in { padding-inline: 14px; }
	.tn-aut-tete { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
	.tn-aut-tete img { width: 88px; height: 110px; }
	.tn-aut-id { grid-column: 1 / -1; }
	.tn-aut-tete img { grid-row: 1; }
	.tn-aut-guides li { display: block; }
	.tn-aut-guides li::before { display: none; }
	.tn-compteurs { gap: 16px; }
	.tn-compteurs li { padding: 18px 12px; }
	.tn-axe { margin: 0 20px 8px; height: 70px; }
	.tn-axe-ecart, .tn-axe-pt:not(:nth-child(3)):not(:last-child) b { display: none; }
	.tn-axe-pt b { top: 26px !important; font-size: .74rem; }
	.tn-jalons li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tn-jalons li p { grid-column: 1; }
	.tn-faq-q summary { display: block; position: relative; padding: 14px 40px 14px 12px; }
	.tn-faq-q summary > span:not(.tn-lex-n) { display: block; }
	.tn-faq-q summary .tn-lex-n { display: none; }
	.tn-faq-q summary .tn-chevron { position: absolute; right: 12px; top: 16px; }
	.tn-faq-q.tn-carte { padding: 0; }
	.tn-faq-q p { padding: 0 12px 16px; }
	.tn-lex { grid-template-columns: minmax(0, 1fr); }
	.tn-sombre .tn-carte { box-shadow: 4px 4px 0 var(--c-ciel); }
}
@media (prefers-reduced-motion: reduce) {
	.tn-home *, .tn-home *::before, .tn-home *::after { transition: none !important; animation: none !important; }
	.tn-anim .tn-revele { opacity: 1; transform: none; }
}
