/*
 * site-v3.css — charte V3 des pages publiques (source : maquette V3, 04/10/2026).
 * Charge par header_public.php APRES bootstrap.min.css et tracksorter.css.
 *
 *  1. Jetons (:root)
 *  2. Base (body, liens, focus, utilitaires)
 *  3. En-tete .ts-top (+ selecteur de langue, menu mobile)
 *  4. Pied de page .ts-foot
 *  5. Theme Bootstrap 5.3 aligne sur la maquette (pages secondaires)
 *  6. Primitives de page : .ts-wrap, .ts-page-hero, .ts-section, .ts-surface, .ts-prose...
 *  7. Gabarits partages : auth (.ts-auth*), guides (.gd-*, .bp-*), pages SEO (.ts-seo-*, .ts-compare)
 */

/* 1. Jetons ---------------------------------------------------------------- */
/* Polices de repli a metriques ajustees (Arial recale sur Archivo / Inter) : le texte occupe
   la meme place avant et apres le chargement des polices web -> pas de saut de mise en page
   (CLS mesure 0.18-0.23 sur l'accueil de/es/it, retours a la ligne differents au swap).
   Valeurs mesurees dans Chrome (largeur moyenne d'un texte multilingue, ascent/descent) le 06/10/2026 :
   size-adjust = largeur Archivo|Inter / largeur Arial, overrides = metrique cible / size-adjust. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; size-adjust: 101%; ascent-override: 87.1%; descent-override: 20.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 799; size-adjust: 99%; ascent-override: 88.9%; descent-override: 21.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800 849; size-adjust: 104%; ascent-override: 84.6%; descent-override: 20.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 850 1000; size-adjust: 111%; ascent-override: 79.3%; descent-override: 18.9%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 549; size-adjust: 106.7%; ascent-override: 90.9%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550 1000; size-adjust: 101.6%; ascent-override: 95.5%; descent-override: 23.6%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  --pit: #16181d;
  --pit-rgb: 22, 24, 29;
  --surface: #212529;
  --raise: #2b3035;
  --line: #343a40;
  --control-line: #6c757d;   /* bordure des champs de saisie : >= 3:1 sur --pit (WCAG 1.4.11) */
  --text: #f1f3f5;
  --muted: #aab2bb;
  --faint: #8a939c;
  --action: #6ea8fe;
  --action-hover: #8bb9fe;
  --action-ink: #0b1526;
  --manual: #ea868f;
  --manual-deep: #3a2328;
  --saved: #75b798;
  --saved-deep: #1c3027;
  --check: #6ea8fe;
  --check-deep: #1b2a45;
  --offer: #ffc107;
  --offer-ink: #1a1400;
  --select: #00ffff;
  --band-alt: #1a1d22;
  --font-display: "Archivo", "Archivo Fallback", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-file: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --radius: 6px;
  --ease-out: cubic-bezier(.2, .75, .15, 1);
  --ts-top-h: 64px;
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ts-v3 {
  margin: 0;
  background: var(--pit);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.ts-v3 main { display: block; }
body.ts-v3 section[id], body.ts-v3 [id].anchor-target { scroll-margin-top: calc(var(--ts-top-h) + 16px); }
body.ts-v3 a { color: var(--action); text-underline-offset: .2em; }
body.ts-v3 a:hover { color: #9ec5fe; }
body.ts-v3 :focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 3px; }
body.ts-v3 [hidden] { display: none !important; }
.ts-mono { font-family: var(--font-file); font-size: .8125rem; letter-spacing: 0; }

.ts-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--action); color: var(--action-ink) !important; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius); text-decoration: none;
}
.ts-skip:focus { top: 10px; }
/* Page servie dans une autre langue que celle demandee (repli, ex. textes juridiques fr/en) */
.ts-lang-note { margin: 0; padding: 10px 16px; display: flex; justify-content: center; align-items: baseline; gap: 8px; text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; text-wrap: pretty; }
.ts-lang-note .bi { color: var(--action); }

/* 3. En-tete --------------------------------------------------------------- */
.ts-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; width: 100%; }
@media (max-width: 600px) { .ts-wrap { padding-inline: 16px; } }

