/* Tuning de la home mediabourse.fr : « le ticket de caisse d'une sortie ».
   Charte : uniquement les variables de da.css / home.css (couleurs, polices, rayons, ombres). */

@media (max-width: 700px) { [data-bandeau], .announcement-bar { display: none !important; } }

.tn-home {
  --tn-largeur: 1200px;
  --tn-air: clamp(4rem, 8vw, 7rem);
  --tn-ombre: 0 1px 2px color-mix(in srgb, var(--c-ombre) 6%, transparent), 0 14px 34px -14px color-mix(in srgb, var(--c-ombre) 22%, transparent);
  font-family: var(--f-texte);
  color: var(--c-texte);
  background: var(--c-fond);
}
.tn-home :is(h1, h2, h3) {
  font-family: var(--f-titre);
  text-transform: none;
  letter-spacing: -0.025em;
  color: inherit;
  margin: 0;
}
.tn-home p { margin: 0; }
.tn-home ul, .tn-home ol { list-style: none; margin: 0; padding: 0; }
.tn-home img { display: block; max-width: 100%; }
.tn-int { width: min(100% - 2rem, var(--tn-largeur)); margin-inline: auto; }

/* ─── grammaire commune : pastille, titre, intro ─── */
.tn-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid var(--c-bord); background: var(--c-surface);
  color: var(--c-primaire-texte); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.tn-kicker svg { display: inline-block; flex: none; }
.tn-tete { text-align: center; max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); display: grid; justify-items: center; gap: 1.1rem; }
.tn-h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.1; font-weight: 800; text-wrap: balance; }
.tn-home :is(.tn-h1, .tn-h2) em {
  font-style: normal; color: var(--c-primaire-texte);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--c-primaire) 28%, transparent) 0);
  padding-inline: .05em;
}
.tn-intro { font-size: 1.08rem; line-height: 1.6; color: var(--c-texte-2); max-width: 40em; }
.tn-section { padding-block: var(--tn-air); }
.tn-section:nth-of-type(even) { background: var(--c-surface); }
.tn-section:nth-of-type(odd) { background: var(--c-fond); }
.tn-suite { text-align: center; margin-top: clamp(2rem, 4vw, 3rem) !important; }
.tn-lien { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--c-primaire-texte); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--c-primaire) 50%, transparent); padding-bottom: .15rem; }
.tn-lien:hover { border-bottom-color: var(--c-primaire); }
.tn-home a { text-underline-offset: .2em; }

/* boutons : la classe du site, variante contour sur les mêmes variables */
.tn-home .tn-btn-2 { --btn-fond: transparent; --btn-texte: var(--c-texte); --btn-bord: 2px solid var(--c-texte); --btn-ombre: none; }
.tn-home .bh-d93a-bouton { min-height: 48px; text-decoration: none; }
.tn-home .bh-d93a-bouton svg { display: inline-block; flex: none; }

/* pastille de rubrique, piste de jauge */
.tn-pastille { display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--c-primaire) 14%, var(--c-surface)); color: var(--c-primaire-texte); font-size: .78rem; font-weight: 700; }
.tn-jauge-piste { display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-texte) 9%, transparent); overflow: hidden; }

