/* Home « La consultation » (tuning du 16/10/2026). Couleurs : variables de la charte (tokens.css, da.css), aucune autre. */
html, body { overflow-x: clip; }
/* Lenis : CSS officiel (sans lui le défilement saccade) */
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; }
@media (max-width: 700px) { [data-bandeau], .announcement-bar, .allo-bandeau { display: none !important; } }

.tn-home {
  --tn-largeur: 1200px;
  --tn-encre: var(--c-texte);
  --tn-encre-2: var(--c-texte-2);
  --tn-rouge: var(--c-primaire);
  --tn-rouge-texte: var(--c-primaire-texte);
  --tn-doux: var(--c-doux);
  --tn-bord: var(--c-bord);
  --tn-carte: var(--c-surface);
  --tn-ombre: 0 1px 2px color-mix(in srgb, var(--c-ombre) 6%, transparent), 0 18px 44px -18px color-mix(in srgb, var(--c-ombre) 22%, transparent);
  --tn-ombre-forte: 0 2px 4px color-mix(in srgb, var(--c-ombre) 8%, transparent), 0 28px 60px -20px color-mix(in srgb, var(--c-ombre) 38%, transparent);
  --tn-rayon: var(--radius-xl);
  font-family: var(--f-texte);
  color: var(--tn-encre);
  background: var(--c-fond);
}
.tn-home *, .tn-home *::before, .tn-home *::after { box-sizing: border-box; }
.tn-home :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
.tn-home :where(ul, ol) { list-style: none; }
.tn-home :where(a) { color: inherit; text-decoration: none; }
.tn-home :where(a):hover { text-decoration: none; color: inherit; }
.tn-home :where(h1, h2, h3) { font-family: var(--f-titre); color: var(--tn-encre); letter-spacing: -0.02em; }
.tn-home :where(img) { display: block; max-width: 100%; }
.tn-wrap { width: 100%; max-width: var(--tn-largeur); margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ── Grammaire commune : pastille, titres, cartes, boutons ── */
.tn-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border: 1px solid var(--tn-bord); border-radius: var(--radius-full); background: var(--tn-carte); font-family: var(--f-titre); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--tn-encre); line-height: 1.2; }
.tn-kicker__point { width: 8px; height: 8px; border-radius: 50%; background: var(--tn-rouge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primaire) 16%, transparent); flex: none; }
.tn-home h2 { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.1rem); font-weight: 800; line-height: 1.08; max-width: 19ch; margin-top: 18px; }
.tn-home :is(h1, h2) em { font-style: normal; color: var(--tn-rouge-texte); background: linear-gradient(transparent 64%, var(--tn-doux) 64%, var(--tn-doux) 92%, transparent 92%); padding: 0 0.04em; }
.tn-tete { margin-bottom: clamp(32px, 4vw, 52px); }
.tn-tete__dit { margin-top: 16px; max-width: 58ch; font-size: 17px; line-height: 1.65; color: var(--tn-encre-2); }
.tn-tete--rang { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tn-section { padding-block: clamp(64px, 8vw, 116px); }
.tn-carte { background: var(--tn-carte); border: 1px solid var(--tn-bord); border-radius: var(--tn-rayon); box-shadow: var(--tn-ombre); }
.tn-etiquette { display: inline-flex; align-self: flex-start; padding: 4px 11px; border-radius: var(--radius-full); background: var(--tn-rouge); color: var(--c-sur-primaire); font-family: var(--f-titre); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
.tn-etiquette--douce { background: var(--tn-doux); color: var(--c-sur-doux); }
.tn-meta { font-size: 14px; color: var(--tn-encre-2); }
.tn-jauge { position: relative; display: block; height: 6px; border-radius: var(--radius-full); background: var(--c-fond-2); overflow: hidden; }
.tn-jauge::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); transform-origin: left; border-radius: inherit; background: var(--tn-rouge); transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.tn-lien { font-family: var(--f-titre); font-weight: 600; font-size: 15px; color: var(--tn-rouge-texte) !important; }
.tn-lien:hover { text-decoration: underline !important; }

.tn-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.tn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-bouton); border: 2px solid var(--tn-rouge); background: var(--tn-rouge); color: var(--c-sur-primaire) !important; font-family: var(--f-titre); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base); }
.tn-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--c-primaire) 70%, transparent); text-decoration: none !important; }
.tn-btn--ligne { background: transparent; color: var(--tn-rouge-texte) !important; border-color: var(--tn-rouge-texte); }
.tn-btn--ligne:hover { background: var(--tn-doux); box-shadow: none; }
.tn-btn--clair { background: var(--c-surface); border-color: var(--c-surface); color: var(--tn-encre) !important; }
.tn-btn--ligne-clair { background: transparent; border-color: color-mix(in srgb, var(--c-surface) 60%, transparent); color: var(--c-surface) !important; }

