/* Home bio-naturesante.com : la réglette de prudence.
   Couleurs, ombres et rayons : uniquement les variables de la charte (da.css + BaseLayout).
   Typo : Fraunces pour les titres (même famille d'esprit que le logo), Geist pour le texte,
   Fira Code (police du thème) réservée aux pastilles, fiches, onglets et chiffres. */

@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/GeistVF.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

html:root {
  --tn-f-titre: 'Fraunces', Georgia, serif;
  --tn-f-texte: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --tn-f-mono: 'Fira Code', monospace;
}

.tn-home, body:has(.tn-home) .uf-block {
  --tn-encre: var(--c-texte);
  --tn-encre-2: var(--c-texte-2);
  --tn-papier: var(--c-surface);
  --tn-rouge: var(--c-primaire);
  --tn-rouge-texte: var(--c-primaire-texte);
  --tn-vert: var(--c-secondaire);
  --tn-mix: color-mix(in srgb, var(--c-secondaire) 45%, var(--c-primaire));
  --tn-filet: color-mix(in srgb, var(--c-texte) 20%, transparent);
  --tn-air: clamp(80px, 9vw, 124px);
}
.tn-home {
  font-family: var(--tn-f-texte);
  color: var(--tn-encre);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--c-fond);
}
.tn-home :where(h1, h2, h3, p, ul, ol, li, figure, img, details, summary) { margin: 0; padding: 0; }
.tn-home li::before { content: none !important; }
.tn-home :where(ul, ol) { list-style: none; margin: 0; }
.tn-home li::marker { content: none; }
.tn-home figure { display: block; width: auto; }
.tn-home :where(img) { border: 0; padding: 0; max-width: 100%; display: block; border-radius: var(--r-image); }
.tn-home :is(h1, h2, h3) { font-family: var(--tn-f-titre); color: var(--tn-encre); font-weight: 600; letter-spacing: -0.015em; font-variation-settings: normal; }
.tn-home h1::after, .tn-home h2::after { content: none; }
.tn-home a { color: inherit; }
body:has(.tn-home) { background: var(--c-fond); }
.content:has(.tn-home) { margin-top: 0; }
.tn-int { width: min(100% - 48px, var(--largeur)); margin-inline: auto; }
.tn-centre { text-align: center; margin-top: 48px !important; }

/* ===== Grammaire commune : pastille, titres, fiches, boutons ===== */
.tn-kicker, body:has(.tn-home) .uf-block .eyebrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; box-shadow: none;
  font-family: var(--tn-f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--tn-encre);
}
.tn-kicker i, body:has(.tn-home) .uf-block .eyebrow::before {
  content: ""; flex: none; width: 36px; height: 8px;
  background: linear-gradient(90deg, var(--tn-vert) 0 30%, transparent 30% 35%, var(--tn-mix) 35% 65%, transparent 65% 70%, var(--tn-rouge) 70% 100%);
}
.tn-home :is(h1, h2) em, body:has(.tn-home) .uf-block h2 em {
  font-style: normal; color: var(--tn-rouge-texte);
  background: linear-gradient(transparent 70%, color-mix(in srgb, var(--c-primaire) 18%, transparent) 70%);
}
.tn-section { padding-block: var(--tn-air); }
.tn-alt { background: color-mix(in srgb, var(--c-fond-2) 45%, var(--c-fond)); border-block: 2px dotted var(--tn-filet); }
.tn-entete { max-width: 800px; margin: 0 auto clamp(44px, 5vw, 64px); text-align: center; }
.tn-entete h2 { margin-top: 22px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.tn-entete > p:not(.tn-kicker) { margin: 18px auto 0; max-width: 58ch; color: var(--tn-encre-2); font-size: 1.06rem; }

.tn-fiche {
  background: var(--tn-papier); border: 2px solid var(--tn-encre); box-shadow: var(--o-carte);
  border-radius: var(--r-carte); min-width: 0;
}
.tn-fiche-tete {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 16px !important;
  border-bottom: 2px dotted var(--tn-filet);
  font-family: var(--tn-f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-encre-2);
}
.tn-home .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 22px; margin: 0;
  border: var(--btn-bord); border-radius: var(--r-bouton); background: var(--tn-papier); box-shadow: var(--btn-ombre);
  color: var(--tn-encre); font-family: var(--tn-f-mono); font-weight: 700; font-size: .9rem;
  text-decoration: none; line-height: 1.2; transition: transform .18s, box-shadow .18s, background .18s;
}
.tn-home .button.primary { background: var(--btn-fond); color: var(--btn-texte); }
.tn-home .button .icon { flex: none; }
@media (hover: hover) {
  .tn-home .button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tn-encre); }
}
.tn-lien-suite {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--tn-f-mono); font-size: .8rem; font-weight: 700;
  color: var(--tn-rouge-texte) !important; text-decoration: none;
}
.tn-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.tn-grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tn-duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 3.5vw, 44px); align-items: stretch; }
.tn-pips { display: inline-flex; gap: 5px; }
.tn-pips i { width: 18px; height: 10px; border: 2px solid var(--tn-encre); background: transparent; }
.tn-pips i.plein { background: var(--tn-vert); border-color: var(--tn-vert); }

