/* Home assurancevoiturecoupe.fr : « Le coupé et sa fiche de prime ». Charte : variables de da.css, aucune couleur en dur.
   Menu, hero, sections et pied de page tenus par la même grammaire : Crimson Pro, pastille mono, angles droits, teal et vert sapin. */
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/CrimsonPro-latin.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/CrimsonPro-Italic-latin.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-latin.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
html:root {
  --f-titre: 'Crimson Pro', Georgia, serif;
  --f-texte: 'Figtree', 'Segoe UI', sans-serif;
  --tn-air: clamp(72px, 9vw, 112px);
  --tn-pad: clamp(16px, 3.2vw, 40px);
  --tn-vert-clair: color-mix(in srgb, var(--c-primaire) 12%, var(--c-surface));
  --tn-sur-sapin: color-mix(in srgb, var(--c-sur-voile) 76%, transparent);
  --tn-filet-sapin: color-mix(in srgb, var(--c-sur-voile) 16%, transparent);
}

/* La home occupe toute la largeur : le cadre de 70rem du thème ne s'applique pas ici. */
main.global-layout-width:has(> .tn-home) { max-width: none; padding-inline: 0; border-inline: 0; }
.tn-home { font-family: var(--f-texte); color: var(--c-texte); overflow-x: clip; }
.tn-home *, .tn-home *::before, .tn-home *::after { box-sizing: border-box; }
.tn-home a { text-decoration: none; color: inherit; }
.tn-home img { display: block; max-width: 100%; }
.tn-home p { margin: 0; }
.tn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-ico { display: inline-block; flex: none; vertical-align: middle; }

/* ---------- EN-TÊTE : une ligne, logo à gauche, liens lisibles, bouton teal ---------- */
#entete [data-bandeau] { display: none !important; }
#entete { background: var(--c-surface); border-bottom: 1px solid var(--c-bord); }
#entete > div.global-layout-width { max-width: var(--largeur, 1200px); padding-inline: var(--tn-pad); }
#entete [data-usine='logo'] img { height: 40px; }
@media (min-width: 768px) {
  #entete > div.global-layout-width { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: 6px; padding-block: 14px; }
  #entete > div.global-layout-width > div.relative { display: contents; }
  #entete [data-usine='logo'] { order: 1; justify-self: auto; }
  #entete nav[aria-label='Navigation principale'] { order: 2; margin: 0 0 0 auto; gap: 2px; align-items: center; }
  #entete .justify-self-end { order: 3; position: static; }
  #entete nav[aria-label='Navigation principale'] a {
    font-family: var(--f-texte); font-size: 15px; font-weight: 600; color: var(--c-texte); padding: 10px 12px; border-radius: 0;
  }
  #entete nav[aria-label='Navigation principale'] a:hover { background: var(--tn-vert-clair); color: var(--c-primaire-texte); }
  #entete nav[aria-label='Navigation principale'] a:last-child {
    margin-left: 10px; padding: 11px 20px; background: var(--btn-fond); color: var(--btn-texte); border: var(--btn-bord);
  }
  #entete nav[aria-label='Navigation principale'] a:last-child:hover { background: var(--c-primaire-texte); border-color: var(--c-primaire-texte); color: var(--c-sur-voile); }
}
@media (min-width: 768px) and (max-width: 1180px) {
  #entete nav[aria-label='Navigation principale'] { order: 4; margin: 0; flex-basis: 100%; }
}
@media (max-width: 767px) {
  #entete [data-usine='logo'] { justify-self: start; }
  #entete [data-usine='logo'] img { height: 34px; }
}