/* ── 1. Hero : la consultation ── */
.tn-hero { background: var(--c-fond); border-bottom: 1px solid var(--tn-bord); }
.tn-hero__in { max-width: var(--tn-largeur); margin: 0 auto; padding: clamp(28px, 4vh, 48px) clamp(20px, 4vw, 40px); min-height: calc(100svh - var(--allo-entete, 108px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(40px, 5vw, 80px); align-items: center; }
.tn-hero__copie { min-width: 0; }
.tn-hero h1 { font-family: 'Poppins', var(--f-titre); font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-top: 22px; max-width: 12.5ch; }
.tn-hero__chapo { margin-top: 22px; max-width: 50ch; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.7; color: var(--tn-encre-2); }
.tn-hero .tn-boutons { margin-top: 30px; }
.tn-reperes { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--tn-bord); max-width: 520px; }
.tn-reperes li { display: grid; gap: 2px; }
.tn-reperes strong { font-family: var(--f-titre); font-size: 34px; font-weight: 800; line-height: 1; color: var(--tn-encre); }
.tn-reperes span { font-size: 14px; color: var(--tn-encre-2); }

.tn-scene { position: relative; min-width: 0; padding-left: 84px; }
.tn-scene__photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--tn-rayon); overflow: hidden; box-shadow: var(--tn-ombre-forte); background: var(--c-fond-2); }
.tn-scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.04); }
.tn-cas { display: none; position: absolute; inset: 0 0 58px 0; pointer-events: none; }
.tn-cas.is-on { display: block; }
.tn-cas > * { pointer-events: auto; }
.tn-bulle { position: absolute; top: 34px; left: 0; width: min(310px, 66%); padding: 14px 18px 16px; background: var(--tn-carte); border-radius: 20px 20px 20px 6px; box-shadow: var(--tn-ombre-forte); }
.tn-bulle::after { content: ''; position: absolute; left: 22px; bottom: -9px; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.tn-bulle__qui { display: block; font-family: var(--f-titre); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tn-rouge-texte); }
.tn-bulle__q { position: relative; margin-top: 6px !important; font-family: var(--f-titre); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--tn-encre); }
.tn-tape-fant { visibility: hidden; }
.tn-tape { position: absolute; inset: 0; }
.tn-tape::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--tn-rouge); animation: tn-clignote 900ms steps(1) infinite; }
.tn-tape.is-fini::after { display: none; }

.tn-fiche { position: absolute; left: 0; bottom: 26px; width: min(340px, 74%); display: grid; gap: 10px; padding: 18px 20px; background: var(--tn-carte); border-radius: var(--tn-rayon); border: 1px solid var(--tn-bord); box-shadow: var(--tn-ombre-forte); color: var(--tn-encre) !important; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.tn-fiche:hover { transform: translateY(-3px); }
.tn-fiche__haut { display: flex; justify-content: space-between; align-items: center; }
.tn-fiche__tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-titre); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tn-rouge-texte); }
.tn-fiche__tag::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--tn-rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tn-fiche__min { font-size: 13px; color: var(--tn-encre-2); }
.tn-fiche__titre { font-family: var(--f-titre); font-size: 17px; font-weight: 700; line-height: 1.3; }
.tn-fiche__lien { font-family: var(--f-titre); font-size: 14px; font-weight: 600; color: var(--tn-rouge-texte); }
.tn-fiche:hover .tn-fiche__lien { text-decoration: underline; }

