/*
Theme Name: Tech/Inside
Theme URI: https://techinside.fr
Author: Tech Inside
Author URI: https://techinside.fr
Description: Thème éditorial personnalisé pour Tech/Inside. Design system split-accent bleu/orange, annuaire marques, SEO/GEO optimisé, Rank Math compatible.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: techinside
*/

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --ti-org:        #FF4400;
  --ti-org-dark:   #cc3500;
  --ti-org-mid:    #ff7744;
  --ti-org-dim:    #fff3ee;
  --ti-blue:       #0047FF;
  --ti-blue-light: #edf0ff;
  --ti-blue-mid:   #7a9aff;
  --ti-bg:         #f7f7f5;
  --ti-bg2:        #efefec;
  --ti-bg3:        #e6e5e0;
  --ti-line:       #e2e1db;
  --ti-text:       #0f0f0e;
  --ti-muted:      #767470;
  --ti-dim:        #aeaca6;
  --ti-white:      #ffffff;
  --ti-font-body:  'Familjen Grotesk', sans-serif;
  --ti-font-mono:  'JetBrains Mono', monospace;
  --ti-max:        1280px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ti-font-body);
  background: var(--ti-bg);
  color: var(--ti-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ti-font-body);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ti-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-style: italic; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
p  { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.78; }
.ti-mono { font-family: var(--ti-font-mono); font-size: .6875rem; letter-spacing: .07em; }

/* ═══════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */
.ti-wrap    { max-width: var(--ti-max); margin: 0 auto; padding: 0 28px; }
.ti-grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--ti-line); }
.ti-grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--ti-line); }
.ti-grid-2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--ti-line); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ═══════════════════════════════════════════════════════
   SLASH TAG  — the core UI motif