/* ---------- PIED DE PAGE : vert sapin, titres serif, grille de 1 200 px ---------- */
[data-avant-footer], section.border-t-border { display: none !important; }
body > footer { background: var(--c-sur-primaire); color: var(--c-sur-voile); }
body > footer > div.global-layout-width {
  max-width: var(--largeur, 1200px); border: 0; padding: clamp(64px, 7vw, 88px) var(--tn-pad) 28px;
}
body > footer > div.global-layout-width::before {
  content: 'Assurance Voiture Coupe, le guide'; display: inline-flex; margin-bottom: 36px; padding: 8px 14px;
  font-family: var(--f-mono); font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tn-sur-sapin); border: 1px solid var(--tn-filet-sapin);
}
body > footer .grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
body > footer .grid > div:first-child::after {
  content: 'Prix, formules, bonus-malus et sinistres : l’assurance des coupés, chiffrée avant de signer.';
  display: block; margin-top: 20px; max-width: 22em; font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.3; font-style: italic; color: var(--tn-sur-sapin);
}
body > footer img { filter: brightness(0) invert(1); height: 46px; }
body > footer p.font-semibold { font-family: var(--f-titre); font-size: 1.45rem; font-weight: 700; color: var(--c-sur-voile); margin-bottom: 14px; }
body > footer a { color: var(--tn-sur-sapin); }
body > footer ul a:hover, body > footer a:hover { color: var(--c-primaire); text-decoration: underline; text-underline-offset: 4px; }
body > footer .text-muted-foreground, body > footer li.text-muted-foreground { color: color-mix(in srgb, var(--c-sur-voile) 60%, transparent); }
body > footer .border-t { border-color: var(--tn-filet-sapin); }
body > footer > p { padding: 0 var(--tn-pad) 28px !important; margin: 0 !important; color: color-mix(in srgb, var(--c-sur-voile) 60%, transparent); }
body > footer > p a { color: var(--tn-sur-sapin); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { body > footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { body > footer .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- grammaire commune ---------- */
.tn-int { max-width: var(--largeur, 1200px); margin-inline: auto; padding-inline: var(--tn-pad); }
.tn-section { padding-block: var(--tn-air); position: relative; }
.tn-tete { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.tn-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px !important; padding: 8px 14px;
  font-family: var(--f-mono); font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-texte-2); background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte);
}
.tn-kicker-pt { width: 8px; height: 8px; background: var(--c-primaire); display: inline-block; }
.tn-section h2 {
  font-family: var(--f-titre); font-weight: 700; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.06;
  letter-spacing: -.012em; margin: 0; color: var(--c-texte); text-wrap: balance;
}
.tn-section h2 em, .tn-h1 em, .tn-sujet-titre em { font-style: italic; font-weight: 600; color: var(--c-primaire-texte); }
.tn-chapo { margin: 20px auto 0 !important; max-width: 640px; font-size: 1.125rem; line-height: 1.6; color: var(--c-texte-2); }
.tn-carte { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); box-shadow: var(--o-carte); }
.tn-carte-titre { margin-bottom: 6px !important; }
.tn-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--c-primaire-texte) !important; }
.tn-lien .tn-ico { transition: transform .2s; width: 18px; height: 18px; }
.tn-lien:hover .tn-ico { transform: translateX(3px); }
.tn-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; white-space: nowrap;
  background: var(--btn-fond); color: var(--btn-texte) !important; border: var(--btn-bord); border-radius: var(--r-bouton);
  font: 600 1rem/1.1 var(--f-texte); cursor: pointer; transition: background .2s, color .2s;
}
.tn-bouton .tn-ico { width: 18px; height: 18px; }
.tn-bouton:hover, .tn-bouton:focus-visible { background: var(--c-primaire-texte); border-color: var(--c-primaire-texte); color: var(--c-sur-voile) !important; }
.tn-bouton-2 { background: transparent; border-color: var(--c-texte); color: var(--c-texte) !important; }
.tn-bouton-2:hover, .tn-bouton-2:focus-visible { background: var(--c-texte); border-color: var(--c-texte); color: var(--c-surface) !important; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tn-jauge { display: block; height: 4px; background: var(--c-bord); overflow: hidden; }
.tn-jauge i { display: block; height: 100%; width: var(--j, 0%); background: var(--c-primaire); }

/* liens ciblés logés dans les démonstrations */
.tn-cibles { list-style: none; margin: 0; padding: 0; display: grid; }
.tn-cibles li { border-top: 1px solid var(--c-bord); }
.tn-cibles a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 12px 0; min-height: 52px; }
.tn-cible-quand { grid-column: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-cible-titre { grid-column: 1; font-family: var(--f-titre); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.tn-cibles .tn-ico { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--c-primaire-texte); transition: transform .2s; }
.tn-cibles a:hover .tn-cible-titre { color: var(--c-primaire-texte); text-decoration: underline; text-underline-offset: 4px; }
.tn-cibles a:hover .tn-ico { transform: translateX(3px); }

/* ---------- HERO : le coupé et sa fiche de prime ---------- */
.tn-prime {
  background: var(--c-fond); border-bottom: 1px solid var(--c-bord);
  min-height: calc(100svh - var(--entete-h, 72px)); display: flex; align-items: center;
  padding-block: clamp(20px, 2.4vw, 36px) clamp(28px, 3vw, 44px);
}
.tn-prime-int {
  width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: 'date date' 'haut scene' 'bas scene'; grid-template-rows: auto auto 1fr;
  column-gap: clamp(36px, 5vw, 72px);
}
.tn-dateline {
  grid-area: date; display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: clamp(22px, 2.6vw, 34px) !important;
  border-bottom: 1px solid var(--c-bord); font-family: var(--f-titre); font-size: 1.12rem; font-style: italic; color: var(--c-primaire-texte);
}
.tn-dateline .tn-ico { width: 17px; height: 17px; }
.tn-dateline-pt { color: var(--c-bord); font-style: normal; }
.tn-prime-haut { grid-area: haut; min-width: 0; align-self: end; }
.tn-prime-bas { grid-area: bas; min-width: 0; }
.tn-h1 {
  font-family: 'Crimson Pro', Georgia, serif !important; font-weight: 700; font-size: clamp(2.5rem, 4.1vw, 3.9rem);
  line-height: 1.02; letter-spacing: -.015em; margin: 0; color: var(--c-texte); text-wrap: balance;
}
.tn-prime-chapo { font-size: 1.125rem; line-height: 1.6; color: var(--c-texte-2); margin: 22px 0 26px !important; max-width: 33em; }
.tn-reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--c-bord); }
.tn-reperes div { display: flex; flex-direction: column-reverse; gap: 6px; padding-right: 16px; }
.tn-reperes div + div { padding-left: 20px; border-left: 1px solid var(--c-bord); }
.tn-reperes dd { margin: 0; font-family: var(--f-titre); font-weight: 700; font-size: clamp(2.1rem, 2.8vw, 2.7rem); line-height: 1; color: var(--c-texte); }
.tn-reperes dt { font-size: 14px; color: var(--c-texte-2); }