.tn-demo { display: block; }
.tn-demo--barres { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 78px; padding: 6px 0 0; border-bottom: 1px solid var(--tn-bord); }
.tn-b { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--c-texte) 22%, transparent); transform-origin: bottom; }
.tn-b--bas { background: var(--tn-rouge); }
.tn-seuil { position: absolute; left: 0; right: 0; bottom: 48%; border-top: 2px dashed var(--tn-rouge); }
.tn-seuil span { position: absolute; right: 0; top: -20px; font-size: 11px; font-family: var(--f-titre); font-weight: 600; color: var(--tn-rouge-texte); background: var(--tn-carte); padding: 0 4px; }
.tn-demo--liste { display: grid; gap: 6px; }
.tn-coche { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.3; }
.tn-coche::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--tn-rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tn-demo--tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tn-tuile { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--c-fond); border-left: 3px solid var(--tn-rouge); }
.tn-tuile b { font-family: var(--f-titre); font-size: 13px; font-weight: 700; }
.tn-tuile small { font-size: 12px; color: var(--tn-encre-2); line-height: 1.3; }
.tn-demo--points { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-point { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: var(--radius-full); background: var(--c-fond); border: 1px solid var(--tn-bord); font-size: 13px; line-height: 1.2; }
.tn-point i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tn-encre); color: var(--c-surface); font-style: normal; font-family: var(--f-titre); font-size: 11px; font-weight: 700; }

.tn-scene__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tn-scene__nav button { position: relative; overflow: hidden; height: 38px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--tn-bord); background: var(--tn-carte); font-family: var(--f-titre); font-size: 13px; font-weight: 600; color: var(--tn-encre-2); cursor: pointer; transition: border-color var(--transition-fast), color var(--transition-fast); }
.tn-scene__nav button span { position: relative; z-index: 1; }
.tn-scene__nav button.is-on { border-color: var(--tn-encre); color: var(--tn-encre); }
.tn-scene__nav button::before { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--tn-rouge); transform: scaleX(var(--avance, 0)); transform-origin: left; }
.tn-scene__nav button.is-on { --avance: 1; }
.tn-scene.is-auto .tn-scene__nav button.is-on { --avance: 0; }