═══════════════════════════════════════════════════════ */
.ti-slash-tag {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ti-blue);
}
.ti-slash-tag::before { content: '/'; color: var(--ti-org); font-size: .75rem; }
.ti-slash-tag--solid  { background: var(--ti-org); color: #fff; padding: 3px 9px; }
.ti-slash-tag--solid::before { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.ti-btn {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.ti-btn--blue  { background: var(--ti-blue); color: #fff; }
.ti-btn--blue:hover { background: #0035cc; }
.ti-btn--org   { background: var(--ti-org); color: #fff; }
.ti-btn--org:hover { background: var(--ti-org-dark); }
.ti-btn--ghost { background: transparent; color: var(--ti-muted); border: 1px solid var(--ti-line); }
.ti-btn--ghost:hover { border-color: var(--ti-blue); color: var(--ti-blue); }

/* ═══════════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════════ */
.ti-ticker {
  background: var(--ti-org);
  height: 31px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ti-ticker__badge {
  background: var(--ti-org-dark);
  color: #fff;
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.ti-ticker__badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: ti-blink 1.2s ease-in-out infinite;
}
@keyframes ti-blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.ti-ticker__track {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
}
.ti-ticker__content {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ti-scroll 50s linear infinite;
  padding: 0 24px;
  font-size: .6875rem;
  color: rgba(255,255,255,.75);
}
.ti-ticker__content:hover { animation-play-state: paused; }
@keyframes ti-scroll { 0%{ transform: translateX(0) } 100%{ transform: translateX(-50%) } }
.ti-ticker__content strong { color: #fff; font-weight: 600; }
.ti-ticker__sep { color: rgba(255,255,255,.3); margin: 0 14px; }

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
.ti-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 28px;
  background: var(--ti-white);
  border-bottom: 1px solid var(--ti-line);
}
.ti-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
  flex-shrink: 0;
  text-decoration: none;
}
.ti-logo-wrap img { height: 28px; width: auto; display: block; }
/* CSS fallback mark (shown if no custom logo set) */
.ti-logo-mark { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.ti-logo-mark__back { position: absolute; bottom:0; left:0; width:21px; height:21px; background:#c8520a; }
.ti-logo-mark__front { position: absolute; top:0; right:0; width:21px; height:21px; background:#f5ede0; border:1.5px solid #e8956a; }
.ti-logo-text { font-size:14px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ti-text); }
.ti-logo-slash { color: var(--ti-org); }

.ti-nav__links { display: flex; }
.ti-nav__links a {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--ti-muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 15px;
  height: 58px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--ti-line);
  position: relative;
  transition: color .15s;
}
.ti-nav__links a:first-child { border-left: 1px solid var(--ti-line); }
.ti-nav__links a:hover,
.ti-nav__links a[aria-current="page"] { color: var(--ti-blue); }
.ti-nav__links a:hover::after,
.ti-nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ti-blue);
}
.ti-nav__right { margin-left: auto; }

/* Mobile nav toggle */
.ti-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.ti-nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ti-text); transition: all .2s; }

/* ═══════════════════════════════════════════════════════
   SECTION BAR
═══════════════════════════════════════════════════════ */
.ti-secbar {
  padding: 10px 28px;
  background: var(--ti-white);
  border-top: 1px solid var(--ti-line);
  border-bottom: 1px solid var(--ti-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ti-secbar__label {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  font-weight: 500;
  color: var(--ti-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ti-secbar__label::before { content: '//'; color: var(--ti-blue); }
.ti-secbar__link {
  margin-left: auto;
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  color: var(--ti-blue);
  display: flex;
  align-items: center;
  gap: 3px;
}
.ti-secbar__link::before { content: '/'; color: var(--ti-org); }

/* ═══════════════════════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════════════════════ */
.ti-filters { display: flex; margin-left: 14px; }
.ti-filter {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  color: var(--ti-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--ti-line);
  border-right: none;
  cursor: pointer;
  background: var(--ti-white);
  transition: all .1s;
}
.ti-filter:last-child { border-right: 1px solid var(--ti-line); }
.ti-filter.is-active  { background: var(--ti-blue); color: #fff; border-color: var(--ti-blue); }
.ti-filter:hover:not(.is-active) { background: var(--ti-blue-light); color: var(--ti-blue); border-color: var(--ti-blue-mid); }

/* ═══════════════════════════════════════════════════════
   BLUE GRADIENT RULE
═══════════════════════════════════════════════════════ */
.ti-blue-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--ti-blue) 0%, var(--ti-blue-mid) 60%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════
   SCORE BADGE
═══════════════════════════════════════════════════════ */
.ti-score { font-family: var(--ti-font-mono); font-size: 2.125rem; font-weight: 500; color: var(--ti-org); line-height: 1; }
.ti-score__label { font-family: var(--ti-font-mono); font-size: .5rem; color: var(--ti-dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

/* ═══════════════════════════════════════════════════════
   VERDICT TAGS
═══════════════════════════════════════════════════════ */
.ti-vtag { font-size: .625rem; font-family: var(--ti-font-mono); padding: 3px 8px; border: 1px solid var(--ti-line); color: var(--ti-muted); display: inline-block; }
.ti-vtag--pos { border-color: var(--ti-blue-mid); color: var(--ti-blue); background: var(--ti-blue-light); }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
.ti-hero {
  display: grid;
  grid-template-columns: 1fr 316px;
  border-bottom: 2px solid var(--ti-text);
}
.ti-hero__main {
  border-right: 1px solid var(--ti-line);
  display: flex;
  flex-direction: column;
  background: var(--ti-white);
}
.ti-hero__img { width: 100%; aspect-ratio: 16/7.5; overflow: hidden; display: block; }
.ti-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.ti-hero__img--placeholder {
  width: 100%; aspect-ratio: 16/7.5;
  background: linear-gradient(135deg, var(--ti-bg2) 0%, var(--ti-bg3) 100%);
  position: relative; overflow: hidden;
}
/* Square deco in hero placeholder */
.ti-hero__img--placeholder::before {
  content: ''; position: absolute;
  right: -14px; top: -14px;
  width: 140px; height: 140px;
  background: var(--ti-blue); opacity: .07;
}
.ti-hero__img--placeholder::after {
  content: ''; position: absolute;
  left: -8px; bottom: -8px;
  width: 96px; height: 96px;
  background: var(--ti-org); opacity: .12;
}
.ti-hero__body { padding: 24px 28px 22px; display: flex; flex-direction: column; gap: 0; }

.ti-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ti-eyebrow__rule { flex: 1; height: 1px; background: var(--ti-line); }
.ti-eyebrow__date { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); }

.ti-hero__title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; font-style: italic; letter-spacing: -.03em; color: var(--ti-text); margin-bottom: 16px; }
.ti-hero__title em { font-style: normal; color: var(--ti-blue); }

.ti-verdict {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ti-line);
  border-bottom: 1px solid var(--ti-line);
  margin-bottom: 14px;
}
.ti-verdict__divider { width: 1px; background: var(--ti-line); align-self: stretch; flex-shrink: 0; }
.ti-vtags { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 2px; }

.ti-hero__meta { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); display: flex; gap: 10px; }
.ti-hero__meta span::before { content: '/ '; color: var(--ti-org); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.ti-sidebar { display: flex; flex-direction: column; background: var(--ti-bg); }
.ti-sidebar__hd {
  padding: 12px 18px;
  font-family: var(--ti-font-mono); font-size: .5625rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ti-dim);
  border-bottom: 2px solid var(--ti-blue); background: var(--ti-white);
  display: flex; align-items: center; gap: 6px;
}
.ti-sidebar__hd::before { content: '//'; color: var(--ti-blue); font-size: .625rem; }
.ti-si {
  padding: 13px 18px; border-bottom: 1px solid var(--ti-line);
  cursor: pointer; transition: background .12s;
  display: flex; flex-direction: column; gap: 5px; background: var(--ti-white);
  text-decoration: none;
}
.ti-si:hover { background: var(--ti-blue-light); }
.ti-si__cat {
  font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-blue);
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 3px;
}
.ti-si__cat::before { content: '/'; color: var(--ti-org); }
.ti-si__title { font-size: .75rem; font-weight: 700; color: var(--ti-text); line-height: 1.38; }
.ti-si__date { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); }

/* ═══════════════════════════════════════════════════════
   HIGHLIGHT ROW
═══════════════════════════════════════════════════════ */
.ti-hl-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--ti-line); background: var(--ti-line);
  gap: 1px;
}
.ti-hl {
  padding: 20px 22px; cursor: pointer; transition: background .12s;
  display: flex; flex-direction: column; gap: 7px;
  position: relative; overflow: hidden; background: var(--ti-bg2);
  text-decoration: none;
}
.ti-hl:hover { background: var(--ti-white); }
.ti-hl::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:3px;
  background: var(--ti-org); transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.ti-hl:hover::before { transform: scaleX(1); }
.ti-hl__tag {
  font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-org);
  text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; gap: 3px;
}
.ti-hl__tag::before { content: '/'; color: var(--ti-blue); }
.ti-hl__title { font-size: .875rem; font-weight: 700; color: var(--ti-text); line-height: 1.38; }
.ti-hl__meta { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); }