.ts-top {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(22, 24, 29, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ts-top-in { display: flex; align-items: center; gap: 28px; min-height: var(--ts-top-h); }
.ts-brand { display: inline-flex; flex: none; }
.ts-brand img { height: 30px; width: auto; display: block; }
.ts-nav { display: flex; gap: 22px; margin-right: auto; }
.ts-nav a { color: var(--muted) !important; text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.ts-nav a:hover, .ts-nav a.is-active { color: var(--text) !important; }
.ts-nav a.is-active { box-shadow: inset 0 -2px 0 var(--action); padding-bottom: 2px; }
.ts-top-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.ts-link-quiet { color: var(--muted) !important; text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.ts-link-quiet:hover { color: var(--text) !important; }
.ts-top .btn { white-space: nowrap; }

/* details/summary partages (langue + menu) */
.ts-top details { position: relative; }
.ts-top summary { list-style: none; cursor: pointer; user-select: none; }
.ts-top summary::-webkit-details-marker { display: none; }

.ts-lang summary {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .8125rem; font-weight: 600;
}
.ts-lang summary:hover, .ts-lang[open] summary { color: var(--text); border-color: #4a525a; }
.ts-lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.ts-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1040;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.ts-lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius);
  color: var(--text) !important; text-decoration: none; font-size: .9375rem;
}
.ts-lang-menu a:hover { background: var(--raise); }
.ts-lang-menu a[aria-current="true"] { background: var(--raise); box-shadow: inset 2px 0 0 var(--action); }
.ts-lang-code { font: 600 .75rem/1 var(--font-file); color: var(--muted); min-width: 22px; }

.ts-menu { display: none; }
.ts-menu summary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.ts-burger { display: grid; gap: 4px; width: 18px; }
.ts-burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ts-menu[open] .ts-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ts-menu[open] .ts-burger i:nth-child(2) { opacity: 0; }
.ts-menu[open] .ts-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.ts-menu-panel {
  position: fixed; left: 0; right: 0; top: var(--ts-top-h); z-index: 1035;
  max-height: calc(100vh - var(--ts-top-h)); overflow-y: auto;
  max-height: calc(100dvh - var(--ts-top-h)); overscroll-behavior: contain;
  background: var(--pit); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
}
.ts-menu-panel nav { display: grid; padding: 8px 16px 16px; }
.ts-menu-panel a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--text) !important; text-decoration: none; font-size: 1.0625rem; font-weight: 500;
}
.ts-menu-panel a:last-child { border-bottom: 0; }
.ts-menu-panel a.is-active { color: var(--action) !important; }
/* CTA d'inscription dans le menu : seule entree « Essai gratuit » sous 360 px (le bouton de l'en-tete y est masque) */
.ts-menu-cta-row { padding: 0 16px 20px; }
body.ts-v3 .ts-menu-panel a.ts-menu-cta { display: flex; justify-content: center; width: 100%; padding: 12px 16px; border-bottom: 0; color: var(--action-ink) !important; font-weight: 600; }

@media (max-width: 1080px) { .ts-nav { gap: 16px; } .ts-top-in { gap: 20px; } }
@media (max-width: 980px) {
  .ts-nav { display: none; }
  .ts-menu { display: block; }
}
@media (max-width: 560px) {
  .ts-top-in { gap: 10px; }
  .ts-top-actions { gap: 8px; }
  .ts-top-actions > .ts-link-quiet { display: none; }
  .ts-brand { flex: 0 1 auto; min-width: 0; }
  /* le logo retrecit plutot que de deborder si le libelle du CTA est long (de, es...) */
  .ts-brand img { height: auto; max-height: 21px; max-width: 100%; }
  .ts-top .btn { padding-inline: .8em; }
  .ts-lang summary { padding: 4px 9px; }
  .ts-lang summary .bi { display: none; }
}
/* Tres petits ecrans : le CTA est deja dans le menu. Prefixe body.ts-v3 obligatoire :
   body.ts-v3 .btn (display:inline-flex, section 5) l'emportait sur .ts-top-cta -> debordement a 320px. */
@media (max-width: 359px) {
  body.ts-v3 .ts-top .ts-top-cta { display: none; }
  .ts-top-in { gap: 8px; }
  .ts-top-actions { gap: 6px; }
}
/* Ecrans tactiles : cibles de 44 px minimum dans l'en-tete (le burger fait deja 44) */
@media (pointer: coarse) {
  .ts-lang summary { min-height: 44px; }
  body.ts-v3 .ts-top .ts-top-cta { min-height: 44px; }
}
/* <details> fermes : leur contenu ne doit avoir aucune boite (panneau fixe hors ecran sinon) */
.ts-top details:not([open]) > :not(summary) { display: none; }

/* 4. Pied de page ---------------------------------------------------------- */
.ts-foot { border-top: 1px solid var(--line); padding-block: 48px 36px; font-size: .9375rem; margin-top: 0; background: var(--pit); }
.ts-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .ts-foot-grid { grid-template-columns: 1fr 1fr; } .ts-foot-brand { grid-column: 1 / -1; } }
.ts-foot-brand img { height: 26px; width: auto; display: block; }
.ts-foot-brand p { color: var(--muted); font-size: .875rem; max-width: 34ch; margin: 14px 0 0; }
.ts-foot .ts-foot-h {
  margin: 0 0 10px; font: 600 .8125rem/1.3 var(--font-body);
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.ts-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-foot a { color: var(--text) !important; text-decoration: none; }
.ts-foot a:hover { color: var(--action) !important; }
@media (max-width: 760px) {
  .ts-foot ul { gap: 0; }
  .ts-foot ul a { display: inline-block; padding-block: 10px; }
}
.ts-foot-base {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: .875rem;
}

/* 5. Theme Bootstrap 5.3 --------------------------------------------------- */
:root[data-bs-theme="dark"], [data-bs-theme="dark"] {
  --bs-body-bg: #16181d;
  --bs-body-bg-rgb: 22, 24, 29;
  --bs-body-color: #f1f3f5;
  --bs-body-color-rgb: 241, 243, 245;
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: #aab2bb;
  --bs-secondary-color-rgb: 170, 178, 187;
  --bs-tertiary-color: #8a939c;
  --bs-secondary-bg: #212529;
  --bs-tertiary-bg: #2b3035;
  --bs-heading-color: #f1f3f5;
  --bs-border-color: #343a40;
  --bs-border-color-translucent: rgba(255, 255, 255, .09);
  --bs-link-color: #6ea8fe;
  --bs-link-color-rgb: 110, 168, 254;
  --bs-link-hover-color: #9ec5fe;
  --bs-link-hover-color-rgb: 158, 197, 254;
  --bs-border-radius: 6px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 8px;
  --bs-border-radius-xl: 10px;
  --bs-primary-text-emphasis: #9ec5fe;
  --bs-focus-ring-color: rgba(110, 168, 254, .35);
}

body.ts-v3 h1, body.ts-v3 h2, body.ts-v3 h3, body.ts-v3 h4,
body.ts-v3 .h1, body.ts-v3 .h2, body.ts-v3 .h3, body.ts-v3 .h4 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance;
}
body.ts-v3 h5, body.ts-v3 h6, body.ts-v3 .h5, body.ts-v3 .h6 { font-family: var(--font-body); font-weight: 600; }
body.ts-v3 .display-1, body.ts-v3 .display-2, body.ts-v3 .display-3,
body.ts-v3 .display-4, body.ts-v3 .display-5, body.ts-v3 .display-6 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.03em; line-height: 1;
}
body.ts-v3 .lead { color: var(--muted); font-size: 1.125rem; font-weight: 400; }
body.ts-v3 .text-secondary, body.ts-v3 .text-muted { color: var(--muted) !important; }
body.ts-v3 .text-white-50 { color: rgba(241, 243, 245, .7) !important; }
body.ts-v3 .text-primary { color: var(--action) !important; }
body.ts-v3 .text-warning { color: var(--offer) !important; }
body.ts-v3 .text-success { color: var(--saved) !important; }
body.ts-v3 .text-danger { color: var(--manual) !important; }
body.ts-v3 .bg-body-tertiary { background-color: var(--surface) !important; }
body.ts-v3 .border, body.ts-v3 .border-top, body.ts-v3 .border-bottom { border-color: var(--line) !important; }
body.ts-v3 hr { border-color: var(--line); opacity: 1; }

