/* Home tunée garde-de-maison.fr (passe 3) : le carnet de garde encadré sur la colonne des sections, la photo de
   façade envoyée par le gardien, son compte rendu et les 21 jours de l'absence ; puis une démonstration par section, dans la même grammaire.
   Charte : couleurs de src/styles/global.css (violet #4e4393 / bouton #54489d, encre #24232f, nuit #0d0c18,
   surfaces #f3f3f5 / #f6f5f9 / #e2e1ea, bord #d4d3d9, sauge #9cb2ac), Epilogue pour les titres, Public Sans pour le texte. */

.tn-home {
  --tn-encre: #24232f; --tn-violet: #4e4393; --tn-bouton: #54489d; --tn-sur-bouton: #f6f5f9; --tn-nuit: #0d0c18;
  --tn-fond: #fefefe; --tn-surface: #f3f3f5; --tn-pale: #f6f5f9; --tn-doux: #e2e1ea; --tn-bord: #d4d3d9;
  --tn-muet: #43424d; --tn-sauge: #9cb2ac; --tn-blanc: #fff;
  --tn-titre: var(--font-display, 'Epilogue'), 'Epilogue', Georgia, serif;
  --tn-texte: var(--font-body, 'Public Sans'), 'Public Sans', system-ui, sans-serif;
  --tn-ombre: 0 18px 40px -14px color-mix(in srgb, #0d0c18 22%, transparent);
  --tn-ombre-forte: 0 30px 60px -20px color-mix(in srgb, #0d0c18 34%, transparent);
  --tn-entete: 89px;
  color: var(--tn-encre); font-family: var(--tn-texte); background: var(--tn-fond);
}
/* la home ouvre directement sur le hero : le bandeau d'annonce du thème reste sur les autres pages */
[data-bandeau], .announcement-bar { display: none !important; }
/* le défilement doux du thème retarde chaque scrollTo : la home défile net (les révélations suivent le vrai défilement) */
html:has(.tn-home), html.scroll-smooth:has(.tn-home) { scroll-behavior: auto !important; }
.tn-home *, .tn-home *::before, .tn-home *::after { box-sizing: border-box; }
.tn-home a { color: inherit; }
.tn-home svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.tn-wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

/* ── grammaire commune : pastille, titres, intro, cartes, têtes de carte, boutons ── */
.tn-pastille { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .4rem .95rem; border: 1px solid var(--tn-bord);
  border-radius: 999px; background: var(--tn-blanc); color: var(--tn-violet); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tn-pastille i { width: 8px; height: 8px; border-radius: 50%; background: var(--tn-sauge); box-shadow: 0 0 0 3px color-mix(in srgb, #9cb2ac 30%, transparent); }
.tn-h1, .tn-h2, .tn-home h3, .tn-home h4 { font-family: var(--tn-titre); color: var(--tn-encre); }
.tn-h1 { margin: 0; font-size: clamp(2.5rem, 3.7vw, 3.35rem); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.tn-h2 { margin: 0; font-size: clamp(1.95rem, 3.3vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.028em; }
.tn-fort { color: var(--tn-violet); background: linear-gradient(transparent 68%, #e2e1ea 68%, #e2e1ea 92%, transparent 92%); padding-inline: .04em; }
.tn-tete { max-width: 780px; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); text-align: center; }
.tn-intro { margin: 1rem auto 0; max-width: 64ch; color: var(--tn-muet); font-size: 1.1rem; line-height: 1.65; }
.tn-section { padding-block: clamp(4rem, 7.5vw, 6.5rem); }
.tn-alt { background: var(--tn-surface); }
.tn-carte { background: var(--tn-blanc); border: 1px solid var(--tn-bord); border-radius: 16px; box-shadow: var(--tn-ombre); padding: clamp(1.1rem, 2vw, 1.75rem); }
.tn-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px dashed var(--tn-bord); }
.tn-carte-tete > span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--tn-muet); }
.tn-carte-tete > span svg { color: var(--tn-violet); }
.tn-carte-tete > strong { padding: .3rem .7rem; border-radius: 999px; background: var(--tn-pale); color: var(--tn-violet); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-carte-pied { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--tn-bord); }
.tn-carte-pied a { display: inline-flex; align-items: center; gap: .5rem; color: var(--tn-violet); font-weight: 700; text-decoration: none; }
.tn-carte-pied a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.tn-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.55rem; border: 2px solid var(--tn-bouton);
  border-radius: 999px; background: var(--tn-bouton); color: var(--tn-sur-bouton) !important; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.tn-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in srgb, #54489d 60%, transparent); }
.tn-btn-contour { background: transparent; color: var(--tn-violet) !important; }
.tn-btn-contour:hover { background: var(--tn-pale); }
.tn-boite { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--tn-bord); background: var(--tn-blanc); color: transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease; flex: 0 0 auto; }
.tn-boite svg { width: 16px; height: 16px; }
.is-ok > .tn-boite, .is-ok .tn-boite { background: var(--tn-bouton); border-color: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-jauge { display: block; height: 8px; border-radius: 999px; background: var(--tn-doux); overflow: hidden; }
.tn-jauge > span { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: var(--tn-violet); }

/* ── HERO : le carnet de garde, encadré sur la colonne des sections (bord gauche et droit des cartes de la page).
   En tête les 3 chiffres du site ; au centre le texte et la photo envoyée avec son compte rendu ; en pied les 21 jours. ── */
.tn-hero { display: grid; align-items: center; min-height: calc(100svh - var(--tn-entete)); padding-block: clamp(1.25rem, 3.2vh, 2.5rem); background: var(--tn-fond); }
.tn-carnet { border: 1px solid var(--tn-bord); border-radius: 28px; background: var(--tn-pale); box-shadow: var(--tn-ombre); overflow: hidden; }
.tn-carnet-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: .85rem 1.75rem; border-bottom: 1px solid var(--tn-bord); background: var(--tn-blanc); }
.tn-carnet-titre { display: flex; align-items: center; gap: .6rem; margin: 0; min-width: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-violet); }
.tn-carnet-titre em { font-style: normal; font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .92rem; color: var(--tn-muet); padding-left: .75rem; border-left: 1px solid var(--tn-bord); }
.tn-carnet-chiffres { display: flex; margin: 0; }
.tn-carnet-chiffres div { display: flex; align-items: baseline; gap: .4rem; padding-inline: 1.25rem; border-left: 1px solid var(--tn-bord); }
.tn-carnet-chiffres div:first-child { border-left: 0; padding-left: 0; }
.tn-carnet-chiffres div:last-child { padding-right: 0; }
.tn-carnet-chiffres dt { font-family: var(--tn-titre); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--tn-encre); font-variant-numeric: tabular-nums; }
.tn-carnet-chiffres dd { margin: 0; font-size: .92rem; color: var(--tn-muet); white-space: nowrap; }

.tn-carnet-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(1.25rem, 2.8vh, 1.75rem) 1.75rem; }
.tn-hero-copie, .tn-scene { min-width: 0; }
.tn-hero .tn-h1 { font-size: clamp(2.3rem, 3.3vw, 3rem); }
.tn-chapo { margin: 1.2rem 0 0; max-width: 52ch; color: var(--tn-muet); font-size: clamp(1.02rem, 1.15vw, 1.1rem); line-height: 1.62; }
.tn-hero .tn-actions { margin-top: 1.5rem; gap: .75rem; flex-wrap: nowrap; }
.tn-hero .tn-btn { padding-inline: 1.3rem; font-size: 1rem; white-space: nowrap; }

.tn-scene { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; align-items: center; }
/* photo 4/5 sans débord : l'image remplit son cadre (object-fit), les volets au centre, le toit en haut */
.tn-facade { position: relative; width: 100%; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--tn-doux); box-shadow: var(--tn-ombre-forte); }
.tn-facade img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 52% 0; }
.tn-flash { position: absolute; inset: 0; background: var(--tn-blanc); opacity: 0; pointer-events: none; }
.tn-tampon { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .45rem; max-width: calc(100% - 24px); padding: .45rem .75rem; border-radius: 999px;
  background: color-mix(in srgb, #0d0c18 76%, transparent); color: var(--tn-sur-bouton); font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; backdrop-filter: blur(4px); }
.tn-tampon svg { color: var(--tn-sauge); }
.tn-tampon b { font-weight: 700; font-variant-numeric: tabular-nums; }

.tn-rapport { display: flex; flex-direction: column; min-width: 0; padding: .9rem .95rem .8rem; border: 1px solid var(--tn-bord); border-radius: 18px; background: var(--tn-blanc); box-shadow: var(--tn-ombre); }
.tn-rapport-kicker { margin: 0; color: var(--tn-violet); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.tn-rapport-titre { margin: .2rem 0 0; font-family: var(--tn-titre); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tn-rapport-heure { display: flex; align-items: center; gap: .4rem; margin: .45rem 0 0; padding-bottom: .7rem; border-bottom: 1px dashed var(--tn-bord); font-size: .85rem; font-weight: 600; color: var(--tn-muet); font-variant-numeric: tabular-nums; }
.tn-rapport-heure svg { color: var(--tn-violet); width: 1em; height: 1em; }
.tn-rapport-photos { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; padding: .12rem .5rem; border-radius: 999px; background: var(--tn-pale); color: var(--tn-violet); white-space: nowrap; }
.tn-rapport-liste { list-style: none; margin: .2rem 0 .5rem; padding: 0; }
.tn-rl a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: .55rem; padding: .38rem .35rem; margin-inline: -.35rem; border-radius: 10px; text-decoration: none; transition: background-color .2s ease; }
.tn-rl + .tn-rl a { border-top: 1px solid var(--tn-pale); }
.tn-rl a:hover, .tn-rl a:focus-visible, .tn-rl.is-vise a { background: var(--tn-pale); }
.tn-rl-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tn-pale); color: var(--tn-violet); }
.tn-rl-ico svg { width: 16px; height: 16px; }
.tn-rl-txt { min-width: 0; line-height: 1.25; }
.tn-rl-txt b { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-muet); }
.tn-rl-txt span { display: block; margin-top: .08rem; font-size: .86rem; font-weight: 600; color: var(--tn-encre); }
.tn-rl-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tn-bord); color: transparent; transition: all .3s ease; }
.tn-rl-ok svg { width: 12px; height: 12px; }
.tn-rl.is-ok .tn-rl-ok { background: var(--tn-sauge); border-color: var(--tn-sauge); color: var(--tn-nuit); }
.tn-rapport-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; border-radius: 12px; background: var(--tn-pale);
  color: var(--tn-violet); font-size: .86rem; font-weight: 700; text-decoration: none; }