/* ─── HERO ─── */
.tn-hero { background: var(--c-fond); min-height: calc(100svh - 101px); display: grid; align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.tn-hero-int {
  width: min(100% - 2rem, var(--tn-largeur)); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.4rem; align-items: center;
}
.tn-hero-texte { min-width: 0; display: grid; gap: 1.4rem; align-self: stretch; align-content: center; }
.tn-hero-titre, .tn-hero-suite { min-width: 0; display: grid; justify-items: start; gap: 1.4rem; }
.tn-h1 { font-family: var(--f-titre) !important; font-size: clamp(2.4rem, 4.3vw, 3.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em !important; text-wrap: balance; }
.tn-chapeau { font-size: 1.15rem; line-height: 1.6; color: var(--c-texte-2); max-width: 33em; }
.tn-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.tn-onglet-court { display: none; }
.tn-reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; width: 100%; border-top: 1px solid var(--c-bord); padding-top: 1.4rem !important; margin-top: .6rem !important; }
.tn-reperes li { display: grid; gap: .25rem; }
.tn-reperes strong { font-family: var(--f-titre); font-size: clamp(1.8rem, 2.4vw, 2.2rem); line-height: 1; font-weight: 800; color: var(--c-texte); }
.tn-reperes span { font-size: .9rem; line-height: 1.35; color: var(--c-texte-2); }

.tn-scene { min-width: 0; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
.tn-ticket-zone { display: contents; }
.tn-scene-photo { grid-column: 5 / 13; grid-row: 1 / 3; margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-image); overflow: hidden; box-shadow: var(--tn-ombre); }
.tn-scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; transition: transform .6s ease; }
.tn-scene-photo figcaption {
  position: absolute; bottom: 1rem; right: 1rem; max-width: 55%;
  background: var(--c-surface); color: var(--c-texte); font-size: .8rem; font-weight: 600; line-height: 1.35;
  padding: .45rem .75rem; border-radius: var(--r-bouton); box-shadow: var(--tn-ombre);
}
.tn-ticket { grid-column: 1 / 8; grid-row: 2 / 3; align-self: end; margin-bottom: -2.25rem; position: relative; z-index: 2; }
.tn-ticket[hidden] { display: none; }
.tn-onglets { grid-column: 1 / 13; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3.4rem; }
.tn-onglet {
  position: relative; overflow: hidden; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1rem; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--c-bord); background: var(--c-surface); color: var(--c-texte);
  transition: background-color .2s, border-color .2s;
}
.tn-onglet[aria-selected="true"] { background: var(--c-texte); border-color: var(--c-texte); color: var(--c-surface); }
.tn-onglet::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--prog, 0) * 100%); background: var(--c-primaire); }
.tn-onglet:focus-visible { outline: 2px solid var(--c-primaire); outline-offset: 2px; }

/* le ticket : papier blanc, bord dentelé, chiffres alignés */
.tn-ticket {
  background: var(--c-surface); color: var(--c-texte);
  padding: 1.15rem 1.3rem 1.3rem; border-radius: var(--r-carte) var(--r-carte) 0 0;
  font-variant-numeric: tabular-nums; font-size: .9rem;
  filter: drop-shadow(0 18px 26px color-mix(in srgb, var(--c-ombre) 20%, transparent)) drop-shadow(0 1px 1px color-mix(in srgb, var(--c-ombre) 12%, transparent));
}
.tn-ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background:
    linear-gradient(135deg, var(--c-surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(-135deg, var(--c-surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
}
.tn-ticket-tete { display: grid; gap: .15rem; padding-bottom: .7rem; border-bottom: 1px dashed var(--c-bord); }
.tn-ticket-marque { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-ticket-lieu { font-weight: 700; font-size: .92rem; }
.tn-ticket-affiche { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0 !important; color: var(--c-texte-2); }
.tn-ticket-affiche s { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--c-texte); color: var(--c-texte-2); }
.tn-ticket-lignes { border-top: 1px dashed var(--c-bord); }
.tn-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem .35rem; border-bottom: 1px dashed var(--c-bord); border-radius: 4px; transition: background-color .2s; }
.tn-ligne span { color: var(--c-texte-2); }
.tn-ligne b { white-space: nowrap; font-weight: 700; }
.tn-ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .55rem !important; padding-top: .55rem !important; border-top: 2px solid var(--c-texte); }
.tn-ticket-total > span { font-weight: 700; }
.tn-ticket-total strong { font-family: var(--f-titre); font-size: 1.85rem; line-height: 1; font-weight: 800; white-space: nowrap; }
.tn-ticket-pied { display: flex; align-items: center; gap: .8rem; margin-top: .75rem !important; }
.tn-tampon {
  flex: none; display: inline-block; transform: rotate(-6deg);
  padding: .3rem .55rem; border: 2px solid var(--c-texte); border-radius: 6px;
  font-family: var(--f-titre); font-weight: 800; font-size: .95rem; color: var(--c-texte); white-space: nowrap;
}
.tn-tampon-moins { border-color: var(--c-primaire-texte); color: var(--c-primaire-texte); }
.tn-ticket-note { font-size: .8rem; line-height: 1.35; color: var(--c-texte-2); }
.tn-ticket-lien { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px dashed var(--c-bord); font-weight: 700; font-size: .85rem; color: var(--c-primaire-texte); text-decoration: none; }
.tn-ticket-lien:hover { text-decoration: underline; }
@media (hover: hover) {
  .tn-ligne:hover { background: color-mix(in srgb, var(--c-primaire) 12%, transparent); }
  .tn-scene:hover .tn-scene-photo img { transform: scale(1.03); }
}

/* ─── À LA UNE ─── */
.tn-une-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tn-fiche { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--tn-ombre); transition: transform .25s ease, box-shadow .25s ease; }
.tn-fiche-media { display: block; overflow: hidden; }
.tn-fiche-media img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform .5s ease; }
.tn-etiquette {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem; max-width: calc(100% - 1.8rem);
  padding: .4rem .75rem .4rem .6rem; border-radius: var(--r-bouton);
  background: var(--c-surface); color: var(--c-texte); font-weight: 700; font-size: .82rem; line-height: 1.25;
  box-shadow: var(--tn-ombre);
}
.tn-etiquette svg { color: var(--c-primaire-texte); }
.tn-fiche-corps { display: grid; gap: .65rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; align-content: start; }
.tn-fiche-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .82rem; color: var(--c-texte-2); }
.tn-fiche h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
.tn-fiche h3 a { color: var(--c-texte); text-decoration: none; }
.tn-fiche h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.tn-fiche-desc { font-size: .95rem; line-height: 1.55; color: var(--c-texte-2); }
.tn-fiche-pied { font-size: .82rem; font-weight: 600; color: var(--c-texte-2); margin-top: auto !important; padding-top: .4rem; }
.tn-fiche-tete { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tn-fiche-tete .tn-fiche-media img { aspect-ratio: 4 / 3; max-height: 460px; }
.tn-fiche-tete .tn-fiche-corps { align-content: center; padding: clamp(1.5rem, 3vw, 2.75rem); gap: .9rem; }
.tn-fiche-tete h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.15; }
.tn-fiche-tete .tn-fiche-desc { font-size: 1.05rem; }
@media (hover: hover) {
  .tn-fiche:hover { transform: translateY(-4px); box-shadow: var(--o-survol); }
  .tn-fiche:hover .tn-fiche-media img { transform: scale(1.04); }
}