/* Réglette : couleurs des crans, barre, curseur (hero, rubriques, bibliothèque, formats) */
.tn-home [data-cran="0"] { --cran: var(--tn-vert); }
.tn-home [data-cran="1"] { --cran: var(--tn-mix); }
.tn-home [data-cran="2"] { --cran: var(--tn-rouge); }
.tn-cran-carre {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: var(--cran); color: var(--c-sur-voile);
  font-family: var(--tn-f-mono); font-size: .62rem; font-weight: 700; line-height: 1;
}
.tn-rail, .tn-mini-rail, .tn-regle-rail { position: relative; --pos: 50%; }
.tn-rail-barre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 10px; }
.tn-rail-barre > span:nth-child(1) { background: var(--tn-vert); }
.tn-rail-barre > span:nth-child(2) { background: var(--tn-mix); }
.tn-rail-barre > span:nth-child(3) { background: var(--tn-rouge); }
.tn-rail-curseur {
  position: absolute; top: -7px; left: var(--pos); width: 6px; height: 24px; transform: translateX(-50%);
  background: var(--tn-encre); outline: 3px solid var(--tn-papier);
}

/* ===== HERO : quatre produits posés sur la réglette ===== */
.tn-hero { padding-block: clamp(30px, 3vw, 44px) clamp(64px, 7vw, 100px); background: var(--c-fond); }
.tn-int-large { width: min(100% - 48px, 1240px); }
.tn-hero-haut { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.tn-hero-titre, .tn-hero-corps { min-width: 0; }
.tn-hero h1 {
  margin-top: 18px; font-family: var(--tn-f-titre); font-size: clamp(2.5rem, 3.9vw, 3.45rem); line-height: 1.03;
  font-weight: 600; letter-spacing: -0.03em;
}
.tn-hero-chapeau { max-width: 44ch; color: var(--tn-encre-2); font-size: 1.08rem; line-height: 1.6; }
.tn-hero .tn-actions { margin-top: 26px; }

.tn-regle { margin-top: clamp(32px, 3.4vw, 46px); }
.tn-produits { display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); align-items: stretch; }
.tn-produit { position: relative; grid-row: 1; grid-column: var(--col) / span 17; min-width: 0; }
.tn-produit > a {
  display: flex; flex-direction: column; height: 100%; background: var(--tn-papier); border: 2px solid var(--tn-encre); box-shadow: var(--o-carte);
  text-decoration: none; color: var(--tn-encre); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.tn-produit.est-actif > a { transform: translateY(-12px); box-shadow: 7px 7px 0 var(--cran); }
.tn-produit::after {
  content: ""; position: absolute; left: 50%; bottom: -28px; width: 2px; height: 28px; transform: translateX(-50%);
  background: var(--tn-encre); transition: height .45s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.tn-produit.est-actif::after { height: 40px; background: var(--cran); width: 3px; }
.tn-produit-photo { position: relative; display: block; flex: none; aspect-ratio: 5 / 4; overflow: hidden; border-bottom: 2px solid var(--tn-encre); background: var(--c-fond-2); }
.tn-produit-photo picture, .tn-produit-photo img { display: block; width: 100%; height: 100%; }
.tn-produit-photo img { object-fit: cover; margin: 0 !important; transition: transform .8s ease; }
.tn-point {
  position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--tn-rouge); border: 3px solid var(--tn-papier); box-shadow: 0 0 0 2px var(--tn-encre);
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.tn-point::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--tn-papier); animation: tn-pouls 2.4s ease-out infinite; }
.tn-produit.est-actif .tn-point { opacity: 1; transform: scale(1); }
@keyframes tn-pouls { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.tn-produit-corps { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.tn-cran-puce {
  align-self: flex-start; padding: 3px 8px; background: var(--cran); color: var(--c-sur-voile);
  font-family: var(--tn-f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
.tn-produit-corps b { font-family: var(--tn-f-titre); font-size: 1.08rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.tn-produit-corps small { font-size: .8rem; line-height: 1.35; color: var(--tn-encre-2); }

.tn-regle-rail { margin-top: 28px; }
.tn-regle-rail .tn-rail-barre { height: 14px; }
.tn-regle-rail .tn-rail-curseur { top: -12px; width: 10px; height: 38px; outline-width: 4px; }
.tn-regle-graduations { display: flex; justify-content: space-between; align-items: flex-start; height: 12px; margin-top: 5px; }
.tn-regle-graduations i { width: 1px; height: 6px; background: color-mix(in srgb, var(--c-texte) 45%, transparent); }
.tn-regle-graduations i:nth-child(5n + 1) { height: 11px; width: 2px; background: var(--tn-encre); }
.tn-regle-crans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 10px !important; }
.tn-regle-crans li { display: flex; flex-direction: column; gap: 4px; padding-right: 16px; opacity: .5; transition: opacity .35s; }
.tn-regle-crans li.est-actif { opacity: 1; }
.tn-regle-num { font-family: var(--tn-f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tn-encre-2); }
.tn-regle-crans b { font-family: var(--tn-f-titre); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.tn-regle-compte { font-family: var(--tn-f-mono); font-size: .74rem; color: var(--tn-encre-2); }
.tn-regle-compte strong { font-size: 1rem; color: var(--tn-encre); }
.tn-lecture {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 26px !important;
  padding: 16px 22px; background: var(--tn-papier); border: 2px solid var(--tn-encre); box-shadow: var(--o-carte);
}
.tn-lecture-nom { font-family: var(--tn-f-titre); font-size: 1.12rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.tn-lecture-raison { font-size: .94rem; line-height: 1.45; color: var(--tn-encre-2); padding-left: 22px; border-left: 2px dotted var(--tn-filet); }
.tn-lecture .tn-lien-suite { max-width: 30ch; line-height: 1.35; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tn-lecture .tn-lien-suite .icon { flex: none; }

/* ===== RUBRIQUES ===== */
.tn-rub { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 24px; }
.tn-rub .tn-fiche-tete { margin-bottom: 0 !important; text-transform: none; letter-spacing: .02em; }
.tn-rub h3 { font-size: 1.45rem; line-height: 1.12; }
.tn-rub h3 a { text-decoration: none; }
.tn-rub-accroche { font-size: .92rem; line-height: 1.45; color: var(--tn-encre-2); }
.tn-repart-barre { display: flex; gap: 3px; height: 12px; }
.tn-repart-barre span { background: var(--cran); transform-origin: left; }
.tn-repart-legende { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px !important; font-family: var(--tn-f-mono); font-size: .64rem; color: var(--tn-encre-2); }
.tn-repart-legende b { font-size: 1.05rem; color: var(--tn-encre); }
.tn-repart-legende li.est-vide { opacity: .45; }
.tn-rub-liste { border-top: 2px dotted var(--tn-filet); }
.tn-rub-liste li, .tn-auteur-guides li { display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed var(--tn-filet); }
.tn-rub-liste a { display: block; padding: 9px 0; font-size: .88rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
@media (hover: hover) { .tn-rub-liste a:hover { color: var(--tn-rouge-texte); } }
.tn-rub-signe { margin-top: auto !important; font-family: var(--tn-f-mono); font-size: .68rem; line-height: 1.4; color: var(--tn-encre-2); }

/* ===== VIGILANCE ===== */
.tn-quiz { padding: 22px 28px 8px; }
.tn-quiz-liste li { padding: 16px 0 20px; border-bottom: 2px dotted var(--tn-filet); }
.tn-quiz-liste li:last-child { border-bottom: 0; }
.tn-q-texte { display: flex; gap: 14px; align-items: baseline; font-family: var(--tn-f-titre); font-size: 1.22rem; font-weight: 600; line-height: 1.3; }
.tn-q-texte b { flex: none; font-family: var(--tn-f-mono); font-size: .8rem; color: var(--tn-rouge-texte); }
.tn-q-rep { margin: 10px 0 0 28px !important; font-size: .94rem; line-height: 1.5; color: var(--tn-encre-2); }
.tn-q-rep strong { color: var(--tn-encre); }
.tn-q-boutons { display: flex; gap: 10px; margin: 14px 0 0 28px; }
.tn-home .tn-q-boutons button {
  min-height: 44px; min-width: 92px; padding: 0 18px; border: 2px solid var(--tn-encre); border-radius: var(--r-bouton);
  background: var(--tn-papier); color: var(--tn-encre); font-family: var(--tn-f-mono); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.tn-home .tn-q-boutons button[aria-pressed="true"] { background: var(--tn-encre); color: var(--tn-papier); }
.tn-js .tn-quiz [data-tn-question]:not(.repondu) .tn-q-rep { display: none; }
.tn-quiz [data-tn-question] { transition: padding .2s; }
.tn-quiz [data-tn-question].juste { box-shadow: inset 4px 0 0 var(--tn-vert); padding-left: 16px; }
.tn-quiz [data-tn-question].rate { box-shadow: inset 4px 0 0 var(--tn-rouge); padding-left: 16px; }
.tn-relais { display: flex; flex-direction: column; padding: 22px 28px 24px; }
.tn-relais .tn-fiche-tete span:first-child { color: var(--tn-rouge-texte); }
.tn-relais li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-bottom: 2px dotted var(--tn-filet); }
.tn-relais-ico { display: grid; place-items: center; width: 40px; height: 40px; background: var(--c-doux); color: var(--tn-rouge-texte); border: 2px solid var(--tn-encre); }
.tn-relais h3 { font-size: 1.12rem; }
.tn-relais li p { margin-top: 4px !important; font-size: .92rem; line-height: 1.5; color: var(--tn-encre-2); }
.tn-note { margin-top: auto !important; padding-top: 16px; font-family: var(--tn-f-mono); font-size: .7rem; color: var(--tn-encre-2); }

/* ===== DÉCODEUR ===== */
.tn-dec-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 60px); align-items: stretch; }
.tn-home .tn-dec-photo { position: relative; margin: 0; overflow: hidden; min-height: 420px; border-width: 3px; }
.tn-home .tn-dec-photo img { position: absolute; inset: 0; margin: 0 !important; width: 100%; height: 100% !important; max-height: none !important; aspect-ratio: auto; object-fit: cover; object-position: 28% 50%; }
.tn-dec-droite { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.tn-etiquette { padding: 18px 24px 16px; }
.tn-et-nom { font-family: var(--tn-f-titre); font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin-bottom: 10px !important; }
.tn-et-ligne {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-inline: -10px !important;
  font-family: var(--tn-f-mono); font-size: .84rem; border-top: 1px dashed var(--tn-filet); transition: background .3s, color .3s;
}
.tn-et-ligne.est-actif { background: var(--c-doux); color: var(--tn-encre); }
.tn-et-num {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--tn-encre);
  font-size: .68rem; font-weight: 700; background: var(--tn-papier);
}
.tn-et-ligne.est-actif .tn-et-num { background: var(--tn-rouge); border-color: var(--tn-rouge); color: var(--c-sur-voile); }
.tn-et-pied { margin-top: 8px !important; font-family: var(--tn-f-mono); font-size: .66rem; color: var(--tn-encre-2); }
.tn-dec-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: etape; }
.tn-dec-etapes li { padding-top: 12px; border-top: 3px solid var(--tn-filet); transition: border-color .3s; }
.tn-dec-etapes li.est-actif { border-top-color: var(--tn-rouge); }
.tn-dec-etapes b { display: block; font-family: var(--tn-f-titre); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.tn-dec-etapes span { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--tn-encre-2); }
.tn-dec-pied { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; border-top: 2px dotted var(--tn-filet); }
.tn-dec-chiffre { display: flex; align-items: center; gap: 14px; max-width: 34ch; }
.tn-dec-chiffre b { font-family: var(--tn-f-mono); font-size: 2.2rem; line-height: 1; font-weight: 600; color: var(--tn-rouge-texte); flex: none; }
.tn-dec-chiffre span { font-size: .86rem; line-height: 1.4; color: var(--tn-encre-2); }

/* ===== FORMATS ===== */
.tn-comparatif { padding: 22px 26px; }
.tn-choix { display: inline-flex; border: 2px solid var(--tn-encre); margin-bottom: 18px; }
.tn-home .tn-choix button {
  min-height: 44px; padding: 0 18px; border: 0; border-right: 2px solid var(--tn-encre); border-radius: 0; background: transparent;
  font-family: var(--tn-f-mono); font-size: .8rem; font-weight: 700; color: var(--tn-encre); cursor: pointer;
}
.tn-home .tn-choix button:last-child { border-right: 0; }
.tn-home .tn-choix button.est-actif { background: var(--tn-encre); color: var(--tn-papier); }
.tn-comp-ligne { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); align-items: center; border-bottom: 1px dashed var(--tn-filet); }
.tn-comp-ligne > * { padding: 14px 12px; min-width: 0; transition: background .3s; }
.tn-comp-ligne > span { font-family: var(--tn-f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-encre-2); }
.tn-comp-ligne p { font-size: .94rem; line-height: 1.4; }
.tn-comp-entete { border-bottom: 2px solid var(--tn-encre); }
.tn-comp-entete b { font-family: var(--tn-f-titre); font-size: 1.2rem; font-weight: 600; }
.tn-pret .tn-comp-ligne > .est-actif { background: color-mix(in srgb, var(--c-doux) 70%, transparent); }
.tn-mini-rail small { display: block; margin-top: 10px; font-family: var(--tn-f-mono); font-size: .64rem; font-weight: 700; }
.tn-mini-rail .tn-rail-curseur { top: -6px; height: 20px; width: 5px; }
.tn-comp-pied { margin-top: 16px !important; text-align: right; }

/* ===== MÉTHODE ===== */
.tn-frise { --frise: 1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 30px !important; }
.tn-frise::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tn-filet); }
.tn-frise::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: calc(var(--frise) * 100%); background: var(--tn-rouge); }
.tn-frise > li { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.tn-frise-num { font-family: var(--tn-f-mono); font-size: 1.4rem; font-weight: 600; color: var(--tn-rouge-texte); line-height: 1; }
.tn-frise h3 { font-size: 1.25rem; line-height: 1.15; }
.tn-frise > li > p { font-size: .92rem; line-height: 1.5; color: var(--tn-encre-2); }
.tn-frise .tn-frise-preuve { margin-top: auto !important; padding-top: 12px; border-top: 2px dotted var(--tn-filet); font-family: var(--tn-f-mono); font-size: .72rem; color: var(--tn-encre); }
.tn-frise-preuve b { font-size: 1.2rem; }
.tn-sources { margin-top: auto !important; border-top: 2px dotted var(--tn-filet); }
.tn-sources li { border-bottom: 1px dashed var(--tn-filet); }
.tn-sources a { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-family: var(--tn-f-mono); font-size: .76rem; font-weight: 700; color: var(--tn-rouge-texte) !important; text-decoration: none; }

/* ===== BIBLIOTHÈQUE ===== */
.tn-guide { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tn-guide > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tn-guide-photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 2px solid var(--tn-encre); }
.tn-guide-photo img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .6s ease; }
.tn-guide-corps { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 18px 18px; }
.tn-guide .tn-mini-rail { margin-top: 6px; }
.tn-mini-rail small { display: block; margin-top: 10px; font-family: var(--tn-f-mono); font-size: .64rem; font-weight: 600; color: var(--tn-encre-2); }
.tn-mini-rail small b { color: var(--tn-encre); }
.tn-mini-rail .tn-rail-curseur { top: -6px; height: 20px; width: 5px; }
.tn-guide .tn-rail-barre { height: 8px; }
.tn-guide .tn-rail-barre > span { opacity: .35; }
.tn-guide[data-cran="0"] .tn-rail-barre > span:nth-child(1), .tn-guide[data-cran="1"] .tn-rail-barre > span:nth-child(2), .tn-guide[data-cran="2"] .tn-rail-barre > span:nth-child(3) { opacity: 1; }
.tn-guide h3 { font-size: 1.14rem; line-height: 1.22; }
.tn-guide-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: auto; font-family: var(--tn-f-mono); font-size: .64rem; color: var(--tn-encre-2); }
.tn-tag { padding: 2px 7px; border: 1.5px solid var(--tn-encre); color: var(--tn-encre); font-weight: 600; }
.tn-guide-signe { font-size: .82rem; color: var(--tn-encre-2); }
@media (hover: hover) {
  .tn-guide:hover { transform: translate(2px, 2px); box-shadow: var(--o-survol); }
  .tn-guide:hover img { transform: scale(1.04); }
}
.tn-guide-tous { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; text-decoration: none; background: var(--tn-encre); color: var(--tn-papier) !important; }
.tn-guide-tous .tn-fiche-tete { color: color-mix(in srgb, var(--c-surface) 75%, transparent); border-color: color-mix(in srgb, var(--c-surface) 30%, transparent); }
.tn-guide-tous > b { font-family: var(--tn-f-mono); font-size: 4rem; line-height: 1; font-weight: 600; margin-top: auto; }
.tn-guide-tous > span:not(.tn-fiche-tete) { font-size: .92rem; }
.tn-tous-crans { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--c-surface) 30%, transparent); font-family: var(--tn-f-mono); font-size: .7rem !important; }
.tn-tous-crans span { display: inline-flex; align-items: center; gap: 6px; }
.tn-tous-crans span::before { content: ""; width: 10px; height: 10px; background: var(--cran); }
.tn-guide-tous .tn-lien-suite { margin-top: 12px; color: var(--tn-papier) !important; }

