/* =========================================================
   Design system — Comparateur Indépendants v3 (refonte 2026-05-14)
   Static asset marker: keep /assets/styles.css refreshed on Cloudflare.
   Palette : encre profonde + accent terracotta + or chaud + crème.
   Inspiration : Linear, Stripe Press, NYT Cooking — pas de pastel shadcn.
   ========================================================= */

/* =========================================================
   Self-hosted fonts — Inter v20 + Fraunces v38 (variable fonts)
   Subset : latin + latin-ext uniquement (couverture française complète).
   Fichiers WOFF2 stockés localement dans /assets/fonts/.
   ========================================================= */

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Fraunces — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs palette light */
  --bg: #f3ede0;
  --bg-deep: #e6dcc4;
  --bg-grain: #efe7d4;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #faf4e6;
  --surface-3: #f5edd8;
  --ink: #14110d;
  --ink-soft: #2a2520;
  --ink-medium: #45403a;
  --text: #2a251f;
  --muted: #6b6359;
  --soft: #8f8779;
  --line: #d9cfb8;
  --line-soft: #e6dcc4;
  --line-strong: #b8a987;

  /* Accents — terracotta + or */
  --accent: #c8492a;
  --accent-dark: #9a3318;
  --accent-darker: #6b1e0a;
  --accent-soft: #fbe2d7;
  --accent-ink: #3d1208;
  --gold: #b88c2e;
  --gold-dark: #8a6620;
  --gold-soft: #f4e6bd;
  --gold-line: #e0c777;

  /* Sémantique */
  --ok: #1c6e3f;
  --ok-soft: #d8eede;
  --ok-line: #5fb27e;
  --warn: #8a5a00;
  --warn-soft: #fbeec0;
  --warn-line: #e0b649;
  --bad: #9b2a1d;
  --bad-soft: #fbdcd5;
  --bad-line: #d97560;

  /* Score */
  --score-track: #e3d8bb;
  --score-fill: linear-gradient(90deg, #c8492a 0%, #d97a3a 50%, #b88c2e 100%);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows — plus prononcés pour relief */
  --shadow-1: 0 1px 2px rgba(20, 17, 13, 0.08), 0 0 0 1px rgba(20, 17, 13, 0.05);
  --shadow-2: 0 4px 12px rgba(20, 17, 13, 0.08), 0 2px 4px rgba(20, 17, 13, 0.06);
  --shadow-3: 0 12px 28px rgba(20, 17, 13, 0.14), 0 4px 8px rgba(20, 17, 13, 0.06);
  --shadow-4: 0 24px 56px rgba(20, 17, 13, 0.18);
  --shadow-accent: 0 8px 24px rgba(200, 73, 42, 0.22);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;

  /* Typo */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Fraunces", "Tiempos Headline", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0a;
    --bg-deep: #060503;
    --bg-grain: #131008;
    --paper: #1c1813;
    --surface: #1c1813;
    --surface-2: #221d16;
    --surface-3: #2a241c;
    --ink: #faf2dd;
    --ink-soft: #ebe1c5;
    --ink-medium: #c4baa1;
    --text: #ddd2b6;
    --muted: #9a9180;
    --soft: #6e6657;
    --line: #2e2820;
    --line-soft: #211d17;
    --line-strong: #4f4434;

    --accent: #f57244;
    --accent-dark: #d6532e;
    --accent-darker: #b03e1f;
    --accent-soft: #3a1610;
    --accent-ink: #ffd4c2;
    --gold: #ecb957;
    --gold-dark: #c8973a;
    --gold-soft: #2c2210;
    --gold-line: #5e4c1e;

    --ok: #62c98a;
    --ok-soft: #142a1d;
    --ok-line: #2e6240;
    --warn: #e9b950;
    --warn-soft: #2c2210;
    --warn-line: #6a5320;
    --bad: #ea7361;
    --bad-soft: #321612;
    --bad-line: #8a3a2a;

    --score-track: #2c2620;

    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.55), 0 4px 8px rgba(0, 0, 0, 0.35);
    --shadow-4: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 32px rgba(245, 114, 68, 0.32);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper grain texture en fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(at 20% 10%, rgba(200, 73, 42, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 60%, rgba(184, 140, 46, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ----- Typography ----- */

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 540;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 480;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(26px, 2.9vw, 38px);
  margin: 64px 0 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(19px, 1.5vw, 22px);
  margin: 28px 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

@media (prefers-color-scheme: dark) {
  h4 { color: var(--accent); }
}

p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent-dark), transparent 55%);
  transition: color 140ms, text-decoration-color 140ms;
  font-weight: 500;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

@media (prefers-color-scheme: dark) {
  a { color: var(--accent); }
  a:hover { color: #ff8d6d; }
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 60ch;
  font-weight: 400;
}

small, .small {
  font-size: 13.5px;
  color: var(--muted);
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink);
}

/* ----- Layout ----- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

section + section {
  margin-top: 16px;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 6%);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 35%);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  min-height: 64px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  letter-spacing: -0.012em;
  min-width: 0;
}

/* Logo refait : monogramme typographique distinctif */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2), inset 0 0 0 1px color-mix(in oklab, var(--accent), transparent 70%);
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}