.tn-rapport-pied:hover { background: var(--tn-doux); }

/* les 21 jours de l'absence : chaque passage porte son heure, le rail avance avec le compte rendu */
.tn-fil { padding: .85rem 1.75rem 1.1rem; border-top: 1px solid var(--tn-bord); background: var(--tn-blanc); }
.tn-fil-legende { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 .6rem; font-size: .9rem; color: var(--tn-muet); }
.tn-fil-legende b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-encre); }
.tn-fil-jours { list-style: none; display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; }
.tn-jour { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; min-height: 52px; border-radius: 10px; background: var(--tn-pale); color: var(--tn-encre);
  line-height: 1.1; font-variant-numeric: tabular-nums; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.tn-jour small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--tn-muet); }
.tn-jour b { font-size: .95rem; font-weight: 700; }
.tn-jour span { font-size: .64rem; font-weight: 700; color: var(--tn-violet); white-space: nowrap; }
.tn-jour.is-fait { background: var(--tn-surface); color: var(--tn-muet); }
.tn-jour-p { background: var(--tn-blanc); box-shadow: inset 0 0 0 1.5px var(--tn-bouton); }
.tn-jour-p.is-fait { background: color-mix(in srgb, #9cb2ac 30%, #fff); box-shadow: inset 0 0 0 1.5px var(--tn-sauge); color: var(--tn-encre); }
.tn-jour-p.is-fait span { color: var(--tn-encre); }
.tn-jour-p.is-courant { background: var(--tn-bouton); box-shadow: 0 6px 16px -6px color-mix(in srgb, #54489d 70%, transparent); color: var(--tn-sur-bouton); }
.tn-jour-p.is-courant small, .tn-jour-p.is-courant span { color: var(--tn-sur-bouton); }
.tn-fil-rail { display: block; height: 4px; margin-top: .6rem; border-radius: 999px; background: var(--tn-doux); overflow: hidden; }
.tn-fil-rail > span { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: var(--tn-violet); transition: width .8s ease; }
@media (hover: hover) { .tn-jour-p { cursor: pointer; } .tn-jour-p:hover { box-shadow: inset 0 0 0 2px var(--tn-violet), 0 6px 16px -8px color-mix(in srgb, #54489d 60%, transparent); } }

/* ── VU DU TROTTOIR : relevé des sept indices ── */
.tn-releve-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--tn-bord); }
.tn-bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tn-surface); border: 1px solid var(--tn-bord); }
.tn-bascule-btn { min-height: 44px; padding: .5rem 1.25rem; border: 0; border-radius: 999px; background: transparent; color: var(--tn-encre); font: inherit; font-weight: 700; cursor: pointer; }
.tn-bascule-btn[aria-pressed="true"] { background: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-releve-compteur { display: flex; align-items: center; gap: .9rem; }
.tn-releve-compteur > b { font-family: var(--tn-titre); font-size: 3.2rem; line-height: 1; font-weight: 600; color: var(--tn-violet); font-variant-numeric: tabular-nums; min-width: 1.1ch; text-align: right; }
.tn-releve-compteur > span:not(.tn-releve-jauge) { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.tn-releve-jauge { display: inline-grid; grid-template-columns: repeat(7, 12px); gap: 4px; }
.tn-releve-jauge i { height: 26px; border-radius: 4px; background: var(--tn-violet); transition: background-color .3s ease; }
.tn-releve-jauge i.is-eteint { background: var(--tn-doux); }
.tn-releve-entetes, .tn-indice { display: grid; grid-template-columns: 2.6rem minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: center; }
.tn-releve-entetes { padding: 1rem 0 .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tn-muet); }
.tn-releve-entetes span:first-child { grid-column: 2; }
.tn-indices { list-style: none; margin: 0; padding: 0; }
.tn-indice { padding: .8rem .5rem; margin-inline: -.5rem; border-top: 1px solid var(--tn-pale); border-radius: 10px; transition: background-color .4s ease; }
.tn-indice-num { font-family: var(--tn-titre); font-weight: 600; color: var(--tn-violet); font-size: 1.1rem; }
.tn-indice-nom { font-size: 1.02rem; line-height: 1.3; }
.tn-indice-deduit, .tn-indice-parade { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.4; font-size: .95rem; transition: color .35s ease, opacity .35s ease; }
.tn-indice-deduit svg, .tn-indice-parade svg { margin-top: .12em; }
.tn-indice-deduit { color: var(--tn-encre); }
.tn-indice-deduit svg { color: var(--tn-violet); }
.tn-indice-parade { color: var(--tn-muet); opacity: .55; }
.tn-indice-parade svg { color: var(--tn-sauge); }
.tn-indice.is-pare { background: color-mix(in srgb, #9cb2ac 14%, #fff); }
.tn-indice.is-pare .tn-indice-deduit { color: var(--tn-muet); opacity: .6; text-decoration: line-through; text-decoration-color: var(--tn-sauge); text-decoration-thickness: 2px; }
.tn-indice.is-pare .tn-indice-parade { color: var(--tn-encre); opacity: 1; font-weight: 600; }
.tn-indice.is-pare .tn-indice-parade svg { color: var(--tn-violet); }

/* ── RYTHME ── */
.tn-rythme-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
.tn-reglages fieldset { margin: 0; padding: 0 0 1.1rem; border: 0; }
.tn-reglages fieldset + fieldset { padding-top: 1.1rem; border-top: 1px solid var(--tn-bord); }
.tn-reglages legend { padding: 0; margin-bottom: .65rem; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--tn-muet); }
.tn-puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.tn-puces label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--tn-bord); border-radius: 999px; background: var(--tn-blanc);
  font-weight: 600; cursor: pointer; transition: all .2s ease; }
.tn-puces input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tn-puces label:has(input:checked) { border-color: var(--tn-bouton); background: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-puces label:has(input:focus-visible) { outline: 3px solid var(--tn-violet); outline-offset: 2px; }
.tn-verdict-haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; }
.tn-verdict-chiffre { display: flex; align-items: baseline; gap: .75rem; margin: 0; }
.tn-verdict-chiffre b { font-family: var(--tn-titre); font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: .9; font-weight: 600; color: var(--tn-violet); font-variant-numeric: tabular-nums; }
.tn-verdict-chiffre span { font-weight: 700; font-size: 1.1rem; max-width: 11ch; line-height: 1.2; }
.tn-verdict-total { margin: 0; color: var(--tn-muet); font-size: .98rem; max-width: 34ch; }
.tn-jauge-rythme { height: 10px; border-radius: 999px; background: var(--tn-doux); margin: 1.2rem 0 1rem; overflow: hidden; }
.tn-jauge-rythme span { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, #9cb2ac, #54489d); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tn-taches { list-style: none; margin: 0; padding: 0; }
.tn-taches li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--tn-bord); }
.tn-taches li b { font-size: .95rem; }
.tn-taches li span { color: var(--tn-muet); line-height: 1.45; }
.tn-taches li a { color: var(--tn-violet); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.tn-taches li.is-neuf { animation: tn-neuf .6s ease; }
@keyframes tn-neuf { from { background: var(--tn-pale); } to { background: transparent; } }
.tn-verdict-budget { margin: .5rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--tn-pale); font-size: .95rem; line-height: 1.5; }
.tn-verdict-budget:empty { display: none; }

/* ── LA RONDE ── */
.tn-ronde-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; }
.tn-controles ol, .tn-consignes ol { list-style: none; margin: 0; padding: 0; }
.tn-controle { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--tn-pale); }
.tn-controle:first-child { border-top: 0; }
.tn-controle b { display: block; }
.tn-controle span { display: block; margin-top: .15rem; color: var(--tn-encre); font-size: .95rem; line-height: 1.45; }
.tn-controle small { display: block; margin-top: .2rem; color: var(--tn-muet); font-size: .88rem; line-height: 1.4; }
.tn-ronde-cote { display: grid; gap: 1.25rem; min-width: 0; }
.tn-ronde-photo { margin: 0; border-radius: 16px; overflow: hidden; background: var(--tn-blanc); border: 1px solid var(--tn-bord); box-shadow: var(--tn-ombre); }
.tn-ronde-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 330px; object-fit: cover; }
.tn-ronde-photo figcaption { display: flex; align-items: flex-start; gap: .5rem; padding: .8rem 1rem; font-size: .92rem; font-weight: 600; line-height: 1.45; }
.tn-ronde-photo figcaption svg { color: var(--tn-violet); margin-top: .15em; }
.tn-onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.tn-onglet { min-height: 44px; padding: .45rem 1rem; border: 1.5px solid var(--tn-bord); border-radius: 999px; background: var(--tn-blanc); color: var(--tn-encre); font: inherit; font-weight: 700; cursor: pointer; }
.tn-onglet[aria-selected="true"] { background: var(--tn-bouton); border-color: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-saison { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.tn-saison li { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.tn-saison li svg { color: var(--tn-violet); }

/* ── AVANT LE DÉPART ── */
.tn-progression { display: flex; align-items: center; gap: .9rem; margin: 1.1rem 0 .4rem; font-family: var(--tn-titre); font-weight: 600; color: var(--tn-violet); font-size: .95rem; white-space: nowrap; }
.tn-etapes-rail { flex: 1 1 auto; height: 6px; border-radius: 6px; background: var(--tn-doux); overflow: hidden; }
.tn-etapes-rail span { display: block; height: 100%; width: calc(var(--k, 1) * 100%); border-radius: inherit; background: var(--tn-violet); transition: width .4s ease; }
.tn-etapes { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 2.5rem; }
.tn-etape { display: grid; grid-template-columns: 4.2rem 26px minmax(0, 1fr); gap: .25rem .9rem; align-items: start; padding: .85rem 0; border-top: 1px solid var(--tn-pale); }
.tn-etape:nth-child(4n + 1) { border-top: 0; }
.tn-etape-quand { grid-row: span 2; font-family: var(--tn-titre); font-size: 1.15rem; font-weight: 600; color: var(--tn-violet); }
.tn-etape-point { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tn-bord); background: var(--tn-blanc); color: transparent; transition: all .3s ease; }
.tn-etape-point svg { width: 14px; height: 14px; }
.tn-etape.is-ok .tn-etape-point { background: var(--tn-bouton); border-color: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-etape b { grid-column: 3; font-size: 1rem; line-height: 1.35; }
.tn-etape small { grid-column: 3; color: var(--tn-muet); font-size: .92rem; line-height: 1.4; }

/* ── SOIRÉE CRÉDIBLE ── */
.tn-soiree { overflow: hidden; }
.tn-soiree-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--tn-bord); }
.tn-soiree-soir b { white-space: nowrap; }
.tn-soiree-soir { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.tn-soiree-soir svg { color: var(--tn-violet); }
.tn-soiree-soir span { color: var(--tn-muet); font-weight: 600; font-size: .92rem; }
.tn-soiree-heure { font-family: var(--tn-titre); font-size: 2rem; font-weight: 600; color: var(--tn-violet); font-variant-numeric: tabular-nums; }
.tn-soiree-corps { position: relative; margin-top: 1.4rem; padding-left: 9rem; padding-right: 11.5rem; }
.tn-axe { position: relative; height: 1.4rem; margin-bottom: .6rem; border-bottom: 1px solid var(--tn-bord); }
.tn-axe span { position: absolute; top: 0; transform: translateX(-50%); font-size: .8rem; font-weight: 700; color: var(--tn-muet); white-space: nowrap; }
.tn-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tn-piece { position: relative; display: block; height: 42px; }
.tn-piece-nom { position: absolute; left: -9rem; width: 8.4rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.tn-fenetre { width: 22px; height: 26px; border-radius: 4px; border: 2px solid var(--tn-encre); background: var(--tn-doux); position: relative; transition: background-color .35s ease, box-shadow .35s ease; }
.tn-fenetre::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--tn-encre); }
.tn-piece.is-allumee .tn-fenetre { background: #f6f5f9; box-shadow: 0 0 0 4px color-mix(in srgb, #9cb2ac 45%, transparent), 0 0 18px 2px color-mix(in srgb, #9cb2ac 70%, transparent); }
.tn-piece-piste { position: absolute; inset: 8px 0; border-radius: 8px; background: repeating-linear-gradient(90deg, #f3f3f5 0 calc(100% / 7 - 1px), #d4d3d9 calc(100% / 7 - 1px) calc(100% / 7)); }
.tn-piece-plage { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: color-mix(in srgb, #54489d 32%, #f6f5f9); transition: left .6s ease, width .6s ease, background-color .3s ease; }
.tn-piece.is-allumee .tn-piece-plage { background: var(--tn-bouton); }
.tn-piece-txt { position: absolute; right: -11.5rem; width: 11rem; top: 50%; transform: translateY(-50%); color: var(--tn-muet); font-size: .88rem; line-height: 1.3; }
.tn-zone { position: relative; }
.tn-curseur { position: absolute; top: -.2rem; bottom: 0; width: 2px; margin-left: -1px; background: var(--tn-nuit); pointer-events: none; }
.tn-curseur::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--tn-nuit); }
.tn-soiree-faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.tn-soiree-faits div { padding: 1rem 1.1rem; border-radius: 12px; background: var(--tn-pale); }
.tn-soiree-faits dt { font-family: var(--tn-titre); font-size: 1.75rem; font-weight: 600; color: var(--tn-violet); }
.tn-soiree-faits dd { margin: .3rem 0 0; color: var(--tn-muet); font-size: .93rem; line-height: 1.45; }

/* ── LES GUIDES : trois fiches de rubrique alignées ligne à ligne (subgrid) ── */
.tn-rubriques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
.tn-rubrique { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: .85rem .85rem 1.1rem; }
.tn-rubrique-photo { position: relative; margin: 0 0 1rem; border-radius: 12px; overflow: hidden; background: var(--tn-doux); }
.tn-rubrique-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tn-rubrique-photo figcaption { position: absolute; left: 10px; top: 10px; padding: .25rem .65rem; border-radius: 999px; background: var(--tn-blanc); color: var(--tn-violet); font-weight: 700; font-size: .85rem; }
.tn-rubrique-titre { margin: 0 .3rem .4rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.tn-rubrique-titre a { text-decoration: none; }
.tn-rubrique-titre a:hover { color: var(--tn-violet); text-decoration: underline; text-underline-offset: 5px; }
.tn-fiches { display: contents; list-style: none; }
.tn-fiche { margin-inline: .3rem; padding: .95rem 0; border-top: 1px solid var(--tn-bord); }
.tn-fiche-chiffre { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin: 0; }
.tn-fiche-chiffre b { font-family: var(--tn-titre); font-size: 1.5rem; font-weight: 600; color: var(--tn-violet); line-height: 1.1; white-space: nowrap; }
.tn-fiche-chiffre span { font-size: .86rem; color: var(--tn-muet); line-height: 1.35; }
.tn-fiche h4 { margin: .35rem 0 .2rem; font-size: 1.02rem; line-height: 1.3; font-weight: 600; }
.tn-fiche h4 a { text-decoration: none; }
.tn-fiche h4 a:hover { color: var(--tn-violet); text-decoration: underline; text-underline-offset: 3px; }
.tn-fiche-meta { margin: 0; font-size: .84rem; color: var(--tn-muet); }
.tn-rubrique .tn-carte-pied { margin: 0 .3rem; padding-top: .9rem; align-self: end; }

/* ── LE CONTRAT : clauses à gauche, photo et problème évité à droite, même hauteur ── */
.tn-contrat-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
.tn-papier ol { list-style: none; margin: 0; padding: 0; }
.tn-clause button { width: 100%; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 26px; gap: .8rem; align-items: start; padding: .7rem .6rem; margin: 0; border: 0;
  border-radius: 10px; background: transparent; color: var(--tn-encre); font: inherit; text-align: left; cursor: pointer; transition: background-color .25s ease; }
.tn-clause + .tn-clause { border-top: 1px solid var(--tn-pale); }
.tn-clause button:hover, .tn-clause.is-actif button { background: var(--tn-pale); }
.tn-clause-num { font-family: var(--tn-titre); font-weight: 600; color: var(--tn-violet); padding-top: .05rem; }
.tn-clause b { display: block; }
.tn-clause span > span { display: block; margin-top: .15rem; color: var(--tn-muet); font-size: .94rem; line-height: 1.45; }
.tn-clause-ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tn-bord); color: transparent; transition: all .3s ease; }
.tn-clause-ok svg { width: 14px; height: 14px; }
.tn-clause.is-lu .tn-clause-ok { background: var(--tn-sauge); border-color: var(--tn-sauge); color: var(--tn-nuit); }
.tn-contrat-cote { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.tn-contrat-photo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--tn-bord); box-shadow: var(--tn-ombre); background: var(--tn-doux); }
.tn-contrat-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }
.tn-evite { flex: 1 1 auto; display: flex; flex-direction: column; }
.tn-evite-label { margin: 0; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--tn-muet); }
.tn-evite-art { margin: .8rem 0 .3rem; font-family: var(--tn-titre); font-weight: 600; color: var(--tn-violet); font-size: 1.05rem; }
.tn-evite-txt { margin: 0; font-family: var(--tn-titre); font-size: 1.4rem; line-height: 1.25; font-weight: 600; min-height: 2.5em; }
.tn-evite-chiffres { display: grid; gap: .7rem; margin: 1.1rem 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--tn-bord); }
.tn-evite-chiffres div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.tn-evite-chiffres dt { font-family: var(--tn-titre); font-weight: 600; font-size: 1.25rem; color: var(--tn-violet); }
.tn-evite-chiffres dd { margin: 0; color: var(--tn-muet); font-size: .92rem; line-height: 1.45; }
.tn-evite .tn-btn { margin-top: auto; align-self: flex-start; }

