/* =====================================================================
   Plume — Landing page styles (light, editorial, minimal)
   ===================================================================== */

:root {
  /* Plume design tokens (officiels) */
  --ink: #08111F;            /* plume-ink-900 */
  --ink-soft: #283448;       /* plume-ink-600 */
  --muted: #66738A;          /* plume-ink-400 */
  --dim: #9AA6B8;            /* plume-ink-300 */
  --paper: #FAFAF6;          /* plume-paper */
  --paper-2: #F3F2EC;        /* plume-paper-2 */
  --paper-3: #E6EAF1;        /* plume-ink-100 */
  --line: #E6EAF1;
  --line-soft: #F3F2EC;
  --accent: #0B5FC1;         /* plume-blue-500 */
  --accent-dark: #073D80;    /* plume-blue-700 */
  --accent-soft: #EEF4FC;    /* plume-blue-50 */
  --good: #1F8A4E;
  --bad: #C73B30;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1100px;
  --gap-section: 110px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: "Instrument Serif", "Fraunces", "Inter", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -1.5px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

code, pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.logo-mark-svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* fallback texte pour compatibilité descendante */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
}

.logo-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-link-ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.nav-link-ext:hover {
  color: var(--accent-dark) !important;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(8, 17, 31, 0.08);
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(8, 17, 31, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 95, 193, 0.15);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

h1 {
  font-family: "Geist", "Inter", -apple-system, sans-serif;
  font-size: clamp(46px, 6.5vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -2.5px;
  color: var(--ink);
  margin-bottom: 28px;
}

h1 .serif-accent {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

h1 .serif-accent .dot {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

.serif-underline {
  position: absolute;
  left: 2%;
  right: 8%;
  bottom: -0.18em;
  width: 92%;
  height: 0.22em;
  color: var(--accent);
  opacity: 0.6;
  pointer-events: none;
}

.serif-underline path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-underline 1200ms cubic-bezier(0.22, 1, 0.36, 1) 400ms forwards;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.kpi-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.kpi-row li { display: flex; flex-direction: column; gap: 2px; }
.kpi-row strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.kpi-row span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .kpi-row { grid-template-columns: 1fr; gap: 14px; }
}

/* =====================================================================
   HERO MOCK
   ===================================================================== */
.hero-mock {
  perspective: 1200px;
}

.mock-window {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 var(--line),
    0 30px 60px -20px rgba(8, 17, 31, 0.18),
    0 0 0 1px var(--line);
  overflow: hidden;
  transform: rotateY(-2deg);
  transition: transform 0.5s ease;
}

.mock-window:hover {
  transform: rotateY(0deg);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.red { background: #ff6058; }
.mock-dot.yellow { background: #ffbe2e; }
.mock-dot.green { background: #28cd41; }

.mock-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.mock-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 270px;
  min-height: 360px;
}

.mock-page {
  position: relative;
  padding: 24px;
  background: var(--paper-3);
  margin: 14px;
  border-radius: 8px;
}

.mock-page::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.mock-page::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 92px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) 0 0 / 80% 10px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 0 18px / 60% 8px no-repeat,
    linear-gradient(var(--dim), var(--dim)) 0 36px / 90% 6px no-repeat,
    linear-gradient(var(--dim), var(--dim)) 0 50px / 70% 6px no-repeat,
    linear-gradient(var(--dim), var(--dim)) 0 64px / 85% 6px no-repeat;
}

.mock-panel {
  background: white;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--ink);
}

.mock-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.mock-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.mock-panel-header strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.mock-sub {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.mock-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.mock-tabs span {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 10px;
}

.mock-tabs span.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.mock-output {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.mock-scene {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mock-scene.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mock-score {
  font-size: 11px;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(11, 95, 193, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-score strong {
  color: var(--good);
  font-size: 13px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.mock-line {
  height: 7px;
  background: var(--paper-3);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.mock-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(11, 95, 193, 0.08), transparent);
  animation: shimmer 2.4s linear infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

.mock-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-soft);
  padding: 1px 0;
}

.mock-bullet span {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- éléments des scènes additionnelles --- */

.mock-eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.mock-typetext {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
  min-height: 1.35em;
}

.mock-typetext::after {
  content: "▍";
  margin-left: 1px;
  color: var(--accent);
  animation: blink 900ms steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.mock-tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.mock-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(11, 95, 193, 0.15);
}

.mock-strike {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--muted);
  background: rgba(199, 59, 48, 0.06);
  padding: 5px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--bad);
}

.mock-arrow {
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  margin: -2px 0;
}

.mock-hook {
  font-size: 10px;
  color: var(--ink-soft);
  padding: 5px 8px;
  background: var(--paper-2);
  border-radius: 5px;
  border-left: 2px solid var(--accent);
}

.mock-hook.dim {
  opacity: 0.5;
  border-left-color: var(--dim);
}

.mock-act {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 500;
}

.mock-act-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  flex-shrink: 0;
}

.mock-comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-comment strong {
  font-size: 10px;
  color: var(--accent-dark);
  font-weight: 600;
}

.mock-footer {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.mock-pill {
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.mock-pill.cache {
  color: var(--accent);
  border-color: rgba(11, 95, 193, 0.3);
  background: var(--accent-soft);
}

.mock-fab {
  position: absolute;
  bottom: 16px;
  right: 286px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow:
    0 8px 18px -2px rgba(11, 95, 193, 0.35),
    0 2px 6px rgba(8, 17, 31, 0.18);
}

.mock-fab svg { display: block; }

@media (max-width: 540px) {
  .mock-body { grid-template-columns: 1fr; min-height: 280px; }
  .mock-panel { display: none; }
  .mock-fab { right: 16px; }
}

/* =====================================================================
   SECTIONS GENERIC
   ===================================================================== */
.section {
  padding: var(--gap-section) 0;
  position: relative;
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 11px;
  background: var(--paper-2);
  color: var(--muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

/* =====================================================================
   VOIX
   ===================================================================== */
.voice {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

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

.voice-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.voice-card.refuses { border-color: rgba(178, 64, 32, 0.2); }
.voice-card.writes  { border-color: rgba(5, 118, 66, 0.2); }

.voice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.voice-tag.good {
  background: rgba(5, 118, 66, 0.08);
  color: var(--good);
}

.voice-tag.bad {
  background: rgba(178, 64, 32, 0.08);
  color: var(--bad);
}

.voice-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voice-card li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
  font-style: italic;
}

.voice-card.writes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-style: normal;
  font-weight: 700;
}

.voice-card.refuses li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--bad);
  font-style: normal;
  font-weight: 700;
}

/* =====================================================================
   FEATURES — BENTO GRID
   ===================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  grid-auto-flow: dense;
  gap: 18px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
}

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

.bento-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: span 2;
  grid-row: span 1;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    box-shadow 0.25s;
  isolation: isolate;
  overflow: hidden;
}

.bento-card::before {
  /* halo bleu doux qui se révèle au survol */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 50% 0%, rgba(11, 95, 193, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 95, 193, 0.45);
  box-shadow:
    0 18px 40px -18px rgba(11, 95, 193, 0.25),
    0 2px 6px rgba(8, 17, 31, 0.06);
}

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

@media (max-width: 900px) {
  .bento-card { grid-column: span 2; }
}

@media (max-width: 600px) {
  .bento-card { grid-column: 1 / -1; }
}

/* Tuiles vedettes : 2 colonnes × 2 rangées */
.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
  background: linear-gradient(160deg, white 0%, var(--paper) 100%);
}

.bento-hero.bento-series {
  background: linear-gradient(160deg, white 0%, var(--accent-soft) 100%);
  border-color: rgba(11, 95, 193, 0.18);
}

.bento-hero.bento-audit {
  background: linear-gradient(160deg, white 0%, var(--paper-2) 100%);
}

@media (max-width: 900px) {
  .bento-hero { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 600px) {
  .bento-hero { padding: 28px; }
}

.bento-num {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.6px;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(11, 95, 193, 0.15);
  align-self: flex-start;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  align-self: flex-start;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.bento-hero h3 {
  font-size: 26px;
  letter-spacing: -0.6px;
}

.bento-card p {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14.5px;
}

.bento-card p strong { color: var(--ink); font-weight: 600; }

/* Mini-visualisations dans les tuiles vedettes */
.bento-mini {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-mini-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(11, 95, 193, 0.18);
  font-size: 12px;
  color: var(--ink-soft);
}

.bento-mini-score strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.bento-mini-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bento-mini-list span {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 6px 10px 6px 22px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--line);
  position: relative;
}

.bento-mini-list span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.bento-acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-act {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(11, 95, 193, 0.15);
}

.bento-act > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bento-act strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.1px;
}

.bento-act span:not(.bento-act-num) {
  font-size: 11px;
  color: var(--muted);
}

.bento-act-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 95, 193, 0.25);
}

/* Tuile finale pleine largeur */
.bento-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  padding: 32px;
  background: linear-gradient(160deg, white 0%, var(--paper-2) 100%);
}

@media (max-width: 720px) {
  .bento-wide { grid-template-columns: 1fr; gap: 22px; }
}

.bento-wide-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.bento-wide-text h3 {
  font-size: 24px;
}

.bento-wide-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-wide-dm {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}

.bento-wide-dm:hover {
  border-color: rgba(11, 95, 193, 0.4);
  transform: translateX(3px);
}

.bento-wide-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
}