/* ─── FRAIS (section sombre) ─── */
.tn-home .tn-sombre { background: var(--c-voile) !important; color: var(--c-sur-voile); }
.tn-sombre .tn-kicker { background: transparent; border-color: color-mix(in srgb, var(--c-sur-voile) 25%, transparent); color: var(--c-primaire); }
.tn-sombre .tn-intro { color: color-mix(in srgb, var(--c-sur-voile) 78%, transparent); }
.tn-sombre .tn-h2 em { color: var(--c-primaire); background: none; }
.tn-sombre .tn-lien { color: var(--c-primaire); }
.tn-frais-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tn-frais-photo { margin: 0; border-radius: var(--r-image); overflow: hidden; max-width: 380px; justify-self: end; width: 100%; }
.tn-frais-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; max-height: 440px; object-fit: cover; object-position: 55% 50%; }
.tn-jauges { display: grid; gap: 1.6rem; }
.tn-jauge { display: grid; gap: .6rem; padding-bottom: 1.4rem; border-bottom: 1px solid color-mix(in srgb, var(--c-sur-voile) 14%, transparent); }
.tn-jauge:last-child { border-bottom: 0; padding-bottom: 0; }
.tn-jauge-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.02rem; }
.tn-jauge-tete strong { font-family: var(--f-titre); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; font-weight: 800; color: var(--c-primaire); white-space: nowrap; }
.tn-sombre .tn-jauge-piste { background: color-mix(in srgb, var(--c-sur-voile) 13%, transparent); }
.tn-jauge-barre { display: block; height: 100%; width: calc(var(--taux) * 2.6%); border-radius: inherit; background: var(--c-primaire); transform-origin: left; }
.tn-jauge-pied { font-size: .88rem; color: color-mix(in srgb, var(--c-sur-voile) 75%, transparent); }
.tn-jauge-pied a { color: var(--c-primaire); font-weight: 600; }