/* ═══════════════════════════════════════════════════════
   ARTICLE CARD
═══════════════════════════════════════════════════════ */
.ti-card {
  background: var(--ti-white); padding: 18px; cursor: pointer;
  position: relative; overflow: hidden; transition: background .12s;
}
.ti-card:hover { background: var(--ti-blue-light); }
.ti-card::after {
  content: ''; position: absolute; top:0; left:0; right:0; height:2px;
  background: var(--ti-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.ti-card:hover::after { transform: scaleX(1); }
.ti-card__thumb {
  width: 100%; aspect-ratio: 16/9; background: var(--ti-bg2); margin-bottom: 13px;
  overflow: hidden; position: relative; display: block;
}
.ti-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ti-card:hover .ti-card__thumb img { transform: scale(1.03); }
/* Square deco motif — echoes logo geometry */
.ti-card__thumb::after {
  content: ''; position: absolute; bottom:-5px; right:-5px;
  width: 22px; height: 22px; background: var(--ti-org); z-index: 2;
}
.ti-card__thumb::before {
  content: ''; position: absolute; bottom:4px; right:4px;
  width: 18px; height: 18px; border: 1.5px solid var(--ti-org-mid); background: var(--ti-bg2); z-index: 3;
}
.ti-card__cat {
  font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-org);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px;
  display: flex; align-items: center; gap: 3px;
}
.ti-card__cat::before { content: '/'; color: var(--ti-blue); }
.ti-card__title { font-size: .8125rem; font-weight: 700; line-height: 1.42; margin-bottom: 7px; color: var(--ti-text); }
.ti-card__title a { color: inherit; }
.ti-card__title a:hover { color: var(--ti-blue); }
.ti-card__date { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); }

