/* Tourbiz V2 — pages SEO longues (template page-seo.php) : comparatifs, guides OTA, channel manager, métiers.
   S'appuie sur tourbiz-v2-alternative.css (classes tba-). Tout est scopé sous .tbs. */

/* ---------- Hero ---------- */
.tbs .tbs-hero .tba-wrap { position: relative; }
.tbs .tbs-crumbs { position: relative; padding-top: 22px; }
.tbs .tbs-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: .84rem; color: rgba(255,255,255,.72); }
.tbs .tbs-crumbs li { display: inline-flex; align-items: center; }
.tbs .tbs-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.tbs .tbs-crumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.tbs .tbs-crumbs a:hover { color: #fff; text-decoration: underline; }
.tbs .tbs-crumbs li[aria-current] { color: #fff; font-weight: 600; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tbs .tbs-hero-grid { padding-block: 34px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: start; }
.tbs .tbs-h1 { font-size: clamp(1.95rem, 3.6vw, 2.75rem); line-height: 1.1; }
.tbs .tbs-meta { margin-top: 22px; font-size: .86rem; color: rgba(255,255,255,.74); }

/* Carte à droite du hero */
.tbs .tbs-card { background: var(--paper-raised); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--tba-shadow-lg); padding: 22px 22px 18px; display: grid; gap: 14px; margin-top: 8px; }
.tbs .tbs-card-title { font-family: var(--tba-display); font-weight: 800; font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.tbs .tbs-card-foot { font-size: .76rem; color: var(--muted-2); display: flex; align-items: center; gap: 6px; line-height: 1.4; }
.tbs .tbs-card-foot svg.tba-ico { width: 14px; height: 14px; color: var(--teal-ink); }
.tbs .tbs-card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--blue); text-decoration: none; }
.tbs .tbs-card-link:hover { color: var(--blue-deep); text-decoration: underline; }
.tbs .tbs-card-link svg.tba-ico { width: 15px; height: 15px; }