.bento-wide-dm p {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* =====================================================================
   PROVIDERS
   ===================================================================== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1000px) {
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.provider-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.provider-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 12px 24px rgba(8, 17, 31, 0.06);
}

.provider-card.recommended {
  border-color: rgba(11, 95, 193, 0.4);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 60%);
}

.provider-tag {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.provider-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.provider-card .provider-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.provider-card ul {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.provider-card li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.provider-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: 700;
  color: var(--accent);
}

.provider-card strong { color: var(--ink); }
.provider-card em { color: var(--accent); font-style: normal; }

.provider-link {
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s;
}

.provider-link:hover {
  color: var(--accent-dark);
}

/* =====================================================================
   HOW
   ===================================================================== */
.how {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

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

.how-step {
  padding: 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.how-step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-box {
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--good);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.privacy-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-box li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.privacy-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.privacy-box code {
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line);
}

/* =====================================================================
   INSTALL
   ===================================================================== */
.install-banner {
  max-width: 820px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border: 1px solid rgba(11, 95, 193, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -16px rgba(11, 95, 193, 0.25);
}
.install-banner-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid rgba(11, 95, 193, 0.2);
  border-radius: 10px;
  color: var(--accent);
}
.install-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.55;
}
.install-banner-text strong {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14.5px;
}
.install-banner-text span {
  color: var(--ink-soft);
}
@media (max-width: 540px) {
  .install-banner {
    padding: 14px;
    gap: 10px;
  }
  .install-banner-icon {
    width: 30px;
    height: 30px;
  }
  .install-banner-text {
    font-size: 13.5px;
  }
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 48px;
}

.install-steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: start;
}

