@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-soft: #eef3fa;
  --text: #131c2b;
  --muted: #5d6b7e;
  --primary: #1652f0;
  --primary-dark: #0b3bbf;
  --primary-soft: #e7eefe;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cta: #0aa564;
  --cta-dark: #07804d;
  --gold: #c98a0f;
  --gold-bg: #fdf4e0;
  --border: #e6ebf2;
  --border-strong: #cfd8e3;
  --shadow-sm: 0 1px 2px rgba(19,28,43,.06);
  --shadow: 0 2px 6px rgba(19,28,43,.07), 0 10px 30px rgba(19,28,43,.06);
  --shadow-lg: 0 8px 24px rgba(19,28,43,.12), 0 30px 60px rgba(19,28,43,.10);
  --max: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: var(--max); margin: 0 auto; padding: 2.2rem 1.25rem 4rem; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: .85rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.28rem; color: var(--text); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--violet)); display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800; box-shadow: 0 4px 12px rgba(22,82,240,.35); }
.nav { display: flex; gap: 1.4rem; font-size: .92rem; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav .nav-cta { background: var(--text); color: #fff; padding: .45rem .9rem; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; margin-top: .5rem;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(900px 500px at 0% 0%, rgba(22,82,240,.35), transparent 55%),
              linear-gradient(135deg, #0b1f5c, #102a8a 55%, #1b3bb0);
  color: #fff; padding: 3.2rem 2rem 3rem;
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: 2.7rem; line-height: 1.1; letter-spacing: -.035em; margin: 0 0 .8rem; }
.hero p { color: #cfdcff; font-size: 1.12rem; margin: 0 0 1.4rem; max-width: 560px; }
.hero .pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero .pill { background: rgba(255,255,255,.12); color: #eaf0ff; font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; gap: .35rem; }
.hero .pill svg { width: 14px; height: 14px; }

/* Hero floating preview card */
.hero-card { position: relative; z-index: 1; background: #fff; color: var(--text); border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.hero-card .hc-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.hero-card .hc-badge { background: var(--gold-bg); color: var(--gold); font-weight: 800; font-size: .68rem; padding: .15rem .55rem; border-radius: 999px; }
.hc-row { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.hc-row:first-of-type { border-top: none; }
.hc-row .chip { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; }
.hc-row .hc-name { font-weight: 700; font-size: .9rem; flex: 1; }
.hc-row .hc-price { font-weight: 700; font-size: .85rem; }
.hc-row .hc-stars { color: var(--gold); font-size: .8rem; }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 1.6rem 0 0; }
.stat { text-align: center; padding: 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Typo / shared ---------- */
h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -.03em; margin: .3rem 0 .6rem; }
h2 { font-size: 1.55rem; letter-spacing: -.02em; margin: 2.6rem 0 1rem; }
h2.section { display: flex; align-items: center; gap: .6rem; }
h2.section::before { content: ""; width: 5px; height: 1.1em; border-radius: 3px; background: linear-gradient(var(--primary), var(--violet)); }
h3 { font-size: 1.14rem; margin: 0 0 .5rem; }
.breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); }
.updated { color: var(--muted); font-size: .85rem; margin-top: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(10,165,100,.18); }
.intro { color: #34404f; font-size: 1.06rem; }
.note { color: var(--muted); font-size: .8rem; font-style: italic; border-left: 3px solid var(--border-strong); padding-left: .8rem; }

/* ---------- Brand chip ---------- */
.chip { display: grid; place-items: center; color: #fff; font-weight: 800; border-radius: 9px; letter-spacing: -.02em; box-shadow: var(--shadow-sm); }
.chip.lg { width: 56px; height: 56px; font-size: 1.25rem; border-radius: 13px; }
.chip.md { width: 38px; height: 38px; font-size: .92rem; }

/* ---------- Answer box ---------- */
.answer-box { background: linear-gradient(135deg, var(--primary-soft), #f3f0ff); border: 1px solid #dfe6ff; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.answer-box .q { font-weight: 700; margin: 0 0 .45rem; color: var(--primary-dark); }
.answer-box .a { margin: 0; color: #2f3a4a; }

/* ---------- Cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--text); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--violet)); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .cat-icon { font-size: 1.8rem; margin-bottom: .5rem; display: block; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; }
.card .go { color: var(--primary); font-size: .88rem; font-weight: 700; }

/* ---------- Top picks ---------- */
.top-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.3rem 0 1.6rem; }
.pick { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.2rem 1.3rem; box-shadow: var(--shadow); text-align: center; transition: transform .16s, box-shadow .16s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pick.featured { border-color: transparent; box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg); }
.pick .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), #e0a83a); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .85rem; border-radius: 999px; white-space: nowrap; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.pick.featured .ribbon { background: linear-gradient(135deg, var(--primary), var(--violet)); }
.pick .chip { margin: 0 auto .6rem; }
.pick .name { font-size: 1.22rem; font-weight: 800; margin: .2rem 0 .15rem; letter-spacing: -.02em; }
.pick .rating { color: var(--gold); font-size: 1rem; margin: .3rem 0; letter-spacing: .06em; }
.pick .rating small { color: var(--muted); }
.pick .price { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th { background: var(--bg-alt); color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
th, td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--bg-alt); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.highlight { background: linear-gradient(90deg, var(--primary-soft), transparent 80%); }
tbody tr.highlight td:first-child { box-shadow: inset 4px 0 0 var(--primary); }
.tool-cell { display: flex; align-items: center; gap: .65rem; }
.tool-cell .tc-text { display: flex; flex-direction: column; gap: .25rem; }
.tool-cell .badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge { font-size: .67rem; font-weight: 800; padding: .14rem .5rem; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.badge.best { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; }
.badge.cheap { background: var(--gold-bg); color: var(--gold); border: 1px solid #eccf97; }
.rating-cell { color: var(--gold); white-space: nowrap; }
.rating-cell small { color: var(--muted); display: block; font-size: .72rem; }
table.facts th { width: 42%; color: var(--muted); font-weight: 600; background: var(--bg-alt); }

/* Tableau comparatif : compact, tient sans défilement horizontal */
.cmp-hint { color: var(--muted); font-size: .8rem; margin: 0 0 .5rem; }
table.cmp th:first-child, table.cmp td:first-child { min-width: 150px; }
table.cmp td:last-child { text-align: center; }

/* ---------- CTA ---------- */
.cta { display: inline-flex; align-items: center; gap: .3rem; background: linear-gradient(135deg, var(--cta), #0c945a); color: #fff; font-weight: 700; padding: .5rem .95rem; border-radius: 999px; white-space: nowrap; font-size: .85rem; box-shadow: 0 4px 12px rgba(10,165,100,.3); transition: filter .12s, transform .12s; }
.cta:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.cta.big { padding: .85rem 1.7rem; font-size: 1.02rem; }
.cta.ghost { background: var(--bg); color: var(--primary); border: 1.5px solid var(--border-strong); box-shadow: none; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.2rem 0; }
.proscons > div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.proscons ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.proscons li { margin: .3rem 0; }
.targets { color: var(--muted); }

/* ---------- Methodology ---------- */
.methodology { background: linear-gradient(135deg, var(--bg-alt), #eef3fb); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2.2rem 0; box-shadow: var(--shadow-sm); }
.methodology h2 { margin: 0; font-size: 1.18rem; display: flex; align-items: center; gap: .55rem; }
.methodology p { color: #34404f; font-size: .92rem; margin: .55rem 0 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .95rem 1.2rem; margin: .65rem 0; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq summary::marker { color: var(--primary); }
.faq p { color: #34404f; margin: .6rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1426; color: #9fb0c8; margin-top: 3.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2.2rem 1.25rem; font-size: .85rem; }
.footer-inner .brand-f { display: flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-inner .brand-f .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--violet)); display: grid; place-items: center; font-size: .85rem; }
.footer-inner .disclosure { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: .85rem 1rem; border-radius: 10px; margin: .8rem 0; color: #c2d0e4; }
.footer-inner a { color: #8fb6ff; }

/* ---------- CTA band (clôture) ---------- */
.cta-band { position: relative; overflow: hidden; margin: 3.5rem 0 0; border-radius: 24px; padding: 3rem 2rem; text-align: center;
  background: radial-gradient(800px 300px at 50% -20%, rgba(124,58,237,.45), transparent 60%), linear-gradient(135deg, #0b1f5c, #1b3bb0); color: #fff; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; }
.cta-band h2 { position: relative; z-index: 1; color: #fff; margin: 0 0 .6rem; border: none; font-size: 1.8rem; }
.cta-band h2::before { display: none; }
.cta-band p { position: relative; z-index: 1; color: #cfdcff; margin: 0 auto 1.5rem; max-width: 540px; }
.cta-band .cta { position: relative; z-index: 1; }

/* ---------- Section "ce que nous comparons" (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.bento .b { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; transition: transform .15s, box-shadow .15s; }
.bento .b:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bento .b .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .6rem; background: linear-gradient(135deg, var(--primary-soft), #f0ecff); }
.bento .b h3 { font-size: 1.02rem; }
.bento .b p { color: var(--muted); font-size: .88rem; margin: 0; }

/* glassmorphism hero card */
.hero-card { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.6); }

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .statband { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .proscons { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
}