/* ─── CALCULETTE ─── */
.tn-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; max-width: 1040px; margin-inline: auto; }
.tn-calc-saisie { margin: 0; padding: 1.75rem; border: 1px solid var(--c-bord); border-radius: var(--r-carte); background: var(--c-surface); box-shadow: var(--tn-ombre); display: grid; gap: 1.1rem; min-width: 0; }
.tn-calc-saisie legend { font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; padding: 0 .4rem; }
.tn-calc-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tn-calc label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--c-texte-2); }
.tn-calc input[type="number"] {
  font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--c-texte); font-variant-numeric: tabular-nums;
  width: 100%; min-height: 48px; padding: .6rem .85rem;
  border: 1px solid var(--c-bord); border-radius: var(--r-bouton); background: var(--c-fond);
}
.tn-calc input:focus-visible { outline: 2px solid var(--c-primaire); outline-offset: 1px; background: var(--c-surface); }
.tn-calc-recu { position: relative; background: var(--c-surface); padding: 1.6rem 1.6rem 1.8rem; border-radius: var(--r-carte) var(--r-carte) 0 0; font-variant-numeric: tabular-nums; display: grid; gap: .1rem; filter: drop-shadow(0 18px 26px color-mix(in srgb, var(--c-ombre) 18%, transparent)) drop-shadow(0 1px 1px color-mix(in srgb, var(--c-ombre) 12%, transparent)); }
.tn-calc-recu::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, var(--c-surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x, linear-gradient(-135deg, var(--c-surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x; }
.tn-calc-titre { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primaire-texte); padding-bottom: .6rem !important; border-bottom: 1px dashed var(--c-bord); }
.tn-calc-l { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0 !important; border-bottom: 1px dashed var(--c-bord); color: var(--c-texte-2); }
.tn-calc-l b { color: var(--c-texte); white-space: nowrap; }
.tn-calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .8rem !important; margin-top: .3rem !important; border-top: 2px solid var(--c-texte); font-weight: 700; }
.tn-calc-total strong { font-family: var(--f-titre); font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; font-weight: 800; white-space: nowrap; }
.tn-calc-ecart { margin-top: .7rem !important; color: var(--c-texte-2); }
.tn-calc-ecart b { color: var(--c-primaire-texte); }
.tn-calc-src { margin-top: 1rem !important; padding-top: .9rem !important; border-top: 1px dashed var(--c-bord); font-size: .85rem; line-height: 1.5; color: var(--c-texte-2); }
.tn-calc-src a { color: var(--c-primaire-texte); font-weight: 600; }

/* ─── SEMAINE ─── */
.tn-semaine-grille { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tn-semaine-photo { margin: 0; border-radius: var(--r-image); overflow: hidden; max-width: 360px; width: 100%; }
.tn-semaine-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; max-height: 440px; object-fit: cover; object-position: 50% 50%; }
.tn-piles { min-width: 0; display: grid; gap: 1.5rem; }
.tn-legende { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .85rem; color: var(--c-texte-2); }
.tn-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.tn-legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tn-c0 { background: var(--c-texte); }
.tn-c1 { background: var(--c-primaire-texte); }
.tn-c2 { background: var(--c-primaire); }
.tn-c3 { background: var(--c-secondaire); }
.tn-c4 { background: var(--c-bord); }
.tn-pile { display: grid; gap: .55rem; }
.tn-pile-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--c-texte-2); font-size: .95rem; }
.tn-pile-tete b { color: var(--c-texte); }
.tn-pile-tete strong { font-family: var(--f-titre); font-size: 1.5rem; font-weight: 800; color: var(--c-texte); white-space: nowrap; }
.tn-pile-barre { display: flex; gap: 3px; height: 40px; width: calc(var(--part) * 100%); border-radius: 8px; overflow: hidden; transform-origin: left; }
.tn-pile-barre span { display: block; min-width: 4px; }
.tn-piles-note { font-size: .95rem; color: var(--c-texte-2); }
.tn-piles-note a, .tn-liens a { color: var(--c-primaire-texte); font-weight: 700; }
.tn-liens { display: grid; gap: .6rem; border-top: 1px solid var(--c-bord); padding-top: 1.1rem !important; }
.tn-liens li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tn-liens span { font-size: .85rem; font-weight: 700; color: var(--c-texte-2); }