.brand:hover .brand-logo {
  transform: rotate(-3deg) scale(1.05);
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

.brand-logo::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 140ms, color 140ms;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

@media (prefers-color-scheme: dark) {
  .nav-links a:hover { color: var(--accent); }
}

.nav-links a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .nav-links a.active { color: var(--accent); }
}

/* ----- Hero ----- */

.hero {
  padding: 48px 0 32px;
  position: relative;
}

/* Subtle ornement décoratif au-dessus du hero */
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent), transparent 88%) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 20px;
  padding: 6px 13px 6px 9px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 75%);
  border-radius: 999px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 75%);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--accent); }
}

.hero h1 { margin: 0 0 20px; }
.hero .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ----- Boutons CTA — moins arrondis, plus chair ----- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms, color 140ms, border-color 140ms, box-shadow 140ms;
  white-space: nowrap;
  position: relative;
  letter-spacing: -0.005em;
}

.cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

.cta:active {
  transform: translateY(0);
}

.cta--accent {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.cta--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 12px 32px rgba(200, 73, 42, 0.32);
}

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.cta--ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}

@media (prefers-color-scheme: dark) {
  .cta {
    color: var(--ink);
    background: var(--surface-2);
    border-color: var(--line-strong);
    box-shadow: none;
  }
  .cta:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

  /* Le primaire accent reste TOUJOURS terracotta vif, peu importe le mode */
  .cta.cta--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .cta.cta--accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
  }

  /* Ghost en dark : transparent avec border ink-soft, texte clair */
  .cta.cta--ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
  }
  .cta.cta--ghost:hover {
    color: var(--ink);
    background: var(--surface-2);
    border-color: var(--ink-medium);
  }
}

.cta--small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
}

.cta-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
  font-weight: 500;
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* ----- Trust strip ----- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px dashed color-mix(in oklab, var(--line), transparent 30%);
  font-size: 13.5px;
  color: var(--muted);
}

.trust-strip > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.trust-strip strong {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ----- Hero card / Score card ----- */

.hero-visual { position: relative; }

.score-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-4);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--score-fill);
}

.score-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in oklab, var(--gold), transparent 90%), transparent 60%);
  pointer-events: none;
}

.score-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.score-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.015em;
}

.score-card-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px color-mix(in oklab, var(--accent), transparent 60%);
}

.score-row {
  display: grid;
  grid-template-columns: 1.1fr auto 70px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 60%);
  transition: padding-left 200ms;
}

.score-row:hover {
  padding-left: 4px;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.score-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.score-bar {
  width: 100%;
  height: 7px;
  background: var(--score-track);
  border-radius: 999px;
  overflow: hidden;
  min-width: 90px;
  position: relative;
}

.score-bar-fill {
  display: block;
  height: 100%;
  background: var(--score-fill);
  border-radius: 999px;
  position: relative;
}

.score-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.score-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  text-align: right;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-left: 1px;
}

/* ----- Cards / Panels ----- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-1);
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}

.panel:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.panel + .panel { margin-top: 14px; }

.grid > .panel + .panel {
  margin-top: 0;
}

.panel--ghost {
  background: transparent;
  border: 1px dashed var(--line-strong);
  box-shadow: none;
}

/* Callouts — plus de présence, pas juste une bordure gauche */

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  margin: 22px 0;
  font-size: 14.5px;
  box-shadow: var(--shadow-1);
}

.callout--ok    { border-left-color: var(--ok);   background: var(--ok-soft);   border-color: color-mix(in oklab, var(--ok), transparent 70%); }
.callout--warn  { border-left-color: var(--warn); background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn), transparent 70%); }
.callout--bad   { border-left-color: var(--bad);  background: var(--bad-soft);  border-color: color-mix(in oklab, var(--bad), transparent 70%); }

