/* tuning.css : home de gloria-mode.fr, « le nuancier qui dure » (passe 2, 10/11/2026).
   Couleurs, rayons et ombres : variables de da.css uniquement. Polices auto-hébergées (Fraunces, Nunito Sans). */
@font-face { font-family: 'GM Fraunces'; src: url('/fonts/fraunces-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'GM Nunito'; src: url('/fonts/nunito-sans-var.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
html:root {
  --f-titre: 'GM Fraunces', 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-texte: 'GM Nunito', 'Nunito Sans', 'Segoe UI', sans-serif;
  --tn-air: clamp(72px, 9vw, 120px);
  --tn-col: var(--largeur, 1120px);
  --tn-ease: cubic-bezier(.22, .8, .2, 1);
}
@media (max-width: 700px) {
  [data-bandeau], .announcement-bar { display: none !important; }
  html:root { --header-h: 76px; }
}
@media (max-width: 640px) { html:root { --header-h: 66px; } }

/* ---------- en-tête du site (même main que la home) ---------- */
/* le menu est zoomé à 0,72 au-delà de 1024 px (da.css, nav-resserree) : sa largeur se donne en unités zoomées
   pour s'aligner sur la colonne de la home (1120 px visibles) sans renvoyer « Archives » à la ligne */
@media (min-width: 1024px) {
  html .site-nav .site-nav-inner { width: min(calc((var(--tn-col) + 48px) / .72), 100%) !important; max-width: none !important; flex-wrap: nowrap !important; }
}
html .site-nav .site-archive { color: var(--c-sur-primaire) !important; box-shadow: none !important; }
html body.font-sans, html body .site-nav, html body footer { font-family: var(--f-texte); }
html .af-pad h2 { font-family: var(--f-titre); font-weight: 500; }

/* ---------- apparitions (JS seulement, en Y) ---------- */
.tn-js .tn-sec .tn-tete > *, .tn-js .tn-duo .tn-photo, .tn-js .tn-vignettes, .tn-js .tn-diag, .tn-js .tn-quiz-boite, .tn-js .tn-carnet-grille {
  opacity: 0; transform: translateY(24px); transition: opacity .8s var(--tn-ease), transform .8s var(--tn-ease); }
.tn-js .tn-sec .tn-tete > :nth-child(2) { transition-delay: .08s; }
.tn-js .tn-sec .tn-tete > :nth-child(3) { transition-delay: .16s; }
.tn-js .tn-vu.tn-tete > *, .tn-js .tn-vu.tn-photo, .tn-js .tn-vu.tn-vignettes, .tn-js .tn-vu.tn-diag, .tn-js .tn-vu.tn-quiz-boite, .tn-js .tn-vu.tn-carnet-grille { opacity: 1; transform: none; }
.tn-js .tn-matrice-ligne .tn-points i { transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.tn-js .tn-matrice-ligne.tn-vu .tn-points i { transform: scale(1); }
.tn-js .tn-matrice-ligne.tn-vu .tn-points i:nth-child(2) { transition-delay: .08s; }
.tn-js .tn-matrice-ligne.tn-vu .tn-points i:nth-child(3) { transition-delay: .16s; }
.tn-js .tn-matrice-ligne.tn-vu .tn-points i:nth-child(4) { transition-delay: .24s; }

/* ---------- grammaire commune ---------- */
.tn-home { width: 100%; overflow: hidden; background: var(--c-fond); color: var(--c-texte); font-family: var(--f-texte); }
.tn-home h1, .tn-home h2, .tn-home h3 { font-family: var(--f-titre); color: var(--c-texte); letter-spacing: -.01em; }
.tn-home em { font-style: italic; font-weight: 400; color: var(--c-primaire-texte); }
.tn-sec { padding: var(--tn-air) 24px; scroll-margin-top: var(--header-h); }
.tn-alt { background: var(--c-fond-2); }
.tn-in { width: min(var(--tn-col), 100%); margin: 0 auto; }
.tn-etroit { width: min(780px, 100%); }
.tn-tete { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.tn-tete h2 { text-wrap: balance; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.12; font-weight: 500; margin: 18px 0 16px; }
.tn-tete h2 em { display: inline; }
.tn-tete > p:last-child { font-size: 1.08rem; line-height: 1.65; color: var(--c-texte-2); margin: 0 auto; max-width: 640px; }
.tn-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 16px 5px 5px; border: 1px solid var(--c-bord);
  border-radius: 999px; background: var(--c-surface); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte); }
.tn-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primaire); color: var(--c-sur-primaire);
  font-family: var(--f-titre); font-style: italic; font-size: .9rem; letter-spacing: 0; }