/* ─── ABONNEMENTS ─── */
.tn-abo { max-width: 1080px; margin-inline: auto; display: grid; gap: 2rem; }
.tn-abo-reglage { justify-self: center; width: min(100%, 520px); display: grid; gap: .5rem; text-align: center; }
.tn-abo-reglage label { font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; }
.tn-abo-reglage output { color: var(--c-primaire-texte); font-size: 1.6rem; font-weight: 800; }
.tn-abo-reglage input[type="range"] { width: 100%; accent-color: var(--c-primaire-texte); height: 32px; cursor: pointer; }
.tn-abo-echelle { display: flex; justify-content: space-between; font-size: .8rem; color: var(--c-texte-2); }
.tn-home .tn-abo-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tn-abo-carte {
  position: relative; display: grid; grid-template-rows: auto auto auto auto auto 1fr; gap: .8rem; text-align: left;
  padding: 1.5rem 1.5rem 1.35rem; background: var(--c-surface); border: 1px solid var(--c-bord); border-top: 4px solid var(--c-texte);
  border-radius: var(--r-carte); box-shadow: var(--tn-ombre); transition: border-color .3s;
}
.tn-abo-lieu { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-texte-2); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.tn-abo-nom { font-size: 1.3rem !important; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.tn-abo-nom a { color: var(--c-texte); text-decoration: none; }
.tn-abo-nom a::after { content: ""; position: absolute; inset: 0; }
.tn-abo-nom a:hover { text-decoration: underline; }
.tn-abo-prix { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.tn-abo-prix div { padding: .6rem .75rem; border-radius: var(--r-bouton); background: var(--c-fond); }
.tn-abo-prix dt { font-size: .78rem; color: var(--c-texte-2); }
.tn-abo-prix dd { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tn-abo-cmp { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--c-texte-2); font-size: .9rem; padding-top: .3rem !important; border-top: 1px dashed var(--c-bord); }
.tn-abo-cmp strong { font-family: var(--f-titre); font-size: 1.5rem; font-weight: 800; color: var(--c-texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-abo-barre { display: block; height: 100%; width: calc(var(--part) * 100%); border-radius: inherit; background: var(--c-texte); transition: width .45s ease, background-color .3s; }
.tn-abo-verdict { display: flex; justify-content: space-between; align-items: center; gap: .8rem; align-self: end; font-size: .88rem; color: var(--c-texte-2); }
.tn-verdict { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; background: var(--c-texte); color: var(--c-surface); }
.tn-verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tn-rentable { border-top-color: var(--c-primaire); }
.tn-rentable .tn-abo-barre { background: var(--c-primaire); }
.tn-rentable .tn-verdict, .tn-verdict-ok { background: color-mix(in srgb, var(--c-primaire) 18%, var(--c-surface)); color: var(--c-primaire-texte); }
.tn-pass {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; text-align: left;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem); background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); box-shadow: var(--tn-ombre);
}
.tn-pass-chiffre { display: grid; justify-items: center; padding: 1rem 1.4rem; border-radius: var(--r-carte); background: var(--c-voile); color: var(--c-sur-voile); }
.tn-pass-chiffre strong { font-family: var(--f-titre); font-size: clamp(2.2rem, 3.6vw, 2.9rem); line-height: 1; font-weight: 800; color: var(--c-primaire); white-space: nowrap; }
.tn-pass-chiffre span { font-size: .85rem; font-weight: 600; margin-top: .3rem; }
.tn-pass-texte { display: grid; gap: .4rem; }
.tn-pass-texte h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.tn-pass-texte p:last-child { color: var(--c-texte-2); line-height: 1.55; }
.tn-pass-seuil { display: grid; justify-items: start; gap: .8rem; max-width: 300px; }
.tn-pass-seuil .tn-lien { font-size: .9rem; }

/* ─── RUBRIQUES ─── */
.tn-home .tn-rub-liste { max-width: 920px; margin-inline: auto; display: grid; gap: 1rem; }
.tn-rub { display: grid; gap: .7rem; padding: 1.3rem 1.5rem; background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); box-shadow: var(--tn-ombre); }
.tn-section:nth-of-type(even) .tn-rub { background: var(--c-fond); box-shadow: none; }
.tn-rub-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tn-rub-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; color: var(--c-texte); text-decoration: none; }
.tn-rub-nom:hover { color: var(--c-primaire-texte); text-decoration: underline; }
.tn-rub-n { color: var(--c-texte-2); font-size: .9rem; }
.tn-rub-n strong { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 800; color: var(--c-texte); margin-right: .2rem; }
.tn-rub-barre { display: block; height: 100%; width: calc(var(--part) * 100%); border-radius: inherit; background: var(--c-primaire); transform-origin: left; }
.tn-rub-liens { display: grid; gap: .3rem; font-size: .9rem; color: var(--c-texte-2); }
.tn-rub-liens a { color: var(--c-primaire-texte); font-weight: 600; }