/* ===== ÉQUIPE : cartes signatures ===== */
.tn-auteur { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; }
.tn-auteur .tn-fiche-tete { margin-bottom: 0 !important; }
.tn-auteur-tete { display: flex; align-items: center; gap: 14px; }
.tn-monogramme {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid var(--tn-encre); background: var(--c-doux);
  font-family: var(--tn-f-titre); font-size: 1.5rem; font-weight: 600; color: var(--tn-rouge-texte); letter-spacing: -0.02em;
}
.tn-auteur h3 { font-size: 1.22rem; line-height: 1.15; }
.tn-auteur h3 a { text-decoration: none; }
.tn-auteur-tete p { margin-top: 4px !important; font-size: .84rem; line-height: 1.35; color: var(--tn-encre-2); }
.tn-auteur-terrain { font-size: .94rem; font-weight: 600; line-height: 1.35; }
.tn-auteur-terrain span { display: block; font-family: var(--tn-f-mono); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-rouge-texte); margin-bottom: 4px; }
.tn-auteur-guides { border-top: 2px dotted var(--tn-filet); }
.tn-auteur-guides a { display: block; padding: 9px 0; font-size: .86rem; line-height: 1.35; text-decoration: none; }
@media (hover: hover) { .tn-auteur-guides a:hover { color: var(--tn-rouge-texte); } }

