/* ============================================================
   Top Produits — feuille de style
   Design : moderne, épuré, responsive, zéro emoji (SVG inline)
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5b6472;
  --brand: #14532d;
  --brand-2: #166534;
  --accent: #f59e0b;
  --border: #e5e8ee;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; stroke: #fff; }
.logo em { font-style: normal; color: var(--accent); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--brand-2); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 55%, #fffbeb 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 14px;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
}
.hero .badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-title {
  font-size: 1.4rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title svg { width: 22px; height: 22px; stroke: var(--brand); }

/* ---------- Catégories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  color: var(--text);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16, 24, 40, .1); text-decoration: none; }
.cat-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #f0fdf4;
}
.cat-card .icon svg { width: 24px; height: 24px; stroke: var(--brand); }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.cat-card .count {
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Articles ---------- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16, 24, 40, .1); }
.article-card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card .thumb svg { width: 56px; height: 56px; }
.article-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card .tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-2);
}
.article-card h3 { font-size: 1.05rem; line-height: 1.35; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--brand-2); }
.article-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.article-card .meta { font-size: .8rem; color: var(--muted); }

/* ---------- Page article ---------- */
.article-page { padding-top: 40px; padding-bottom: 60px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.article-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.25; margin-bottom: 10px; }
.article-header .meta { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.article-header .tag {
  display: inline-block;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--brand);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.article-content { max-width: 760px; }
.article-content h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.article-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; color: #2a3345; }
.article-content ul, .article-content ol { margin: 0 0 16px 22px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  color: #6b4a00;
}

/* Fiche produit (carte dans l'article) */
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 18px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.product .rank {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product .info { flex: 1; }
.product .info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.product .info .price { color: var(--brand-2); font-weight: 700; margin-bottom: 8px; }
.product .info p { font-size: .93rem; margin-bottom: 10px; }
.product .info .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .85rem; margin-bottom: 12px; }
.product .info .pros { color: #166534; }
.product .info .cons { color: #b91c1c; }
.btn {
  display: inline-block;
  background: var(--brand-2);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 9px;
}
.btn:hover { background: var(--brand); text-decoration: none; }
.btn .ext { font-size: .75rem; opacity: .8; }

/* Verdict */
.verdict {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.verdict h3 { margin: 0 0 8px; color: var(--brand); }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #b8c0cc;
  padding: 30px 0;
  margin-top: 40px;
  font-size: .88rem;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: #e5e8ee; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container { padding: 0 32px; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1.02rem; line-height: 1.7; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 32px; gap: 10px; }
  .main-nav ul { gap: 16px; }
  .article-page { padding-top: 28px; padding-bottom: 44px; }
  .article-content { font-size: 1.02rem; }
  .article-content p { line-height: 1.75; }
  .product { flex-direction: column; padding: 16px; }
  .product .info .pros-cons { grid-template-columns: 1fr; }
  .compare td, .compare th { padding: 10px 12px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .92rem;
}
.compare th {
  background: var(--brand);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.compare td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare tr:nth-child(even) td { background: #fafbfc; }
.muted-sm { color: var(--muted); font-size: .82rem; }
.btn-sm {
  display: inline-block;
  background: var(--brand-2);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn-sm:hover { background: var(--brand); text-decoration: none; }

/* ---------- Articles liés (maillage interne) ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 8px 0 26px;
}
.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .1); text-decoration: none; }
.rel-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-2);
}
.rel-title { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.35; }