.callout-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
  box-shadow: 0 2px 6px color-mix(in oklab, var(--accent), transparent 60%);
}

.callout--ok   .callout-icon { background: var(--ok); box-shadow: 0 2px 6px color-mix(in oklab, var(--ok), transparent 60%); }
.callout--warn .callout-icon { background: var(--warn); box-shadow: 0 2px 6px color-mix(in oklab, var(--warn), transparent 60%); }
.callout--bad  .callout-icon { background: var(--bad); box-shadow: 0 2px 6px color-mix(in oklab, var(--bad), transparent 60%); }

.callout strong { color: var(--ink); }

/* ----- Grids ----- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 26px 0;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.criteria-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.criteria-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 226px;
}

@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr; }

  .criteria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .criteria-grid {
    grid-auto-rows: auto;
  }

  .criteria-card {
    min-height: 0;
  }
}

/* ----- Tool card — refonte complète ----- */

.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms cubic-bezier(.4, 0, .2, 1), box-shadow 220ms, border-color 220ms;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent), transparent 96%) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 240ms;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--accent);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card--featured {
  border-color: var(--line);
  box-shadow: var(--shadow-1);
  background: var(--paper);
}

.tool-card__ribbon {
  display: none;
}

.tool-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.tool-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
  .tool-card__logo { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
}

.tool-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 540;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.tool-card__name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0;
  line-height: 1.4;
}

.tool-card__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 6px;
  position: relative;
  z-index: 1;
}

.tool-card__score-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  .tool-card__score-num { color: var(--accent); }
}

.tool-card__score-max {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.tool-card__score-bar {
  height: 6px;
  background: var(--score-track);
  border-radius: 999px;
  overflow: hidden;
  margin: -2px 0 10px;
  position: relative;
  z-index: 1;
}

.tool-card__score-bar > span {
  display: block;
  height: 100%;
  background: var(--score-fill);
  border-radius: 999px;
  position: relative;
}

.tool-card p {
  font-size: 14.5px;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
}

.tool-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 6px;
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-medium);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

.chip--ok   { color: var(--ok);   background: var(--ok-soft);   border-color: color-mix(in oklab, var(--ok), transparent 60%); }
.chip--warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn), transparent 60%); }
.chip--bad  { color: var(--bad);  background: var(--bad-soft);  border-color: color-mix(in oklab, var(--bad), transparent 60%); }
.chip--offer {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent), transparent 84%);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 55%);
  color: var(--accent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent), transparent 84%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
  text-align: left;
  max-width: 100%;
}

.offer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent), transparent 45%);
  flex: 0 0 auto;
}

.partner-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
  .offer-badge {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: color-mix(in oklab, var(--accent), transparent 45%);
  }

  .chip--offer {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: color-mix(in oklab, var(--accent), transparent 45%);
  }
}

.tool-card__cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tool-card .cta.cta--small {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.tool-card .cta.cta--small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tool-card--featured .cta.cta--small {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.tool-card--featured .cta.cta--small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .tool-card .cta.cta--small {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
  }
  .tool-card .cta.cta--small:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
}

/* ----- Comparison table ----- */

.compare-wrap {
  margin: 28px 0 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare thead th {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
  text-align: left;
  vertical-align: bottom;
  padding: 20px 18px 18px;
  border-bottom: 2px solid var(--line);
}

.compare th.criterion-col {
  width: 200px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-tool-head {
  display: grid;
  grid-template-rows: 38px 24px 24px 16px;
  gap: 8px;
  align-items: start;
}

.compare-tool-head .tool-card__logo {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.compare-tool-head strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 540;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.compare-tool-head small {
  grid-row: 4;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.compare-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.table-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.compare tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 50%);
  vertical-align: top;
  font-size: 14.5px;
  transition: background 140ms;
}

.compare tbody tr:last-child td { border-bottom: 0; }

.compare tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in oklab, var(--surface-2), transparent 30%);
  font-size: 13.5px;
  letter-spacing: -0.005em;
}

.compare tbody tr:hover td {
  background: color-mix(in oklab, var(--accent-soft), transparent 75%);
}

.compare tbody tr:hover td:first-child {
  background: var(--surface-3);
  color: var(--accent-dark);
}

@media (prefers-color-scheme: dark) {
  .compare tbody tr:hover td:first-child { color: var(--accent); }
}

.cell-strong { color: var(--ink); font-weight: 700; }
.cell-ok     { color: var(--ok);  font-weight: 600; }
.cell-warn   { color: var(--warn); font-weight: 600; }
.cell-bad    { color: var(--bad); font-weight: 600; }

.cell-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  margin-right: 6px;
  vertical-align: -6px;
}

