/* comprat.fr — v1 design system. Zéro police externe, zéro CDN (RGPD + perf). */
:root {
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --ink: #23272E;
  --muted: #6B7280;
  --line: #E7E2DA;
  --teal: #0E7490;
  --teal-dark: #155E75;
  --teal-soft: #E0F2F1;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --good: #15803D;
  --good-soft: #DCFCE7;
  --bad: #B91C1C;
  --bad-soft: #FEE2E2;
  --warn: #B45309;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(35, 39, 46, .06), 0 8px 24px rgba(35, 39, 46, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; margin-top: 2.2em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ribbon préprod */
.ribbon { background: var(--amber-soft); color: #7c4a03; font-size: .82rem; text-align: center; padding: 6px 14px; border-bottom: 1px solid #fde68a; }
.ribbon a { color: #7c4a03; font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.wordmark .tld { color: var(--teal); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.site-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }

/* boutons */
.btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: var(--teal); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 12px; text-decoration: none; border: none; cursor: pointer; font-size: .95rem; transition: background .15s; }
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-offer { width: 100%; }
.offer-tag { font-size: .7rem; font-weight: 700; opacity: 1; letter-spacing: .02em; }
.offer-disclosure { margin: 8px 0 0; }

/* hero */
.hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero .lead { font-size: 1.13rem; color: #3f4650; max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero-art { text-align: center; }
.hero-art img {
  width: min(340px, 100%);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}
.hero-caption { font-size: .8rem; color: var(--muted); margin-top: 10px; font-weight: 600; }
.trust-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.trust-chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; color: #3f4650; }

/* sections */
.section { padding: 28px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }

/* podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.podium-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.podium-card.first { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.rank-medal { position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.podium-card.first .rank-medal { background: var(--amber); }
.podium-brand { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 8px; }
.podium-card h3 { margin: 0; font-size: 1.05rem; }
.podium-card h3 a { color: var(--ink); text-decoration: none; }
.podium-card h3 a:hover { color: var(--teal-dark); }
.podium-score { font-size: 2rem; font-weight: 800; color: var(--teal-dark); }
.podium-score small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.podium-price { font-weight: 700; }
.podium-verdict { font-size: .86rem; color: #3f4650; flex: 1; }
.podium-link { font-weight: 700; font-size: .88rem; }

/* table comparative */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 18px; overflow: hidden; }
.table-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.control-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.control-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.table-count { margin-left: auto; font-size: .82rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .92rem; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: #F6F3EE; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; white-space: nowrap; position: sticky; top: 0; }
.compare th button { all: unset; cursor: pointer; font: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.compare th button:hover { color: var(--teal-dark); }
.compare th button::after { content: "↕"; opacity: .45; font-size: .85em; }
.compare th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--teal); }
.compare th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--teal); }
.compare tbody tr:hover { background: #FBF7F0; }
.compare td.num, .compare th.num { text-align: right; font-variant-numeric: tabular-nums; }
.compare .model-cell { min-width: 230px; }
.compare .model-cell a { font-weight: 700; color: var(--ink); text-decoration: none; }
.compare .model-cell a:hover { color: var(--teal-dark); text-decoration: underline; }
.compare .model-brand { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.score-pill { display: inline-block; min-width: 52px; text-align: center; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; border-radius: 8px; padding: 3px 8px; }
.db-na { color: var(--muted); font-style: italic; }
.mini-flag { display: inline-block; font-size: .72rem; background: var(--amber-soft); color: var(--warn); border-radius: 6px; padding: 1px 7px; margin-left: 6px; font-weight: 600; white-space: nowrap; }
.table-foot { padding: 14px 18px; font-size: .83rem; color: var(--muted); border-top: 1px solid var(--line); }

/* cartes génériques */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h3 { margin-top: 0; }
.card .icon { font-size: 1.6rem; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(35,39,46,.08), 0 14px 34px rgba(35,39,46,.09); color: inherit; }
.card-link h3 { color: var(--teal-dark); }

/* page modèle */
.breadcrumb { font-size: .83rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.model-hero { padding: 18px 0 8px; }
.brand-chip { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.model-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; padding-bottom: 40px; }
.model-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.price-main { font-size: 2rem; font-weight: 800; margin: 0; color: var(--ink); }
.price-meta { font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.price-note { margin: 0 0 8px; }
.price-ref { margin: 0 0 12px; }
.price-alert { background: var(--amber-soft); border-radius: 8px; padding: 8px 10px; color: #7c4a03; }
.verdict-card { background: var(--teal-soft); border: 1px solid #b2dfdb; border-radius: var(--radius); padding: 18px 20px; }
.verdict-card h3 { margin: 0 0 6px; color: var(--teal-dark); font-size: .95rem; }
.verdict-card p { margin: 0; font-size: .92rem; }
.score-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.score-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.score-tile .v { font-size: 1.55rem; font-weight: 800; color: var(--teal-dark); }
.score-tile .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.score-tile .s { font-size: .78rem; color: var(--muted); }
.formula-line { font-size: .85rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.formula-line code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; color: var(--teal-dark); }

table.criteres { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .9rem; }
.criteres th, .criteres td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.criteres thead th { background: #F6F3EE; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.criteres td.note-cell { white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; width: 130px; }
.bar { display: inline-block; width: 64px; height: 7px; background: #EDE9E2; border-radius: 99px; overflow: hidden; vertical-align: middle; margin-left: 8px; }
.bar-fill { display: block; height: 100%; border-radius: 99px; }
.bar-good { background: var(--good); }
.bar-mid { background: var(--amber); }
.bar-low { background: var(--bad); }
.justif { color: #3f4650; }

.flags { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.flag { background: var(--amber-soft); border: 1px solid #fde68a; color: #7c4a03; border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.pf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pf-card h3 { display: flex; align-items: center; gap: 8px; }
.pf-good h3 { color: var(--good); }
.pf-bad h3 { color: var(--bad); }
.pf-card ul { list-style: none; margin: 0; padding: 0; }
.pf-card li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.pf-card li:last-child { border-bottom: none; }
.pf-good li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.pf-bad li::before { content: "✗"; position: absolute; left: 2px; color: var(--bad); font-weight: 800; }
.src { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); border-radius: 6px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }

table.metrics { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .87rem; margin-top: 10px; }
.metrics th, .metrics td { padding: 9px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.metrics thead th { background: #F6F3EE; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.metrics td.val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tier { display: inline-block; font-size: .68rem; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.tier-1 { background: var(--good-soft); color: var(--good); }
.tier-2 { background: var(--teal-soft); color: var(--teal-dark); }
.tier-4 { background: #E5E7EB; color: #374151; }
.tier-5 { background: var(--amber-soft); color: var(--warn); }

.model-nav { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.model-nav a { font-weight: 700; font-size: .9rem; }

/* prose (guides, méthode, légal) */
.prose { max-width: 820px; padding-bottom: 48px; }
.prose h2 { border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; margin: 14px 0 20px; }
.prose th, .prose td { padding: 9px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: #F6F3EE; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.prose blockquote { margin: 16px 0; padding: 12px 18px; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; color: #1f3a44; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #F1EDE6; padding: 2px 6px; border-radius: 6px; font-size: .85em; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: .92rem; }
.callout.good { border-left-color: var(--good); }
.callout.bad { border-left-color: var(--bad); }
.callout p:last-child { margin-bottom: 0; }
.todo-gate { background: var(--bad-soft); border: 1px solid #fecaca; color: #7f1d1d; border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: .9rem; margin: 14px 0; }

/* guide profils */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.profile-card h3 { margin-top: 0; color: var(--teal-dark); }
.profile-card ol { margin: 10px 0; padding-left: 22px; }
.profile-card li { margin: 6px 0; }
.profile-card .score-inline { font-weight: 800; color: var(--teal-dark); }

/* duel */
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.duel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.duel-card h3 { margin-top: 0; }
.duel-card.saros { border-top: 4px solid var(--teal); }
.duel-card.z70 { border-top: 4px solid var(--amber); }
.duel-card ul { padding-left: 20px; margin: 8px 0; }
.duel-card li { margin: 6px 0; font-size: .92rem; }

/* footer */
.site-footer { background: #22262d; color: #cbd2da; margin-top: 56px; padding: 44px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cbd2da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin: 10px 0 0; }
.footer-brand .muted { color: #8b939e; }
.footer-bottom { border-top: 1px solid #3a3f47; padding: 16px 20px; font-size: .78rem; color: #8b939e; }
.footer-bottom p { margin: 0; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: 2; }
  .hero-art img { width: min(220px, 60%); padding: 12px; border-radius: 22px; }
  .podium, .cards-3 { grid-template-columns: 1fr; }
  .model-layout { grid-template-columns: 1fr; }
  .model-aside { position: static; }
  .score-panel { grid-template-columns: repeat(2, 1fr); }
  .pf-grid, .profile-grid, .duel-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
  .table-controls { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Personnalisation du classement (accueil) ===== */
.perso-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 22px; }
.perso-head h3 { margin: 0 0 .3em; color: var(--teal-dark); }
.perso-head p { margin: 0 0 1em; max-width: 75ch; }
.perso-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
.imp-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.imp-row legend { font-weight: 650; font-size: .92rem; padding: 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.imp-pct { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.seg-opt { min-width: 0; position: relative; cursor: pointer; display: flex; }
.seg-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; text-align: center; font-size: .74rem; line-height: 1.15; font-weight: 600; color: #4B5563; background: #f4f1ec; border: 1px solid var(--line); border-radius: 7px; padding: 4px 3px; transition: background .12s, color .12s; }
.seg-opt input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.seg-opt:hover span { border-color: var(--teal); }
.perso-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
#fiab-help { flex: 1 1 240px; margin: 0; }
.perso-status { font-size: .82rem; font-weight: 650; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; }
.btn-sm { font-size: .82rem; padding: 7px 12px; }

/* checks de contexte logement */
.perso-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 12px 14px; background: #faf8f5; border: 1px dashed var(--line); border-radius: 10px; }
.checks-label { font-weight: 650; font-size: .9rem; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; min-height: 44px; transition: border-color .12s, background .12s; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
#checks-help { flex: 1 1 220px; margin: 0; }
.imp-lock { font-size: .72rem; font-weight: 650; color: var(--warn); background: var(--amber-soft); border-radius: 999px; padding: 2px 9px; }

/* cellule prix + icône Amazon + colonnes de mesures (tableau accueil) */
.prix-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.amz-icon { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 8px; background: #FAF3E3; border: 1px solid #F3E0B5; line-height: 0; transition: background .12s, border-color .12s; }
.amz-icon:hover { background: #FFEECC; border-color: #FF9900; }
.amz-icon svg { display: block; }
.mes { font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.na { color: var(--muted); }
.compare td.mes { text-align: right; }

/* badge fiabilité + tooltip (hover / focus / tap) */
.fiab-badge { position: relative; display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; cursor: help; vertical-align: middle; font-variant-numeric: tabular-nums; }
.fiab-good { background: var(--good-soft); color: var(--good); }
.fiab-mid { background: var(--teal-soft); color: var(--teal-dark); }
.fiab-warn { background: var(--amber-soft); color: var(--warn); }
.fiab-bad { background: var(--bad-soft); color: var(--bad); }
.fiab-tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: 280px; max-width: 78vw; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 450; line-height: 1.4; padding: 9px 12px; border-radius: 9px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; }
.fiab-tip strong { color: #fff; }
.fiab-badge:hover .fiab-tip, .fiab-badge:focus .fiab-tip, .fiab-badge:focus-within .fiab-tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* détail du calcul */
.calc-details { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.calc-details summary { cursor: pointer; font-weight: 650; color: var(--teal-dark); font-size: .9rem; }
.calc-body { margin-top: 12px; display: grid; gap: 12px; }
.calc-row { background: #faf8f5; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; }
.calc-row p { margin: 0 0 .4em; font-size: .9rem; }
.calc-row ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; font-size: .8rem; color: #3f4650; }
.calc-row li { margin: 0 0 2px; break-inside: avoid; }

@media (max-width: 760px) {
  .perso-grid { grid-template-columns: 1fr; }
  .calc-row ul { columns: 1; }
}
@media (max-width: 560px) {
  .perso-panel { padding: 16px; }
  .seg-opt span { font-size: .68rem; padding: 6px 2px; }
  .fiab-tip { left: auto; right: 0; }
}