/* Habillage commun aux 4 sites : les couleurs et polices viennent des variables --aff-* (aff-site.json). */
body, .ast-separate-container, .ast-plain-container {
  background: radial-gradient(circle at 8% 0, var(--aff-halo1), transparent 520px),
              radial-gradient(circle at 94% 120px, var(--aff-halo2), transparent 520px),
              var(--aff-bg) !important;
  background-repeat: no-repeat !important;
  color: var(--aff-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 17px; line-height: 1.6;
}
h1, h2, h3, h4, h5, h6, .entry-title, .site-title, .aff-card-title, .aff-tool-title, .aff-footer-brand, .aff-calc-title {
  font-family: var(--aff-head), Inter, system-ui, sans-serif !important;
  color: var(--aff-ink); letter-spacing: -0.01em;
}
a { color: var(--aff-link); }
a:hover, a:focus { color: var(--aff-ink); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* En-tête */
.site-header, .ast-primary-header-bar, .main-header-bar { background: #fff !important; border-bottom: 1px solid var(--aff-line) !important; }
.site-title { font-size: 24px !important; font-weight: 800 !important; margin: 0; }
.site-title a, .site-title a:hover, .site-title a:focus {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: linear-gradient(90deg, var(--aff-c1), var(--aff-c2), var(--aff-c3));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.site-title a::before { content: ""; width: 38px; height: 38px; flex: none; background: var(--aff-logo) center / contain no-repeat; }
.site-description { display: none; }
.main-header-menu .menu-link { font-weight: 500; font-size: 15px; color: var(--aff-ink) !important; }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item > .menu-link { color: var(--aff-link) !important; }
.ast-mobile-menu-trigger-minimal, .ast-button-wrap .menu-toggle { color: var(--aff-ink) !important; background: transparent !important; }

/* Contenu des pages et articles */
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post, .ast-separate-container .ast-article-inner {
  background: #fff; border: 1px solid var(--aff-line); border-radius: 18px;
}
.entry-content h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.home .entry-content > .aff-home { margin: 0; max-width: none !important; width: 100%; }
.home .site-content .ast-container, .home .entry-content, .home #primary, .home .site-main, .home article { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; display: block; }
.home .ast-article-single, .home .ast-article-post { background: transparent !important; border: 0 !important; padding: 0 !important; }
.home #primary { margin: 0; padding: 0; }

.aff-wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.aff-home h2 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.aff-sec { padding-top: 36px; padding-bottom: 36px; }
.aff-sub, .aff-lead, .aff-card-ex, .aff-rank p { color: var(--aff-soft); }
.aff-sub { margin: 0 0 22px; }

/* Bloc d'ouverture */
.aff-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 56px; padding-bottom: 40px; }
.aff-hero-txt { flex: 1 1 440px; min-width: 0; }
.aff-hero-calc { flex: 1 1 380px; min-width: 0; }
.aff-hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; font-weight: 800; margin: 0 0 18px; }
.aff-hero h1 span { background: linear-gradient(90deg, var(--aff-c1), var(--aff-c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aff-lead { font-size: 19px; margin: 0 0 26px; }
.aff-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.aff-hero-img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 18px; margin-top: 30px; }

/* Boutons */
.aff-btn, .aff-btn:hover, .aff-btn:focus { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none !important; cursor: pointer; }
.aff-btn-grad, .aff-btn-grad:hover, .aff-btn-grad:focus { background: linear-gradient(90deg, var(--aff-b1), var(--aff-b2)); color: #fff !important; border: 0; }
.aff-btn-line, .aff-btn-line:hover, .aff-btn-line:focus { background: #fff; color: var(--aff-ink) !important; border: 1px solid var(--aff-ink); padding: 12px 23px; }
.aff-btn-dark, .aff-btn-dark:hover, .aff-btn-dark:focus { background: var(--aff-ink) !important; color: #fff !important; border: 0; width: 100%; }
.aff-btn:hover { filter: brightness(1.08); }
.aff-btn:focus-visible { outline: 3px solid var(--aff-c2); outline-offset: 2px; }

/* Calculateur */
.aff-calc { background: #fff; border: 1px solid var(--aff-line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px -28px var(--aff-c1); }
.aff-calc .aff-calc-title { font-size: 21px; margin: 0; }
.aff-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--aff-ink); }
.aff-calc input, .aff-calc select { padding: 11px 12px; border: 1px solid #8a94a6; border-radius: 10px; font-size: 16px; background: #fff; color: var(--aff-ink); width: 100%; box-sizing: border-box; height: auto; }
.aff-calc input:focus, .aff-calc select:focus { outline: 2px solid var(--aff-c1); outline-offset: 1px; border-color: var(--aff-c1); }
.aff-calc-out dl { margin: 0; display: grid; gap: 8px; }
.aff-calc-out dl div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--aff-chip); }
.aff-calc-out dt { font-weight: 500; font-size: 14px; }
.aff-calc-out dd { margin: 0; font-weight: 700; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.aff-calc-err, .aff-calc-note { margin: 0; font-size: 13px; color: var(--aff-soft); }
.entry-content > .aff-calc { max-width: 560px; margin: 28px 0; }

/* Cartes */
.aff-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.aff-card, .aff-what-item { background: #fff; border: 1px solid var(--aff-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: var(--aff-ink); }
a.aff-card:hover, a.aff-what-item:hover { border-color: var(--aff-c1); color: var(--aff-ink); }
.aff-card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.aff-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aff-link); }
.aff-card-title { font-weight: 700; font-size: 19px; line-height: 1.25; }
.aff-card-ex { font-size: 15px; }
.aff-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.aff-what-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--aff-c1), var(--aff-c2), var(--aff-c3)); }
.aff-what-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aff-duels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.aff-duels a { background: #fff; border: 1px solid var(--aff-line); border-radius: 14px; padding: 16px 18px; font-weight: 600; color: var(--aff-ink); text-decoration: none !important; }
.aff-duels a:hover { border-color: var(--aff-c1); }
.aff-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.aff-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 420px)); gap: 20px; margin-top: 20px; }
.aff-tool, .aff-tool:hover, .aff-tool:focus { background: linear-gradient(135deg, var(--aff-b1), var(--aff-b2)); color: #fff !important; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; font-size: 15px; }
.aff-tool-title { font-weight: 700; font-size: 19px; color: #fff !important; }
.aff-rank { padding-bottom: 64px; }
.aff-rank p { max-width: 780px; margin: 0 0 12px; }
.aff-more { font-weight: 600; }

/* Voix éditoriales (page About) */
.aff-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.aff-voice { border: 1px solid var(--aff-line); border-radius: 16px; padding: 18px; background: var(--aff-bg); }
.aff-voice strong { display: block; font-family: var(--aff-head), sans-serif; font-size: 18px; }
.aff-voice em { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--aff-link); margin-bottom: 6px; }
.aff-voice p { margin: 0; font-size: 15px; color: var(--aff-soft); }
.aff-checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.aff-checks li { padding: 10px 14px; border-radius: 12px; background: var(--aff-chip); font-weight: 500; }
.aff-updated { font-size: 14px; color: var(--aff-soft); }

/* Pied de page */
.aff-footer { background: var(--aff-ink); color: #d6dae3; font-size: 14px; margin-top: 0; }
.aff-footer-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.aff-footer-brand { font-weight: 800; font-size: 18px; color: #fff !important; }
.aff-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.aff-footer a, .aff-footer a:hover { color: #d6dae3; text-decoration: none; }
.aff-footer a:hover { color: #fff; text-decoration: underline; }
.aff-footer-note, .aff-footer-copy { flex: 1 1 100%; margin: 0; }
.aff-footer-copy { color: #9aa3b5; }

@media (max-width: 600px) {
  .aff-wrap { padding-left: 16px; padding-right: 16px; }
  .aff-hero { padding-top: 32px; gap: 28px; }
  .aff-home h2 { font-size: 25px; }
  .aff-hero-img { height: 200px; }
  .aff-calc { padding: 20px; }
}

/* ===== Gabarits d'article : duel et avis (classes aff-a-*) ===== */
.aff-a-meta { font-size: 14px; color: var(--aff-soft); margin: 0 0 18px; }
.aff-a-disc { font-size: 13px; color: var(--aff-soft); background: var(--aff-chip); border-radius: 10px; padding: 8px 12px; margin: 0 0 22px; }
.aff-a-duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 0 0 28px; }
.aff-a-vs { align-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--aff-c1), var(--aff-c2), var(--aff-c3)); }
.aff-a-pick { background: #fff; border: 1px solid var(--aff-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.aff-a-pick.is-win { border: 2px solid var(--aff-c1); box-shadow: 0 18px 40px -30px var(--aff-c1); }
.aff-a-pick img { width: 100%; height: 150px; object-fit: contain; }
.aff-a-name { font-family: var(--aff-head), sans-serif; font-weight: 800; font-size: 21px; line-height: 1.2; }
.aff-a-price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.aff-a-price s { font-weight: 400; color: var(--aff-soft); margin-left: 6px; }
.aff-a-if { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.aff-a-if li { padding-left: 22px; position: relative; }
.aff-a-if li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--aff-c1); border-bottom: 2px solid var(--aff-c1); transform: rotate(-45deg); }
.aff-a-pick .aff-btn { margin-top: auto; text-align: center; }
.aff-a-diffs { counter-reset: d; list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.aff-a-diffs li { counter-increment: d; background: #fff; border: 1px solid var(--aff-line); border-radius: 14px; padding: 14px 16px 14px 58px; position: relative; }
.aff-a-diffs li::before { content: counter(d); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--aff-b1), var(--aff-b2)); }
.aff-a-diffs strong { display: block; }
.aff-a-tablewrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--aff-line); border-radius: 14px; background: #fff; }
.aff-a-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; border: 0; }
.aff-a-table th, .aff-a-table td { padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--aff-line); vertical-align: top; }
.aff-a-table thead th { background: var(--aff-chip); font-weight: 700; }
.aff-a-table tbody th { font-weight: 500; color: var(--aff-soft); white-space: nowrap; }
.aff-a-table td { font-variant-numeric: tabular-nums; }
.aff-a-table td.is-best { font-weight: 700; color: var(--aff-ink); background: linear-gradient(90deg, var(--aff-chip), transparent); }
.aff-a-table tr:last-child th, .aff-a-table tr:last-child td { border-bottom: 0; }
.aff-a-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.aff-a-case { background: #fff; border: 1px solid var(--aff-line); border-radius: 14px; padding: 16px; }
.aff-a-case h3 { font-size: 17px !important; margin: 0 0 6px !important; }
.aff-a-case p { margin: 0 0 8px; font-size: 15px; }
.aff-a-case .aff-tag { display: block; }
.aff-a-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.aff-a-pc > div { border-radius: 14px; padding: 16px; border: 1px solid var(--aff-line); background: #fff; }
.aff-a-pc h3 { font-size: 16px !important; margin: 0 0 8px !important; }
.aff-a-pc ul { margin: 0; padding-left: 18px; font-size: 15px; }
.aff-a-score { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 34px; font-family: var(--aff-head), sans-serif; background: linear-gradient(90deg, var(--aff-c1), var(--aff-c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aff-a-faq details { border: 1px solid var(--aff-line); border-radius: 12px; background: #fff; padding: 12px 16px; margin: 0 0 10px; }
.aff-a-faq summary { font-weight: 600; cursor: pointer; }
.aff-a-faq details p { margin: 10px 0 0; }
.aff-a-src { font-size: 14px; color: var(--aff-soft); }
.aff-a-src ul { padding-left: 18px; }
.aff-a-end { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
@media (max-width: 700px) {
  .aff-a-duel { grid-template-columns: 1fr; }
  .aff-a-vs { justify-self: center; }
}
.entry-content ol.aff-a-diffs { margin: 18px 0 !important; padding: 0 !important; }
.aff-a-pick p { margin: 0; }
.entry-content ul.aff-a-if { margin: 0 !important; padding: 0 !important; }