/* ═══════════════════════════════════════════════════════
   BRAND STRIP
═══════════════════════════════════════════════════════ */
.ti-brands {
  border-top: 2px solid var(--ti-text);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 9px;
  background: var(--ti-text); flex-wrap: wrap;
}
.ti-brands__label {
  font-family: var(--ti-font-mono); font-size: .5625rem; color: #555;
  text-transform: uppercase; letter-spacing: .14em; flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
}
.ti-brands__label::before { content: '//'; color: var(--ti-org); }
.ti-brand-pill {
  font-family: var(--ti-font-mono); font-size: .5625rem; color: #555;
  border: 1px solid #262522; padding: 4px 12px; cursor: pointer;
  transition: all .12s; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.ti-brand-pill:hover { border-color: var(--ti-blue); color: #7a9aff; }
.ti-brand-pill--more { color: var(--ti-org); border-color: rgba(255,68,0,.2); }
.ti-brand-pill--more:hover { border-color: var(--ti-org); color: var(--ti-org); }

/* ═══════════════════════════════════════════════════════
   ARTICLE PAGE
═══════════════════════════════════════════════════════ */
.ti-article-wrap { max-width: var(--ti-max); margin: 0 auto; }
.ti-article-layout {
  display: grid; grid-template-columns: 1fr 300px;
  border-left: 1px solid var(--ti-line); border-right: 1px solid var(--ti-line);
}
.ti-article-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }
.ti-article-header {
  padding: 32px 36px 24px; background: var(--ti-white); border-bottom: 1px solid var(--ti-line);
}
.ti-article-header h1 { margin-bottom: 16px; }
.ti-article-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); margin-top: 14px;
}
.ti-article-meta .slash { color: var(--ti-org); }
.ti-article-body {
  padding: 32px 36px; background: var(--ti-white); border-bottom: 1px solid var(--ti-line);
}
.ti-article-body p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.5rem; color: #1e1c1a; }
.ti-article-body h2 { margin: 2.25rem 0 1rem; font-size: 1.5rem; }
.ti-article-body h3 { margin: 1.75rem 0 .75rem; font-size: 1.2rem; }
.ti-article-body ul, .ti-article-body ol { margin: 1rem 0 1.5rem 1.25rem; }
.ti-article-body ul { list-style: disc; }
.ti-article-body ol { list-style: decimal; }
.ti-article-body li { margin-bottom: .5rem; line-height: 1.7; }
.ti-article-body blockquote {
  border-left: 3px solid var(--ti-blue); padding: 12px 20px;
  background: var(--ti-blue-light); margin: 1.5rem 0; font-style: italic; color: var(--ti-muted);
}
.ti-article-body a { color: var(--ti-blue); text-decoration: underline; text-underline-offset: 3px; }
.ti-article-body strong { font-weight: 700; }
.ti-article-body img { margin: 1.5rem 0; border: 1px solid var(--ti-line); }

/* TOC */
.ti-toc {
  position: sticky; top: 70px; padding: 20px 18px;
  border-left: 1px solid var(--ti-line); background: var(--ti-white);
  max-height: calc(100vh - 90px); overflow-y: auto; align-self: flex-start;
}
.ti-toc__title {
  font-family: var(--ti-font-mono); font-size: .5625rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ti-dim); margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.ti-toc__title::before { content: '//'; color: var(--ti-blue); }
.ti-toc a {
  display: block; font-family: var(--ti-font-mono); font-size: .625rem; color: var(--ti-muted);
  padding: 5px 0 5px 10px; border-left: 2px solid transparent; transition: all .12s; line-height: 1.4;
}
.ti-toc a:hover, .ti-toc a.is-active { color: var(--ti-blue); border-left-color: var(--ti-blue); }
.ti-toc a.ti-toc__h3 { padding-left: 20px; font-size: .5625rem; color: var(--ti-dim); }

/* Verdict on article page */
.ti-verdict--article { background: var(--ti-bg2); padding: 16px 20px; margin-bottom: 16px; }

/* FAQ block */
.ti-faq-block { background: var(--ti-white); border-top: 1px solid var(--ti-line); }
.ti-faq-item { padding: 20px 36px; border-bottom: 1px solid var(--ti-line); }
.ti-faq-q {
  font-size: 1rem; font-weight: 700; color: var(--ti-text); margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 10px;
}
.ti-faq-q::before {
  content: 'Q'; font-family: var(--ti-font-mono); font-size: .5625rem;
  color: var(--ti-blue); background: var(--ti-blue-light); padding: 3px 7px;
  flex-shrink: 0; margin-top: 2px;
}
.ti-faq-a { font-size: 1rem; line-height: 1.75; color: var(--ti-muted); padding-left: 32px; }