.tn-carte { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte, 0); padding: 28px; }
.tn-mini { margin: 0 0 8px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-centre { text-align: center; margin: 40px 0 0; }
.tn-lien { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primaire-texte); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tn-lien svg { flex: none; transition: transform .3s var(--tn-ease); }
.tn-lien:hover svg { transform: translateX(4px); }

/* boutons : même forme que le bouton « Archives » du menu (pilule jaune) */
.tn-home .tn-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; box-shadow: none; transition: transform .25s var(--tn-ease), box-shadow .25s var(--tn-ease), background-color .25s; }
.tn-home .tn-btn-plein { background: var(--c-primaire); color: var(--c-sur-primaire) !important; border: 2px solid var(--c-primaire); }
.tn-home .tn-btn-filet { background: var(--c-surface); color: var(--c-texte) !important; border: 2px solid var(--c-texte); }
.tn-home .tn-btn:hover { transform: translateY(-2px); box-shadow: var(--o-survol); }
.tn-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-bord);
  background: var(--c-surface); color: var(--c-texte); font: 700 .95rem var(--f-texte); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.tn-puce b { font-weight: 800; color: var(--c-primaire-texte); }
.tn-puce[aria-pressed="true"], .tn-puce[aria-selected="true"], .tn-puce.est-actif { background: var(--c-texte); border-color: var(--c-texte); color: var(--c-surface); }
.tn-puce[aria-pressed="true"] b, .tn-puce[aria-selected="true"] .tn-puce-n { color: var(--c-primaire); }
@media (hover: hover) { .tn-puce:hover { border-color: var(--c-texte); } }

/* ---------- 01 hero : la planche de dosage ---------- */
/* Trois emplacements fixes (domine / accompagne / détail) ; chaque cuir y glisse selon la tenue choisie.
   La colonne de droite s'étire sur toute la hauteur de la copie : son haut s'aligne sur le kicker, son bas sur les chiffres. */
.tn-hero { position: relative; background: var(--c-fond); padding: 0 24px; }
.tn-hero-in { width: min(var(--tn-col), 100%); margin: 0 auto; min-height: calc(100svh - var(--header-h) - 26px); display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); grid-template-areas: "tete scene" "corps scene"; grid-template-rows: auto 1fr;
  column-gap: 72px; align-content: center; padding: 56px 0 64px; }
.tn-hero-tete { grid-area: tete; min-width: 0; }
.tn-hero-corps { grid-area: corps; min-width: 0; align-self: start; }
.tn-hero h1 { isolation: isolate; font-family: var(--f-titre); font-size: clamp(2.5rem, 4.2vw, 3.9rem); line-height: 1.06; font-weight: 500; margin: 32px 0 30px; text-wrap: balance; }
.tn-hero h1 em { position: relative; white-space: nowrap; }
.tn-hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--c-primaire); z-index: -1;
  transform-origin: left; transform: scaleX(var(--trait, 1)); }
.tn-chapeau { font-size: 1.12rem; line-height: 1.65; color: var(--c-texte-2); margin: 0 0 36px; max-width: 32em; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.tn-reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--c-bord); }
.tn-reperes div { padding: 0 16px; border-left: 1px solid var(--c-bord); }
.tn-reperes div:first-child { padding-left: 0; border-left: 0; }
.tn-reperes dt { font-family: var(--f-titre); font-size: 2.6rem; line-height: 1; font-weight: 500; color: var(--c-texte); }
.tn-reperes dd { margin: 8px 0 0; font-size: .95rem; color: var(--c-texte-2); }