@keyframes tn-monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tn-pousse { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes tn-pousse-b { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tn-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tn-avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tn-clignote { 50% { opacity: 0; } }
@media (hover: hover) { .tn-scene:hover .tn-fiche { box-shadow: 0 2px 4px color-mix(in srgb, var(--c-ombre) 8%, transparent), 0 36px 70px -22px color-mix(in srgb, var(--c-ombre) 48%, transparent); } }

/* ── 2. Le journal ── */
.tn-journal { background: var(--c-surface); }
.tn-journal__grille { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.tn-une { display: flex; flex-direction: column; overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.tn-une:hover { transform: translateY(-4px); box-shadow: var(--tn-ombre-forte); }
.tn-une__img { position: relative; aspect-ratio: 4 / 3; max-height: 480px; overflow: hidden; background: var(--c-fond-2); }
.tn-une__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.tn-une:hover .tn-une__img img { transform: scale(1.04); }
.tn-une__corps { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; flex: 1; }
.tn-une h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.tn-une h3 a::after { content: ''; position: absolute; inset: 0; }
.tn-une { position: relative; }
.tn-une h3 a { position: static; }
.tn-une p { font-size: 16px; line-height: 1.6; color: var(--tn-encre-2); }
.tn-une .tn-meta { margin-top: auto; }
.tn-une--grande { grid-row: 1 / 3; }
.tn-une--grande .tn-une__img { aspect-ratio: auto; height: 480px; flex: none; }
.tn-une--grande h3 { font-size: clamp(22px, 1.2rem + 0.6vw, 27px); }
.tn-fil { grid-column: 2 / 4; padding: 8px 24px; display: grid; }
.tn-fil li { display: grid; grid-template-columns: 196px minmax(0, 1fr) 112px; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--tn-bord); }
.tn-fil li:first-child { border-top: 0; }
.tn-fil .tn-etiquette { justify-self: start; white-space: nowrap; font-size: 11px; }
.tn-fil a { font-family: var(--f-titre); font-weight: 600; font-size: 16px; line-height: 1.35; }
.tn-fil a:hover { color: var(--tn-rouge-texte); }
.tn-fil__min { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--tn-encre-2); }

/* ── 3. Simulateur de trésorerie ── */
.tn-treso { background: var(--c-fond-2); }
.tn-treso__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tn-treso .tn-tete { margin-bottom: 0; position: sticky; top: calc(var(--header-h, 72px) + 24px); }
.tn-treso__liens { margin-top: 20px !important; font-size: 15px; line-height: 1.7; color: var(--tn-encre-2); }
.tn-treso__liens a { color: var(--tn-rouge-texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tn-sim { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.tn-sim__champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.tn-sim__champs label { display: grid; gap: 6px; font-size: 14px; line-height: 1.35; color: var(--tn-encre-2); }
.tn-sim__champs label:last-child { grid-column: 1 / -1; }
.tn-sim__champs label > span { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 48px; border: 1px solid var(--tn-bord); border-radius: 14px; background: var(--c-fond); font-family: var(--f-titre); font-weight: 600; color: var(--tn-encre); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.tn-sim__champs label > span:focus-within { border-color: var(--tn-rouge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primaire) 18%, transparent); }
.tn-sim__champs input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; color: inherit; outline: none; }
.tn-sim__vue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tn-sim__scenarios { display: inline-flex; justify-self: start; padding: 4px; gap: 4px; border-radius: var(--radius-full); background: var(--c-fond); border: 1px solid var(--tn-bord); }
.tn-sim__scenarios label { cursor: pointer; }
.tn-sim__scenarios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tn-sim__scenarios span { display: inline-block; padding: 8px 18px; border-radius: var(--radius-full); font-family: var(--f-titre); font-size: 14px; font-weight: 600; color: var(--tn-encre-2); transition: background var(--transition-fast), color var(--transition-fast); }
.tn-sim__scenarios input:checked + span { background: var(--tn-encre); color: var(--c-surface); }
.tn-sim__scenarios input:focus-visible + span { outline: 2px solid var(--tn-rouge); outline-offset: 2px; }
.tn-sim__graphe { position: relative; display: grid; grid-template-columns: repeat(13, 1fr); align-items: end; gap: 6px; height: 200px; padding-bottom: 22px; border-bottom: 1px solid var(--tn-bord); }
.tn-sim__col { position: relative; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--c-texte) 26%, transparent); transition: height 700ms cubic-bezier(.2, .7, .2, 1), background var(--transition-base); }
.tn-sim__col.is-sous { background: var(--tn-rouge); }
.tn-sim__col small { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: 11px; color: var(--tn-encre-2); font-family: var(--f-titre); }
.tn-sim__seuil { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * var(--s, 0)); border-top: 2px dashed var(--tn-rouge); z-index: 1; transition: bottom 700ms cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.tn-sim__seuil span { position: absolute; right: 0; top: -22px; padding: 0 6px; font-size: 12px; font-weight: 600; font-family: var(--f-titre); color: var(--tn-rouge-texte); background: var(--tn-carte); }
.tn-sim__verdict { padding: 14px 16px; border-radius: 14px; background: var(--tn-doux); color: var(--c-sur-doux); font-size: 16px; line-height: 1.5; }
.tn-sim__verdict strong { font-family: var(--f-titre); }
.tn-sim__verdict.is-ok { background: var(--c-fond); color: var(--tn-encre); }
.tn-sim__note { font-size: 13px; line-height: 1.55; color: var(--tn-encre-2); }

/* ── 4. Rubriques ── */
.tn-rubriques__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tn-rub { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 26px; }
.tn-rub__haut { display: flex; align-items: flex-end; gap: 12px; }
.tn-rub__n { font-family: var(--f-titre); font-size: 56px; font-weight: 800; line-height: 0.9; color: var(--tn-rouge); }
.tn-rub__unite { font-size: 13px; line-height: 1.35; color: var(--tn-encre-2); }
.tn-rub__barre { display: block; height: 6px; border-radius: var(--radius-full); background: var(--c-fond-2); overflow: hidden; }
.tn-rub__barre span { display: block; height: 100%; width: var(--v); transform-origin: left; border-radius: inherit; background: var(--tn-encre); transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.tn-rub h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.tn-rub h3 a:hover { color: var(--tn-rouge-texte); }
.tn-rub > p { font-size: 15px; line-height: 1.6; color: var(--tn-encre-2); }
.tn-rub ul { display: grid; margin-top: auto !important; border-top: 1px solid var(--tn-bord); }
.tn-rub li { border-bottom: 1px solid var(--tn-bord); }
.tn-rub li a { display: flex; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.4; }
.tn-rub li a::before { content: '→'; color: var(--tn-rouge); font-family: var(--f-titre); }
.tn-rub li a:hover { color: var(--tn-rouge-texte); }

/* ── 5. Règle du temps (échelle logarithmique, 5 min à 2 ans) ── */
.tn-horloge { background: var(--c-surface); }
.tn-regle { --c1: 150px; --c3: 300px; --gx: 28px; --px: clamp(20px, 2.5vw, 34px); position: relative; padding: 74px var(--px) 18px; }
.tn-regle__axe { position: absolute; top: 18px; bottom: 18px; left: calc(var(--px) + var(--c1) + var(--gx)); right: calc(var(--px) + var(--c3) + var(--gx)); pointer-events: none; }
.tn-regle__grad { position: absolute; inset: 0; }
.tn-regle__grad > span { position: absolute; top: 0; bottom: 0; left: var(--p); border-left: 1px dashed color-mix(in srgb, var(--c-texte) 18%, transparent); }
.tn-regle__grad small { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 2px 7px; border-radius: var(--radius-full); background: var(--c-fond); font-family: var(--f-titre); font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--tn-encre-2); }
.tn-regle__liste { position: relative; }
.tn-regle__liste li + li { border-top: 1px solid var(--tn-bord); }
.tn-regle__liste a { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) var(--c3); gap: var(--gx); align-items: center; padding: 13px 0; }
.tn-regle__duree { display: flex; align-items: baseline; gap: 7px; font-family: var(--f-titre); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tn-regle__duree small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tn-rouge-texte); }
.tn-regle__piste { position: relative; display: block; height: 14px; }
.tn-regle__barre { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: var(--radius-full); background: color-mix(in srgb, var(--c-texte) 78%, transparent); transform-origin: left; transition: background var(--transition-base); }
.tn-regle__barre::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--tn-rouge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primaire) 18%, transparent); }
.tn-regle__dit { font-size: 14px; line-height: 1.5; color: var(--tn-encre-2); }
.tn-regle__liste a:hover .tn-regle__barre, .tn-regle__liste a:focus-visible .tn-regle__barre, .tn-regle__liste li.is-on .tn-regle__barre { background: var(--tn-rouge); }
.tn-regle__liste a:hover :is(.tn-regle__duree, .tn-regle__dit), .tn-regle__liste li.is-on :is(.tn-regle__duree, .tn-regle__dit) { color: var(--tn-rouge-texte); }
.tn-regle__lecteur { position: absolute; top: 34px; bottom: 0; left: 0; width: 0; border-left: 2px solid var(--tn-rouge); opacity: 0; transition: opacity var(--transition-fast); }
.tn-regle__lecteur small { position: absolute; top: -10px; left: 0; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--radius-full); background: var(--tn-rouge); color: var(--c-sur-primaire); font-family: var(--f-titre); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tn-regle.is-lit .tn-regle__lecteur { opacity: 1; }