.cell-icon--ok  { background: var(--ok-soft);  color: var(--ok);  border: 1px solid color-mix(in oklab, var(--ok), transparent 70%); }
.cell-icon--no  { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in oklab, var(--bad), transparent 70%); }
.cell-icon--mid { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in oklab, var(--warn), transparent 70%); }

/* ----- Verdict block — refonte plus visuel ----- */

.verdict {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  box-shadow: var(--shadow-1);
  transition: box-shadow 200ms, border-color 200ms, transform 200ms;
  overflow: hidden;
}

.verdict::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--score-fill);
  opacity: 0;
  transition: opacity 220ms;
}

.verdict:hover {
  box-shadow: var(--shadow-3);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.verdict:hover::before {
  opacity: 1;
}

.verdict__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 540;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.verdict__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 540;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.verdict__pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
  box-shadow: 0 4px 10px color-mix(in oklab, var(--accent), transparent 55%);
}

.verdict__pick::before {
  content: "→";
  font-weight: 700;
}

.verdict p {
  margin: 4px 0 12px;
  font-size: 14.5px;
}

/* ----- Checklist ----- */

.checklist {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 11px 0 11px 34px;
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 55%);
  font-size: 15px;
  line-height: 1.55;
}

.checklist li:last-child { border-bottom: 0; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.checklist--cross li::before {
  content: "✕";
  border: 0;
  transform: none;
  color: var(--bad);
  font-size: 18px;
  font-weight: 700;
  top: 9px;
  left: 6px;
  width: auto;
  height: auto;
}

/* ----- FAQ — accordéons stylés ----- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: background 180ms, border-color 180ms, box-shadow 180ms;
  box-shadow: var(--shadow-1);
}

.faq details:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.faq details[open] {
  background: var(--surface-2);
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.005em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(var(--ink-medium), var(--ink-medium)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink-medium), var(--ink-medium)) center / 1.5px 12px no-repeat;
  transition: transform 240ms cubic-bezier(.4, 0, .2, 1), background-color 200ms, border-color 200ms;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat;
}

.faq summary:hover {
  color: var(--accent-dark);
}

@media (prefers-color-scheme: dark) {
  .faq summary:hover { color: var(--accent); }
}

.faq details > *:not(summary) {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.faq details > p:last-child { margin-bottom: 18px; }

/* ----- Internal links / pages liées ----- */

.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px dashed color-mix(in oklab, var(--line), transparent 30%);
}

.related h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

@media (prefers-color-scheme: dark) {
  .related h2 { color: var(--accent); }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-grid a {
  display: block;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 180ms;
  position: relative;
  box-shadow: var(--shadow-1);
}

.related-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent-dark);
  box-shadow: var(--shadow-2);
}

@media (prefers-color-scheme: dark) {
  .related-grid a:hover { color: var(--accent); }
}

.related-grid a::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: transform 220ms cubic-bezier(.4, 0, .2, 1), color 180ms;
  font-weight: 600;
}

.related-grid a:hover::after {
  transform: translateY(-50%) translateX(5px);
  color: var(--accent);
}

/* ----- Footer ----- */