/* ===== QUESTIONS ET CONTACT ===== */
.tn-faq { padding: 22px 28px 12px; }
.tn-faq details { border-bottom: 2px dotted var(--tn-filet); }
.tn-faq details:last-child { border-bottom: 0; }
.tn-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--tn-f-titre); font-size: 1.16rem; font-weight: 600; line-height: 1.3;
}
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--tn-encre); font-family: var(--tn-f-mono); font-size: 1rem; }
.tn-faq details[open] summary::after { content: "\2212"; background: var(--tn-encre); color: var(--tn-papier); }
.tn-faq details p { padding-bottom: 18px !important; font-size: .96rem; line-height: 1.55; color: var(--tn-encre-2); }
.tn-contact-carte { display: flex; flex-direction: column; gap: 14px; padding: 22px 28px 26px; }
.tn-contact-carte .tn-fiche-tete { margin-bottom: 4px !important; }
.tn-contact-carte h3 { font-size: 1.6rem; line-height: 1.1; }
.tn-contact-carte > p:not(.tn-fiche-tete) { font-size: .96rem; line-height: 1.55; color: var(--tn-encre-2); }
.tn-contact-points li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--tn-filet); font-size: .9rem; line-height: 1.4; }
.tn-contact-points .icon { color: var(--tn-vert); flex: none; margin-top: 1px; }
.tn-contact-carte .tn-actions { margin-top: auto; padding-top: 8px; }
.tn-home .tn-contact-mail { font-family: var(--tn-f-mono); font-size: .76rem; color: var(--tn-encre-2); }