/* ── 6. Vrai ou faux ── */
.tn-quiz__score { display: block; min-width: 260px; font-size: 15px; color: var(--tn-encre-2); }
.tn-quiz__score .tn-jauge { margin-top: 10px; }
.tn-quiz__score strong { font-family: var(--f-titre); font-size: 22px; color: var(--tn-encre); }
.tn-jauge--large { height: 8px; }
.tn-quiz__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tn-q { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.tn-q__n { font-family: var(--f-titre); font-size: 13px; font-weight: 700; color: var(--tn-rouge-texte); letter-spacing: 0.06em; }
.tn-q__texte { font-family: var(--f-titre); font-size: 18px; font-weight: 600; line-height: 1.4; }
.tn-q__choix { display: flex; gap: 8px; margin-top: auto; }
.tn-q__choix[hidden] { display: none; }
.tn-q__choix button { flex: 1; height: 44px; border-radius: var(--radius-full); border: 2px solid var(--tn-encre); background: transparent; font-family: var(--f-titre); font-size: 15px; font-weight: 600; color: var(--tn-encre); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast); }
.tn-q__choix button:hover { background: var(--tn-encre); color: var(--c-surface); }
.tn-q__choix button:disabled { cursor: default; }
.tn-q__choix button.is-juste { background: var(--tn-encre); color: var(--c-surface); }
.tn-q__choix button.is-faux { border-color: var(--tn-rouge); color: var(--tn-rouge-texte); background: var(--tn-doux); }
.tn-q__rep summary { cursor: pointer; font-family: var(--f-titre); font-size: 14px; font-weight: 600; color: var(--tn-rouge-texte); list-style: none; }
.tn-q__rep summary::-webkit-details-marker { display: none; }
.tn-q__rep p { margin-top: 10px !important; font-size: 15px; line-height: 1.6; color: var(--tn-encre-2); }
.tn-q__rep a { display: inline-block; margin-top: 8px; font-family: var(--f-titre); font-size: 14px; font-weight: 600; color: var(--tn-rouge-texte); text-decoration: underline; text-underline-offset: 3px; }
.tn-js .tn-q[data-js] .tn-q__rep summary { display: none; }
.tn-js .tn-q[data-js] .tn-q__rep:not([open]) { display: none; }
.tn-q.is-bon { border-color: var(--tn-encre); }
.tn-q.is-rate { border-color: var(--tn-rouge); }
.tn-q__verdict { font-family: var(--f-titre); font-weight: 700; font-size: 14px; }
.tn-q.is-bon .tn-q__verdict { color: var(--tn-encre); }
.tn-q.is-rate .tn-q__verdict { color: var(--tn-rouge-texte); }