/* Boutons */
body.ts-v3 .btn {
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
}
body.ts-v3 .btn:hover { transform: none; box-shadow: none; }
body.ts-v3 .btn:active { transform: translateY(1px); }
body.ts-v3 .btn:not(.btn-sm):not(.btn-link):not(.btn-close) { min-height: 44px; }
body.ts-v3 .btn-lg { min-height: 52px; font-size: 1.0625rem; }
body.ts-v3 .btn-primary {
  --bs-btn-color: var(--action-ink); --bs-btn-bg: var(--action); --bs-btn-border-color: var(--action);
  --bs-btn-hover-color: var(--action-ink); --bs-btn-hover-bg: var(--action-hover); --bs-btn-hover-border-color: var(--action-hover);
  --bs-btn-active-color: var(--action-ink); --bs-btn-active-bg: #5a9bd4; --bs-btn-active-border-color: #5a9bd4;
  --bs-btn-disabled-color: var(--action-ink); --bs-btn-disabled-bg: var(--action); --bs-btn-disabled-border-color: var(--action);
  --bs-btn-focus-shadow-rgb: 110, 168, 254;
}
body.ts-v3 a.btn-primary, body.ts-v3 a.btn-primary:hover { color: var(--action-ink); }
body.ts-v3 .btn-warning {
  --bs-btn-color: var(--offer-ink); --bs-btn-bg: var(--offer); --bs-btn-border-color: var(--offer);
  --bs-btn-hover-color: var(--offer-ink); --bs-btn-hover-bg: #ffcd39; --bs-btn-hover-border-color: #ffcd39;
  --bs-btn-active-color: var(--offer-ink); --bs-btn-active-bg: #e0a800; --bs-btn-active-border-color: #e0a800;
}
body.ts-v3 a.btn-warning, body.ts-v3 a.btn-warning:hover { color: var(--offer-ink); }
body.ts-v3 .btn-success {
  --bs-btn-color: #0d1f16; --bs-btn-bg: var(--saved); --bs-btn-border-color: var(--saved);
  --bs-btn-hover-color: #0d1f16; --bs-btn-hover-bg: #8cc6aa; --bs-btn-hover-border-color: #8cc6aa;
}
body.ts-v3 .btn-outline-primary {
  --bs-btn-color: var(--action); --bs-btn-border-color: rgba(110, 168, 254, .55);
  --bs-btn-hover-color: var(--action-ink); --bs-btn-hover-bg: var(--action); --bs-btn-hover-border-color: var(--action);
  --bs-btn-active-color: var(--action-ink); --bs-btn-active-bg: var(--action); --bs-btn-active-border-color: var(--action);
}
body.ts-v3 .btn-outline-light, body.ts-v3 .btn-outline-secondary, body.ts-v3 .btn-secondary, body.ts-v3 .btn-dark {
  --bs-btn-color: var(--text); --bs-btn-bg: transparent; --bs-btn-border-color: #4a525a;
  --bs-btn-hover-color: var(--text); --bs-btn-hover-bg: rgba(255, 255, 255, .04); --bs-btn-hover-border-color: var(--text);
  --bs-btn-active-color: var(--text); --bs-btn-active-bg: rgba(255, 255, 255, .08); --bs-btn-active-border-color: var(--text);
}
body.ts-v3 .btn-link { --bs-btn-color: var(--action); --bs-btn-hover-color: #9ec5fe; }
/* Un <a class="btn ..."> garde la couleur de SON bouton : body.ts-v3 a (couleur de lien)
   l'emportait sur la couleur Bootstrap du bouton (texte bleu sur bouton fantome, etc.). */
body.ts-v3 a.btn { color: var(--bs-btn-color); }
body.ts-v3 a.btn:hover { color: var(--bs-btn-hover-color); }
body.ts-v3 a.btn:active, body.ts-v3 a.btn.active { color: var(--bs-btn-active-color); }
body.ts-v3 a.btn.disabled { color: var(--bs-btn-disabled-color); }

/* Cartes, surfaces */
body.ts-v3 .card {
  --bs-card-bg: var(--surface); --bs-card-border-color: var(--line); --bs-card-border-radius: 8px;
  --bs-card-cap-bg: var(--raise); --bs-card-color: var(--text);
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
}
body.ts-v3 .card-header { border-bottom-color: var(--line); }
body.ts-v3 .card-footer { border-top-color: var(--line); background: transparent; }
body.ts-v3 .card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-color: #4a525a; }

/* Formulaires */
body.ts-v3 .form-control, body.ts-v3 .form-select {
  background-color: var(--pit); color: var(--text); border: 1px solid var(--control-line); border-radius: var(--radius);
  min-height: 44px; font-family: var(--font-body);
}
body.ts-v3 textarea.form-control { min-height: 120px; }
body.ts-v3 .form-control::placeholder { color: var(--faint); opacity: 1; }
body.ts-v3 .form-control:focus, body.ts-v3 .form-select:focus {
  background-color: var(--pit); color: var(--text); border-color: var(--action);
  box-shadow: 0 0 0 .2rem rgba(110, 168, 254, .25);
}
body.ts-v3 .form-label { font-size: .9375rem; font-weight: 600; }
body.ts-v3 .form-text { color: var(--faint); }
body.ts-v3 .form-check-input { background-color: var(--pit); border-color: var(--control-line); }
body.ts-v3 .form-check-input:checked { background-color: var(--action); border-color: var(--action); }
body.ts-v3 .input-group-text { background: var(--raise); color: var(--muted); border-color: var(--control-line); }

/* Alertes : fond teinte, texte lisible */
body.ts-v3 .alert { border-radius: 8px; color: var(--text); }
body.ts-v3 .alert-primary, body.ts-v3 .alert-info { background: var(--check-deep); border-color: rgba(110, 168, 254, .35); color: var(--text); }
body.ts-v3 .alert-success { background: var(--saved-deep); border-color: rgba(117, 183, 152, .4); color: var(--text); }
body.ts-v3 .alert-warning { background: rgba(255, 193, 7, .08); border-color: rgba(255, 193, 7, .4); color: #ffe08a; }
body.ts-v3 .alert-danger { background: var(--manual-deep); border-color: rgba(234, 134, 143, .45); color: var(--text); }
body.ts-v3 .alert-secondary, body.ts-v3 .alert-dark, body.ts-v3 .alert-light { background: var(--surface); border-color: var(--line); color: var(--text); }
body.ts-v3 .alert .alert-link { color: inherit; }

/* Accordeon (FAQ etc.) */
body.ts-v3 .accordion {
  --bs-accordion-bg: transparent; --bs-accordion-color: var(--text);
  --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: 8px; --bs-accordion-inner-border-radius: 7px;
  --bs-accordion-btn-color: var(--text); --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-color: var(--text); --bs-accordion-active-bg: var(--surface);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(110, 168, 254, .3);
  --bs-accordion-body-padding-x: 1.25rem;
}
body.ts-v3 .accordion-button { font-weight: 600; font-size: 1.0625rem; }
body.ts-v3 .accordion-body { color: var(--muted); }

/* Tableaux */
body.ts-v3 .table {
  --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line);
  --bs-table-striped-bg: rgba(255, 255, 255, .025); --bs-table-hover-bg: rgba(255, 255, 255, .04);
  --bs-table-hover-color: var(--text); --bs-table-striped-color: var(--text);
}
body.ts-v3 .table thead th { color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; border-bottom-color: var(--line); background: transparent; }

/* Badges, nav, listes */
body.ts-v3 .badge { font-weight: 600; letter-spacing: .02em; border-radius: 999px; }
body.ts-v3 .text-bg-primary, body.ts-v3 .bg-primary { background-color: var(--action) !important; color: var(--action-ink) !important; }
body.ts-v3 .text-bg-warning, body.ts-v3 .bg-warning { background-color: var(--offer) !important; color: var(--offer-ink) !important; }
body.ts-v3 .text-bg-success { background-color: var(--saved) !important; color: #0d1f16 !important; }
body.ts-v3 .nav-pills .nav-link { color: var(--muted); border-radius: 999px; }
body.ts-v3 .nav-pills .nav-link.active { background: var(--raise); color: var(--text); }
body.ts-v3 .nav-tabs { --bs-nav-tabs-border-color: var(--line); --bs-nav-tabs-link-active-bg: var(--surface); --bs-nav-tabs-link-active-border-color: var(--line) var(--line) var(--surface); }
body.ts-v3 .list-group { --bs-list-group-bg: var(--surface); --bs-list-group-border-color: var(--line); --bs-list-group-color: var(--text); }
body.ts-v3 .modal { --bs-modal-bg: var(--surface); --bs-modal-border-color: var(--line); }
body.ts-v3 .dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-hover-bg: var(--raise); }
body.ts-v3 .progress { --bs-progress-bg: var(--raise); }
body.ts-v3 code { color: #9ec5fe; }

/* 6. Primitives de page ---------------------------------------------------- */
/* .ts-wrap : colonne de la maquette (1240px, gouttiere 24/16px) — voir section 3 */
.ts-wrap-narrow { max-width: 860px; }

.ts-eyebrow {
  margin: 0 0 14px;
  font: 600 .8125rem/1.3 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.ts-h-display, .ts-page-hero .h-display {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.03em; line-height: .98;
  text-wrap: balance; margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--text);
  overflow-wrap: break-word; hyphens: auto; /* mots longs (de : Motorsportfotos) a 320 px */
}
.ts-h-section {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.03em; line-height: 1.02;
  text-wrap: balance; margin: 0; font-size: clamp(2rem, 3.4vw, 3.1rem); color: var(--text);
  overflow-wrap: break-word; hyphens: auto; /* mots longs (de : Motorsportfotos) a 320 px */
}
.ts-lead, .ts-page-hero .ts-lead {
  max-width: 62ch; color: var(--muted); font-size: 1.125rem; margin: 18px 0 0; text-wrap: pretty;
}

/* En-tete de page secondaire : eyebrow + titre + chapo (+ .ts-cta-row) */
.ts-page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: 64px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, rgba(110, 168, 254, .12), rgba(110, 168, 254, 0) 70%),
    linear-gradient(180deg, rgba(11, 21, 38, .55), rgba(22, 24, 29, 0) 85%);
}
.ts-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 10%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 90% at 80% 10%, #000 10%, transparent 75%);
}
.ts-page-hero.is-center { text-align: center; }
.ts-page-hero.is-center .ts-lead { margin-inline: auto; }
.ts-page-hero.is-compact { padding-block: 44px 32px; }
@media (max-width: 600px) { .ts-page-hero { padding-block: 44px 32px; } }