.install-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.install-steps h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.install-steps p {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 8px;
}

.install-steps code {
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line);
}

.install-steps pre {
  background: var(--ink);
  color: var(--paper-2);
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
  margin-top: 10px;
}

.install-steps pre code {
  background: none;
  padding: 0;
  color: inherit;
  border: none;
}

.install-steps a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.install-cta {
  text-align: center;
  max-width: 680px;
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.install-cta p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 16px;
}

@media (max-width: 540px) {
  .install-steps li { grid-template-columns: 1fr; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: var(--paper-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tag {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
}

/* =====================================================================
   CHAPITRE ÉDITORIAL — pull quote + before/after (palette claire harmonisée)
   ===================================================================== */
.chapter {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(11, 95, 193, 0.08), transparent 55%),
    var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.chapter::before {
  /* fine grille typographique en fond, très discrète */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 95, 193, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.chapter-quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 72px;
  position: relative;
}

.chapter-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: -30px;
  opacity: 0.55;
}

.chapter-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.chapter-text em {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.chapter-compare {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 22px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .chapter-compare {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.chapter-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 28px -20px rgba(8, 17, 31, 0.12);
}

.chapter-post:hover {
  transform: translateY(-3px);
}

.chapter-post-before {
  background: #FBFAF5;
  opacity: 0.92;
}

.chapter-post-after {
  border-color: rgba(11, 95, 193, 0.35);
  box-shadow:
    0 18px 40px -16px rgba(11, 95, 193, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(160deg, #fff 0%, var(--accent-soft) 100%);
}

.chapter-post header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.chapter-post header strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.chapter-post header span {
  font-size: 11px;
  color: var(--muted);
}

.chapter-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C7CCD6, #8C95A8);
  flex-shrink: 0;
}

.chapter-avatar-you {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 2px 8px rgba(11, 95, 193, 0.35);
}

.chapter-strike {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(8, 17, 31, 0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(199, 59, 48, 0.55);
  text-decoration-thickness: 1px;
  margin-bottom: 14px;
}

.chapter-after {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 14px;
}

.chapter-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.chapter-tag-bad {
  background: rgba(199, 59, 48, 0.08);
  color: #A8362B;
  border: 1px solid rgba(199, 59, 48, 0.25);
}

.chapter-tag-good {
  background: rgba(31, 138, 78, 0.1);
  color: #1F6F44;
  border: 1px solid rgba(31, 138, 78, 0.3);
}

.chapter-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

.chapter-arrow span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .chapter-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

/* =====================================================================
   COMPARAISON
   ===================================================================== */
.compare {
  background: var(--paper);
}

.compare-table {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(8, 17, 31, 0.18);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1fr;
  align-items: stretch;
}

.compare-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.compare-head > div {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.compare-head > div:first-child {
  border-left: none;
}

.compare-col strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.compare-col span {
  font-size: 11px;
  color: var(--muted);
}

.compare-col-us {
  background: linear-gradient(180deg, var(--accent-soft), white);
  position: relative;
}

.compare-col-us::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.compare-col-us strong { color: var(--accent-dark); }

.compare-row {
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}

.compare-row:hover { background: rgba(11, 95, 193, 0.025); }

.compare-axis {
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  letter-spacing: -0.1px;
}

.compare-cell {
  padding: 16px 12px;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
}

.compare-yes {
  color: var(--accent-dark);
  font-weight: 600;
  background: rgba(11, 95, 193, 0.04);
}

.compare-no {
  color: var(--bad);
  font-weight: 500;
  font-size: 15px;
}

.compare-mid {
  color: var(--muted);
  font-style: italic;
  font-size: 12.5px;
}

.compare-note {
  text-align: center;
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.compare-note em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 820px) {
  .compare-table { font-size: 12px; }
  .compare-head,
  .compare-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .compare-head > div:nth-child(4),
  .compare-head > div:nth-child(5),
  .compare-row > .compare-cell:nth-child(4),
  .compare-row > .compare-cell:nth-child(5) {
    display: none;
  }
}

/* =====================================================================
   CALCULATEUR DE COÛT
   ===================================================================== */
.calculator {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calc-card {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 50px -28px rgba(8, 17, 31, 0.22);
}

@media (max-width: 800px) {
  .calc-card { grid-template-columns: 1fr; }
}

.calc-input {
  padding: 36px;
  background: linear-gradient(160deg, white 0%, var(--accent-soft) 100%);
  border-right: 1px solid var(--line);
}

@media (max-width: 800px) {
  .calc-input { border-right: none; border-bottom: 1px solid var(--line); }
}

.calc-input label {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.calc-volume {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.calc-volume strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -2px;
}

.calc-volume span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 140px;
  line-height: 1.35;
}

#calc-posts {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--paper-3);
  border-radius: 2px;
  outline: none;
  margin: 14px 0 16px;
}

#calc-posts::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(11, 95, 193, 0.4);
  transition: transform 0.15s;
}

#calc-posts::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#calc-posts::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(11, 95, 193, 0.4);
}

.calc-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.calc-outputs {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
}

.calc-out {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, transform 0.2s;
}

.calc-out:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
}

.calc-out-best {
  background: linear-gradient(160deg, var(--accent-soft) 0%, white 100%);
  border-color: rgba(11, 95, 193, 0.35);
  position: relative;
}

.calc-out-best::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 10px 10px 0 0;
}

.calc-out-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-out-label em {
  color: var(--accent);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  margin-left: 4px;
  background: rgba(11, 95, 193, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.calc-out strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.8px;
}

.calc-out-best strong {
  color: var(--accent);
}

.calc-out-sub {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}

.calc-disclaimer {
  text-align: center;
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* =====================================================================
   STICKY INSTALL BAR
   ===================================================================== */
.sticky-install {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  pointer-events: none;
  max-width: calc(100% - 32px);
}

.sticky-install.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 12px;
  background: rgba(8, 17, 31, 0.95);
  color: var(--paper);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 50px -16px rgba(8, 17, 31, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sticky-mark {
  width: 32px;
  height: 32px;
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  padding: 2px;
}

.sticky-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.sticky-copy strong {
  font-size: 13.5px;
  color: var(--paper);
  letter-spacing: -0.1px;
}

.sticky-copy span {
  font-size: 11px;
  color: rgba(250, 250, 246, 0.55);
}

.sticky-install .btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: transparent;
}

.sticky-install .btn-primary:hover {
  background: var(--accent-dark);
}

@media (max-width: 540px) {
  .sticky-copy span { display: none; }
  .sticky-inner { padding: 8px 12px 8px 10px; gap: 10px; }
  .sticky-mark { width: 28px; height: 28px; }
}

/* =====================================================================
   BTN MAGNETIC — petits ajustements pour l'arrow
   ===================================================================== */
.btn-arrow {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-magnetic:hover .btn-arrow {
  transform: translateX(3px);
}

/* =====================================================================
   SCROLL PROGRESS BAR
   ===================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  z-index: 100;
  transition: width 60ms linear;
  box-shadow: 0 0 12px rgba(11, 95, 193, 0.5);
}

/* =====================================================================
   CURSOR GLOW (hero spotlight)
   ===================================================================== */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 95, 193, 0.18) 0%, rgba(11, 95, 193, 0.06) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
  filter: blur(20px);
}

.cursor-glow.active {
  opacity: 1;
}

@media (max-width: 720px), (hover: none) {
  .cursor-glow { display: none; }
}

/* =====================================================================
   DÉMO LIVE v2 — stage (angles tabs + sources cards + canvas éditeur)
   ===================================================================== */
.live-demo {
  background: var(--paper);
  padding-top: 90px;
  padding-bottom: 90px;
}

.stage {
  max-width: 1180px;
  margin: 0 auto;
}

/* --- 3 angles éditoriaux en gros tabs --- */
.stage-angles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .stage-angles { grid-template-columns: 1fr; }
}

.angle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s;
}

.angle:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 95, 193, 0.4);
  box-shadow: 0 10px 24px -14px rgba(11, 95, 193, 0.25);
}