/* ─── MÉTHODE ─── */
.tn-home .tn-parcours { position: relative; max-width: 860px; margin-inline: auto; display: grid; gap: 1.1rem; }
.tn-parcours::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--c-bord); }
.tn-parcours::after { content: ""; position: absolute; left: 23px; top: 24px; width: 2px; height: calc((100% - 48px) * var(--fil, 1)); background: var(--c-primaire); }
.tn-etape { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 1.25rem; row-gap: .35rem; align-items: start; }
.tn-etape-n { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); border: 2px solid var(--c-primaire); font-family: var(--f-titre); font-weight: 800; color: var(--c-texte); }
.tn-etape h3 { font-size: 1.2rem; font-weight: 700; padding-top: .6rem; }
.tn-etape p { grid-column: 2; color: var(--c-texte-2); line-height: 1.55; padding-bottom: 1rem; }
.tn-etape-v { grid-column: 3; grid-row: 1 / 3; align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; padding: .5rem .8rem; border: 1px dashed var(--c-texte-2); border-radius: var(--r-bouton); background: var(--c-surface); font-size: .92rem; }
.tn-etape:last-child .tn-etape-v { background: var(--c-texte); color: var(--c-surface); border-style: solid; border-color: var(--c-texte); }
.tn-signatures { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.tn-signatures-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; margin-bottom: 1.5rem !important; }
.tn-auteurs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; text-align: left; max-width: 1100px; margin-inline: auto; }
.tn-auteurs > li { flex: 0 1 340px; min-width: 0; }
.tn-auteur { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: .9rem; row-gap: .1rem; align-items: center; padding: .9rem 1rem; background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); }
.tn-auteur img { grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tn-auteur > :not(img) { grid-column: 2; }
.tn-auteur a { font-weight: 700; color: var(--c-texte); text-decoration: none; }
.tn-auteur a:hover { color: var(--c-primaire-texte); text-decoration: underline; }
.tn-auteur small { font-size: .8rem; line-height: 1.3; color: var(--c-texte-2); }
.tn-auteur b { font-size: .8rem; color: var(--c-primaire-texte); }

/* ─── FAQ ─── */
.tn-faq-int { max-width: 820px; }
.tn-faq-liste { display: grid; gap: .8rem; }
.tn-q { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 0 1.4rem; }
.tn-q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--f-titre); font-weight: 700; font-size: 1.08rem; }
.tn-q summary::-webkit-details-marker { display: none; }
.tn-q summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; color: var(--c-primaire-texte); }
.tn-q[open] summary::after { content: "\2212"; }
.tn-q p { padding-bottom: 1.2rem; line-height: 1.6; color: var(--c-texte-2); }
.tn-contact { margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; border-radius: var(--r-carte); background: color-mix(in srgb, var(--c-primaire) 12%, var(--c-surface)); border: 1px solid var(--c-bord); }
.tn-contact p { flex: 1 1 320px; line-height: 1.5; }