/* ═══════════════════════════════════════════════════════
   CATEGORY / ARCHIVE PAGE
═══════════════════════════════════════════════════════ */
.ti-archive-header {
  padding: 32px 28px; background: var(--ti-white); border-bottom: 2px solid var(--ti-text);
  display: flex; align-items: flex-end; gap: 20px;
}
.ti-archive-header h1 { margin: 0; font-style: italic; }
.ti-archive-count { font-family: var(--ti-font-mono); font-size: .6875rem; color: var(--ti-dim); margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════
   BRAND DIRECTORY PAGE  (/marque/)
═══════════════════════════════════════════════════════ */
.ti-brand-index { padding: 28px; }
.ti-brand-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--ti-line);
}
.ti-brand-card {
  background: var(--ti-white); padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .12s; position: relative; overflow: hidden;
  text-decoration: none;
}
.ti-brand-card:hover { background: var(--ti-blue-light); }
.ti-brand-card::after {
  content: ''; position: absolute; top:0; left:0; right:0; height:2px;
  background: var(--ti-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.ti-brand-card:hover::after { transform: scaleX(1); }
.ti-brand-card__logo { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--ti-line); padding: 8px; }
.ti-brand-card__name { font-size: .9375rem; font-weight: 700; color: var(--ti-text); }
.ti-brand-card__seg { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-blue); text-transform: uppercase; letter-spacing: .1em; }
.ti-brand-card__score {
  font-family: var(--ti-font-mono); font-size: 1.125rem; font-weight: 500; color: var(--ti-org);
}

/* Single brand page */
.ti-brand-header {
  padding: 32px 28px; background: var(--ti-white); border-bottom: 2px solid var(--ti-text);
  display: grid; grid-template-columns: 100px 1fr; gap: 28px; align-items: center;
}
.ti-brand-header__logo { width: 100px; height: 100px; object-fit: contain; border: 1px solid var(--ti-line); padding: 12px; }
.ti-brand-header__name { font-size: clamp(1.5rem,4vw,2.5rem); font-style: italic; }
.ti-brand-header__meta { font-family: var(--ti-font-mono); font-size: .5625rem; color: var(--ti-dim); margin-top: 8px; display: flex; gap: 14px; }