/* ===== Avant-pied injecté par l'usine : même grammaire que la home ===== */
body:has(.tn-home) .uf-block {
  box-sizing: border-box; width: min(100% - 48px, var(--largeur)); max-width: none; margin: 0 auto; padding-block: var(--tn-air);
  background: transparent; border: 0; border-radius: 0; overflow: visible; font-family: var(--tn-f-texte); color: var(--tn-encre);
}
body:has(.tn-home) .uf-block .af-pad.search-split { display: block; padding: 0; background: transparent; }
body:has(.tn-home) .uf-block .af-heading { max-width: 800px; margin: 0 auto 40px; text-align: center; }
body:has(.tn-home) .uf-block .af-heading::before { content: none; }
body:has(.tn-home) .uf-block h2 { margin: 22px 0 0; font-family: var(--tn-f-titre); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
body:has(.tn-home) .uf-block h2::after { content: none; }
body:has(.tn-home) .uf-block .af-heading p { margin: 18px auto 0; max-width: 58ch; color: var(--tn-encre-2); font-size: 1.06rem; }
body:has(.tn-home) .uf-block .af-search-form { max-width: 720px; margin: 0 auto; }
body:has(.tn-home) .uf-block .search-fields { display: flex; flex-direction: row; gap: 14px; }
body:has(.tn-home) .uf-block .af-search-input {
  min-height: 52px; border: 2px solid var(--tn-encre); border-radius: 0; background: var(--tn-papier); box-shadow: 3px 3px 0 var(--tn-encre);
  font-family: var(--tn-f-texte); font-size: 1rem; color: var(--tn-encre);
}
body:has(.tn-home) .uf-block .af-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border: var(--btn-bord); border-radius: 0;
  background: var(--btn-fond); color: var(--btn-texte); box-shadow: var(--btn-ombre); font-family: var(--tn-f-mono); font-weight: 700; font-size: .9rem; cursor: pointer;
}
body:has(.tn-home) .uf-block .search-status { text-align: center; font-family: var(--tn-f-mono); }
body:has(.tn-home) .uf-block .af-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
body:has(.tn-home) .uf-block .search-result {
  display: flex; align-items: center; gap: 16px; padding: 14px; border: 2px solid var(--tn-encre); background: var(--tn-papier); box-shadow: var(--o-carte);
}
body:has(.tn-home) .uf-block .search-result img { width: 88px; height: 88px; flex: none; margin: 0; padding: 0; border: 2px solid var(--tn-encre); border-radius: 0; object-fit: cover; }
/* Sur la home, les photos de ces suggestions sont déjà montrées plus haut : cartes de texte seules */
body:has(.tn-home) .uf-block .search-result img { display: none !important; }
body:has(.tn-home) .uf-block .search-result { min-height: 84px; padding: 16px 20px; border-left-width: 8px; }
body:has(.tn-home) .uf-block .search-result h3 { font-family: var(--tn-f-titre); font-size: 1.06rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
body:has(.tn-home) .uf-block .search-result small { font-family: var(--tn-f-mono); font-size: .64rem; color: var(--tn-encre-2); }

/* ===== Pied de page : même main que le menu (crème, filet rouge), typo de la home ===== */
body:has(.tn-home) .pied-marque > p, body:has(.tn-home) .pied-col a { font-family: var(--tn-f-texte); }
body:has(.tn-home) .pied-col a { font-size: .94rem; }
body:has(.tn-home) .pied .pied-avis { font-family: var(--tn-f-texte); box-shadow: 3px 3px 0 var(--c-texte); }

/* ===== Réactions ===== */
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { animation: none !important; transition: none !important; }
}