.angle:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.2);
}

.angle.is-active {
  border-color: var(--accent);
  background: linear-gradient(160deg, white 0%, var(--accent-soft) 100%);
  box-shadow: 0 12px 28px -16px rgba(11, 95, 193, 0.35);
}

.angle.is-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid rgba(11, 95, 193, 0.35);
  pointer-events: none;
}

.angle-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
  background: var(--paper-2);
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.4px;
}

.angle.is-active .angle-num {
  background: var(--accent);
  color: var(--paper);
}

.angle-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.angle-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.angle-desc {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 14px;
  line-height: 1.3;
}

/* --- Grille : sources à gauche, canvas à droite --- */
.stage-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}

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

/* --- Sources : 4 sujets en cards verticales --- */
.stage-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s;
}

.source:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 95, 193, 0.45);
  box-shadow: 0 10px 22px -14px rgba(11, 95, 193, 0.3);
}

.source:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.2);
}

.source.is-active {
  border-color: var(--accent);
  background: linear-gradient(160deg, white 0%, var(--accent-soft) 100%);
  box-shadow: 0 12px 28px -16px rgba(11, 95, 193, 0.35);
}

.source.is-active::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 95, 193, 0.18);
  animation: stage-pulse 1.4s ease-in-out infinite;
}

@keyframes stage-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.source-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
}