.site-footer {
  margin-top: 80px;
  padding: 50px 24px 36px;
  background: linear-gradient(180deg, #14110d 0%, #0a0806 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  text-align: center;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%) 1;
  position: relative;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer .brand { color: #fff; }

.site-footer .brand-logo {
  background: #fff;
  color: #14110d;
}

.site-footer .brand-logo::before {
  background: linear-gradient(90deg, #c8492a 0%, #b88c2e 100%);
}

.site-footer .brand-logo::after { background: #b88c2e; }

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-top: 2px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 140ms;
  font-weight: 500;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #c8492a;
}

.site-footer .legal {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 65ch;
  line-height: 1.6;
  margin: 0;
}

/* ----- Misc ----- */

.divider {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 48px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 64px 0 28px;
}

.section-title h2 { margin: 0; }

.section-title p {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}

/* ----- Interactive quiz ----- */

/* Page header compact (replaces full hero) */
.quiz-page-header {
  max-width: 780px;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(200, 73, 42, 0.14);
}

.quiz-page-header .eyebrow {
  margin-bottom: 14px;
}

.quiz-page-header h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  margin: 0 0 12px;
}

.quiz-page-header__meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.quiz-page-header__sep {
  color: var(--line-strong);
}

.quiz-method-link {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration-thickness: 1px;
  opacity: 0.82;
  white-space: nowrap;
  transition: opacity 140ms;
}

.quiz-method-link:hover {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .quiz-method-link { color: var(--accent); }
}

/* page--quiz: tighter top padding so quiz is above the fold */
.page--quiz {
  padding-top: 32px;
}

.quiz-hero .trust-strip {
  margin-top: 22px;
}

.quiz-start {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.quiz-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 66px;
  min-width: 0;
}

.quiz-card,
.quiz-results {
  border: 1px solid rgba(200, 73, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(34, 25, 18, 0.96), rgba(16, 13, 10, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(200, 73, 42, 0.18), transparent 34%);
  box-shadow: 0 22px 58px rgba(20, 14, 9, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: rgba(255, 247, 230, 0.68);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.quiz-progress > span:first-child {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(200, 73, 42, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(200, 73, 42, 0.08);
}

.quiz-progress__track {
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
}

.quiz-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  transition: width 180ms ease;
}

/* Quiz question transitions */
.quiz-question {
  transition: opacity 190ms ease, transform 190ms ease;
  will-change: opacity, transform;
}

.quiz-question--exit {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
}

.quiz-question--enter {
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-question {
    transition: none !important;
    will-change: auto !important;
  }
}

.quiz-question h2 {
  margin-top: 8px;
  margin-bottom: 22px;
  max-width: 780px;
  color: #fff7e6;
  overflow-wrap: anywhere;
}

.quiz-results h2,
.quiz-result-card__head h3 {
  color: #fff7e6;
}

/* ---- Option card layout (new structure) ---- */

.quiz-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  max-width: 720px;
}

/* quiz-option-card: the clickable card wrapping each answer */
.quiz-option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(200, 73, 42, 0.2);
  border-radius: 9px;
  background: rgba(255, 247, 230, 0.05);
  cursor: pointer;
  color: #fff7e6;
  width: 100%;
  box-shadow: 0 6px 18px rgba(12, 9, 7, 0.14);
  transition: border-color 150ms, background 150ms, transform 150ms, box-shadow 150ms;
  position: relative;
  text-align: left;
}

.quiz-option-card:hover {
  border-color: rgba(236, 116, 67, 0.5);
  background: rgba(200, 73, 42, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 9, 7, 0.22);
}

.quiz-option-card.is-selected {
  border-color: rgba(242, 138, 82, 0.85);
  background: linear-gradient(160deg, rgba(200, 73, 42, 0.22), rgba(255, 247, 230, 0.07));
  box-shadow: 0 14px 32px rgba(200, 73, 42, 0.18);
}

/* Hide native radio — visually replaced by .quiz-option-radio */
.quiz-option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

/* Focus ring on keyboard navigation */
.quiz-option-card:focus-within {
  outline: 2px solid #f28a52;
  outline-offset: 3px;
}

/* Radio circle indicator */
.quiz-option-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 230, 0.28);
  background: rgba(16, 13, 10, 0.9);
  margin-top: 3px;
  transition: border-color 140ms, background 140ms, box-shadow 140ms;
}

.quiz-option-card.is-selected .quiz-option-radio,
.quiz-option-card:has(.quiz-option-input:checked) .quiz-option-radio {
  border-color: #f28a52;
  background: #f28a52;
  box-shadow: 0 0 0 3px rgba(242, 138, 82, 0.18);
}

/* Text content: title stacked above description */
.quiz-option-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.quiz-option-title {
  display: block;
  color: #fff7e6;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
}

.quiz-option-desc {
  display: block;
  color: rgba(255, 247, 230, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .quiz-option-card {
    padding: 14px 16px;
  }
}

/* Legacy class kept for backward compat */
.quiz-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 73, 42, 0.2);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.055);
  cursor: pointer;
  line-height: 1.35;
  color: #fff7e6;
  box-shadow: 0 10px 24px rgba(12, 9, 7, 0.18);
  transition: border-color 140ms, transform 140ms, background 140ms, box-shadow 140ms;
}