.tn-hero-scene { grid-area: scene; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tn-planche { position: relative; flex: 1 1 auto; min-height: 400px; }
.tn-cuir { position: absolute; left: 0; top: 0; width: 60%; height: 100%; overflow: hidden; display: block; background: var(--c-surface);
  border: 1px solid var(--c-bord); color: var(--c-texte); text-decoration: none;
  transition: left .9s var(--tn-ease), top .9s var(--tn-ease), width .9s var(--tn-ease), height .9s var(--tn-ease), border-color .4s, opacity .4s; }
.tn-cuir[data-r="Domine"] { left: 0; top: 0; width: 60%; height: 100%; border-color: var(--c-texte); z-index: 2; }
.tn-cuir[data-r="Accompagne"] { left: calc(60% + 14px); top: 0; width: calc(40% - 14px); height: calc(57% - 7px); }
.tn-cuir[data-r="Détail"] { left: calc(60% + 14px); top: calc(57% + 7px); width: calc(40% - 14px); height: calc(43% - 7px); }
.tn-cuir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--tn-ease); }
.tn-cuir-etiquette { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px;
  background: var(--c-surface); border: 1px solid var(--c-bord); white-space: nowrap; }
.tn-cuir-etiquette b { font-family: var(--f-titre); font-size: 1.15rem; line-height: 1; font-weight: 600; }
.tn-cuir-role { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c-texte-2); font-size: .74rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-texte-2); transition: background-color .4s, color .4s, border-color .4s; }
.tn-cuir[data-r="Domine"] .tn-cuir-role { background: var(--c-texte); border-color: var(--c-texte); color: var(--c-surface); }
.tn-cuir[data-r="Accompagne"] .tn-cuir-role { background: var(--c-primaire); border-color: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-cuir[data-r="Domine"] .tn-cuir-etiquette { left: 14px; bottom: 14px; padding: 8px 8px 8px 14px; }
.tn-cuir[data-r="Domine"] .tn-cuir-etiquette b { font-size: 1.4rem; }
@media (hover: hover) {
  .tn-planche:hover .tn-cuir:not(:hover) { opacity: .82; }
  .tn-cuir:hover img { transform: scale(1.05); }
  .tn-cuir:hover { border-color: var(--c-texte); }
}
.tn-fiche { background: var(--c-surface); border: 1px solid var(--c-bord); padding: 14px 22px 18px; }
.tn-fiche-onglets { display: flex; gap: 6px; border-bottom: 1px solid var(--c-bord); margin-bottom: 14px; }
.tn-fiche-onglets button { position: relative; flex: 1 1 auto; min-height: 44px; padding: 0 8px; border: 0; background: none; font: 800 1rem var(--f-texte); color: var(--c-texte-2); cursor: pointer; white-space: nowrap; }
.tn-fiche-onglets button[aria-selected="true"] { color: var(--c-texte); }
.tn-temps { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-primaire); transform-origin: left; transform: scaleX(0); }
.tn-fiche-onglets button[aria-selected="true"] .tn-temps { transform: scaleX(1); }
.tn-auto .tn-fiche-onglets button[aria-selected="true"] .tn-temps { animation: tn-temps var(--tn-duree, 4.6s) linear both; }
@keyframes tn-temps { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tn-fiche-texte { margin: 0 0 12px; font-size: 1rem; line-height: 1.55; color: var(--c-texte-2); min-height: 3.1em; }
.tn-fiche-texte strong { color: var(--c-texte); font-weight: 800; }

/* ---------- 02 index visuel ---------- */
.tn-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tn-vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tn-vignette[hidden], .tn-ligne[hidden], .tn-suite[hidden] { display: none; }
.tn-vignette a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px; background: var(--c-surface); border: 1px solid var(--c-bord);
  text-decoration: none; color: var(--c-texte); transition: border-color .3s, box-shadow .3s, transform .3s var(--tn-ease); }
