/* chat-connecte — independent affiliate guide
 *
 * Palette "salon chaleureux" (warm cat-owner home), all text pairs WCAG AA:
 *   --bg       #fbf6ef  cream / warm off-white page
 *   --surface  #fffdf9  card surface
 *   --soft     #f6e8db  soft peach tint (hero card, disclosure, table head)
 *   --ink      #2b2421  deep warm charcoal text (14:1 on bg)
 *   --muted    #6b5a4e  secondary text (6.1:1 on bg)
 *   --line     #eadccd  hairlines / borders
 *   --accent   #b4532a  terracotta — links, buttons, theme-color (4.6:1 on bg, white on it 5:1)
 *   --accent-hover #8f3f1f  darker terracotta
 *   --plum     #6d4c6f  muted plum secondary accent (6.7:1 on bg)
 * Type: Georgia/serif headings + system-ui body. No web fonts, no CDN.
 */
:root {
  --bg: #fbf6ef;
  --surface: #fffdf9;
  --soft: #f6e8db;
  --ink: #2b2421;
  --muted: #6b5a4e;
  --line: #eadccd;
  --accent: #b4532a;
  --accent-hover: #8f3f1f;
  --plum: #6d4c6f;
  --warn: #8a5a2b;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 720px;
  --max-wide: 1100px;
  --shadow: 0 1px 2px rgba(60, 36, 20, .06), 0 6px 20px rgba(60, 36, 20, .07);
  --shadow-hover: 0 2px 4px rgba(60, 36, 20, .08), 0 12px 32px rgba(60, 36, 20, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23b4532a'%3E%3Cellipse cx='5.5' cy='10' rx='2.1' ry='2.7'/%3E%3Cellipse cx='9.6' cy='5.6' rx='2.1' ry='2.8'/%3E%3Cellipse cx='14.4' cy='5.6' rx='2.1' ry='2.8'/%3E%3Cellipse cx='18.5' cy='10' rx='2.1' ry='2.7'/%3E%3Cpath d='M12 11.2c-3 0-6 3.5-6 6.2 0 2 1.6 2.9 3.2 2.6 1.1-.2 1.8-.7 2.8-.7s1.7.5 2.8.7c1.6.3 3.2-.6 3.2-2.6 0-2.7-3-6.2-6-6.2z'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.1rem 3rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 253, 249, .92);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap {
  max-width: var(--max-wide);
  padding-top: 0; padding-bottom: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: #fff; flex-shrink: 0;
}
.logo-mark svg { width: 1.15rem; height: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.95rem; }
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.7rem; border-radius: 999px; min-height: 2.25rem;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--accent-hover); background: var(--soft); }
.badge-indep {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--plum);
  border: 1px solid #dccfdd; border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: #f5eef5;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 1.4rem 0 0.85rem; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.55rem); line-height: 1.25; margin: 2.4rem 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 1.6rem 0 0.45rem; }
p { margin: 0 0 1rem; }
.lede p { color: var(--ink); }
.muted { color: var(--muted); font-size: 0.95rem; }
strong { font-weight: 700; }

/* ---------- Affiliate disclosure (discreet) ---------- */
.affiliate-disclosure {
  font-size: 0.82rem; line-height: 1.5; color: var(--muted);
  margin: 0.4rem 0 1.4rem; padding-left: 1.4rem;
  background: var(--paw) no-repeat 0 0.15em / 0.95rem 0.95rem;
}
.affiliate-disclosure em { font-style: normal; }

/* Legacy notes (kept for any remaining use) */
.note {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.note.warn { border-left-color: var(--warn); background: #f3ebe2; }

/* ---------- Boxes ---------- */
.sources, .related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.sources h2, .related h2 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.sources ul, .related ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.sources li, .related li { margin: 0.35rem 0; }
.related { background: var(--soft); border-color: #ecd5c2; }
.related li::marker { color: var(--accent); }

/* ---------- Buttons ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.65rem 1.2rem; min-height: 2.75rem; text-decoration: none;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--soft); color: var(--ink); }
.btn.amazon { background: var(--accent); }

/* ---------- Checklist / product (legacy components) ---------- */
.category { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0 0 0.9rem; }
.category-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.category-head input[type=checkbox] { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--accent); }
.category.done { opacity: 0.72; }
.category.done h3 { text-decoration: line-through; color: var(--muted); }
.official { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0 0.6rem; }
.tips { font-size: 0.92rem; color: var(--muted); margin: 0.5rem 0 0; }
.products { display: grid; gap: 0.65rem; margin-top: 0.75rem; }
.product { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; background: var(--bg); }
.product-info { flex: 1 1 220px; }
.product-name { font-weight: 600; margin: 0 0 0.2rem; }
.price { font-size: 0.9rem; color: var(--muted); margin: 0; }
.product .btn { flex: 0 0 auto; }
.kits { display: grid; gap: 0.85rem; }
.kit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kit-card.caution { border-color: #d2b48c; }
.kit-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.92rem; margin: 0.35rem 0 0.7rem; }
.kit-meta strong { color: var(--ink); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.9rem 1.05rem; margin: 0 0 0.6rem;
}
.faq details[open] { border-color: #e2c7b3; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.8rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -0.1rem;
  font-size: 1.3rem; line-height: 1; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details p { margin: 0; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft) 0, var(--bg) 9rem);
  font-size: 0.9rem; color: var(--muted);
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -0.8rem; left: 50%;
  width: 1.6rem; height: 1.6rem; margin-left: -0.8rem;
  background: var(--bg) var(--paw) no-repeat center / 1rem 1rem;
  border: 1px solid var(--line); border-radius: 50%;
}
.site-footer .wrap { max-width: var(--max-wide); padding-top: 1.4rem; padding-bottom: 2rem; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-hover); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0.6rem 0 0.9rem; }
.site-footer nav a { padding: 0.2rem 0; }
.legal-page .wrap { max-width: 640px; }