.quiz-option:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 116, 67, 0.52);
  background: rgba(200, 73, 42, 0.13);
  box-shadow: 0 16px 34px rgba(12, 9, 7, 0.26);
}

.quiz-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

.quiz-option:focus-within {
  outline: 2px solid #f28a52;
  outline-offset: 3px;
}

.quiz-option.is-selected,
.quiz-option:has(input:checked) {
  border-color: rgba(242, 138, 82, 0.9);
  background:
    linear-gradient(180deg, rgba(200, 73, 42, 0.28), rgba(255, 247, 230, 0.08));
  box-shadow: 0 18px 38px rgba(200, 73, 42, 0.18);
}

.quiz-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.quiz-option-marker,
.quiz-option__marker {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 247, 230, 0.36);
  border-radius: 999px;
  background: rgba(16, 13, 10, 0.9);
  box-shadow: inset 0 0 0 5px rgba(16, 13, 10, 0.9);
  transition: border-color 140ms, background 140ms;
  margin-top: 1px;
}

.quiz-option.is-selected .quiz-option-marker,
.quiz-option.is-selected .quiz-option__marker,
.quiz-option:has(input:checked) .quiz-option-marker,
.quiz-option:has(input:checked) .quiz-option__marker {
  border-color: #f28a52;
  background: #f28a52;
}

.quiz-option-content,
.quiz-option__content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.quiz-option-title,
.quiz-option__label {
  display: block;
  color: #fff7e6;
  font-size: 16px;
  font-weight: 750;
}

.quiz-option-description,
.quiz-option__hint {
  display: block;
  color: rgba(255, 247, 230, 0.72);
  font-size: 13.5px;
  line-height: 1.45;
}

.quiz-option-break {
  display: none;
}

.quiz-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 247, 230, 0.08);
}

/* Hide Suivant if it somehow ends up in the DOM */
.quiz-actions [data-quiz-next] {
  display: none !important;
}

.quiz-actions .cta--ghost {
  border-color: rgba(255, 247, 230, 0.24);
  color: #fff7e6;
  background: rgba(255, 247, 230, 0.04);
}

.quiz-actions .cta--ghost:hover {
  border-color: rgba(242, 138, 82, 0.6);
  background: rgba(200, 73, 42, 0.13);
}

.quiz-actions .cta[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.quiz-results__intro {
  color: rgba(255, 247, 230, 0.72);
  max-width: 70ch;
  line-height: 1.65;
}

.quiz-disclaimer {
  margin: 22px 0;
}

.quiz-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 12px;
}

.quiz-result-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-secondary-title {
  margin-top: 42px;
}

.quiz-result-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  border: 1px solid rgba(200, 73, 42, 0.18);
  background: rgba(255, 247, 230, 0.055);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(12, 9, 7, 0.2);
  position: relative;
  overflow: hidden;
}

/* Primary result card: accent top bar + stronger border */
.quiz-result-card--primary {
  border-color: rgba(242, 138, 82, 0.35);
  background: linear-gradient(170deg, rgba(200, 73, 42, 0.12) 0%, rgba(255, 247, 230, 0.05) 65%);
}

.quiz-result-card--primary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #c8492a 0%, #f28a52 55%, #b88c2e 100%);
  pointer-events: none;
}

.quiz-result-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.quiz-result-card__head h3 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* "Priorité" badge on primary cards */
.quiz-result-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(200, 73, 42, 0.22);
  border: 1px solid rgba(242, 138, 82, 0.38);
  color: #f28a52;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Tool type badge */
.quiz-result-card__type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.07);
  border: 1px solid rgba(255, 247, 230, 0.1);
  color: rgba(255, 247, 230, 0.62);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-result-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 247, 230, 0.8);
  line-height: 1.55;
}

/* Section sub-labels (e.g. "Pourquoi il ressort") */
.quiz-result-card__section-label {
  margin: 4px 0 2px;
  color: rgba(255, 247, 230, 0.45);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quiz-result-card__body ul {
  margin: 0 0 4px;
  padding-left: 18px;
}

.quiz-result-card__body li {
  font-size: 13.5px;
  color: rgba(255, 247, 230, 0.8);
  line-height: 1.5;
}

.quiz-result-card__body li + li {
  margin-top: 5px;
}

/* Attention block: italicized with left accent */
.quiz-result-card__attention {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 247, 230, 0.58);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid rgba(200, 73, 42, 0.3);
  padding-left: 10px;
}