.ts-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ts-page-hero.is-center .ts-cta-row { justify-content: center; }

/* Bandes de contenu */
.ts-section { padding-block: 72px; border-top: 1px solid rgba(255, 255, 255, .05); }
.ts-section:first-child { border-top: 0; }
.ts-section-alt { background: var(--band-alt); }
.ts-section.is-tight { padding-block: 48px; }
@media (max-width: 600px) { .ts-section { padding-block: 48px; } }

/* Panneau */
.ts-surface {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px;
}
.ts-surface.is-raised { background: var(--raise); }
.ts-surface > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .ts-surface { padding: 18px; } }

/* Grilles simples */
.ts-grid { display: grid; gap: 20px; }
.ts-grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ts-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ts-grid-2, .ts-grid-3 { grid-template-columns: 1fr; } }

/* Texte long (legal, guides) */
.ts-prose { max-width: 72ch; color: #d0d5da; font-size: 1.0625rem; line-height: 1.7; }
.ts-prose > * + * { margin-top: 1em; }
.ts-prose p, .ts-prose ul, .ts-prose ol { margin-bottom: 0; }
.ts-prose h2 { font: 800 1.6rem/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); margin-top: 2.2em; margin-bottom: 0; }
.ts-prose h3 { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); margin-top: 1.8em; margin-bottom: 0; }
.ts-prose h2:first-child, .ts-prose h3:first-child { margin-top: 0; }
.ts-prose ul, .ts-prose ol { padding-left: 1.3em; }
.ts-prose li + li { margin-top: .35em; }
.ts-prose li::marker { color: var(--faint); }
.ts-prose strong { color: var(--text); }
.ts-prose a { color: var(--action); text-decoration: underline; }
.ts-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ts-prose th, .ts-prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.ts-prose th { color: var(--muted); font-weight: 600; }