/* ===== Tablette ===== */
@media (max-width: 1100px) {
  .tn-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-frise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-lecture { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tn-lecture-raison { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .tn-hero-haut { grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
  .tn-duo, .tn-dec-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-home .tn-dec-photo { min-height: 0; aspect-ratio: 4 / 3; }
  body:has(.tn-home) .uf-block .af-results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tn-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; align-items: stretch; }
  .tn-produit { grid-row: auto; grid-column: auto; }
  .tn-produit::after { display: none; }
  .tn-produit.est-actif > a { transform: none; }
  .tn-regle-crans b { font-size: 1rem; }
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
  html:root { --banner-height: 0px; }
  [data-bandeau], .announcement-bar { display: none !important; }
  body:has(.tn-home) .header__logo::after { display: none !important; }
  .tn-int, .tn-int-large, body:has(.tn-home) .uf-block { width: min(100% - 32px, var(--largeur)); }
  .tn-home { font-size: 1rem; }
  .tn-hero { padding-block: 20px 56px; }
  .tn-hero h1 { margin-top: 14px; font-size: clamp(2.1rem, 9.4vw, 2.6rem); line-height: 1.05; }
  .tn-hero-chapeau { font-size: 1rem; }
  .tn-hero .tn-actions { margin-top: 20px; }
  .tn-actions { flex-direction: column; }
  .tn-home .tn-actions .button { width: 100%; }
  .tn-regle { margin-top: 36px; }
  .tn-produit-corps { padding: 10px 10px 12px; }
  .tn-produit-corps b { font-size: .98rem; }
  .tn-produit-corps small { font-size: .74rem; }
  .tn-regle-rail { margin-top: 22px; }
  .tn-regle-crans li { padding-right: 6px; }
  .tn-regle-num { font-size: .56rem; letter-spacing: .06em; }
  .tn-regle-crans b { font-size: .86rem; }
  .tn-regle-compte { font-size: .62rem; }
  .tn-regle-compte strong { font-size: .86rem; }
  .tn-lecture { padding: 14px 16px; }
  .tn-lecture-nom { white-space: normal; }
  .tn-guide > a { flex-direction: row; }
  .tn-guide-photo { flex: none; width: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--tn-encre); }
  .tn-guide-corps { padding: 12px 14px; gap: 8px; }
  .tn-guide h3 { font-size: 1.02rem; }
  .tn-grille-4, .tn-frise { grid-template-columns: minmax(0, 1fr); }
  .tn-entete h2 { font-size: 2rem; }
  .tn-quiz, .tn-relais, .tn-faq, .tn-contact-carte, .tn-comparatif { padding-inline: 18px; }
  .tn-q-rep, .tn-q-boutons { margin-left: 0 !important; }
  .tn-dec-etapes { grid-template-columns: minmax(0, 1fr); }
  .tn-comp-ligne { grid-template-columns: minmax(0, 1fr); }
  .tn-comp-ligne > span { padding-bottom: 0; }
  .tn-js .tn-pret .tn-comp-ligne > [data-tn-col]:not(.est-actif) { display: none; }
  .tn-pret .tn-comp-ligne > .est-actif { background: transparent; }
  .tn-pret .tn-comp-entete { display: none; }
  .tn-choix { display: flex; }
  .tn-home .tn-choix button { flex: 1; padding: 0 8px; }
  body:has(.tn-home) .uf-block .search-fields { flex-direction: column; }
}