.quiz-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

/* "Avant de souscrire" section */
.quiz-presub {
  margin: 42px 0 28px;
  padding: 28px 30px;
  border: 1px solid rgba(200, 73, 42, 0.16);
  border-radius: 10px;
  background: rgba(255, 247, 230, 0.022);
}

.quiz-presub__title {
  color: #fff7e6 !important;
  font-size: clamp(19px, 2.2vw, 24px) !important;
  margin: 0 0 8px !important;
}

.quiz-presub__intro {
  color: rgba(255, 247, 230, 0.56);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 72ch;
}

.quiz-presub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.quiz-presub__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.036);
  border: 1px solid rgba(255, 247, 230, 0.065);
  font-size: 13px;
  color: rgba(255, 247, 230, 0.7);
  line-height: 1.45;
}

.quiz-presub__item strong {
  display: block;
  color: rgba(255, 247, 230, 0.88);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.quiz-presub__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: rgba(200, 73, 42, 0.16);
  border: 1px solid rgba(200, 73, 42, 0.2);
  display: grid;
  place-items: center;
  color: #f28a52;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-sans);
  font-style: normal;
  line-height: 1;
  margin-top: 1px;
}

.quiz-presub__disclaimer {
  font-size: 12px;
  color: rgba(255, 247, 230, 0.36);
  margin: 14px 0 0;
  font-style: italic;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 247, 230, 0.06);
  padding-top: 14px;
}

.quiz-method-grid {
  align-items: stretch;
}

.quiz-method-grid h2 {
  margin-top: 0;
}

/* ----- Responsive ----- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual { order: 2; }
  .quiz-result-grid,
  .quiz-result-grid--secondary {
    grid-template-columns: 1fr;
  }
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .page, .page-narrow { padding: 32px 18px 64px; }
  .page--quiz { padding-top: 24px; }
  .nav { padding: 12px 18px; min-height: 60px; flex-wrap: wrap; gap: 10px; }
  .brand { max-width: 100%; }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    justify-content: stretch;
  }
  .nav-links a {
    justify-content: center;
    min-width: 0;
    padding: 7px 8px;
    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .compare thead th { position: static; }
  h2 { margin: 44px 0 16px; }
  .verdict { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .verdict__num { font-size: 32px; }
  .related { margin-top: 48px; padding-top: 32px; }
  .hero { padding: 28px 0 16px; }
  .hero::before { display: none; }
  .quiz-page-header { margin-bottom: 18px; padding-bottom: 16px; }
  .quiz-page-header__meta { gap: 0; }
  .quiz-page-header__sep { display: none; }
  .quiz-method-link { display: block; margin-top: 6px; }
  .quiz-card,
  .quiz-results {
    padding: 20px;
  }
  .quiz-progress {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .quiz-option {
    min-height: auto;
    padding: 16px;
  }
  .quiz-actions,
  .quiz-result-card__actions {
    flex-direction: column;
  }
  .quiz-actions .cta,
  .quiz-result-card__actions .cta {
    width: 100%;
    justify-content: center;
  }
  .quiz-presub {
    padding: 20px 16px;
  }
  .quiz-presub__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Accessibility utilities */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   GEO P1+P2 — blocs Faits clés + TL;DR (anti-hallucination AI)
   Utilise les CSS vars du design system pour respecter le thème
   light/dark prefers-color-scheme.
   ========================================================= */
.facts-box {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  color: var(--text);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
}
.facts-box h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.4rem;
}
.facts-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts-box li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--text);
}
.facts-box li:last-child {
  border-bottom: 0;
}
.facts-box li strong {
  color: var(--ink);
}
.facts-box a {
  color: var(--accent);
  text-decoration: underline;
}
.facts-box .sources-note {
  font-size: 0.85rem;
  color: var(--ink-medium);
  margin-top: 1rem;
  font-style: italic;
}

.tldr-box {
  background: var(--surface-2);
  border: 2px solid var(--accent);
  color: var(--text);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}
.tldr-box h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.tldr-box p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}
.tldr-box strong {
  color: var(--ink);
}

/* =========================================================
   Quiz v4 — hero result + secondary cards
   ========================================================= */

.quiz-hero-result {
  margin-top: 1.5rem;
}

.quiz-hero-card {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.quiz-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.quiz-hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.quiz-hero-card__badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-block;
}