/* Liste a puces jaunes (fineprint de la maquette) */
.ts-fineprint {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--muted);
}
.ts-fineprint li { display: inline-flex; align-items: center; gap: 8px; }
.ts-fineprint li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--offer); }

/* Pastille / etiquette */
.ts-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raise); color: var(--muted); font-size: .8125rem; font-weight: 600;
}
.ts-chip.is-offer { background: var(--offer); border-color: var(--offer); color: var(--offer-ink); }
.ts-chip.is-action { background: var(--check-deep); border-color: rgba(110, 168, 254, .4); color: #9ec5fe; }

/* Prix USD indicatif + mention */
.ts-usd { display: block; color: var(--faint); font-size: .8125rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ts-fx-notice { color: var(--faint); font-size: .8125rem; max-width: 80ch; margin: 16px 0 0; }

/* 7. Gabarits de pages partages -------------------------------------------- */
/* Repris tels quels des blocs <style> en ligne des pages (dedoublonnage). Une page peut
   encore garder ses ecarts propres en ligne (ex. best-practices : .gd padding-top 48px,
   .gd-cta margin-top 48px). */

/* 7a. Authentification : login, register, register_beta, confirm, password_form, unsubscribe */
.ts-auth { position: relative; isolation: isolate; overflow: hidden; padding-block: 64px 88px;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(110, 168, 254, .13), rgba(110, 168, 254, 0) 70%),
              linear-gradient(180deg, rgba(11, 21, 38, .55), rgba(22, 24, 29, 0) 75%); }
.ts-auth::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 72px 72px,
              linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%); }