/* ─── responsive ─── */
@media (max-width: 1100px) {
  .tn-home .tn-abo-liste { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .tn-hero { min-height: 0; }
  .tn-hero-int { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "scene" "suite"; row-gap: 2.25rem; }
  .tn-hero-texte { display: contents; }
  .tn-hero-titre { grid-area: titre; }
  .tn-hero-suite { grid-area: suite; }
  .tn-scene { grid-area: scene; }
  .tn-pass { grid-template-columns: auto minmax(0, 1fr); }
  .tn-pass-seuil { grid-column: 1 / -1; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
  .tn-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; max-width: 520px; width: 100%; justify-self: center; }
  .tn-onglets { grid-column: 1; grid-row: 1; margin: 0 0 1rem; }
  .tn-scene-photo { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1; }
  .tn-scene-photo figcaption { display: none; }
  .tn-ticket { grid-column: 1; grid-row: 3; margin: -5rem 0 0 auto; width: min(92%, 380px); justify-self: center; align-self: start; }
  .tn-hero-titre, .tn-hero-suite { justify-items: center; text-align: center; }
  .tn-hero-actions { justify-content: center; }
  .tn-frais-grille, .tn-semaine-grille, .tn-calc { grid-template-columns: minmax(0, 1fr); }
  .tn-frais-photo, .tn-semaine-photo { justify-self: center; max-width: 340px; }
  .tn-frais-photo img, .tn-semaine-photo img { aspect-ratio: 1 / 1; }
}
@media (max-width: 700px) {
  .tn-une-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-fiche-tete { grid-template-columns: minmax(0, 1fr); }
  .tn-fiche-tete .tn-fiche-media img { aspect-ratio: 3 / 2; }
  .tn-fiche-tete .tn-fiche-corps { padding: 1.3rem 1rem 1.5rem; }
  .tn-fiche-corps { padding: 1.2rem 1rem 1.4rem; }
  .tn-reperes { gap: .75rem; }
  .tn-reperes span { font-size: .8rem; }
  .tn-calc-saisie { padding: 1.2rem 1rem; }
  .tn-calc-ligne { grid-template-columns: minmax(0, 1fr); }
  .tn-calc-recu { padding: 1.3rem 1rem 1.5rem; }
  .tn-parcours::before, .tn-parcours::after { display: none; }
  .tn-etape { grid-template-columns: 40px minmax(0, 1fr); column-gap: .8rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--c-bord); }
  .tn-etape-n { grid-row: 1; width: 40px; height: 40px; }
  .tn-etape h3 { padding-top: .35rem; }
  .tn-etape p { grid-column: 1 / -1; padding: .3rem 0; }
  .tn-etape-v { grid-column: 1 / -1; grid-row: auto; justify-self: start; white-space: normal; }
  .tn-q { padding: 0 1rem; }
  .tn-rub { padding: 1.1rem 1rem; }
  .tn-contact { padding: 1.25rem 1rem; }
  .tn-h1 { font-size: clamp(2.2rem, 9vw, 2.6rem); }
  .tn-chapeau { font-size: 1.05rem; }
  .tn-hero-actions .bh-d93a-bouton { flex: 1 1 100%; }
  .tn-pass { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .tn-pass-texte, .tn-pass-seuil { justify-items: center; justify-content: center; }
  .tn-abo-nom { white-space: normal; }
}

/* hero mobile : le ticket compact juste sous le titre, photo 4/5 à côté, chiffres après les boutons */
@media (max-width: 700px) {
  .tn-hero { padding-block: 1.25rem 2.5rem; }
  .tn-hero-int { row-gap: 1.1rem; }
  .tn-hero-titre { gap: .9rem; }
  .tn-kicker { font-size: .72rem; padding: .32rem .8rem; }
  .tn-h1 { font-size: clamp(2rem, 8.6vw, 2.35rem); line-height: 1.06; }
  .tn-scene { max-width: none; grid-template-columns: 34% minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; row-gap: .7rem; }
  .tn-scene-photo { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; align-self: stretch; height: 100%; }
  .tn-scene-photo img { object-position: 30% 50%; }
  .tn-ticket { grid-column: 2; grid-row: 1; margin: 0 0 9px; width: auto; align-self: start; padding: .75rem .85rem .8rem; font-size: .82rem; }
  .tn-ticket-marque { display: none; }
  .tn-abo-lieu { white-space: normal; }
  .tn-ticket-lieu { font-size: .8rem; line-height: 1.3; }
  .tn-ticket-tete { padding-bottom: .45rem; }
  .tn-ticket-affiche { padding: .4rem 0 !important; }
  .tn-ticket-affiche s { font-size: 1rem; }
  .tn-ticket-lignes, .tn-ticket-note, .tn-ticket-lien { display: none; }
  .tn-ticket-total { margin-top: 0 !important; padding-top: .4rem !important; flex-wrap: wrap; }
  .tn-ticket-total strong { font-size: 1.55rem; }
  .tn-ticket-pied { margin-top: .5rem !important; }
  .tn-tampon { font-size: .85rem; }
  .tn-onglets { grid-column: 1 / -1; grid-row: 2; margin: 0; flex-wrap: nowrap; gap: .4rem; }
  .tn-onglet { flex: 1 1 0; min-width: 0; padding: .45rem .5rem; font-size: .82rem; }
  .tn-onglet-long { display: none; }
  .tn-onglet-court { display: inline; }
  .tn-chapeau { font-size: 1rem; line-height: 1.55; }
  .tn-hero-suite { gap: 1.1rem; }
}

/* mouvement réduit : rendu statique complet */
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { transition: none !important; animation: none !important; }
  .tn-onglet::after { display: none; }
}