/* ── 7. Rédaction ── */
.tn-redaction { background: var(--c-surface); }
.tn-compteur { display: grid; text-align: right; }
.tn-compteur strong { font-family: var(--f-titre); font-size: clamp(44px, 2rem + 2vw, 64px); font-weight: 800; line-height: 1; color: var(--tn-rouge); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tn-compteur span { font-size: 15px; color: var(--tn-encre-2); }
.tn-redaction__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tn-auteur { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.tn-auteur__id { display: flex; align-items: center; gap: 14px; }
.tn-auteur__id img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 4px var(--tn-bord); }
.tn-auteur h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.tn-auteur h3 a:hover { color: var(--tn-rouge-texte); }
.tn-auteur__chiffres { font-size: 14px; color: var(--tn-encre-2); }
.tn-auteur__chiffres strong { font-family: var(--f-titre); font-size: 18px; color: var(--tn-encre); }
.tn-auteur__dernier { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--tn-bord); }
.tn-auteur__dernier span { font-size: 12px; font-family: var(--f-titre); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tn-encre-2); }
.tn-auteur__dernier a { font-family: var(--f-titre); font-weight: 600; font-size: 15px; line-height: 1.4; }
.tn-auteur__dernier a:hover { color: var(--tn-rouge-texte); }
.tn-auteur .tn-lien { margin-top: auto; }

/* ── 8. Contact ── */
.tn-contact { padding-top: 0; background: var(--c-surface); }
.tn-contact__carte { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--tn-rayon) + 8px); background: var(--tn-encre); color: var(--c-surface); }
.tn-contact h2 { color: var(--c-surface); }
.tn-contact h2 em { color: var(--c-surface); background: linear-gradient(transparent 64%, var(--tn-rouge) 64%, var(--tn-rouge) 92%, transparent 92%); }
.tn-contact__copie > p:not(.tn-kicker) { margin-top: 16px; max-width: 52ch; font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--c-surface) 78%, transparent); }
.tn-contact .tn-boutons { margin-top: 28px; }
.tn-kicker--clair { background: transparent; color: var(--c-surface); border-color: color-mix(in srgb, var(--c-surface) 30%, transparent); }
.tn-contact__bulle { position: relative; padding: 20px 24px 22px; border-radius: 22px 22px 22px 6px; background: var(--c-surface); color: var(--tn-encre); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c-ombre) 70%, transparent); transform: rotate(-2deg); }
.tn-contact__bulle::after { content: ''; position: absolute; left: 24px; bottom: -9px; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); }
.tn-contact__bulle p { margin-top: 6px !important; font-family: var(--f-titre); font-size: 22px; font-weight: 600; line-height: 1.3; }
.tn-curseur { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--tn-rouge); }
.tn-contact.is-actif .tn-curseur { animation: tn-clignote 1s steps(1) infinite; }