.ts-auth-card { max-width: 440px; margin-inline: auto; padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.ts-auth-card.is-wide { max-width: 520px; }
.ts-auth-head { margin-bottom: 24px; }
.ts-auth-head .ts-eyebrow { margin-bottom: 10px; }
.ts-auth-title { font: 900 clamp(1.9rem, 4vw, 2.4rem)/1.04 var(--font-display); letter-spacing: -.03em; margin: 0; color: var(--text); text-wrap: balance; }
.ts-auth-sub { color: var(--muted); font-size: 1rem; margin: 10px 0 0; text-wrap: pretty; }
.ts-auth-status { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--check-deep); color: var(--action); }
.ts-auth-status.is-ok { background: var(--saved-deep); color: var(--saved); }
.ts-auth-status.is-warn { background: rgba(255, 193, 7, .1); color: var(--offer); }
.ts-auth-status.is-err { background: var(--manual-deep); color: var(--manual); }
.ts-auth-offer { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 24px; border-radius: 8px; border: 1px solid rgba(255, 193, 7, .35); background: rgba(255, 193, 7, .07); }
.ts-auth-offer > i { color: var(--offer); font-size: 1.15rem; line-height: 1.4; }
.ts-auth-offer strong { display: block; color: var(--text); font-weight: 700; line-height: 1.35; }
.ts-auth-offer span { color: var(--muted); font-size: .875rem; }
.ts-auth-row { display: flex; justify-content: flex-end; margin: 0 0 20px; }
.ts-auth-quiet { color: var(--muted) !important; font-size: .875rem; text-decoration: none; }
.ts-auth-quiet:hover { color: var(--text) !important; text-decoration: underline; }
.ts-auth-fine { color: var(--faint); font-size: .875rem; text-align: center; margin: 16px 0 0; text-wrap: pretty; }
.ts-auth-alt { max-width: 440px; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: .9375rem; }
.ts-auth-alt a { font-weight: 600; }
.ts-auth-alt + .ts-auth-alt { margin-top: 6px; }
.ts-auth-actions { display: grid; gap: 10px; margin-top: 24px; }
.ts-auth-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-file); font-size: .875rem; color: var(--text); background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.ts-auth .alert { font-size: .9375rem; }
.ts-auth .input-group .btn { min-height: 44px; }
.ts-auth a.btn-outline-light, .ts-auth a.btn-outline-light:hover { color: var(--text); }
@media (max-width: 600px) { .ts-auth { padding-block: 36px 56px; } .ts-auth-card { padding: 24px 18px; } }

