:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #11141a;
  --muted: #5d6573;
  --line: #e3e6eb;
  --accent: #2f5bea;
  --accent-ink: #1f46c8;
  --accent-soft: #e8eefe;
  --ok: #138a4a;
  --ok-soft: #e3f5ea;
  --warn: #a15c00;
  --warn-soft: #fdf1df;
  --dead: #b42335;
  --dead-soft: #fbe6e9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 20, 26, .04), 0 8px 24px rgba(17, 20, 26, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #181c25;
    --text: #eef0f4;
    --muted: #9aa3b2;
    --line: #232834;
    --accent: #6d8dff;
    --accent-ink: #9db2ff;
    --accent-soft: #1a2240;
    --ok: #4cd08a;
    --ok-soft: #10291c;
    --warn: #f0b04a;
    --warn-soft: #2b2010;
    --dead: #ff7a8a;
    --dead-soft: #2e1418;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* barre du haut */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 10px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .brand span { display: none; } .nav a { padding: 8px 8px; font-size: 14px; } }

/* accueil */
.hero { padding: 64px 0 40px; }
.hero h1 { max-width: 20ch; }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.kicker { display: inline-block; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 10px; }
.block { padding: 28px 16px; }
@media (min-width: 720px) { .block { padding: 32px 28px; } }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.block-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head { padding-top: 48px; }

/* catégories */
.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.cat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cat-name { font-weight: 700; font-size: 18px; }
.cat-sub { color: var(--muted); font-size: 14.5px; }

/* tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin: 1.4em 0; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.status-table th[scope="row"] { font-weight: 650; min-width: 150px; }
.status-table th[scope="row"] a { color: var(--text); }
.status-table td:last-child { color: var(--muted); min-width: 240px; }
.aka { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .status-table { overflow: visible; }
  .status-table table, .status-table tbody, .status-table tr, .status-table th, .status-table td, .status-table caption { display: block; }
  .status-table thead { display: none; }
  .status-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .status-table tbody tr:last-child { border-bottom: 0; }
  .status-table th[scope="row"], .status-table td { padding: 0; border: 0; min-width: 0; }
  .status-table td:last-child { grid-column: 1 / -1; min-width: 0; font-size: 15px; }
  .status-table caption { padding: 14px 16px 4px; }
}
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.dead { color: var(--dead); background: var(--dead-soft); }

/* cartes */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card { overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-img + .card-body .kicker { display: none; } /* la catégorie est déjà sur l'image */
.cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; flex: 1; }
.meta { font-size: 14px; color: var(--muted); }

/* article */
.article-grid { padding-top: 36px; padding-bottom: 20px; }
.article { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article .meta { margin: -4px 0 26px; }
.tldr { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; }
.tldr-title, .toc-title { font-weight: 700; margin: 0 0 6px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 4px 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 30px; background: var(--surface); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; font-size: 15.5px; }
.toc a { text-decoration: none; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose strong { font-weight: 650; }

/* encadré alternatives */
.alt-box { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 22px; margin: 2em 0; }
.alt-box h2 { margin-top: 0; font-size: 22px; }
.alt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alt-list li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.alt-list li:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.alt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alt-head .alt-tag { margin-left: auto; }
.mark { width: 40px; height: 40px; flex: none; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.mono { display: inline-grid; place-items: center; font-weight: 750; font-size: 18px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 62% 50%), hsl(calc(var(--h) + 18) 64% 38%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.site-name { display: flex; align-items: center; gap: 12px; }
.row-primary { background: linear-gradient(90deg, var(--accent-soft), transparent 85%); box-shadow: inset 3px 0 0 var(--accent); }
.status-table .row-primary th[scope="row"] a { color: var(--accent-ink); }
.status-table .row-primary .aka { color: var(--accent-ink); font-weight: 600; }
.status-table .row-primary td:last-child { color: var(--text); }
.row-cta { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-name .mark { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.alt-name { font-weight: 700; font-size: 17px; }
.alt-logo { display: inline-flex; border-radius: 11px; }
.alt-logo:hover .mark { transform: scale(1.06); }
.alt-logo .mark { transition: transform .15s ease; }
.alt-primary { background: linear-gradient(180deg, var(--accent-soft), var(--bg)) !important; }
.alt-cta { margin-top: 12px; width: 100%; justify-content: center; text-decoration: none; }
@media (min-width: 560px) { .alt-cta { width: auto; } }
.alt-tag { font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 99px; }
.alt-list p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

/* classement « top » */
.top-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 20px; margin: 18px 0; scroll-margin-top: 80px; }
.top-primary { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.top-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.top-head .mark { width: 48px; height: 48px; border-radius: 13px; }
.rank { display: none; }
.top-title { flex: 1; min-width: 0; }
.top-title h3 { margin: 0; font-size: 20px; }
.top-title h3 a { color: var(--text); }
.verdict { margin: 2px 0 0 !important; color: var(--accent-ink); font-size: 14.5px; font-weight: 600; }
.top-note { text-align: right; line-height: 1.1; white-space: nowrap; }
.top-note strong { font-size: 24px; }
.top-note span { color: var(--muted); font-size: 14px; }
.stars { display: block; margin-top: 4px; width: 80px; height: 14px; margin-left: auto;
  background: linear-gradient(90deg, var(--accent) calc(var(--n) / 5 * 100%), var(--line) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M8 0l2.1 4.6 4.9.5-3.7 3.3 1.1 4.9L8 10.8 3.6 13.3l1.1-4.9L1 5.1l4.9-.5z'/%3E%3C/svg%3E") repeat-x left / 16px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M8 0l2.1 4.6 4.9.5-3.7 3.3 1.1 4.9L8 10.8 3.6 13.3l1.1-4.9L1 5.1l4.9-.5z'/%3E%3C/svg%3E") repeat-x left / 16px 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 550; }
.proscons { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.proscons ul { margin: 0; padding: 0; list-style: none; }
.proscons li { position: relative; padding-left: 24px; margin: 4px 0; font-size: 15.5px; }
.pros li::before { content: "+"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.cons li::before { content: "−"; position: absolute; left: 4px; color: var(--dead); font-weight: 800; }
.pc-title { font-weight: 700; margin: 0 0 4px !important; font-size: 15px; }
.compare td, .compare th { white-space: nowrap; }

/* questions, sources, liés */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.sources { margin-top: 2em; }
.sources h2 { font-size: 18px; }
.sources ul { padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.related { padding-top: 24px; padding-bottom: 48px; }

/* pied */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 28px; font-size: 15px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-in p { margin: 8px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.fine { margin-top: 22px; font-size: 13.5px; }

/* galerie de captures (liens vers le site) */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.shot { margin: 0; }
.shot-main { grid-column: 1 / -1; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .shot:last-child:nth-child(even) { grid-column: 1 / -1; } }
.phone-shot { float: right; width: 160px; margin: 4px 0 12px 18px; }
.phone-shot a { display: block; border-radius: 22px; overflow: hidden; border: 6px solid #111; box-shadow: var(--shadow); }
.phone-shot img { width: 100%; height: auto; }
@media (max-width: 560px) { .phone-shot { width: 120px; } }
.prose h2 { clear: both; }