.source.is-active .source-tag {
  background: white;
  border-color: rgba(11, 95, 193, 0.25);
  color: var(--accent-dark);
}

.source-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.source-go {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s, transform 0.18s;
  margin-top: auto;
}

.source:hover .source-go,
.source.is-active .source-go {
  opacity: 1;
  transform: translateX(0);
}

.source.is-active .source-go { color: var(--accent-dark); }

/* --- Canvas : éditeur sombre type IDE --- */
.stage-canvas {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 17, 31, 0.2);
  box-shadow: 0 22px 50px -22px rgba(8, 17, 31, 0.4);
  min-height: 440px;
}

.canvas-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(250, 250, 246, 0.55);
}

.canvas-traffic {
  display: inline-flex;
  gap: 6px;
}

.canvas-traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.canvas-traffic i:nth-child(1) { background: #ff5f56; }
.canvas-traffic i:nth-child(2) { background: #ffbd2e; }
.canvas-traffic i:nth-child(3) { background: #27c93f; }

.canvas-file {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(250, 250, 246, 0.7);
}

.canvas-file strong {
  color: var(--paper);
  font-weight: 600;
}

.canvas-sep {
  margin: 0 6px;
  color: rgba(250, 250, 246, 0.3);
}

.canvas-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(250, 250, 246, 0.7);
  font-family: "JetBrains Mono", monospace;
}

.canvas-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(31, 138, 78, 0.2);
}

.canvas-status-dot.writing {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.3);
  animation: stage-pulse 1s ease-in-out infinite;
}

.canvas-body {
  flex: 1;
  padding: 22px 24px;
  overflow-y: auto;
  max-height: 480px;
}

.canvas-text {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.55;
  color: rgba(250, 250, 246, 0.94);
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 24px;
}

.canvas-text.is-streaming::after {
  content: "▍";
  display: inline-block;
  color: var(--accent);
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
  font-style: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.canvas-text.is-done {
  color: rgba(250, 250, 246, 0.96);
}

.canvas-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.canvas-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
}