/* ── Tablette ── */
@media (max-width: 1100px) {
  .tn-journal__grille { grid-template-columns: 1fr 1fr; }
  .tn-une--grande { grid-row: auto; grid-column: 1 / -1; flex-direction: row; }
  .tn-une--grande .tn-une__img { width: 44%; height: auto; min-height: 360px; }
  .tn-fil { grid-column: 1 / -1; }
  .tn-rubriques__grille, .tn-redaction__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-regle { --c1: 120px; --c3: 230px; --gx: 20px; }
  .tn-quiz__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tn-treso__in { grid-template-columns: 1fr; }
  .tn-treso .tn-tete { position: static; }
}

/* ── Mobile ── */
@media (max-width: 820px) {
  .tn-hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 22px; padding-bottom: 40px; gap: 34px; }
  .tn-hero h1 { font-size: clamp(2.15rem, 1.4rem + 3.6vw, 2.9rem); margin-top: 16px; max-width: 13ch; }
  .tn-hero__chapo { margin-top: 14px; font-size: 16px; line-height: 1.6; }
  .tn-hero .tn-boutons { margin-top: 22px; }
  .tn-reperes { margin-top: 26px; padding-top: 18px; }
  .tn-reperes strong { font-size: 28px; }
  .tn-scene { padding-left: 0; display: flex; flex-direction: column; }
  .tn-cas { position: static; inset: auto; transform: none; order: 1; }
  .tn-bulle { top: 14px; left: 14px; width: min(270px, 70%); padding: 12px 14px 14px; }
  .tn-bulle__q { font-size: 16px; }
  .tn-fiche { position: relative; left: auto; bottom: auto; width: auto; margin: -84px 14px 0; }
  .tn-scene__nav { order: 2; justify-content: flex-start; gap: 6px; flex-wrap: nowrap; }
  .tn-scene__nav button { height: 36px; padding: 0 11px; font-size: 12px; }
  .tn-fiche { min-height: 232px; align-content: start; }
}
@media (max-width: 700px) {
  .tn-journal__grille { grid-template-columns: 1fr; }
  .tn-une--grande { flex-direction: column; }
  .tn-une--grande .tn-une__img { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tn-fil { padding: 4px 18px; }
  .tn-fil li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .tn-fil li .tn-etiquette { grid-column: 1 / -1; }
  .tn-fil__min { grid-template-columns: auto; }
  .tn-fil__min .tn-jauge { display: none; }
  .tn-sim__champs { grid-template-columns: 1fr; }
  .tn-sim__graphe { gap: 3px; height: 170px; }
  .tn-sim__col small { font-size: 9px; }
  .tn-rubriques__grille, .tn-redaction__grille, .tn-quiz__grille { grid-template-columns: 1fr; }
  .tn-compteur { text-align: left; }
  .tn-regle { --px: 18px; padding-top: 70px; }
  .tn-regle__lecteur { border-left-color: transparent; }
  .tn-regle__axe { left: var(--px); right: var(--px); }
  .tn-regle__grad > span:nth-child(3) small { display: none; }
  .tn-regle__grad > span { border-left-color: transparent; }
  .tn-regle__liste a { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; }
  .tn-regle__duree { font-size: 26px; }
  .tn-regle__piste { grid-row: 3; height: 10px; margin-top: 4px; }
  .tn-contact__carte { grid-template-columns: 1fr; }
  .tn-contact__bulle { transform: none; }
}

/* ── Mouvement piloté par GSAP (tuning.js) ── */
.tn-mot { display: inline-block; }
.tn-js .tn-une--grande .tn-une__img img { transition: none; }
@media (hover: hover) { .tn-js .tn-hero .tn-btn, .tn-js .tn-contact .tn-btn { transition: box-shadow var(--transition-base), background var(--transition-base); } }

/* ── 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-scene__photo img, .tn-cas { transform: none !important; }
}