.ti-brand-scores {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--ti-line);
  border-bottom: 1px solid var(--ti-line);
}
.ti-brand-score {
  padding: 16px 20px; background: var(--ti-white); text-align: center;
}
.ti-brand-score__num { font-family: var(--ti-font-mono); font-size: 1.75rem; font-weight: 500; color: var(--ti-org); }
.ti-brand-score__lbl { font-family: var(--ti-font-mono); font-size: .5rem; color: var(--ti-dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

.ti-brand-proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ti-line);
  border-bottom: 1px solid var(--ti-line);
}
.ti-brand-pros, .ti-brand-cons { padding: 20px 24px; background: var(--ti-white); }
.ti-brand-pros h3, .ti-brand-cons h3 {
  font-family: var(--ti-font-mono); font-size: .5625rem; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.ti-brand-pros h3 { color: var(--ti-blue); }
.ti-brand-pros h3::before { content: '//'; color: var(--ti-org); }
.ti-brand-cons h3 { color: var(--ti-muted); }
.ti-brand-cons h3::before { content: '//'; color: var(--ti-org); }
.ti-brand-pros li, .ti-brand-cons li {
  font-size: .875rem; line-height: 1.6; padding: 6px 0;
  border-bottom: 1px solid var(--ti-line); display: flex; align-items: flex-start; gap: 8px;
}
.ti-brand-pros li::before { content: '+'; color: var(--ti-blue); font-family: var(--ti-font-mono); font-weight: 500; flex-shrink: 0; }
.ti-brand-cons li::before { content: '−'; color: var(--ti-org); font-family: var(--ti-font-mono); font-weight: 500; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.ti-pagination { display: flex; justify-content: center; padding: 32px; gap: 0; }
.ti-pagination a, .ti-pagination span {
  font-family: var(--ti-font-mono); font-size: .5625rem; padding: 7px 13px;
  border: 1px solid var(--ti-line); border-right: none; color: var(--ti-muted); transition: all .1s;
}
.ti-pagination a:last-child, .ti-pagination span:last-child { border-right: 1px solid var(--ti-line); }
.ti-pagination .current { background: var(--ti-blue); color: #fff; border-color: var(--ti-blue); }
.ti-pagination a:hover { background: var(--ti-blue-light); color: var(--ti-blue); border-color: var(--ti-blue-mid); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.ti-footer { background: var(--ti-text); color: #555; font-family: var(--ti-font-mono); font-size: .6875rem; }
.ti-footer__top {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 28px;
  border-bottom: 1px solid #1e1e1c;
}
.ti-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.ti-footer__brand img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.ti-footer__desc { font-size: .75rem; color: #444; line-height: 1.6; font-family: var(--ti-font-body); }
.ti-footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.ti-footer .widget-title {
  font-family: var(--ti-font-mono); font-size: .5625rem; text-transform: uppercase;
  letter-spacing: .12em; color: #333; margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.ti-footer .widget-title::before { content: '//'; color: var(--ti-org); }
.ti-footer a { color: #444; transition: color .12s; }
.ti-footer a:hover { color: #7a9aff; }
.ti-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; font-size: .5625rem; color: #333; border-top: 1px solid #1e1e1c;
}
.ti-footer__menu { display: flex; gap: 20px; }
.ti-footer__menu a { color: #333; }
.ti-footer__menu a:hover { color: #555; }

/* ═══════════════════════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════════════════════ */
.ti-search-header { padding: 28px; background: var(--ti-white); border-bottom: 1px solid var(--ti-line); }
.ti-search-header h1 { font-size: 1.5rem; }
.ti-search-header span { color: var(--ti-org); font-style: normal; }
.ti-no-results { padding: 48px 28px; text-align: center; color: var(--ti-muted); }

/* ═══════════════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════════════ */
.ti-404 { padding: 80px 28px; text-align: center; }
.ti-404__code {
  font-family: var(--ti-font-mono); font-size: 6rem; font-weight: 500;
  color: var(--ti-line); line-height: 1; margin-bottom: 24px;
}
.ti-404__code span { color: var(--ti-org); }
.ti-404 h1 { font-size: 1.5rem; margin-bottom: 12px; }
.ti-404 p { color: var(--ti-muted); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════ */
.ti-comments { padding: 32px 36px; background: var(--ti-white); border-top: 1px solid var(--ti-line); }
.ti-comments h2 { font-size: 1.125rem; margin-bottom: 24px; }
.comment-form label { display: block; font-family: var(--ti-font-mono); font-size: .5625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ti-muted); margin-bottom: 6px; }
.comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid var(--ti-line); background: var(--ti-bg2);
  padding: 10px 14px; font-family: var(--ti-font-body); font-size: .9375rem;
  outline: none; transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ti-blue); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ti-hero { grid-template-columns: 1fr; }
  .ti-hero__main { border-right: none; border-bottom: 1px solid var(--ti-line); }
  .ti-sidebar { border-top: 1px solid var(--ti-line); }
  .ti-grid-4 { grid-template-columns: repeat(2,1fr); }
  .ti-brand-grid { grid-template-columns: repeat(3,1fr); }
  .ti-brand-scores { grid-template-columns: repeat(2,1fr); }
  .ti-article-layout { grid-template-columns: 1fr; }
  .ti-toc { display: none; }
  .ti-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .ti-footer__cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .ti-nav__links { display: none; }
  .ti-nav__links.is-open { display: flex; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--ti-white); border-bottom: 2px solid var(--ti-line); z-index: 300; }
  .ti-nav__links.is-open a { height: 48px; border-right: none; border-bottom: 1px solid var(--ti-line); padding: 0 24px; }
  .ti-nav__toggle { display: flex; }
  .ti-nav__right { display: none; }
  .ti-hl-row { grid-template-columns: 1fr; }
  .ti-grid-4 { grid-template-columns: 1fr; }
  .ti-grid-3 { grid-template-columns: 1fr; }
  .ti-brand-grid { grid-template-columns: repeat(2,1fr); }
  .ti-brand-proscons { grid-template-columns: 1fr; }
  .ti-article-header, .ti-article-body, .ti-faq-item { padding: 20px 18px; }
  .ti-footer__cols { grid-template-columns: 1fr; }
  .ti-footer__bottom { flex-direction: column; gap: 10px; }
  .ti-brands { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .ti-brand-grid { grid-template-columns: 1fr; }
  .ti-brand-scores { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   READABILITY & LAYOUT PATCH v2
   All fixes baked in — no CSS additionnel needed
═══════════════════════════════════════════════════════ */

/* ── BASE FONT SCALE ─────────────────────────────────── */
html { font-size: 20px; }

/* ── NAV ─────────────────────────────────────────────── */
.ti-nav { height: 64px; }
.ti-nav__links a {
  height: 64px;
  font-size: .75rem;
  letter-spacing: .05em;
}
.ti-logo-wrap img { height: 34px; }

/* ── TICKER ──────────────────────────────────────────── */
.ti-ticker { height: 34px; }
.ti-ticker__content { font-size: .8125rem; }
.ti-ticker__badge { font-size: .625rem; padding: 0 18px; }

/* ── HERO IMAGE ──────────────────────────────────────── */
.ti-hero__img,
.ti-hero__img img { aspect-ratio: 16/8; }

/* ── HERO BODY ───────────────────────────────────────── */
.ti-hero__body { padding: 28px 32px 26px; }

.ti-hero__title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.ti-hero__title a { color: var(--ti-text); }
.ti-hero__title a:hover { color: var(--ti-blue); }

.ti-hero__meta { font-size: .6875rem; gap: 12px; }
.ti-hero__meta span::before { content: '/ '; color: var(--ti-org); }

/* ── SLASH TAGS ──────────────────────────────────────── */
.ti-slash-tag { font-size: .6875rem; }
.ti-slash-tag--solid {
  font-size: .625rem;
  padding: 4px 11px;
  font-weight: 600;
}

/* ── EYEBROW ─────────────────────────────────────────── */
.ti-eyebrow { margin-bottom: 16px; gap: 12px; }
.ti-eyebrow__date { font-size: .6875rem; }

/* ── VERDICT TAGS ────────────────────────────────────── */
.ti-vtag { font-size: .6875rem; padding: 4px 10px; }

/* ── SCORE ───────────────────────────────────────────── */
.ti-score { font-size: 2.5rem; }
.ti-score__label { font-size: .625rem; }

/* ── SIDEBAR ─────────────────────────────────────────── */
.ti-sidebar__hd {
  font-size: .6875rem;
  padding: 14px 20px;
  letter-spacing: .12em;
}
.ti-si { padding: 15px 20px; gap: 6px; }
.ti-si__cat { font-size: .6875rem; }
.ti-si__title { font-size: .875rem; line-height: 1.42; }
.ti-si__date { font-size: .6875rem; }

/* ── HIGHLIGHT ROW ───────────────────────────────────── */
.ti-hl { padding: 22px 24px; gap: 9px; }
.ti-hl__tag { font-size: .6875rem; }
.ti-hl__title { font-size: 1rem; line-height: 1.4; }
.ti-hl__meta { font-size: .6875rem; }

/* ── SECTION BAR ─────────────────────────────────────── */
.ti-secbar { padding: 12px 32px; }
.ti-secbar__label { font-size: .6875rem; }
.ti-secbar__link { font-size: .6875rem; }

/* ── FILTER TABS ─────────────────────────────────────── */
.ti-filter { font-size: .6875rem; padding: 6px 14px; }

/* ── ARTICLE CARDS ───────────────────────────────────── */
.ti-card { padding: 20px; }
.ti-card__cat { font-size: .6875rem; margin-bottom: 8px; }
.ti-card__title {
  font-size: .9375rem;
  line-height: 1.45;
  margin-bottom: 8px;
}
.ti-card__date { font-size: .6875rem; }

/* ── BRAND STRIP ─────────────────────────────────────── */
.ti-brands { padding: 16px 32px; gap: 10px; }
.ti-brands__label { font-size: .6875rem; }
.ti-brand-pill { font-size: .6875rem; padding: 5px 14px; }

/* ── ARTICLE PAGE — LAYOUT ───────────────────────────── */
.ti-article-header {
  padding: 36px 40px 28px;
}
.ti-article-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

/* Constrain article body width for optimal line length */
.ti-article-col {
  max-width: 100%;
}
.ti-article-body {
  padding: 36px 40px;
}
.ti-article-body > *:not(figure):not(.wp-block-image) {
  max-width: 760px;
}
.ti-article-body p {
  font-size: 1.0625rem;
  line-height: 1.82;
  margin-bottom: 1.5rem;
  color: #1e1c1a;
  max-width: 760px;
}
.ti-article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  max-width: 760px;
}
.ti-article-body h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 .75rem;
  max-width: 760px;
}
.ti-article-body ul,
.ti-article-body ol {
  max-width: 760px;
  margin: 1rem 0 1.5rem 1.5rem;
}
.ti-article-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: .5rem;
}
.ti-article-body blockquote {
  max-width: 760px;
  border-left: 3px solid var(--ti-blue);
  padding: 14px 20px;
  background: var(--ti-blue-light);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ti-muted);
  font-size: 1rem;
}

/* ── ARTICLE META ────────────────────────────────────── */
.ti-article-meta {
  font-size: .6875rem;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ── VERDICT ON ARTICLE PAGE ─────────────────────────── */
.ti-verdict--article {
  background: var(--ti-bg2);
  padding: 16px 20px;
  margin-bottom: 18px;
  max-width: 760px;
}

/* ── TOC — DESKTOP ───────────────────────────────────── */
.ti-toc { padding: 24px 20px; }
.ti-toc__title {
  font-size: .6875rem;
  margin-bottom: 16px;
  letter-spacing: .12em;
}
.ti-toc a {
  font-size: .75rem;
  padding: 6px 0 6px 12px;
  line-height: 1.45;
  font-family: var(--ti-font-body);
  letter-spacing: 0;
}
.ti-toc a.ti-toc__h3 {
  font-size: .6875rem;
  padding-left: 22px;
}

/* ── TOC — MOBILE DRAWER ─────────────────────────────── */
/* Hide on desktop — only show on tablet/mobile */
.ti-toc-mobile { display: none; }
@media (max-width: 1100px) {
  .ti-toc-mobile { display: block; }
}
.ti-toc-mobile__toggle {
  font-size: .6875rem;
  padding: 13px 20px;
}
.ti-toc-mobile__content a {
  display: block;
  font-family: var(--ti-font-body);
  font-size: .875rem;
  color: var(--ti-muted);
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  transition: all .12s;
  line-height: 1.45;
  letter-spacing: 0;
}
.ti-toc-mobile__content a:hover,
.ti-toc-mobile__content a.is-active {
  color: var(--ti-blue);
  border-left-color: var(--ti-blue);
}
.ti-toc-mobile__content a.ti-toc__h3 {
  padding-left: 22px;
  font-size: .8125rem;
  color: var(--ti-dim);
}

/* ── FAQ BLOCK ───────────────────────────────────────── */
.ti-faq-item { padding: 24px 40px; }
.ti-faq-q {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}
.ti-faq-a {
  font-size: 1rem;
  line-height: 1.78;
  padding-left: 32px;
}

/* ── BRAND PAGE ──────────────────────────────────────── */
.ti-brand-header { padding: 36px 32px; gap: 24px; }
.ti-brand-header__name {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}
.ti-brand-header__meta {
  font-size: .75rem;
  gap: 16px;
  margin-top: 10px;
}
.ti-brand-score__num { font-size: 2rem; }
.ti-brand-score__lbl { font-size: .5625rem; }
.ti-brand-pros li,
.ti-brand-cons li { font-size: .9375rem; line-height: 1.65; }

/* ── BRAND DIRECTORY ─────────────────────────────────── */
.ti-archive-header { padding: 32px 32px; }
.ti-archive-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ti-archive-count { font-size: .6875rem; margin-bottom: 6px; }
.ti-brand-card__name { font-size: .9375rem; }
.ti-brand-card__seg { font-size: .6875rem; }
.ti-brand-card__score { font-size: 1.125rem; }

/* ── PAGINATION ──────────────────────────────────────── */
.ti-pagination a,
.ti-pagination span { font-size: .6875rem; padding: 8px 14px; }

/* ── SEARCH / 404 ────────────────────────────────────── */
.ti-search-header { padding: 28px 32px; }
.ti-search-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.ti-archive-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.ti-404__code { font-size: 5rem; }
.ti-404 h1 { font-size: 1.4rem; }
.ti-404 p { font-size: 1rem; }

/* ── FOOTER — FULL REWORK ────────────────────────────── */
.ti-footer { font-family: var(--ti-font-body); font-size: .9375rem; }

.ti-footer__top {
  padding: 48px 32px;
  gap: 48px;
}
.ti-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logo in footer — invert to white if no dark variant set */
.ti-footer__brand img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}

.ti-footer__desc {
  font-family: var(--ti-font-body);
  font-size: .9375rem;
  line-height: 1.65;
  color: #555;
  letter-spacing: 0;
}

.ti-footer__cols { gap: 36px; }

/* Footer widget titles */
.ti-footer .widget-title {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #444;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ti-footer .widget-title::before { content: '//'; color: var(--ti-org); }

/* Footer nav links */
.ti-footer a {
  font-family: var(--ti-font-body);
  font-size: .9375rem;
  color: #555;
  line-height: 1.8;
  letter-spacing: 0;
  transition: color .12s;
}
.ti-footer a:hover { color: #8aabff; }

/* Footer widget list items */
.ti-footer ul { list-style: none; }
.ti-footer ul li { margin-bottom: 6px; }

.ti-footer__bottom {
  padding: 16px 32px;
  border-top: 1px solid #1e1e1c;
}
.ti-footer__bottom > span {
  font-family: var(--ti-font-mono);
  font-size: .5625rem;
  color: #333;
  letter-spacing: .06em;
}

/* Footer menu — bottom bar */
.ti-footer__menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ti-footer__menu a {
  font-family: var(--ti-font-body);
  font-size: .8125rem;
  color: #333;
  letter-spacing: 0;
}
.ti-footer__menu a:hover { color: #666; }

/* ── GLOBAL MONO SCALE ───────────────────────────────── */
.ti-mono { font-size: .6875rem; }