/* ── IDÉES REÇUES : quatre affirmations tamponnées, chacune avec son chiffre ── */
.tn-idees-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tn-idee { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 1.25rem; padding: .85rem; align-items: stretch; transition: transform .25s ease, box-shadow .25s ease; }
.tn-idee-photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--tn-doux); min-height: 220px; max-height: 420px; }
.tn-idee-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-idee-corps { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: .35rem .4rem .3rem 0; min-width: 0; }
.tn-idee-texte { margin: 0; font-family: var(--tn-titre); font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
.tn-tampon-verdict { display: inline-flex; align-items: center; gap: .3rem; margin: .8rem 0 0 .2rem; padding: .3rem .6rem; border: 2px solid var(--tn-violet); border-radius: 8px;
  color: var(--tn-violet); font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-6deg); background: var(--tn-blanc); }
.tn-tampon-verdict.is-vrai { border-color: var(--tn-encre); color: var(--tn-encre); background: color-mix(in srgb, #9cb2ac 35%, #fff); }
.tn-idee-chiffre { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin: .9rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--tn-bord); width: 100%; }
.tn-idee-chiffre b { font-family: var(--tn-titre); font-size: 1.85rem; font-weight: 600; line-height: 1; color: var(--tn-violet); white-space: nowrap; }
.tn-idee-chiffre span { font-size: .9rem; color: var(--tn-muet); line-height: 1.35; }
.tn-idee-explication { margin: .7rem 0 0; color: var(--tn-muet); font-size: .95rem; line-height: 1.55; }
.tn-idee-lien { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .8rem; color: var(--tn-violet); font-weight: 700; font-size: .93rem; text-decoration: none; }
.tn-idee-lien:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .tn-idee:hover { transform: translateY(-3px); box-shadow: var(--tn-ombre-forte); } }