/* Scorecard comparatif */
.tbs .tbs-score-t { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: fixed; }
.tbs .tbs-score-t th, .tbs .tbs-score-t td { padding: 9px 8px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.35; color: var(--ink); background: transparent; }
.tbs .tbs-score-t thead th { font-family: var(--tba-display); font-weight: 800; font-size: .88rem; padding-top: 0; }
.tbs .tbs-score-t thead th:nth-child(2) { color: var(--teal-ink); }
.tbs .tbs-score-t tbody th { font-weight: 600; color: var(--muted); width: 34%; }
.tbs .tbs-score-t td { color: var(--muted); }
.tbs .tbs-score-t td.tbs-win { color: var(--ink); font-weight: 700; }
.tbs .tbs-score-t td svg.tba-ico { width: 14px; height: 14px; color: var(--teal-ink); margin: 0 5px -2px 0; }
.tbs .tbs-score-t tbody tr:last-child th, .tbs .tbs-score-t tbody tr:last-child td { border-bottom: 0; }
.tbs .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Carte OTA */
.tbs .tbs-ota-head { display: flex; align-items: center; gap: 14px; }
.tbs .tbs-logo { flex: none; width: 104px; height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 6px; background: #fff; }
.tbs .tbs-logo img { max-width: 100%; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.tbs .tbs-dl { display: grid; margin: 0; }
.tbs .tbs-dl > div { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tbs .tbs-dl > div:last-child { border-bottom: 0; }
.tbs .tbs-dl dt { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0; }
.tbs .tbs-dl dd { font-size: .88rem; color: var(--ink); margin: 0; line-height: 1.4; }

/* Carte logos (channel manager) */
.tbs .tbs-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.tbs .tbs-logos li { height: 54px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; padding: 6px; }
.tbs .tbs-logos img { max-width: 100%; max-height: 36px; width: auto; height: auto; object-fit: contain; }

/* Carte checklist (métiers) */
.tbs .tbs-checks { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tbs .tbs-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.tbs .tbs-checks li svg.tba-ico { color: var(--teal-ink); margin-top: 2px; }
.tbs .tbs-checks b { display: block; color: var(--ink); font-weight: 700; }

@media (max-width: 1000px) { .tbs .tbs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 26px 48px; } .tbs .tbs-card { max-width: 600px; } }

/* ---------- Verdict ---------- */
.tbs .tbs-verdict-band { background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.tbs .tbs-verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-block: 32px; }
.tbs .tbs-verdict { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; background: var(--paper); display: grid; gap: 6px; align-content: start; }
.tbs .tbs-verdict p { font-size: .96rem; line-height: 1.55; color: var(--muted); }
.tbs .tbs-verdict .tbs-verdict-label { font-family: var(--tba-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.tbs .tbs-verdict-us { border-color: var(--teal); background: var(--tba-teal-tint); box-shadow: inset 4px 0 0 var(--teal); }
.tbs .tbs-verdict-us .tbs-verdict-label { color: var(--teal-ink); }
@media (max-width: 760px) { .tbs .tbs-verdict-grid { grid-template-columns: minmax(0, 1fr); padding-block: 24px; } }

/* ---------- Grille de fonctionnalités ---------- */
.tbs .tbs-feat-band { padding-block: 56px; }
.tbs .tbs-feats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.tbs .tbs-feats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; display: grid; gap: 6px; align-content: start; }
.tbs .tbs-feats li svg.tba-ico { color: var(--teal-ink); width: 22px; height: 22px; }
.tbs .tbs-feats b { font-family: var(--tba-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.tbs .tbs-feats span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
@media (max-width: 900px) { .tbs .tbs-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tbs .tbs-feats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Corps : texte + colonne ---------- */
.tbs .tbs-body { padding-block: 56px 72px; }
.tbs .tbs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.tbs .tbs-prose { max-width: 760px; min-width: 0; }
.tbs .tbs-prose h2 { scroll-margin-top: 120px; }
.tbs .tbs-prose strong { font-weight: 700; color: var(--ink); }
.tbs .tbs-prose .tbs-sources a { color: inherit; }
.tbs .tbs-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.tbs .tbs-toc { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); padding: 18px 18px 14px; }
.tbs .tbs-toc-title, .tbs .tbs-aside-title { font-family: var(--tba-display); font-weight: 800; font-size: .95rem; color: var(--ink); }
.tbs .tbs-toc ol { list-style: none; margin: 10px 0 0; padding: 0 4px 0 0; display: grid; gap: 2px; counter-reset: toc; max-height: max(180px, calc(100vh - 500px)); overflow-y: auto; overscroll-behavior: contain; }
.tbs .tbs-toc li { counter-increment: toc; }
.tbs .tbs-toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; padding: 6px 6px; border-radius: 8px; font-size: .84rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.tbs .tbs-toc a::before { content: counter(toc); font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.tbs .tbs-toc a:hover { background: var(--blue-tint); color: var(--ink); }
.tbs .tbs-aside-cta { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); padding: 20px; display: grid; gap: 12px; }
.tbs .tbs-aside-cta ul { display: grid; gap: 8px; font-size: .88rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.tbs .tbs-aside-cta li { display: flex; gap: 8px; align-items: flex-start; }
.tbs .tbs-aside-cta li svg.tba-ico { width: 16px; height: 16px; color: var(--teal-ink); margin-top: 3px; }
.tbs .tbs-aside-cta .tba-aside-alt { text-align: center; font-size: .88rem; color: var(--blue); }

/* Sommaire mobile */
.tbs .tbs-toc-m { display: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); padding: 0 16px; margin: 0 0 24px; }
.tbs .tbs-toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-family: var(--tba-display); font-weight: 800; color: var(--ink); }
.tbs .tbs-toc-m summary::-webkit-details-marker { display: none; }
.tbs .tbs-toc-m summary::after { content: "+"; margin-left: auto; color: var(--teal-ink); font-size: 1.2rem; }
.tbs .tbs-toc-m[open] summary::after { content: "–"; }
.tbs .tbs-toc-m summary svg.tba-ico { color: var(--blue); }
.tbs .tbs-prose .tbs-toc-m ol { list-style: decimal; margin: 0 0 14px; padding-left: 22px; font-size: .95rem; }
.tbs .tbs-prose .tbs-toc-m a { color: var(--ink); text-decoration: none; }
@media (max-width: 1000px) {
  .tbs .tbs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tbs .tbs-aside { position: static; max-height: none; overflow: visible; }
  .tbs .tbs-aside .tbs-toc { display: none; }
  .tbs .tbs-toc-m { display: block; }
}

/* Encadré « À retenir » */
.tbs .tbs-key { border-radius: var(--radius-md); background: var(--blue-tint); border: 1px solid #C9DAFB; padding: 20px 22px; margin: 0 0 32px; }
.tbs .tbs-prose .tbs-key-title { font-family: var(--tba-display); font-weight: 800; font-size: 1.02rem; color: var(--blue-deep); margin: 0 0 8px; }
.tbs .tbs-prose .tbs-key ul { margin: 0; padding-left: 20px; font-size: .98rem; }
.tbs .tbs-prose .tbs-key li + li { margin-top: .45em; }

/* Tableaux dans le texte */
.tbs .tbs-prose figure.wp-block-table { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); }
.tbs .tbs-prose figure.wp-block-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; line-height: 1.45; margin: 0; border: 0; }
.tbs .tbs-prose figure.wp-block-table th, .tbs .tbs-prose figure.wp-block-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); background: transparent; }
.tbs .tbs-prose figure.wp-block-table thead th { background: var(--paper); font-family: var(--tba-display); font-weight: 800; font-size: .86rem; color: var(--ink); }
.tbs .tbs-prose figure.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.tbs .tbs-prose figure.wp-block-table tbody td:first-child { font-weight: 600; }
.tbs .tbs-prose figure.wp-block-table tbody tr:nth-child(even) { background: transparent; }
.tbs .tbs-prose figure.wp-block-table figcaption { font-size: .8rem; color: var(--muted-2); padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; text-align: left; }

/* Encadrés */
.tbs .tbs-prose .tbs-tip { border-left: 4px solid var(--teal); background: var(--tba-teal-tint); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 1.4em 0; }
.tbs .tbs-prose .tbs-tip p { margin: 0; font-size: .98rem; }
.tbs .tbs-prose .tbs-tip p + p { margin-top: .4em; }
.tbs .tbs-prose .tbs-tip-title strong { color: var(--teal-ink); }

/* Bandeau CTA dans le texte */
.tbs .tbs-cta { margin: 2em 0; background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; position: relative; overflow: hidden; }
.tbs .tbs-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px 220px at 100% 0%, rgba(0,198,163,.35), transparent 70%); pointer-events: none; }
.tbs .tbs-cta > * { position: relative; }
.tbs .tbs-prose .tbs-cta p { margin: 0; color: inherit; }
.tbs .tbs-prose .tbs-cta .tbs-cta-title { font-family: var(--tba-display); font-weight: 800; font-size: 1.18rem; line-height: 1.3; color: #fff; }
.tbs .tbs-prose .tbs-cta .tbs-cta-text { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.84); }
.tbs .tbs-cta-btns { display: grid; gap: 8px; justify-items: center; }
.tbs .tbs-prose .tbs-cta a.tba-btn { color: #fff; text-decoration: none; }
.tbs .tbs-prose .tbs-cta a.tbs-cta-alt { color: rgba(255,255,255,.9); font-size: .86rem; text-decoration: underline; }
@media (max-width: 640px) { .tbs .tbs-cta { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } .tbs .tbs-cta-btns { justify-items: stretch; text-align: center; } }

/* Tableau comparatif complet dans le texte */
.tbs .tbs-prose .tbs-cmp-scroll { margin-top: 12px; padding-top: 6px; }
.tbs .tbs-prose .tbs-cmp { min-width: 560px; font-size: .9rem; }
.tbs .tbs-prose .tbs-cmp th, .tbs .tbs-prose .tbs-cmp td { padding: 12px 14px; }
.tbs .tbs-prose .tbs-cmp a.tba-btn { color: #fff; text-decoration: none; padding: 12px 18px; font-size: .92rem; }
.tbs .tbs-prose .tbs-table-note { font-size: .8rem; color: var(--muted-2); margin-top: 10px; }

/* Étapes */
.tbs .tbs-steps-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); padding: 24px; margin: 1.6em 0; display: grid; gap: 16px; justify-items: start; }
.tbs .tbs-steps-band .tbs-steps-box { margin: 0; padding: 32px; }
.tbs .tbs-prose .tbs-steps-kicker, .tbs .tbs-steps-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0; }
.tbs .tbs-prose ol.tbs-steps, .tbs ol.tbs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; counter-reset: st; width: 100%; }
.tbs .tbs-steps li { counter-increment: st; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); margin: 0; }
.tbs .tbs-prose .tbs-steps li + li { margin-top: 0; }
.tbs .tbs-steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; margin-bottom: 6px; }
.tbs .tbs-steps b { font-family: var(--tba-display); font-weight: 800; font-size: .98rem; color: var(--ink); line-height: 1.3; }
.tbs .tbs-steps span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.tbs .tbs-prose .tbs-steps-box a.tba-btn { color: #fff; text-decoration: none; }

/* ---------- Liens connexes ---------- */
.tbs .tbs-related { padding-block: 64px; }
.tbs .tbs-rel { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.tbs .tbs-rel-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tbs .tbs-rel a { display: grid; gap: 4px; align-content: start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); text-decoration: none; transition: border-color .15s, transform .15s; }
.tbs .tbs-rel a:hover { border-color: var(--blue); transform: translateY(-2px); }
.tbs .tbs-rel b { font-family: var(--tba-display); font-weight: 800; color: var(--ink); font-size: 1rem; }
.tbs .tbs-rel span { color: var(--muted); font-size: .86rem; }
.tbs .tbs-rel .tbs-rel-logo { height: 44px; display: flex; align-items: center; margin-bottom: 6px; }
.tbs .tbs-rel .tbs-rel-logo img { max-height: 40px; max-width: 110px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .tbs .tbs-rel, .tbs .tbs-rel-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tbs .tbs-rel, .tbs .tbs-rel-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tbs .tbs-related { padding-block: 48px; } }

@media (max-width: 480px) {
  .tbs .tbs-crumbs li[aria-current] { max-width: 24ch; }
  .tbs .tbs-card { padding: 18px 16px 14px; }
  .tbs .tbs-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbs .tbs-body { padding-block: 36px 48px; }
  .tbs .tbs-steps-band .tbs-steps-box { padding: 20px 16px; }
}