.tn-vignette-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; }
.tn-vignette-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--tn-ease); }
.tn-vignette-n { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-primaire); color: var(--c-sur-primaire); font-family: var(--f-titre); font-style: italic; font-size: .95rem; }
.tn-vignette .tn-etiquette, .tn-vignette h3, .tn-vignette-meta { margin-left: 22px; margin-right: 22px; }
.tn-court { display: none; }
.tn-etiquette { align-self: flex-start; padding: 3px 11px; border-radius: 999px; background: var(--c-doux); color: var(--c-sur-doux); font-size: .8rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.tn-vignette h3 { flex: 1; font-size: 1.3rem; line-height: 1.25; font-weight: 600; margin-top: 0; margin-bottom: 0; }
.tn-vignette-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 12px; border-top: 1px solid var(--c-bord); font-size: .88rem; font-weight: 700; color: var(--c-texte-2); }
.tn-vignette-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) {
  .tn-vignette a:hover { border-color: var(--c-texte); box-shadow: var(--o-survol); transform: translateY(-3px); }
  .tn-vignette a:hover img { transform: scale(1.06); }
}
.tn-suite { margin-top: 22px; background: var(--c-surface); border: 1px solid var(--c-bord); padding: 8px 28px 4px; }
.tn-suite-titre { margin: 16px 0 6px; font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-lignes { list-style: none; margin: 0; padding: 0; }
.tn-ligne + .tn-ligne { border-top: 1px solid var(--c-bord); }
.tn-ligne a { display: grid; grid-template-columns: 40px 170px minmax(0, 1fr) auto 24px; gap: 16px; align-items: center; padding: 16px 0; text-decoration: none; color: var(--c-texte); }
.tn-ligne-n { font-family: var(--f-titre); font-style: italic; font-size: 1.3rem; color: var(--c-primaire-texte); }
.tn-ligne b { font-family: var(--f-titre); font-size: 1.12rem; font-weight: 600; }
.tn-ligne-meta { font-size: .9rem; font-weight: 700; color: var(--c-texte-2); white-space: nowrap; }
.tn-ligne a > svg { color: var(--c-primaire-texte); transition: transform .3s var(--tn-ease); }
@media (hover: hover) { .tn-ligne a:hover b { color: var(--c-primaire-texte); } .tn-ligne a:hover > svg { transform: translateX(5px); } }
.tn-suite-pied { margin-top: 32px; }
.tn-suite-pied [hidden] { display: none; }
.tn-fleche-bas { display: inline-flex; transform: rotate(90deg); transition: transform .35s var(--tn-ease); }
[aria-expanded="true"] .tn-fleche-bas { transform: rotate(-90deg); }
.tn-rubriques-liens { text-align: center; margin: 28px 0 0; color: var(--c-texte-2); }
.tn-rubriques-liens a { color: var(--c-primaire-texte); font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- photos de section ---------- */
.tn-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.tn-duo-inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.tn-photo { margin: 0; min-width: 0; }
.tn-photo img { display: block; width: 100%; object-fit: cover; border: 1px solid var(--c-bord); }
.tn-photo-45 img { aspect-ratio: 4 / 5; max-height: 470px; }
.tn-photo-11 img { aspect-ratio: 1 / 1; max-height: 440px; }
.tn-photo figcaption { margin-top: 12px; font-size: .95rem; color: var(--c-texte-2); }
.tn-photo figcaption a { color: var(--c-primaire-texte); font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- 03 cambrure ---------- */
.tn-curseurs { display: grid; gap: 22px; }
.tn-curseurs label { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-weight: 800; }
.tn-curseurs output { font-family: var(--f-titre); font-size: 1.3rem; font-weight: 600; color: var(--c-primaire-texte); }
.tn-curseurs input { grid-column: 1 / -1; width: 100%; accent-color: var(--c-texte); height: 28px; cursor: pointer; }
.tn-resultat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 26px 0 18px; padding-top: 22px; border-top: 1px solid var(--c-bord); }
.tn-resultat-chiffre { margin: 0; font-family: var(--f-titre); font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; font-weight: 500; }
.tn-resultat-libelle { margin: 0; font-size: 1.08rem; color: var(--c-texte-2); }
.tn-resultat-libelle strong { color: var(--c-texte); }
.tn-jauge { position: relative; display: flex; height: 40px; margin: 8px 0 26px; }
.tn-jauge-zone { flex: calc(var(--a) - var(--de)) 1 0; display: flex; align-items: flex-end; padding: 0 0 0 8px; font-size: .82rem; font-weight: 800; color: var(--c-texte-2);
  border-top: 8px solid var(--c-bord); border-left: 2px solid var(--c-fond); }
.tn-jauge-zone:nth-child(1) { border-top-color: var(--c-secondaire); }
.tn-jauge-zone:nth-child(2) { border-top-color: var(--c-primaire); }
.tn-jauge-zone:nth-child(3) { border-top-color: var(--c-texte); }
.tn-jauge-curseur { position: absolute; top: -8px; left: calc(var(--v) / 14 * 100%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--c-surface); border: 4px solid var(--c-texte); transition: left .6s var(--tn-ease); }
.tn-presets-titre { margin: 0 0 10px; font-size: .9rem; font-weight: 800; color: var(--c-texte-2); }
.tn-presets { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 04 finition ---------- */
.tn-controle { padding: 10px 28px 24px; }
.tn-controle-tete, .tn-controle label { display: grid; grid-template-columns: 34px minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.tn-controle-tete { padding: 14px 0; border-bottom: 1px solid var(--c-texte); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-controle-tete span:first-child { grid-column: 1 / 3; }
.tn-controle ul { list-style: none; margin: 0; padding: 0; }
.tn-controle li { border-bottom: 1px solid var(--c-bord); }
.tn-controle label { padding: 14px 0; cursor: pointer; font-size: .98rem; line-height: 1.45; }
.tn-controle input { position: absolute; opacity: 0; pointer-events: none; }
.tn-case { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--c-texte); color: transparent; transition: background-color .3s, color .3s; }
.tn-controle input:checked + .tn-case { background: var(--c-primaire); border-color: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-controle input:focus-visible + .tn-case { outline: 3px solid var(--c-primaire); outline-offset: 2px; }
.tn-controle b { font-family: var(--f-titre); font-size: 1.1rem; font-weight: 600; }
.tn-bien { color: var(--c-texte); }
.tn-alerte { color: var(--c-texte-2); }
.tn-controle input:checked ~ .tn-alerte { text-decoration: line-through; text-decoration-color: var(--c-texte-2); }
.tn-controle-pied { display: flex; align-items: center; gap: 18px; padding-top: 20px; }
.tn-segments { display: flex; gap: 4px; flex: 0 0 180px; height: 10px; }
.tn-segments i { flex: 1; background: var(--c-bord); transition: background-color .4s; }
.tn-segments i.est-actif { background: var(--c-primaire); }
.tn-controle-pied p { margin: 0; font-size: 1rem; color: var(--c-texte-2); }
.tn-controle-pied strong { font-family: var(--f-titre); font-size: 1.5rem; color: var(--c-texte); margin-right: 6px; }

/* ---------- 05 verni ---------- */
.tn-diag { display: grid; gap: 22px; }
.tn-diag-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tn-puce-n { font-family: var(--f-titre); font-style: italic; color: var(--c-primaire-texte); }
.tn-diag-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tn-diag-fiche[hidden] { display: none; }
.tn-diag-texte { margin: 0; font-family: var(--f-titre); font-size: 1.4rem; line-height: 1.35; font-weight: 500; }
.tn-carte-accent { border-color: var(--c-texte); box-shadow: 8px 8px 0 var(--c-primaire); }
.tn-interdits ul { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.tn-interdits li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tn-interdits li svg { color: var(--c-primaire-texte); flex: none; }

/* ---------- 06 quiz (kit_vivant, habillé) ---------- */
.tn-quiz-boite { padding: 36px; text-align: center; }
.tn-quiz-boite [data-question-texte] { margin: 0 auto 22px; max-width: 30em; font-family: var(--f-titre); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; font-weight: 500; }
.tn-quiz-boite [data-explication] { margin: 20px auto 0; max-width: 34em; font-size: 1.02rem; line-height: 1.6; color: var(--c-texte-2); }
.tn-quiz-boite .kv-choix { display: flex; justify-content: center; gap: 14px; }
.tn-quiz-boite .kv-bouton { min-height: 48px; padding: 0 30px; border-radius: 999px; border: 2px solid var(--c-texte); background: var(--c-surface); color: var(--c-texte);
  font: 800 1rem var(--f-texte); cursor: pointer; opacity: 1; }
.tn-quiz-boite .kv-bouton.kv-choisi, .tn-quiz-boite .kv-suivante, .tn-quiz-boite .kv-encore { background: var(--c-primaire); border-color: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-quiz-boite .kv-bouton:not(.kv-choisi):disabled { opacity: .5; }
.tn-quiz-boite .kv-quiz-pied { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-bord); text-align: left; }
.tn-quiz-boite .kv-quiz-compteur { margin: 0 0 8px; font-weight: 800; }
.tn-quiz-score { margin: 14px 0 0; font-weight: 800; color: var(--c-primaire-texte); }
.tn-quiz-score:empty { display: none; }

/* ---------- 07 plumes ---------- */
.tn-matrice { padding: 8px 28px; }
.tn-matrice-tete, .tn-matrice-ligne { display: grid; grid-template-columns: minmax(380px, 2.6fr) repeat(5, minmax(0, 1fr)) minmax(0, .9fr); gap: 12px; align-items: center; }
.tn-matrice-tete { padding: 16px 0; border-bottom: 1px solid var(--c-texte); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-texte-2); text-align: center; }
.tn-matrice-ligne { padding: 14px 0; border-bottom: 1px solid var(--c-bord); }
.tn-matrice-ligne:last-child { border-bottom: 0; }
.tn-plume { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--c-texte); min-width: 0; }
.tn-plume img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-bord); }
.tn-plume > span { flex: 1; min-width: 300px; }
.tn-plume b { display: block; font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; }
.tn-plume small { display: block; font-size: .9rem; color: var(--c-texte-2); line-height: 1.35; }
@media (hover: hover) { .tn-plume:hover b { color: var(--c-primaire-texte); } }
.tn-cellule { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.tn-cellule-nom { display: none; }
.tn-cellule[data-n="0"] .tn-points::before { content: ""; width: 14px; height: 1px; background: var(--c-bord); display: block; }
.tn-points { display: flex; gap: 5px; }
.tn-points i { width: 14px; height: 14px; border-radius: 50%; background: var(--c-primaire); box-shadow: inset 0 0 0 2px var(--c-sur-primaire); }
.tn-cellule-n { font-weight: 800; font-size: .95rem; }
.tn-total { text-align: center; font-family: var(--f-titre); font-size: 1.7rem; font-weight: 500; }
.tn-total small { font-family: var(--f-texte); font-size: .85rem; color: var(--c-texte-2); }

/* ---------- 08 carnet ---------- */
.tn-carnet-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tn-dernier { display: flex; flex-direction: column; padding: 0; text-decoration: none; color: var(--c-texte); transition: border-color .3s, box-shadow .3s; }
.tn-dernier-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.tn-dernier-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--tn-ease); }
.tn-dernier-texte { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 26px; flex: 1; }
.tn-dernier-texte .tn-mini { margin: 0; }
.tn-dernier-texte > b { font-family: var(--f-titre); font-size: 1.6rem; line-height: 1.2; font-weight: 600; }
.tn-dernier-chapo { font-size: 1.02rem; line-height: 1.6; color: var(--c-texte-2); flex: 1; }
@media (hover: hover) { .tn-dernier:hover { border-color: var(--c-texte); box-shadow: var(--o-survol); } .tn-dernier:hover img { transform: scale(1.04); } }
.tn-repart { display: flex; flex-direction: column; }
.tn-barres { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; gap: 4px; }
.tn-barres a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--c-texte); font-weight: 700; }
.tn-barre { height: 14px; background: var(--c-fond-2); }
.tn-barre i { display: block; height: 100%; width: calc(var(--part) * 100%); background: var(--c-primaire); transform-origin: left; transition: transform 1s var(--tn-ease); }
.tn-barres .tn-barre-max .tn-barre i { background: var(--c-texte); }
.tn-barres b { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 600; text-align: right; }
@media (hover: hover) { .tn-barres a:hover .tn-barre-nom { color: var(--c-primaire-texte); } }
.tn-js .tn-carnet-grille .tn-barre i { transform: scaleX(0); }
.tn-js .tn-carnet-grille.tn-vu .tn-barre i { transform: scaleX(1); transition-delay: .3s; }
.tn-mini-2 { padding-top: 22px; border-top: 1px solid var(--c-bord); }
.tn-adresses { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.tn-adresses a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--c-bord);
  text-decoration: none; color: var(--c-texte); font-family: var(--f-titre); font-size: 1.1rem; font-weight: 600; }