/* la scène : photo entière en 3/2, la fiche posée sur le sol, sous les roues */
.tn-scene { grid-area: scene; position: relative; min-width: 0; align-self: center; }
.tn-photo { margin: 0; aspect-ratio: 1600 / 1063; overflow: hidden; background: var(--c-fond-2); box-shadow: var(--o-carte); }
.tn-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.tn-fiche {
  position: relative; margin: -30px 0 0 clamp(24px, 4%, 40px); z-index: 2;
  background: var(--c-surface); border: 1px solid var(--c-bord); box-shadow: var(--o-survol); border-radius: var(--r-carte);
}
.tn-fiche-bande {
  white-space: nowrap; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px;
  background: var(--c-sur-primaire); color: var(--c-sur-voile); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.tn-j3 { display: inline-flex; gap: 8px; align-items: center; padding: 3px 8px; border: 1px solid currentColor; font-size: 11px; }
.tn-j3 b { color: var(--c-primaire); font-weight: 600; }
.tn-fiche-corps { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); }
.tn-fiche-tete { padding: 16px 18px 12px; border-right: 1px dashed var(--c-bord); display: flex; flex-direction: column; gap: 6px; }
.tn-fiche-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-fiche-prix { font-family: var(--f-titre); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--c-primaire-texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-fiche-prix .tn-a { font-style: italic; font-weight: 500; font-size: .58em; color: var(--c-texte-2); }
.tn-fiche-qui { font-size: 13.5px; line-height: 1.4; color: var(--c-texte-2); min-height: 4.2em; }
.tn-fiche-lien { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--c-primaire-texte) !important; }
.tn-fiche-lien .tn-ico { width: 16px; height: 16px; }
.tn-fiche-lignes { list-style: none; margin: 0; padding: 6px 0; }
.tn-ligne {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: baseline;
  padding: 5px 16px; cursor: default; position: relative; transition: background .25s;
}
.tn-ligne::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .25s; }
.tn-ligne-nom { font-size: 13px; font-weight: 600; color: var(--c-texte); white-space: nowrap; overflow: hidden; }
.tn-ligne-val { font-family: var(--f-mono); font-size: 11px; color: var(--c-texte-2); white-space: nowrap; }
.tn-ligne-barre { grid-column: 1 / -1; position: relative; height: 5px; background: var(--c-fond-2); }
.tn-ligne-barre i { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); background: var(--c-bord); transition: background .25s; }
.tn-ligne.est-actif { background: var(--tn-vert-clair); }
.tn-ligne.est-actif::before { background: var(--c-primaire); }
.tn-ligne.est-actif .tn-ligne-barre i { background: var(--c-primaire); }
.tn-ligne.est-actif .tn-ligne-val { color: var(--c-primaire-texte); font-weight: 600; }