.canvas-btn.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.canvas-btn.primary:hover:not([disabled]) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.canvas-btn.primary[disabled] {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 250, 246, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.canvas-btn.primary.copied {
  background: var(--good);
  border-color: var(--good);
}

.canvas-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 250, 246, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}

.canvas-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.canvas-btn[hidden] { display: none !important; }

.canvas-stat {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(250, 250, 246, 0.5);
}

/* =====================================================================
   PRICING / MODÈLE ÉCONOMIQUE
   ===================================================================== */
.pricing {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 22px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -28px rgba(8, 17, 31, 0.25);
}

.pricing-now {
  background: linear-gradient(160deg, white 0%, var(--accent-soft) 100%);
  border-color: rgba(11, 95, 193, 0.35);
}

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

.pricing-later {
  background: white;
  border-style: dashed;
  border-color: var(--dim);
}

.pricing-card header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 11px;
  border-radius: 999px;
  align-self: flex-start;
}

.pricing-tag-now {
  background: var(--accent);
  color: var(--paper);
}

.pricing-tag-later {
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.pricing-later h3 {
  color: var(--ink-soft);
  font-weight: 600;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.pricing-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pricing-list.muted li {
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.pricing-list.muted li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--dim);
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.pricing-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pricing-amount {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -2px;
}

.pricing-unit {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.pricing-promise {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pricing-promise strong { color: var(--ink); }
.pricing-promise em { color: var(--bad); font-style: normal; font-weight: 600; }

.pricing-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  opacity: 0.7;
}

.pricing-arrow span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 820px) {
  .pricing-arrow { flex-direction: row; padding: 6px 0; }
  .pricing-arrow svg { transform: rotate(90deg); }
  .pricing-arrow span { writing-mode: horizontal-tb; transform: none; }
}

.pricing-note {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
}

/* =====================================================================
   CODE BLOCK with copy
   ===================================================================== */
.code-block {
  position: relative;
  margin-top: 10px;
}

.code-block pre {
  margin: 0;
  padding-right: 90px !important;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(250, 250, 246, 0.08);
  color: rgba(250, 250, 246, 0.65);
  border: 1px solid rgba(250, 250, 246, 0.12);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.code-copy:hover {
  background: rgba(11, 95, 193, 0.25);
  color: var(--paper);
  border-color: rgba(11, 95, 193, 0.45);
}

.code-copy.copied {
  background: rgba(31, 138, 78, 0.25);
  color: #7FD3A4;
  border-color: rgba(31, 138, 78, 0.45);
}

/* =====================================================================
   PROVIDER CARDS — état actif (cliquable, pilote le mock)
   ===================================================================== */
.provider-card {
  cursor: pointer;
}

.provider-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -18px rgba(11, 95, 193, 0.35);
  transform: translateY(-3px);
}

.provider-card.is-active::after {
  content: "✓ Actif sur la démo hero";
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--good);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.provider-card.recommended.is-active::after { left: auto; right: 110px; }

/* =====================================================================
   TILT 3D (bento-hero)
   ===================================================================== */
.bento-hero {
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-hero .bento-mini,
.bento-hero h3,
.bento-hero p,
.bento-hero .bento-tag {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

/* =====================================================================
   KPI compteur animé
   ===================================================================== */
.kpi-row strong[data-counter] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 4ch;
}

/* =====================================================================
   MARQUEE VOIX ÉDITORIALE
   ===================================================================== */
.voice-marquee {
  margin-top: 56px;
  padding: 18px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.voice-marquee::before,
.voice-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.voice-marquee::before {
  left: 0;
  background: linear-gradient(90deg, white 0%, transparent 100%);
}

.voice-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, white 0%, transparent 100%);
}

.voice-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.voice-marquee:hover .voice-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.voice-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  padding: 4px 0;
}

.voice-marquee-item.bad { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(199, 59, 48, 0.55); }
.voice-marquee-item .voice-marquee-sep { color: var(--accent); opacity: 0.5; font-style: normal; }

/* =====================================================================
   UPGRADES v3 — Patterns 21st.dev / Magic UI (Mai 2026)
   Word rotator · Border beam · Spotlight cards · Shimmer button · Grid bg
   ===================================================================== */

/* --- 14.1 Hero grid background (subtil) --- */
.hero { overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 95, 193, 0.09) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 30% 30%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 60% at 30% 30%, black 25%, transparent 80%);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* --- 14.2 Badge pulsant + Word rotator --- */
.badge {
  position: relative;
}

.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.2);
  animation: badge-pulse 1.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.2); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(11, 95, 193, 0.12); }
}