/* ── RÉDACTION : le registre des signatures ── */
.tn-signatures { list-style: none; margin: 0; padding: 0; }
.tn-signature { display: grid; grid-template-columns: 64px minmax(0, 13rem) minmax(0, 1fr) 8.5rem; gap: 1.1rem 1.4rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--tn-pale); }
.tn-signature:first-child { border-top: 0; }
.tn-signature > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; display: block; border: 2px solid var(--tn-doux); }
.tn-signature-qui h3 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.tn-signature-qui h3 a { text-decoration: none; }
.tn-signature-qui h3 a:hover { color: var(--tn-violet); text-decoration: underline; text-underline-offset: 4px; }
.tn-signature-qui p { margin: .2rem 0 0; color: var(--tn-muet); font-size: .9rem; line-height: 1.35; }
.tn-signature-guides { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tn-signature-guides a { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .7rem; border-radius: 999px; background: var(--tn-pale); border: 1px solid var(--tn-doux);
  font-size: .86rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.tn-signature-guides a:hover { background: var(--tn-bouton); color: var(--tn-sur-bouton); }
.tn-signature-compte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .6rem; align-items: center; }
.tn-signature-compte b { grid-row: span 2; font-family: var(--tn-titre); font-size: 1.9rem; font-weight: 600; color: var(--tn-violet); line-height: 1; }
.tn-signature-compte small { font-size: .82rem; font-weight: 700; color: var(--tn-muet); }

/* ── FIN : la fiche de consignes ── */
.tn-fin-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tn-fin-texte .tn-tete { margin: 0; text-align: center; }
.tn-fin-texte .tn-actions { justify-content: center; }
.tn-consigne { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .85rem; align-items: start; padding: .75rem 0; border-top: 1px solid var(--tn-pale); line-height: 1.45; }
.tn-consigne:first-child { border-top: 0; }

/* ── pré-pied de page injecté : aligné sur la charte (fond doux, bouton en pilule violette, sans nom en double) ── */
.uf-block:has(.about-banner) { border-color: var(--c-bord, #d4d3d9); border-radius: 16px; }
.uf-block .about-banner { grid-template-columns: 1fr auto !important; background: #f6f5f9 !important; }
.uf-block .about-banner .brand-name { display: none !important; }
.uf-block .about-banner :is(h2, p) { color: #24232f !important; }
.uf-block .about-banner p { color: #43424d !important; }
.uf-block .about-banner > .af-button { grid-column: auto !important; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; background: #54489d !important; color: #f6f5f9 !important; font-weight: 700; font-size: 1rem; }
.uf-block .about-banner > .af-button:hover { background: #4e4393 !important; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .tn-hero .tn-actions { flex-wrap: wrap; }
  .tn-soiree-corps { padding-right: 0; }
  .tn-piece-txt { display: none; }
  .tn-signature { grid-template-columns: 64px minmax(0, 1fr) 8.5rem; }
  .tn-signature-guides { grid-column: 2 / -1; }
  .tn-idee { grid-template-columns: minmax(0, 1fr); }
  .tn-idee-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 980px) {
  .tn-rythme-grille, .tn-ronde-grille, .tn-contrat-grille, .tn-fin-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-rubriques { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; row-gap: 1.25rem; }
  .tn-rubrique { grid-row: auto; grid-template-rows: none; }
  .tn-etapes { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .tn-etape:nth-child(4n + 1) { border-top: 1px solid var(--tn-pale); }
  .tn-etape:first-child { border-top: 0; }
  .tn-soiree-faits { grid-template-columns: minmax(0, 1fr); }
  .tn-idees-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-idee { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .tn-idee-photo { aspect-ratio: auto; min-height: 220px; }
  .tn-releve-entetes { display: none; }
  .tn-indice { grid-template-columns: 2.4rem minmax(0, 1fr); gap: .3rem .9rem; align-items: start; }
  .tn-indice-deduit, .tn-indice-parade { grid-column: 2; }
}
/* hero empilé : titre du carnet, pastille et H1, la scène (photo + compte rendu), boutons, chapeau, chiffres, 21 jours */
@media (max-width: 900px) {
  .tn-hero { min-height: 0; }
  .tn-carnet { display: flex; flex-direction: column; }
  .tn-carnet-tete { display: contents; }
  .tn-carnet-titre { order: 0; padding: .75rem 1.1rem; border-bottom: 1px solid var(--tn-bord); background: var(--tn-blanc); }
  .tn-carnet-corps { order: 1; display: flex; flex-direction: column; gap: 0; padding: 1.1rem 1.1rem 1.4rem; }
  .tn-hero-copie { display: contents; }
  .tn-hero-copie > .tn-pastille { order: 1; align-self: flex-start; }
  .tn-hero-copie > .tn-h1 { order: 2; }
  .tn-scene { order: 3; margin-top: 1rem; }
  .tn-hero-copie > .tn-actions { order: 4; }
  .tn-hero-copie > .tn-chapo { order: 5; }
  .tn-carnet-chiffres { order: 2; justify-content: space-between; padding: .9rem 1.1rem; border-top: 1px solid var(--tn-bord); background: var(--tn-blanc); }
  .tn-carnet-chiffres div { flex-direction: column; gap: .15rem; padding-inline: .9rem; }
  .tn-fil { order: 3; padding: .9rem 1.1rem 1.1rem; }
  .tn-fil-jours { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tn-hero .tn-actions { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .tn-home { --tn-entete: 72px; }
  .tn-wrap, .tn-hero .tn-wrap { width: min(100% - 2rem, 1180px); }
  .tn-hero { padding-block: .9rem 2.5rem; }
  .tn-carnet { border-radius: 20px; }
  .tn-carnet-titre { font-size: .7rem; gap: .45rem; padding: .6rem .9rem; }
  .tn-carnet-titre em { display: none; }
  .tn-carnet-corps { padding: .9rem .9rem 1.2rem; }
  .tn-pastille { font-size: .68rem; margin-bottom: .7rem; padding: .32rem .75rem; letter-spacing: .06em; }
  .tn-hero .tn-h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .tn-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: .9rem; }
  .tn-facade { border-radius: 12px; }
  .tn-tampon { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: .28rem .5rem; font-size: .66rem; }
  .tn-tampon svg { display: none; }
  .tn-rapport { padding: .6rem .6rem .5rem; border-radius: 12px; }
  .tn-rapport-kicker { display: none; }
  .tn-rapport-titre { font-size: 1.05rem; margin-top: 0; }
  .tn-rapport-heure { font-size: .72rem; margin-top: .25rem; padding-bottom: .4rem; }
  .tn-rapport-heure > svg, .tn-rapport-photos svg { display: none; }
  .tn-rapport-photos { padding: .05rem .4rem; }
  .tn-rapport-liste { margin: .15rem 0 0; }
  .tn-rl a { grid-template-columns: 22px minmax(0, 1fr) 16px; gap: .4rem; padding: .34rem .25rem; margin-inline: -.25rem; }
  .tn-rl-ico { width: 22px; height: 22px; border-radius: 6px; }
  .tn-rl-ico svg { width: 13px; height: 13px; }
  .tn-rl-txt span { display: none; }
  .tn-rl-txt b { font-size: .74rem; color: var(--tn-encre); letter-spacing: .04em; }
  .tn-rl-ok { width: 16px; height: 16px; }
  .tn-rl-ok svg { width: 10px; height: 10px; }
  .tn-rapport-pied { display: none; }
  .tn-hero .tn-actions { margin-top: 1.1rem; gap: .75rem; flex-wrap: wrap; }
  .tn-actions .tn-btn { width: 100%; }
  .tn-chapo { margin-top: 1.1rem; font-size: 1rem; line-height: 1.55; }
  .tn-carnet-chiffres { padding: .8rem .9rem; }
  .tn-carnet-chiffres div { padding-inline: .6rem; }
  .tn-carnet-chiffres dt { font-size: 1.4rem; }
  .tn-carnet-chiffres dd { font-size: .8rem; white-space: normal; }
  .tn-fil { padding: .8rem .9rem 1rem; }
  .tn-fil-legende { flex-direction: column; gap: .1rem; font-size: .85rem; }
  .tn-fil-jours { gap: 4px; }
  .tn-jour { min-height: 52px; }
  .tn-jour span { font-size: .58rem; }
  .tn-carte { padding: 1rem; }
  .tn-intro { font-size: 1.02rem; }
  .tn-releve-compteur > b { font-size: 2.6rem; }
  .tn-releve-jauge { display: none; }
  .tn-taches li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tn-controle, .tn-consigne { display: block; }
  .tn-controle .tn-boite, .tn-consigne .tn-boite { float: left; margin: 0 .7rem .2rem 0; }
  .tn-consigne::after, .tn-controle::after { content: ""; display: block; clear: both; }
  .tn-etape { grid-template-columns: auto 26px minmax(0, 1fr); gap: .2rem .6rem; }
  .tn-etape b, .tn-etape small { grid-column: 1 / -1; }
  .tn-etape-quand, .tn-etape-point { grid-row: auto; }
  .tn-etape-quand { white-space: nowrap; }
  .tn-clause button { display: block; }
  .tn-clause-num { display: inline-block; margin-right: .5rem; }
  .tn-clause-ok { display: none; }
  .tn-clause span > b { display: inline; }
  .tn-soiree-corps { padding-left: 0; }
  .tn-piece { height: auto; display: grid; gap: .35rem; }
  .tn-piece-nom { position: static; transform: none; width: auto; }
  .tn-piece-piste { position: relative; inset: auto; display: block; height: 22px; }
  .tn-curseur, .tn-axe { display: none; }
  .tn-evite-chiffres div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tn-idee { grid-template-columns: minmax(0, 1fr); }
  .tn-idee-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .tn-signature { grid-template-columns: 56px minmax(0, 1fr); }
  .tn-signature > img { width: 56px; height: 56px; }
  .tn-signature-guides, .tn-signature-compte { grid-column: 1 / -1; }
  .tn-signature-compte { grid-template-columns: auto minmax(0, 1fr); }
  .uf-block .about-banner { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { transition: none !important; animation: none !important; }
}