/* ---------- FORMULES ---------- */
.tn-formules { background: var(--c-surface); }
.tn-formules-corps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tn-tableau { padding: 8px 0; overflow: hidden; }
.tn-tableau table { width: 100%; height: 100%; border-collapse: collapse; }
.tn-tableau th, .tn-tableau td { padding: 16px 18px; border-bottom: 1px solid var(--c-bord); text-align: center; vertical-align: middle; transition: background .3s; }
.tn-tableau tbody tr:last-child > * { border-bottom: 0; }
.tn-tableau thead th { font-family: var(--f-titre); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.tn-tableau thead th:first-child, .tn-tableau tbody th { text-align: left; width: 44%; }
.tn-g-nom { display: block; font-weight: 600; font-size: 1rem; }
.tn-g-det { display: block; font-size: 13px; color: var(--c-texte-2); margin-top: 2px; }
.tn-coche { width: 24px; height: 24px; color: var(--c-primaire-texte); stroke-width: 2.6; }
.tn-moins { width: 20px; height: 20px; color: var(--c-bord); }
.tn-tableau [data-col].est-reco { background: var(--tn-vert-clair); }
.tn-tableau thead th.est-reco { color: var(--c-primaire-texte); box-shadow: inset 0 3px 0 var(--c-primaire); }
.tn-arbitre { padding: 26px 26px 8px; display: flex; flex-direction: column; }
.tn-questions { list-style: none; margin: 0; padding: 0; }
.tn-questions li { padding: 12px 0; border-bottom: 1px solid var(--c-bord); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.tn-q { display: block; font-size: 15px; line-height: 1.4; font-weight: 500; }
.tn-oui-non, .tn-choix { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tn-oui-non button, .tn-choix button {
  min-height: 44px; min-width: 56px; padding: 0 14px; border: 1.5px solid var(--c-bord); background: var(--c-surface);
  border-radius: var(--r-bouton); font: 600 .95rem/1 var(--f-texte); color: var(--c-texte); cursor: pointer; transition: all .2s;
}
.tn-oui-non button[aria-pressed='true'], .tn-choix button[aria-pressed='true'] { background: var(--c-primaire); border-color: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-verdict { margin-top: 16px; display: grid; gap: 8px; }
.tn-verdict-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--tn-vert-clair); border-left: 3px solid var(--c-primaire); }
.tn-verdict-tete strong { font-family: var(--f-titre); font-size: 1.9rem; line-height: 1.05; color: var(--c-primaire-texte); }
.tn-verdict-txt { font-size: 14px; color: var(--c-texte-2); line-height: 1.5; margin-bottom: 6px !important; }

/* ---------- BONUS-MALUS ---------- */
.tn-bonus { background: var(--c-fond-2); }
.tn-bonus-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: stretch; }
.tn-reglages { padding: 28px; display: grid; gap: 22px; align-content: start; }
.tn-reglage { display: grid; gap: 10px; }
.tn-reglage-lbl { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.tn-reglage-lbl output { font-family: var(--f-mono); color: var(--c-primaire-texte); }
.tn-reglage input[type='range'] { width: 100%; accent-color: var(--c-primaire); min-height: 44px; }
.tn-reglage-lien { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--c-primaire-texte) !important; }
.tn-reglage-lien .tn-ico { width: 15px; height: 15px; }
.tn-bareme { width: 100%; border-collapse: collapse; font-size: 14px; }
.tn-bareme th, .tn-bareme td { padding: 9px 0; border-top: 1px solid var(--c-bord); text-align: left; font-weight: 400; color: var(--c-texte); }
.tn-bareme td { text-align: right; font-family: var(--f-mono); color: var(--c-primaire-texte); font-weight: 600; white-space: nowrap; }
.tn-duel { padding: 28px; display: grid; gap: 20px; align-content: start; }
.tn-duel-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tn-coef { display: grid; justify-items: end; gap: 2px; text-align: right; }
.tn-coef span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-coef strong { font-family: var(--f-titre); font-size: 3.4rem; line-height: 1; color: var(--c-texte); font-variant-numeric: tabular-nums; }
.tn-coef em { font-style: normal; font-size: 13px; color: var(--c-texte-2); }
.tn-duel-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.tn-duel-nom { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tn-duel-nom .tn-ico { color: var(--c-primaire-texte); }
.tn-duel-cita .tn-duel-nom .tn-ico { color: var(--c-texte-2); }
.tn-duel-barre { grid-column: 1 / -1; height: 16px; background: var(--c-fond-2); position: relative; overflow: hidden; }
.tn-duel-barre i { position: absolute; inset: 0 auto 0 0; width: var(--l); background: var(--c-primaire); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.tn-duel-cita .tn-duel-barre i { background: var(--c-bord); }
.tn-duel-val { font-family: var(--f-titre); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tn-ecart { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--tn-vert-clair); border-left: 3px solid var(--c-primaire); font-weight: 500; }
.tn-ecart strong { font-family: var(--f-titre); font-size: 1.6rem; color: var(--c-primaire-texte); white-space: nowrap; }

/* ---------- SINISTRE (vert sapin) ---------- */
.tn-sinistre { background: var(--c-sur-primaire); color: var(--c-sur-voile); }
.tn-sinistre h2 { color: var(--c-sur-voile); }
.tn-sinistre h2 em { color: var(--c-primaire); }
.tn-sinistre .tn-chapo { color: var(--tn-sur-sapin); }
.tn-sinistre .tn-kicker { background: transparent; color: var(--tn-sur-sapin); border-color: var(--tn-filet-sapin); }
.tn-sinistre-corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tn-frise { position: relative; }
.tn-frise ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tn-frise-rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--tn-filet-sapin); }
.tn-frise-rail i { position: absolute; inset: 0; background: var(--c-primaire); transform-origin: top; transform: scaleY(var(--p, 1)); }
.tn-etape { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; position: relative; }
.tn-etape-pt {
  width: 44px; height: 44px; display: grid; place-items: center; background: var(--c-sur-primaire);
  border: 2px solid var(--c-primaire); color: var(--c-sur-voile); font-family: var(--f-mono); font-size: 14px; position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.tn-etape.est-passe .tn-etape-pt { background: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-etape-corps { padding: 6px 0 24px; border-bottom: 1px solid var(--tn-filet-sapin); }
.tn-etape-quand { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primaire); }
.tn-etape-quoi { margin: 6px 0 4px !important; font-family: var(--f-titre); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.tn-etape-txt { line-height: 1.55; color: var(--tn-sur-sapin); }
.tn-etape-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-weight: 600; color: var(--c-sur-voile) !important; }
.tn-etape-lien .tn-ico { width: 16px; height: 16px; color: var(--c-primaire); }
.tn-etape-lien:hover { text-decoration: underline !important; text-decoration-color: var(--c-primaire) !important; text-underline-offset: 5px; }
.tn-sinistre-cote { display: grid; gap: 24px; }
.tn-sinistre-photo { margin: 0; position: relative; }
.tn-sinistre-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.tn-sinistre-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: grid; gap: 2px; padding: 14px 16px;
  background: var(--c-surface); color: var(--c-texte); box-shadow: var(--o-survol);
}
.tn-sinistre-photo figcaption strong { font-family: var(--f-titre); font-size: 2.2rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-sinistre-photo figcaption span:last-child { font-size: 14px; color: var(--c-texte-2); }
.tn-sinistre-guides { list-style: none; margin: 0; padding: 0; }
.tn-sinistre-guides li { border-top: 1px solid var(--tn-filet-sapin); }
.tn-sinistre-guides a { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 0; font-weight: 500; }
.tn-sinistre-guides a .tn-ico { color: var(--c-primaire); }
.tn-sinistre-guides a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- MODELES ---------- */
.tn-modeles { background: var(--c-fond); }
.tn-modeles-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tn-modele { display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; }
.tn-modele:hover { transform: translateY(-4px); box-shadow: var(--o-survol); }
.tn-modele-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-fond-2); }
.tn-modele-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tn-modele:hover .tn-modele-photo img { transform: scale(1.04); }
.tn-etiquette {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px; background: var(--c-surface); color: var(--c-texte);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; box-shadow: var(--o-carte);
}
.tn-modele-corps { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; flex: 1; }
.tn-modele-titre { margin: 0; font-family: var(--f-titre); font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.tn-modele-titre a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tn-modele-titre a:hover { color: var(--c-primaire-texte); }
.tn-modele-repere { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-block: 1px solid var(--c-bord); }
.tn-modele-repere strong { font-family: var(--f-titre); font-size: 1.9rem; line-height: 1; color: var(--c-primaire-texte); white-space: nowrap; }
.tn-modele-repere span { font-size: 14px; line-height: 1.35; color: var(--c-texte-2); }
.tn-modele-point { display: block; font-size: 15px; line-height: 1.5; }
.tn-modele-point .tn-ico { width: 17px; height: 17px; margin: -3px 6px 0 0; color: var(--c-primaire-texte); }
.tn-modele-aussi { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 2px; padding-top: 12px; border-top: 1px dashed var(--c-bord); font-weight: 600; font-size: 15px; line-height: 1.35; }
.tn-modele-aussi .tn-mono { font-size: 11px; color: var(--c-primaire-texte); }
.tn-modele-aussi:hover { color: var(--c-primaire-texte); text-decoration: underline; text-underline-offset: 3px; }
.tn-modele-rub { padding: 28px 24px; justify-content: center; gap: 8px; background: var(--c-sur-primaire); color: var(--c-sur-voile); border-color: var(--c-sur-primaire); }
.tn-modele-rub .tn-mono { color: var(--tn-sur-sapin); }
.tn-modele-rub-nb { font-family: var(--f-titre); font-size: 5rem; font-weight: 700; line-height: .9; color: var(--c-primaire); }
.tn-modele-rub-nom { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 600; }
.tn-modele-rub-txt { font-size: 15px; line-height: 1.55; color: var(--tn-sur-sapin); }
.tn-modele-rub .tn-lien { color: var(--c-primaire) !important; }

/* ---------- GUIDES : tuiles égales ---------- */
.tn-guides { background: var(--c-surface); }
.tn-recherche { display: flex; align-items: center; max-width: 680px; margin: 0 auto 48px; border: 2px solid var(--c-texte); background: var(--c-surface); }
.tn-recherche-ico { margin-left: 16px; color: var(--c-texte-2); }
.tn-recherche input { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0 14px; font: 1rem var(--f-texte); background: transparent; color: var(--c-texte); outline: none; }
.tn-recherche .tn-bouton { border: 0; min-height: 56px; }
.tn-recherche:focus-within { box-shadow: 0 0 0 3px var(--tn-vert-clair); }
.tn-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tn-tuile { display: grid; grid-template-rows: auto auto 1fr auto; padding: 26px 28px 10px; transition: box-shadow .25s; }
.tn-tuile:hover { box-shadow: var(--o-survol); }
.tn-tuile-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-bottom: 16px; }
.tn-tuile h3 { margin: 6px 0 4px; font-family: var(--f-titre); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.tn-tuile-dit { font-size: 15px; line-height: 1.45; color: var(--c-texte-2); }
.tn-tuile-nb { display: grid; justify-items: end; }
.tn-tuile-nb strong { font-family: var(--f-titre); font-size: 3.6rem; font-weight: 700; line-height: .9; color: var(--c-primaire-texte); font-variant-numeric: tabular-nums; }
.tn-tuile-nb span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-tuile-liste { list-style: none; margin: 18px 0 0; padding: 0; }
.tn-tuile-liste li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--c-bord); }
.tn-tuile-liste time { font-family: var(--f-mono); font-size: 12px; color: var(--c-primaire-texte); white-space: nowrap; }
.tn-tuile-liste a { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.tn-tuile-liste a:hover { color: var(--c-primaire-texte); text-decoration: underline; text-underline-offset: 4px; }
.tn-tuile-min { font-family: var(--f-mono); font-size: 11px; color: var(--c-texte-2); white-space: nowrap; }
.tn-tuile-pied { display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--c-bord); padding-top: 4px; }