.rotator {
  position: relative;
  display: inline-block;
  height: 1.2em;
  vertical-align: -0.18em;
  overflow: hidden;
  margin-left: 4px;
  font-weight: 700;
}

.rotator-word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--accent-dark);
  white-space: nowrap;
}

.rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.rotator-word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

/* --- 14.3 Shimmer button (CTA primaire) --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  animation: btn-shimmer 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes btn-shimmer {
  0% { left: -150%; }
  55% { left: 150%; }
  100% { left: 150%; }
}

.btn-primary > * { position: relative; z-index: 2; }

/* --- 14.4 Border beam / glow autour du canvas démo pendant l'écriture --- */
.stage-canvas {
  transition: border-color 0.4s, box-shadow 0.4s;
}

.stage-canvas.is-writing {
  border-color: rgba(11, 95, 193, 0.55);
  box-shadow:
    0 22px 50px -22px rgba(8, 17, 31, 0.45),
    0 0 0 1px rgba(11, 95, 193, 0.4),
    0 0 60px -10px rgba(11, 95, 193, 0.45);
}

/* Shimmer line qui traverse la barre titre quand Plume écrit */
.stage-canvas .canvas-bar {
  position: relative;
  overflow: hidden;
}

.stage-canvas .canvas-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 95, 193, 0.55) 50%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.stage-canvas.is-writing .canvas-bar::after {
  opacity: 1;
  animation: bar-shimmer 2.4s linear infinite;
}

@keyframes bar-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* --- 14.5 Spotlight / Magic Card (curseur follow) --- */
.bento-card::before {
  /* Override : utilise les CSS vars --mx/--my pour suivre le curseur */
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    rgba(11, 95, 193, 0.14),
    transparent 65%
  ) !important;
}