/* ---------- Articles & shared chrome ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); text-decoration: underline; }
.meta-line { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2rem; }
.article-figure { margin: 0 0 1.6rem; }
.article-figure img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--soft);
}
.article-body { max-width: 42rem; }
.article-body h2 { margin-top: 2.4rem; padding-top: 0.2rem; }
.article-body h2::before {
  content: ""; display: block; width: 2.2rem; height: 3px; border-radius: 3px;
  background: var(--accent); margin-bottom: 0.6rem; opacity: .85;
}
.article-body h2#faq-title::before { display: none; }
.article-body ul { padding-left: 1.2rem; }
.article-body li { margin: 0.35rem 0; }
.article-body li::marker { color: var(--accent); }
.amazon-inline { font-weight: 600; }

/* Comparison table */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.compare-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.93rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--soft); font-weight: 700; }
.compare-table tbody th { font-weight: 600; color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Home ---------- */
.home .wrap { max-width: var(--max-wide); }
.hero { max-width: var(--max-wide); margin: 0 auto; padding: 1rem 1.1rem 0; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: 24px; background: var(--soft);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 40%; }
.hero-text { padding: 1.3rem 1.25rem 1.5rem; position: relative; }
.hero-text h1 { margin: 0.6rem 0 0.7rem; }
.hero-text .lede p { margin: 0; font-size: 1.05rem; color: #4a3d35; }
.hero-text::before {
  /* whisker accent */
  content: ""; display: block; width: 3.2rem; height: 1rem;
  background:
    linear-gradient(-8deg, transparent 45%, var(--accent) 45% 55%, transparent 55%) 0 0 / 100% 33% no-repeat,
    linear-gradient(0deg, transparent 45%, var(--accent) 45% 55%, transparent 55%) 0 50% / 100% 33% no-repeat,
    linear-gradient(8deg, transparent 45%, var(--accent) 45% 55%, transparent 55%) 0 100% / 100% 33% no-repeat;
  opacity: .7;
}
@media (min-width: 860px) {
  .hero { padding-top: 1.5rem; }
  .hero-media img { aspect-ratio: 16 / 8; min-height: 440px; object-position: 50% 18%; }
  .hero-text {
    position: absolute; right: 1.75rem; bottom: 1.75rem; max-width: 27rem;
    background: rgba(255, 253, 249, .94);
    border-radius: 20px; padding: 1.5rem 1.6rem 1.6rem;
    box-shadow: 0 10px 40px rgba(43, 36, 33, .18);
  }
}

.home #guides { margin-top: 0.4rem; }
.home #guides h2 { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.home #guides h2::before {
  content: ""; width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  background: var(--paw) no-repeat center / contain;
}
.home .affiliate-disclosure { margin-top: 1.6rem; }

/* Situation hub cards */
.situations { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0 1.5rem; }
@media (min-width: 560px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .situations { grid-template-columns: repeat(4, 1fr); } }
.situation-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.situation-card:hover { border-color: #e2c0a8; box-shadow: var(--shadow-hover); transform: translateY(-3px); color: inherit; text-decoration: none; }
.situation-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.situation-body { padding: 0.95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.situation-card h3 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.situation-card:hover h3 { color: var(--accent-hover); }
.situation-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.situation-card .card-arrow { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-weight: 700; transition: transform .18s ease; }
.situation-card:hover .card-arrow { transform: translateX(4px); }

.trust-banner {
  font-size: 0.9rem; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; margin: 0.5rem 0 1.2rem;
}

/* 404 */
.notfound-figure img { width: 100%; max-width: 420px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.4rem 0 0; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { gap: 0.4rem 0.75rem; }
  .nav { width: 100%; margin-left: -0.7rem; font-size: 0.92rem; }
  .logo { font-size: 1.05rem; }
  h1 { margin-top: 1rem; }
  .product { flex-direction: column; align-items: stretch; }
  .product .btn { width: 100%; }
}

@media print {
  .site-header, .toolbar, .btn, .products, .kits, .faq, .note, .sources, .site-footer, .nav, .hero-media, .article-figure, .situation-card img { display: none !important; }
  .category { break-inside: avoid; border: 1px solid #999; }
  body { background: #fff; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
}
