/* topeo-shared.css — Design v2 — Charte commune toutes pages */
:root {
  --bg: #f5f6f8;
  --white: #ffffff;
  --navy: #0f2d5c;
  --blue: #1a56db;
  --blue-light: #eff4ff;
  --blue-mid: #dbeafe;
  --green: #059669;
  --green-light: #ecfdf5;
  --orange: #ea6c00;
  --red: #dc2626;
  --text: #111827;
  --text2: #374151;
  --text3: #6b7280;
  --text4: #9ca3af;
  --border: #e5e7eb;
  --border2: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Plus Jakarta Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* TOPBAR */
.topbar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 0.78rem; padding: 7px 0; text-align: center; }
.topbar a { color: rgba(255,255,255,0.9); text-decoration: none; }
.topbar strong { color: #fff; }

/* HEADER */
header { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow-sm); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 62px; gap: 32px; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.55rem; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; }
.logo em { font-style: italic; color: var(--blue); }
.logo sup { font-size: 0.45em; color: var(--green); font-family: var(--font); font-style: normal; font-weight: 700; vertical-align: super; letter-spacing: 0.05em; }
.nav-search { flex: 1; max-width: 460px; display: flex; background: var(--bg); border: 1.5px solid var(--border2); border-radius: 8px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.nav-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.nav-search input { flex: 1; border: none; outline: none; background: none; font-family: var(--font); font-size: 0.88rem; color: var(--text); padding: 9px 14px; }
.nav-search input::placeholder { color: var(--text4); }
.nav-search button { background: var(--blue); border: none; color: white; padding: 9px 16px; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.nav-search button:hover { background: #1648c0; }
.nav-links { display: flex; gap: 2px; list-style: none; margin-left: auto; flex-shrink: 0; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 0.84rem; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-sm); transition: all 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue); }
.nav-deals { background: var(--orange) !important; color: white !important; }
.nav-deals:hover { background: #d15f00 !important; }

/* CATBAR */
.catbar { background: var(--white); border-bottom: 1px solid var(--border); }
.catbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; overflow-x: auto; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { display: flex; align-items: center; gap: 6px; color: var(--text2); text-decoration: none; font-size: 0.82rem; font-weight: 600; padding: 10px 16px; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.15s; }
.catbar a:hover, .catbar a.active { color: var(--blue); border-bottom-color: var(--blue); background: var(--blue-light); }

/* PAGE HEADER */
.page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 24px 0; }
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.breadcrumb { font-size: 0.78rem; color: var(--text3); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text4); }
.page-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 2rem; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 6px; }
.page-subtitle { color: var(--text3); font-size: 0.9rem; margin-bottom: 0; }

/* ANCHOR NAV */
.anchor-nav { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; }
.anchor-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; }
.anchor-nav a { color: var(--text3); text-decoration: none; font-size: 0.84rem; font-weight: 600; padding: 12px 18px; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.15s; }
.anchor-nav a:hover, .anchor-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* LAYOUT */
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* SECTIONS */
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; margin-top: 32px; }
.section-title { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--blue); border-radius: 2px; }
.see-all { color: var(--blue); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* COMP SECTION */
.comp-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); scroll-margin-top: 120px; }
.comp-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comp-head-left { display: flex; align-items: center; gap: 12px; }
.comp-head-icon { font-size: 1.6rem; }
.comp-head-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.comp-head-sub { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }
.update-tag { font-size: 0.72rem; color: var(--green); background: var(--green-light); border: 1px solid #a7f3d0; padding: 3px 10px; border-radius: 100px; font-weight: 600; white-space: nowrap; }

table.comp-table { width: 100%; border-collapse: collapse; }
.comp-table thead tr { background: #f9fafb; border-bottom: 2px solid var(--border); }
.comp-table th { padding: 10px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.comp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tbody tr { transition: background 0.12s; }
.comp-table tbody tr:hover { background: #f0f7ff; }
.comp-table tbody tr.winner-row { background: #fffbeb; }
.comp-table tbody tr.winner-row:hover { background: #fef3c7; }

.rank-medal { font-size: 1.3rem; }
.prod-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.prod-sub { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }
.prod-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.tag-choix { background: #fef08a; color: #92400e; }
.tag-budget { background: var(--green-light); color: var(--green); }
.tag-perf { background: var(--blue-mid); color: var(--blue); }

.score-cell { min-width: 110px; }
.score-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar-bg { flex: 1; height: 5px; background: var(--border); border-radius: 3px; }
.score-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), #3b82f6); }
.score-val { font-weight: 800; font-size: 0.82rem; color: var(--navy); min-width: 28px; }

.price-val { font-weight: 800; font-size: 1rem; color: var(--text); white-space: nowrap; }
.price-sub { font-size: 0.72rem; color: var(--text3); font-weight: 400; }

.btn-acheter { background: var(--green); color: white; border: none; border-radius: var(--radius-sm); padding: 7px 14px; font-family: var(--font); font-weight: 700; font-size: 0.78rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: background 0.15s; white-space: nowrap; }
.btn-acheter:hover { background: #047857; }

.verdict-strip { margin: 0 20px 16px; background: linear-gradient(135deg, #eff4ff, #f0fdf4); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; }
.verdict-icon { font-size: 1.4rem; flex-shrink: 0; }
.verdict-txt { font-size: 0.83rem; color: var(--text2); line-height: 1.65; }
.verdict-txt strong { color: var(--navy); }

/* AFFILIATE NOTE */
.affiliate-note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 12px 16px; font-size: 0.78rem; color: #92400e; margin-bottom: 16px; display: flex; gap: 8px; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.65); margin-top: 48px; }
.footer-top { max-width: 1280px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: white; }
.footer-brand .logo em { color: #7dd3fc; }
.footer-brand p { font-size: 0.82rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 24px; }
.footer-bottom-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.76rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: white; }
.footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.35); max-width: 1280px; margin: 10px auto 0; padding: 0 24px; }
.footer-credit { font-size: 0.76rem; color: rgba(255,255,255,0.4); }
.footer-credit a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-credit a:hover { color: white; }