.provider-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.provider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(11, 95, 193, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.provider-card:hover::after { opacity: 1; }

.provider-card > * { position: relative; z-index: 1; }

.source {
  isolation: isolate;
}

.source::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(11, 95, 193, 0.10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.source:hover::after { opacity: 1; }

.source > * { position: relative; z-index: 1; }

/* --- 14.6 Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .badge-dot,
  .btn-primary::after,
  .stage-canvas.is-writing .canvas-bar::after {
    animation: none !important;
  }
  .rotator-word {
    transition: none !important;
  }
}

/* =====================================================================
   RESPONSIVE v4 (Mai 2026)
   Breakpoints explicites, du plus petit au plus grand :
   - <=360px : Android compact (S8e, vieux Pixel)
   - <=430px : iPhone Pro Max / Plus
   - <=640px : grands smartphones en portrait
   - <=768px : iPad portrait
   - 769-1024px : iPad paysage / petit laptop
   - >=1200px : desktop large

   Strategie : on garde la base "desktop-first" deja en place ;
   ce bloc OVERRIDE proprement les cas problematiques a chaque palier,
   en finissant par les ecrans les plus etroits (cascade naturelle).
   ===================================================================== */

/* ----- 1024px et moins : iPad paysage ----- */
@media (max-width: 1024px) {
  :root {
    --gap-section: 88px;
  }
  .container {
    padding: 0 28px;
  }
  .hero-grid {
    gap: 44px;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide,
  .bento-hero {
    grid-column: span 2;
  }
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- 768px et moins : iPad portrait + tout ce qui est en dessous ----- */
@media (max-width: 768px) {
  :root {
    --gap-section: 72px;
  }
  .container {
    padding: 0 22px;
  }
  /* Hero : passage en 1 colonne, mock-window en second */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-mock {
    order: 2;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .mock-window {
    transform: none;
  }
  .mock-window:hover {
    transform: none;
  }
  h1 {
    letter-spacing: -1.6px;
  }
  .lead {
    font-size: 17px;
    max-width: 100%;
  }
  /* Nav : on cache les liens secondaires, on garde "Site Plume" + Installer */
  .nav-links {
    display: none;
  }
  .nav-inner {
    gap: 10px;
    padding: 12px 22px;
  }
  /* Demo : tabs des angles + sources + canvas en colonne */
  .stage-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stage-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stage-angles {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .angle-desc {
    display: none;
  }
  /* Bento : passage en 1 colonne */
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-hero,
  .bento-wide {
    grid-column: span 1;
  }
  .bento-wide {
    grid-template-columns: 1fr;
  }
  /* Providers, pricing, voice : 1 colonne */
  .providers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pricing-arrow {
    transform: rotate(90deg);
    margin: 6px auto;
  }
  .voice-grid {
    grid-template-columns: 1fr;
  }
  .chapter-compare {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .chapter-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  /* Install steps : numero au-dessus du texte */
  .install-steps li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  /* Sticky CTA : on garde visible, on retire le sous-texte */
  .sticky-copy span {
    display: none;
  }
}

/* ----- 640px et moins : grands smartphones en portrait ----- */
@media (max-width: 640px) {
  :root {
    --gap-section: 60px;
  }
  .container {
    padding: 0 18px;
  }
  /* Hero typo : h1 toujours lisible, jamais d'overflow */
  h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.2px;
  }
  h1 .serif-accent {
    font-size: 1.1em;
    letter-spacing: -1px;
  }
  .lead {
    font-size: 16px;
    line-height: 1.55;
  }
  .section-title {
    font-size: clamp(24px, 6.5vw, 32px);
    letter-spacing: -0.8px;
  }
  .section-lead {
    font-size: 15.5px;
  }
  /* CTA row : pleine largeur, empile si necessaire */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-row .btn {
    justify-content: center;
    width: 100%;
  }
  /* KPI row : 1 colonne deja gere a 540, on confirme et on resserre */
  .kpi-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
  }
  /* Sources en demo : 1 colonne sur petit ecran */
  .stage-sources {
    grid-template-columns: 1fr;
  }
  /* Providers : 1 colonne */
  .providers-grid {
    grid-template-columns: 1fr;
  }
  /* Footer compact */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  /* Hero mock : on autorise une option compacte */
  .mock-body {
    grid-template-columns: 1fr;
    min-height: 280px;
  }
  .mock-panel {
    display: none;
  }
}

/* ----- 430px et moins : iPhone Pro Max et similaires ----- */
@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }
  /* Nav : titre Plume seul + bouton Installer */
  .nav-inner {
    padding: 10px 16px;
    gap: 8px;
  }
  .nav .btn-ghost {
    display: none;
  }
  /* Badge hero : on resserre */
  .badge {
    font-size: 11.5px;
    padding: 4px 10px;
    margin-bottom: 20px;
  }
  /* H1 confort : 34-40px, jamais plus */
  h1 {
    font-size: clamp(32px, 9.5vw, 40px);
    margin-bottom: 22px;
  }
  /* Boutons : padding plus court */
  .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
  .btn-sm {
    padding: 8px 12px;
    font-size: 13px;
  }
  /* Tabs angles : on simplifie en pills compactes */
  .stage-angles {
    gap: 6px;
  }
  .angle {
    padding: 10px 8px;
    text-align: center;
  }
  .angle-num {
    display: none;
  }
  .angle-name {
    font-size: 13px;
  }
  /* Demo canvas : reduit la hauteur min */
  .canvas-body {
    min-height: 180px;
  }
  /* Install steps : padding plus court */
  .install-steps li {
    padding: 16px;
  }
  /* Sticky bar : ne deborde jamais */
  .sticky-install {
    bottom: 12px;
    max-width: calc(100% - 16px);
  }
  .sticky-inner {
    padding: 6px 10px 6px 8px;
    gap: 8px;
  }
  .sticky-mark {
    width: 26px;
    height: 26px;
  }
  .sticky-copy strong {
    font-size: 12.5px;
  }
}

/* ----- 360px et moins : Android compact, vieux Pixel ----- */
@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .lead {
    font-size: 15px;
  }
  .section-title {
    font-size: 22px;
  }
  .badge {
    font-size: 11px;
  }
  .btn {
    font-size: 13.5px;
    padding: 11px 14px;
    gap: 6px;
  }
  .stage-angles {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .angle {
    padding: 8px 4px;
    border-radius: 8px;
  }
  .angle-name {
    font-size: 12px;
  }
  .install-steps h3 {
    font-size: 15.5px;
  }
  .install-steps p {
    font-size: 13.5px;
  }
  .install-steps pre {
    font-size: 11px;
    padding: 10px 12px;
  }
  /* Sticky sur ce gabarit : on ne garde QUE le bouton ; le texte deviendrait illisible */
  .sticky-copy {
    display: none;
  }
  .sticky-mark {
    width: 22px;
    height: 22px;
  }
  .sticky-install .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ----- >=1200px : grand desktop, on respire ----- */
@media (min-width: 1200px) {
  :root {
    --maxw: 1180px;
    --gap-section: 130px;
  }
  .hero-grid {
    gap: 72px;
  }
  .section-header {
    margin-bottom: 64px;
  }
}

/* ----- Anti-overflow universel : ceinture + bretelles ----- */
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
body {
  overflow-x: hidden;
}