.tn-adresses small { font-family: var(--f-texte); font-size: .85rem; font-weight: 700; color: var(--c-texte-2); }
@media (hover: hover) { .tn-adresses a:hover { color: var(--c-primaire-texte); border-color: var(--c-primaire-texte); } }

/* ---------- 09 avant-footer injecté (même grammaire que les sections) ---------- */
body:has(.tn-home) .uf-block { width: min(var(--tn-col), calc(100% - 48px)); max-width: none; margin: var(--tn-air) auto calc(var(--tn-air) * .8); border: 1px solid var(--c-bord);
  border-radius: var(--r-carte, 0); background: var(--c-surface); text-align: center; font-family: var(--f-texte); }
body:has(.tn-home) .uf-block .af-pad { padding: 56px 40px 60px; }
body:has(.tn-home) .uf-block .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--c-bord);
  border-radius: 999px; background: var(--c-surface); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte); }
body:has(.tn-home) .uf-block .eyebrow::before { content: "09"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-primaire); color: var(--c-sur-primaire); font-family: var(--f-titre); font-style: italic; font-size: .9rem; letter-spacing: 0; }
body:has(.tn-home) .uf-block h2 { font-family: var(--f-titre); font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.12; font-weight: 500; letter-spacing: -.01em; margin: 18px auto 16px; max-width: 720px; text-wrap: balance; }
body:has(.tn-home) .uf-block h2 em { font-style: italic; font-weight: 400; color: var(--c-primaire-texte); }
body:has(.tn-home) .uf-block p { font-size: 1.08rem; line-height: 1.65; color: var(--c-texte-2); max-width: 640px; margin: 0 auto 30px; }
body:has(.tn-home) .uf-block .af-button { min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--c-primaire); background: var(--c-primaire);
  color: var(--c-sur-primaire) !important; font-size: 1rem; font-weight: 800; gap: 10px; transition: transform .25s var(--tn-ease), box-shadow .25s var(--tn-ease); }