/* ─── « Poursuivre la lecture » (bloc injecté avant le pied) : même grammaire que la home ─── */
.uf-block[data-avant-footer] {
  width: min(100% - 2rem, 1200px); max-width: none; margin: 0 auto; padding: 0 0 clamp(3.5rem, 7vw, 6rem);
  background: transparent; border: 0; border-radius: 0; overflow: visible; font-family: var(--f-texte); color: var(--c-texte);
}
.uf-block[data-avant-footer] .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid var(--c-bord); background: var(--c-surface); color: var(--c-primaire-texte);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.uf-block[data-avant-footer] .eyebrow svg { display: inline-block; flex: none; }
.uf-block[data-avant-footer] :is(h2, h3) { font-family: var(--f-titre); text-transform: none; letter-spacing: -0.025em; color: var(--c-texte); }
.uf-block[data-avant-footer] h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; font-weight: 800; text-wrap: balance; margin: 1.1rem 0 .9rem; }
.uf-block[data-avant-footer] h2 em { font-style: normal; color: var(--c-primaire-texte); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--c-primaire) 28%, transparent) 0); padding-inline: .05em; }
.uf-block[data-avant-footer] p { color: var(--c-texte-2); font-size: 1.05rem; line-height: 1.6; }
.uf-block[data-avant-footer] .discover-split {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
  max-width: 860px; margin-inline: auto; background: var(--c-surface); border: 1px solid var(--c-bord); border-top: 4px solid var(--c-primaire);
  border-radius: var(--r-carte); box-shadow: 0 1px 2px color-mix(in srgb, var(--c-ombre) 6%, transparent), 0 14px 34px -14px color-mix(in srgb, var(--c-ombre) 22%, transparent);
}
.uf-block[data-avant-footer] .discover-split > img { display: none; }
.uf-block[data-avant-footer] .discover-split .af-pad { display: grid; justify-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); }
.uf-block[data-avant-footer] .discover-split p { max-width: 40em; margin: 0 0 1.5rem; }
.uf-block[data-avant-footer] .af-button {
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r-bouton); background: var(--c-primaire); color: var(--c-sur-primaire) !important;
  font-family: var(--f-texte); font-weight: 700; font-size: 1rem; gap: .6rem;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c-primaire) 70%, transparent);
}
.uf-block[data-avant-footer] .af-button svg { display: inline-block; }
.uf-block[data-avant-footer] .tn-suite-pastilles { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.4rem; }
.uf-block[data-avant-footer] .tn-suite-pastilles span { padding: .3rem .7rem; border-radius: 999px; background: var(--c-fond); border: 1px solid var(--c-bord); font-size: .82rem; font-weight: 600; color: var(--c-texte-2); }

/* ─── pied de page : vert-gris clair de la charte, liens verts ─── */
.pied { background: color-mix(in srgb, var(--c-primaire) 6%, var(--c-fond)) !important; border-top: 4px solid var(--c-primaire) !important; }
.pied h3 { color: var(--c-texte) !important; font-family: var(--f-titre); }
.pied a { color: var(--c-primaire-texte) !important; }
.pied a:hover { color: var(--c-texte) !important; }
.pied .pied-social a { background: var(--c-surface); border-color: var(--c-bord); }
.pied .carte-texte { color: var(--c-texte-2); }