.quiz-hero-card__score {
  font-size: 0.85rem;
  color: var(--ink-medium);
  font-weight: 500;
}

.quiz-hero-card__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.quiz-hero-card__logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 700;
  font-size: 1.75rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.quiz-hero-card__name {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 2rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.quiz-hero-card__type {
  color: var(--ink-medium);
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.quiz-hero-card__pitch {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.quiz-hero-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.quiz-hero-card__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.quiz-hero-card__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz-hero-card__col li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.quiz-hero-card__col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.quiz-hero-card__attention {
  background: rgba(245, 114, 68, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: 4px;
}

.quiz-hero-card__attention strong {
  color: var(--ink);
}

.quiz-hero-card__cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-hero-card__main-cta {
  flex: 1 1 auto;
  min-width: 280px;
  text-align: center;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.cta--large {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.quiz-hero-card__secondary-cta {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
}

/* Secondary cards (rest) */
.quiz-result-grid--secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.quiz-result-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.quiz-result-card__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

/* Override : casse normale, pas de pill */
.quiz-result-grid--secondary .quiz-result-card__type {
  display: block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-medium);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Score inline dans le h3 (ex: "Abby 8,6/10") */
.quiz-result-card__score {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* Layout carte secondaire : head + body propres */
.quiz-result-grid--secondary .quiz-result-card__head {
  align-items: flex-start;
}
.quiz-result-grid--secondary .quiz-result-card__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.quiz-result-grid--secondary .quiz-result-card__head .tool-card__logo {
  flex-shrink: 0;
}

.quiz-result-card__body {
  flex: 1;
  margin-bottom: 1rem;
}

.quiz-result-card__reason {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.quiz-result-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-result-card__actions .cta {
  text-align: center;
  width: 100%;
}

.quiz-secondary-title {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.quiz-secondary-intro {
  color: var(--ink-medium);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.quiz-disclaimer {
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .quiz-hero-card {
    padding: 1.25rem;
  }
  .quiz-hero-card__title-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .quiz-hero-card__logo {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .quiz-hero-card__name {
    font-size: 1.5rem;
  }
  .quiz-hero-card__details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .quiz-hero-card__cta-row {
    flex-direction: column;
  }
  .quiz-hero-card__main-cta,
  .quiz-hero-card__secondary-cta {
    width: 100%;
    min-width: 0;
  }
}



/* =========================================================
   Home popup — promo quiz facturation
   ========================================================= */

.ci-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.ci-popup-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.ci-popup-overlay--no-motion {
  transition: none;
}

.ci-popup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.ci-popup-overlay--visible .ci-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ci-popup-overlay--no-motion .ci-popup {
  transform: none;
  opacity: 1;
  transition: none;
}

.ci-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-medium);
  transition: all 160ms ease;
  line-height: 0;
}

.ci-popup__close:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--ink-medium);
}

.ci-popup__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ci-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.85rem;
  background: rgba(245, 114, 68, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.ci-popup__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.ci-popup__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.ci-popup__desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.ci-popup__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ci-popup__features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ci-popup__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.ci-popup__cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.ci-popup__cta-primary {
  flex: 1 1 auto;
  min-width: 200px;
  background: var(--accent);
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 160ms ease, transform 160ms ease;
  text-align: center;
}

.ci-popup__cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.ci-popup__cta-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ci-popup__arrow {
  transition: transform 160ms ease;
}

.ci-popup__cta-primary:hover .ci-popup__arrow {
  transform: translateX(3px);
}

.ci-popup__cta-ghost {
  flex: 0 0 auto;
  background: transparent;
  color: var(--ink-medium);
  border: 1px solid var(--line);
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 160ms ease;
}

.ci-popup__cta-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--ink-medium);
}

.ci-popup__cta-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ci-popup__note {
  font-size: 0.78rem;
  color: var(--ink-medium);
  text-align: center;
  margin: 1.25rem 0 0;
  line-height: 1.45;
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .ci-popup {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }
  .ci-popup__title {
    font-size: 1.35rem;
  }
  .ci-popup__desc {
    font-size: 0.95rem;
  }
  .ci-popup__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ci-popup__cta-primary,
  .ci-popup__cta-ghost {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-popup-overlay,
  .ci-popup,
  .ci-popup__cta-primary,
  .ci-popup__arrow {
    transition: none;
  }
  .ci-popup__cta-primary:hover {
    transform: none;
  }
}