body:has(.tn-home) .uf-block .af-button:hover { transform: translateY(-2px); box-shadow: var(--o-survol); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tn-matrice-tete { display: none; }
  .tn-matrice-ligne { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 10px; }
  .tn-plume { grid-column: 1 / -1; }
  .tn-total { display: none; }
  .tn-cellule { flex-direction: column; gap: 4px; padding: 8px 4px; background: var(--c-fond); }
  .tn-cellule[data-n="0"] { display: none; }
  .tn-cellule-nom { display: block; font-size: .78rem; font-weight: 800; text-align: center; line-height: 1.2; color: var(--c-texte-2); }
  .tn-hero-in { column-gap: 44px; }
}
@media (max-width: 900px) {
  .tn-hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "scene" "corps"; grid-template-rows: none; min-height: 0; padding: 28px 0 56px; row-gap: 24px; }
  .tn-hero h1 { margin-bottom: 0; }
  .tn-planche { flex: none; height: 440px; min-height: 0; }
  .tn-duo, .tn-duo-inverse { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tn-photo-45 img { aspect-ratio: 4 / 5; max-height: 420px; }
  .tn-controle-tete { display: none; }
  .tn-controle label { grid-template-columns: 34px minmax(0, 1fr); row-gap: 4px; }
  .tn-bien, .tn-alerte { grid-column: 2; }
  .tn-alerte::before { content: "Alerte : "; font-weight: 800; }
  .tn-diag-fiche { grid-template-columns: minmax(0, 1fr); }
  .tn-carnet-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-ligne a { grid-template-columns: 36px minmax(0, 1fr) 22px; row-gap: 4px; }
  .tn-ligne .tn-etiquette { grid-column: 2; grid-row: 1; }
  .tn-ligne b { grid-column: 2; grid-row: 2; }
  .tn-ligne-meta { grid-column: 2; grid-row: 3; }
  .tn-ligne-n { grid-row: 1 / 4; }
  .tn-ligne a > svg { grid-column: 3; grid-row: 1 / 4; }
}
@media (max-width: 700px) {
  .tn-sec { padding: 72px 18px; }
  .tn-hero { padding: 0 18px; }
  .tn-hero-in { padding: 16px 0 48px; row-gap: 18px; }
  .tn-kicker { font-size: .78rem; }
  .tn-hero h1 { font-size: 2.2rem; line-height: 1.05; margin: 14px 0 0; }
  .tn-hero-scene { gap: 10px; }
  .tn-planche { height: 252px; }
  .tn-cuir[data-r="Accompagne"] { left: calc(60% + 8px); width: calc(40% - 8px); height: calc(57% - 4px); }
  .tn-cuir[data-r="Détail"] { left: calc(60% + 8px); top: calc(57% + 4px); width: calc(40% - 8px); height: calc(43% - 4px); }
  .tn-cuir-etiquette { left: 6px; bottom: 6px; gap: 6px; padding: 4px 4px 4px 8px; }
  .tn-cuir-etiquette b, .tn-cuir[data-r="Domine"] .tn-cuir-etiquette b { font-size: 1rem; }
  .tn-cuir[data-r="Domine"] .tn-cuir-etiquette { left: 8px; bottom: 8px; padding: 5px 5px 5px 10px; }
  .tn-cuir-role { font-size: .66rem; padding: 2px 7px; }
  .tn-cuir:not([data-r="Domine"]) .tn-cuir-role { display: none; }
  .tn-fiche { padding: 4px 14px 12px; }
  .tn-fiche-onglets { margin-bottom: 8px; gap: 2px; }
  .tn-fiche-onglets button { font-size: .9rem; min-height: 42px; padding: 0 4px; }
  .tn-fiche-texte { min-height: 0; margin: 0; font-size: .95rem; }
  .tn-fiche-texte [data-fiche-effet], .tn-fiche .tn-lien { display: none; }
  .tn-hero-corps { display: flex; flex-direction: column; }
  .tn-actions { order: -1; gap: 10px; margin-bottom: 22px; flex-wrap: nowrap; }
  .tn-home .tn-actions .tn-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; font-size: .95rem; white-space: nowrap; }
  .tn-home .tn-btn { min-height: 48px; padding: 0 20px; }
  .tn-chapeau { font-size: 1.02rem; margin-bottom: 0; }
  .tn-reperes { margin-top: 26px; }
  .tn-reperes dt { font-size: 2rem; }
  .tn-reperes div { padding: 0 10px; }
  .tn-filtres { gap: 8px; margin-bottom: 26px; }
  .tn-vignettes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tn-vignette-photo { aspect-ratio: 16 / 10; }
  .tn-vignette .tn-etiquette, .tn-vignette h3, .tn-vignette-meta { margin-left: 18px; margin-right: 18px; }
  .tn-vignette h3 { font-size: 1.18rem; }
  .tn-replie .tn-vignette:nth-child(n+4) { display: none; }
  .tn-long { display: none; }
  .tn-court { display: inline; }
  .tn-suite { padding: 4px 16px; }
  .tn-ligne a { grid-template-columns: minmax(0, 1fr); }
  .tn-ligne-n, .tn-ligne a > svg { display: none; }
  .tn-ligne .tn-etiquette, .tn-ligne b, .tn-ligne-meta { grid-column: 1; }
  .tn-carte, .tn-controle, .tn-matrice { padding-left: 18px; padding-right: 18px; }
  .tn-dernier { padding: 0; }
  .tn-dernier-texte { padding: 20px 18px; }
  .tn-barres a { grid-template-columns: 112px minmax(0, 1fr) 24px; gap: 10px; font-size: .92rem; }
  .tn-adresses { grid-template-columns: minmax(0, 1fr); }
  .tn-quiz-boite { padding: 26px 18px; }
  .tn-matrice-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tn-plume { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tn-plume > span { width: 100%; min-width: 0; }
  .tn-tete { margin-bottom: 36px; }
  body:has(.tn-home) .uf-block { width: calc(100% - 36px); }
  body:has(.tn-home) .uf-block .af-pad { padding: 40px 20px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-cuir, .tn-cuir img, .tn-jauge-curseur, .tn-barre i, .tn-vignette-photo img { transition: none !important; }
  .tn-temps { animation: none !important; }
}