/* ---------- REDACTION ---------- */
.tn-redaction { background: var(--c-fond-2); }
.tn-redaction-corps { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tn-auteurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tn-auteur { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 20px 14px 14px; transition: transform .2s, box-shadow .2s; }
.tn-auteur:hover { transform: translateX(4px); box-shadow: var(--o-survol); }
.tn-auteur img { width: 64px; height: 64px; object-fit: cover; }
.tn-auteur-txt { display: grid; gap: 4px; min-width: 0; }
.tn-auteur-nom { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.tn-auteur-role { font-size: 14px; color: var(--c-texte-2); }
.tn-auteur .tn-jauge { margin-top: 6px; max-width: 220px; }
.tn-auteur-nb { display: grid; justify-items: end; font-size: 13px; color: var(--c-texte-2); }
.tn-auteur-nb strong { font-family: var(--f-titre); font-size: 2rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-sujet { padding: 32px; border-top: 4px solid var(--c-primaire); position: sticky; top: calc(var(--entete-h, 72px) + 24px); }
.tn-sujet-titre { margin: 12px 0 !important; font-family: var(--f-titre); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.tn-sujet p:not([class]) { margin: 0 0 24px; line-height: 1.6; color: var(--c-texte-2); }

/* ---------- tablette ---------- */
@media (max-width: 980px) {
  .tn-prime { align-items: flex-start; min-height: 0; }
  .tn-prime-int { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'haut' 'scene' 'bas'; grid-template-rows: auto; }
  .tn-dateline { display: none; }
  .tn-prime-haut { align-self: start; }
  .tn-scene { margin-top: 24px; }
  .tn-prime-bas { display: flex; flex-direction: column; }
  .tn-prime-actions { order: 1; margin-top: 22px; }
  .tn-prime-chapo { order: 2; margin: 22px 0 0 !important; }
  .tn-reperes { order: 3; margin-top: 24px; }
  .tn-formules-corps, .tn-bonus-corps, .tn-sinistre-corps, .tn-redaction-corps, .tn-tuiles { grid-template-columns: minmax(0, 1fr); }
  .tn-modeles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-sinistre-photo { max-width: 420px; }
  .tn-sujet { position: static; }
}

/* ---------- mobile : titre, fiche avec vignette de la photo, boutons côte à côte ---------- */
@media (max-width: 700px) {
  [data-bandeau], .announcement-bar { display: none !important; }
  .tn-prime { padding-block: 18px 36px; }
  .tn-prime .tn-kicker { margin-bottom: 14px !important; font-size: 11px; padding: 7px 11px; }
  .tn-h1 { font-size: 2.35rem; line-height: 1.04; }
  .tn-scene { margin-top: 18px; }
  .tn-photo { position: absolute; z-index: 3; top: 42px; right: 12px; width: 118px; aspect-ratio: 4 / 3; box-shadow: var(--o-carte); border: 3px solid var(--c-surface); }
  .tn-photo img { object-position: 55% 60%; }
  .tn-fiche { margin: 0; }
  .tn-fiche-corps { grid-template-columns: minmax(0, 1fr); }
  .tn-fiche-tete { border-right: 0; border-bottom: 1px dashed var(--c-bord); padding: 12px 140px 10px 14px; gap: 4px; min-height: 120px; }
  .tn-fiche-prix { font-size: 1.85rem; }
  .tn-fiche-qui { font-size: 13px; min-height: 0; }
  .tn-fiche-lien { display: none; }
  .tn-fiche-lignes { padding: 4px 0; }
  .tn-ligne { padding: 4px 14px; row-gap: 3px; }
  .tn-ligne-barre { height: 4px; }
  .tn-prime-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .tn-prime .tn-bouton { min-height: 48px; padding: 0 14px; font-size: 15px; }
  .tn-long { display: none; }
  .tn-reperes div + div { padding-left: 12px; }
  .tn-modeles-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-tableau th, .tn-tableau td { padding: 14px 8px; }
  .tn-tableau thead th { font-size: 1.02rem; }
  .tn-tableau tbody th { padding-left: 14px; }
  .tn-questions li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tn-arbitre, .tn-reglages, .tn-duel, .tn-sujet { padding: 22px 18px; }
  .tn-duel-haut { flex-direction: column; gap: 10px; }
  .tn-coef { justify-items: start; text-align: left; }
  .tn-tuile { padding: 22px 18px 8px; }
  .tn-tuile-liste li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tn-tuile-liste li time { grid-column: 1; }
  .tn-tuile-liste li a { grid-column: 1 / -1; grid-row: 2; }
  .tn-tuile-min { grid-column: 2; grid-row: 1; }
  .tn-recherche .tn-bouton { padding: 0 18px; }
  .tn-etape { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .tn-etape-pt { width: 36px; height: 36px; }
  .tn-frise-rail { left: 17px; }
  .tn-auteur { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; }
  .tn-auteur img { width: 52px; height: 52px; }
}

/* passe 2, reprise : échelle de la fiche, boutons du hero, une des tuiles */
.tn-fiche-echelle { display: grid; gap: 5px; margin-top: 6px; }
.tn-echelle-barre { position: relative; height: 10px; background: var(--c-fond-2); }
.tn-echelle-barre i { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); background: var(--c-primaire); transition: left .6s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1); }
.tn-echelle-bornes { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--c-texte-2); }
.tn-prime-actions { flex-wrap: nowrap; }
.tn-prime .tn-bouton { padding: 0 22px; }
@media (min-width: 768px) {
  #entete nav[aria-label='Navigation principale'] a { font-size: 15px !important; line-height: 1.2 !important; }
}
.tn-tuile { grid-template-rows: auto auto auto 1fr auto; }
.tn-tuile-nom { margin: 6px 0 4px !important; font-family: var(--f-titre); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.tn-tuile-une { margin-top: 18px; padding: 16px 18px; background: var(--c-fond); border-left: 3px solid var(--c-primaire); display: grid; gap: 6px; }
.tn-tuile-une-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--c-primaire-texte); }
.tn-tuile-une-date .tn-mono { font-size: 11px; color: var(--c-primaire-texte); }
.tn-tuile-une h3 { margin: 0; font-family: var(--f-titre); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.tn-tuile-une h3 a:hover { color: var(--c-primaire-texte); text-decoration: underline; text-underline-offset: 4px; }
.tn-tuile-meta { font-size: 14px; color: var(--c-texte-2); }
.tn-tuile-liste { margin-top: 10px; }
@media (max-width: 1180px) { .tn-prime-actions { flex-wrap: wrap; } }
@media (max-width: 700px) { .tn-prime-actions { flex-wrap: nowrap; } .tn-fiche-echelle { display: none; } }

/* sans mouvement : rendu final, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { transition: none !important; animation: none !important; }
}

/* da.css réduit la nav du thème (zoom .72) : sur la home, le menu garde sa taille lisible. */
@media (min-width: 768px) {
  #entete#entete nav[aria-label='Navigation principale'] { zoom: 1 !important; flex: 0 1 auto; }
}
@media (min-width: 1181px) {
  #entete#entete nav[aria-label='Navigation principale'] { margin-inline-start: auto !important; }
}