/* 7b. Guides longs : guide.php (+ grille commune a best-practices.php) */
.gd { padding-block: 40px 88px; }
.gd [id] { scroll-margin-top: calc(var(--ts-top-h) + 16px); }
.gd-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.gd-toc { position: sticky; top: calc(var(--ts-top-h) + 24px); }
.gd-toc-h { margin: 0 0 12px; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.gd-toc li a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .875rem; line-height: 1.35; text-decoration: none; }
.gd-toc li a:hover { color: var(--text); border-left-color: var(--action); }
.gd-toc .n { font: 800 .8125rem/1.35 var(--font-display); color: var(--action); font-variant-numeric: tabular-nums; min-width: 1.4em; }
@media (max-width: 980px) {
  .gd-layout { grid-template-columns: 1fr; gap: 32px; }
  .gd-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
  .gd-toc ol { border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .gd-toc li a { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) { .gd-toc ol { grid-template-columns: 1fr; } }

.gd-assure { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gd-assure li { background: var(--surface); padding: 18px 20px; }
.gd-assure i { color: var(--action); font-size: 1.25rem; display: block; margin-bottom: 8px; }
.gd-assure strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.gd-assure p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
@media (max-width: 900px) { .gd-assure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gd-assure { grid-template-columns: 1fr; } }

.gd-note { margin: 0 0 48px; color: var(--muted); font-size: .9375rem; }
.gd-note strong { color: var(--text); margin-right: 6px; }
.gd-note a { color: var(--action); }

.gd-h2 { margin: 0 0 8px; }
.gd-steps { list-style: none; margin: 0; padding: 0; }
.gd-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 36px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.gd-step:first-child { border-top: 0; }
.gd-step.is-solo { grid-template-columns: minmax(0, 1fr); }
.gd-step-n { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gd-step-n .n { font: 900 2.5rem/1 var(--font-display); color: var(--action); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gd-step h3 { margin: 0 0 12px; font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.gd-step .ts-prose { max-width: none; }
.gd-media { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.gd-media img { display: block; width: 100%; height: auto; aspect-ratio: 554 / 280; }
@media (max-width: 900px) { .gd-step { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; } }

.gd-callout { border: 1px solid var(--line); border-left: 3px solid var(--faint); border-radius: 6px; background: var(--surface); padding: 12px 16px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.gd-callout > :last-child { margin-bottom: 0; }
.gd-callout .gd-callout-h { display: block; margin-bottom: 4px; color: var(--text); font-weight: 700; }
.gd-callout ul { margin: 6px 0 0; padding-left: 1.2em; }
.gd-callout p { margin: 0; }
.gd-callout p + p { margin-top: 6px; }
.gd-callout.is-offer { border-left-color: var(--offer); background: rgba(255, 193, 7, .06); }
.gd-callout.is-saved { border-left-color: var(--saved); background: var(--saved-deep); }
.gd-callout.is-check { border-left-color: var(--check); background: var(--check-deep); }
.gd-callout a { color: var(--action); }
.ts-chip.is-saved { background: var(--saved-deep); border-color: rgba(117, 183, 152, .45); color: var(--saved); }

.gd-os { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; }
.ts-prose .gd-os { padding-left: 0; }
.ts-prose .gd-os li + li { margin-top: 0; }
.gd-os li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.gd-os i { color: var(--action); font-size: 1.125rem; }
.gd-os strong { display: block; color: var(--text); font-size: .9375rem; margin-top: 4px; }
.gd-os span { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; overflow-wrap: break-word; }
@media (max-width: 640px) { .gd-os { grid-template-columns: 1fr; } }

.gd-step .ts-prose .gd-tree { max-width: 460px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.gd-tree ul { list-style: none; margin: 0; padding: 12px 16px; font-family: var(--font-file); font-size: .875rem; line-height: 1.9; color: var(--text); }
.gd-tree li { overflow-wrap: anywhere; }
.gd-tree li::before { content: "\25B8\00a0"; color: var(--action); }

.gd-block { margin-top: 64px; }
.gd-credits .ts-grid-2 { gap: 28px; }
.gd-credits h3 { margin: 0 0 10px; font: 700 1.0625rem/1.3 var(--font-body); color: var(--text); }
.gd-credits ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.gd-credits li + li { margin-top: 6px; }
.gd-rate { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.gd-rate li { font: 700 1rem/1.2 var(--font-file); color: var(--text); background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.gd-fine { margin: 0; color: var(--faint); font-size: .875rem; }

.gd-cta { text-align: center; padding: 40px 24px; background: linear-gradient(180deg, var(--check-deep), var(--surface)); border-color: rgba(110, 168, 254, .3); }
.gd-cta p { color: var(--muted); max-width: 60ch; margin: 12px auto 0; }
.gd-cta .ts-cta-row { justify-content: center; margin-top: 24px; }

.gd .accordion { --bs-accordion-bg: var(--surface); }
.gd .accordion-body a { color: var(--action); }

/* 7c. best-practices.php */
.bp-sec { padding: 40px 0; border-top: 1px solid var(--line); }
.bp-sec:first-child { border-top: 0; padding-top: 0; }
.bp-sec-h { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.bp-sec-h i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--check-deep); color: var(--action); font-size: 1.125rem; }
.bp-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-tip { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.bp-tip h3 { margin: 0 0 6px; font: 700 1rem/1.3 var(--font-body); color: var(--text); }
.bp-tip p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 900px) { .bp-tips { grid-template-columns: 1fr; } }
.bp-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 7d. Pages SEO : trier / vendre / comparatif (best-motorsport-photo-sorting-software) */
.ts-seo-hero .ts-h-display { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.02; }
.ts-seo-note { margin: 22px 0 0; max-width: 72ch; padding: 12px 16px; border-left: 3px solid var(--offer); background: rgba(255, 193, 7, .06); color: var(--muted); font-size: .9375rem; border-radius: 0 var(--radius) var(--radius) 0; }
.ts-seo-body .ts-prose { max-width: none; }
.ts-seo-body .ts-prose h2 .ts-chip { vertical-align: middle; margin-left: 8px; font-family: var(--font-body); letter-spacing: 0; }
.ts-seo-tips { display: grid; gap: 14px; }
.ts-seo-tip { border-left: 2px solid var(--line); padding: 2px 0 2px 18px; }
.ts-seo-tip h3 { font-size: 1.125rem; margin: 0 0 .35em; }
.ts-seo-tip p { margin: 0; color: var(--muted); }
.ts-seo-links-h { font: 800 1.35rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 18px; }
.ts-seo-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text); text-decoration: none; font-weight: 600; padding: 18px 20px; transition: border-color .15s, background-color .15s; }
.ts-seo-links a:hover { border-color: var(--action); background: var(--raise); color: var(--text); }
.ts-seo-links a .bi { color: var(--action); flex: none; }
.ts-seo-final { position: relative; overflow: hidden; padding-block: 112px; border-top: 1px solid rgba(255, 255, 255, .05); }
.ts-seo-final-bg { position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 900px); }
.ts-seo-final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ts-seo-final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pit) 0%, rgba(22, 24, 29, .55) 35%, rgba(22, 24, 29, .1) 100%); }
.ts-seo-final .ts-wrap { position: relative; }
.ts-seo-final .ts-h-display { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.ts-seo-final p { color: #d0d5da; max-width: 46ch; margin: 18px 0 0; font-size: 1.125rem; }
.ts-seo-final .ts-fineprint li::before { background: var(--saved); }
@media (max-width: 760px) {
  .ts-seo-final { padding-block: 64px 290px; }
  .ts-seo-final-bg { top: auto; width: 100%; height: 270px; }
  .ts-seo-final-bg::after { background: linear-gradient(180deg, var(--pit) 0%, rgba(22, 24, 29, .1) 45%); }
}
/* Tableau comparatif : colonne TrackSorter mise en avant */
.ts-compare { margin: 0; min-width: 760px; font-size: .9rem; }
.ts-compare th, .ts-compare td { vertical-align: top; padding: 12px 12px; }
.ts-compare thead th { font-family: var(--font-display); font-weight: 800; color: var(--text); }
.ts-compare tbody th { color: var(--text); font-weight: 600; }
.ts-compare td { color: var(--muted); }
.ts-compare .ts-col { background: rgba(110, 168, 254, .08) !important; box-shadow: inset 2px 0 0 var(--action), inset -2px 0 0 var(--action); color: var(--text); font-weight: 500; }
.ts-compare thead .ts-col { color: var(--action); }
.ts-seo-verdict { margin: 18px 0 0; color: #d0d5da; }
.ts-seo-profile h3 { font: 700 1.125rem/1.3 var(--font-display); margin: 0 0 .5em; }
.ts-seo-profile p { margin: 0; color: var(--muted); }
.ts-seo-usd { color: var(--faint); font-size: .9em; white-space: nowrap; }

/* ---------- Pages juridiques (privacy.php, terms.php) : sommaire + corps ---------- */
.ts-legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.ts-legal-toc { position: sticky; top: calc(var(--ts-top-h) + 24px); max-height: calc(100vh - var(--ts-top-h) - 48px); overflow: auto; font-size: .875rem; }
.ts-legal-toc summary { list-style: none; cursor: pointer; font: 600 .8125rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ts-legal-toc summary::-webkit-details-marker { display: none; }
.ts-legal-toc summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); }
.ts-legal-toc[open] summary::after { content: "\2212"; }
.ts-legal-toc[open] ol { margin-top: 12px; }
.ts-legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
body.ts-v3 .ts-legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
body.ts-v3 .ts-legal-toc a:hover { color: var(--text); border-left-color: var(--faint); }
body.ts-v3 .ts-legal-toc a.is-current { color: var(--text); border-left-color: var(--action); }
.ts-legal-body .ts-legal-sec > * + * { margin-top: 1em; }
.ts-legal-body > .ts-legal-sec + .ts-legal-sec { margin-top: 2.6em; }
.ts-legal-intro { font-size: 1.125rem; color: var(--text); }
.ts-legal-callout { border: 1px solid rgba(110, 168, 254, .35); background: rgba(110, 168, 254, .08); border-radius: 8px; padding: 14px 16px; color: var(--text); }
.ts-legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.ts-legal-table table { margin: 0; }
.ts-legal-table tr:last-child td { border-bottom: 0; }
.ts-legal-table th, .ts-legal-table td { padding: 10px 14px; }
.ts-legal-foot { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); color: var(--muted); }
.ts-legal-foot p + p { margin-top: .6em; }
.ts-legal-updated { margin-top: 16px; color: var(--muted); font-family: var(--font-file); font-size: .875rem; }
@media (max-width: 980px) {
  .ts-legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .ts-legal-toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
}
