/* =========================================================
   SignalRank — Design system
   Premium B2B SaaS · fond clair · bleu profond / violet tech
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs de marque */
  --brand-900: #10123A;
  --brand-800: #1A1F5C;
  --brand-700: #2439A8;
  --brand-600: #2F4FE0;
  --brand-500: #4668F5;
  --brand-100: #E6EBFF;
  --brand-50:  #F2F5FF;

  --violet-700: #4B23B8;
  --violet-600: #6A32E8;
  --violet-500: #8455F6;
  --violet-100: #EEE8FF;

  /* Accents data / IA */
  --cyan-500: #12B5C9;
  --cyan-100: #DFF6F9;
  --lime-500: #12B981;
  --lime-100: #DDF7EC;
  --amber-500: #E8A21A;
  --amber-100: #FDF1D8;
  --rose-500: #E5484D;
  --rose-100: #FCE6E7;

  /* Neutres */
  --ink:      #0C1023;
  --ink-2:    #232840;
  --muted:    #5A6180;
  --muted-2:  #858BA6;
  --line:     #E4E7F2;
  --line-2:   #EEF0F8;
  --surface:  #FFFFFF;
  --canvas:   #F7F8FD;
  --canvas-2: #FBFCFF;

  /* Typo */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rayons & ombres */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  --sh-xs: 0 1px 2px rgba(16, 18, 58, .05);
  --sh-sm: 0 2px 6px rgba(16, 18, 58, .05), 0 1px 2px rgba(16, 18, 58, .04);
  --sh-md: 0 10px 30px -12px rgba(16, 18, 58, .16), 0 2px 8px rgba(16, 18, 58, .04);
  --sh-lg: 0 28px 60px -24px rgba(16, 18, 58, .26), 0 6px 18px rgba(16, 18, 58, .06);
  --sh-brand: 0 14px 34px -12px rgba(47, 79, 224, .45);

  /* Layout */
  --wrap: 1200px;
  --wrap-tight: 900px;
  --nav-h: 72px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.6rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout utilitaires ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--tight { max-width: var(--wrap-tight); }
.section { padding: clamp(64px, 7vw, 108px) 0; }
.section--tight { padding: clamp(48px, 5vw, 76px) 0; }
.section--canvas { background: var(--canvas); border-block: 1px solid var(--line-2); }
.section--dark {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(106, 50, 232, .48), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(18, 181, 201, .30), transparent 55%),
    linear-gradient(155deg, #10123A 0%, #171B4E 55%, #1B1550 100%);
  color: #C9CEEA;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 4. Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--violet-500));
}
.section--dark .eyebrow { color: #9FB0FF; }
.section--dark .eyebrow::before { background: linear-gradient(90deg, #6A8BFF, var(--cyan-500)); }

.lead { font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem); color: var(--muted); }
.section--dark .lead { color: #B4BCE0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }
.grad {
  background: linear-gradient(100deg, var(--brand-600) 0%, var(--violet-600) 52%, var(--cyan-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.small { font-size: .88rem; }
.muted { color: var(--muted); }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-full);
  font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(100deg, var(--brand-600), var(--violet-600));
  color: #fff; box-shadow: var(--sh-brand);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(47, 79, 224, .55); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); box-shadow: var(--sh-sm); }

.btn--light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn--white { background: #fff; color: var(--brand-700); }
.btn--white:hover { color: var(--brand-800); box-shadow: var(--sh-lg); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .94rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Badges & pastilles ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 600;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.badge--dark { background: rgba(255,255,255,.08); color: #DDE3FF; border-color: rgba(255,255,255,.18); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-500); flex: none; }
.dot--pulse { box-shadow: 0 0 0 0 rgba(18, 185, 129, .55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(18, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 185, 129, 0); }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: .74rem; font-weight: 650; letter-spacing: .01em;
}
.pill--crit  { background: var(--rose-100);  color: #A32227; }
.pill--high  { background: var(--amber-100); color: #8A5D06; }
.pill--ok    { background: var(--lime-100);  color: #0A7150; }
.pill--info  { background: var(--brand-100); color: var(--brand-700); }
.pill--ai    { background: var(--violet-100); color: var(--violet-700); }

/* ---------- 7. Cartes ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #D3D9F0; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--brand-50), var(--violet-100));
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--violet { background: linear-gradient(140deg, var(--violet-100), #F7EEFF); color: var(--violet-700); border-color: #E3D8FF; }
.card-icon--cyan   { background: linear-gradient(140deg, var(--cyan-100), #EAFBFD); color: #0B7F8D; border-color: #C9EEF3; }
.card-icon--lime   { background: linear-gradient(140deg, var(--lime-100), #ECFBF4); color: #0A7150; border-color: #C6EFDD; }
.card-icon--amber  { background: linear-gradient(140deg, var(--amber-100), #FEF8EA); color: #8A5D06; border-color: #F6E3BE; }
.card-icon--rose   { background: linear-gradient(140deg, var(--rose-100), #FEF0F1); color: #A32227; border-color: #F7D2D4; }

.card-num {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--brand-600); letter-spacing: .08em;
}

/* Liste à puces cochées */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check-list li::before {
  content: ""; flex: none; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%;
  background: var(--lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7150' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cross-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cross-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .97rem; }
.cross-list li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 6px;
  background: var(--rose-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A32227' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 18px -12px rgba(16,18,58,.3); }
.nav { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.14rem; color: var(--ink); letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; flex: none; }
/* Logo officiel SignalRank (wordmark 432×141) */
.logo-img { height: 30px; width: auto; flex: none; }
.site-footer .logo-img { height: 27px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  padding: 8px 13px; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 550; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  place-items: center; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: grid; }
  .site-header.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) - 4px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--sh-lg); margin: 0;
  }
  .site-header.is-open .nav-actions {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 258px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--sh-lg); margin: 0;
  }
  .site-header.is-open .nav-actions .btn { width: 100%; }
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 6vw, 92px) 0 clamp(60px, 6vw, 96px);
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(106, 50, 232, .12), transparent 62%),
    radial-gradient(760px 420px at 8% 4%, rgba(47, 79, 224, .11), transparent 60%),
    linear-gradient(180deg, #FBFCFF, #FFFFFF 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(16, 18, 58, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 18, 58, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(720px 420px at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 22%, #000 0%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 860px; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: .38em; }
.hero .lead { max-width: 680px; margin-inline: auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 30px; justify-content: center; margin-top: 26px; font-size: .87rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero-visual { margin-top: clamp(40px, 5vw, 64px); position: relative; z-index: 1; }

/* Bandeau logos / sources */
.logos-strip { padding: 30px 0 6px; }
.logos-strip p { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.logos-row { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center; }
.logos-row span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.logos-row svg { width: 19px; height: 19px; color: var(--brand-600); }

/* ---------- 10. Mock d'application ---------- */
.app-mock {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.app-mock--float { transform: perspective(1600px) rotateX(1.2deg); }

.mock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #FCFDFF, #F7F8FD);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #DFE3F1; display: block; }
.mock-url {
  flex: 1; max-width: 320px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 4px 14px;
  font-size: .74rem; color: var(--muted-2); text-align: center;
  font-family: var(--mono);
}

.mock-body { display: grid; grid-template-columns: 208px 1fr; min-height: 440px; }
@media (max-width: 820px) { .mock-body { grid-template-columns: 1fr; } }

.mock-side {
  border-right: 1px solid var(--line-2); padding: 18px 12px;
  background: var(--canvas-2);
}
@media (max-width: 820px) { .mock-side { display: none; } }
.mock-side-title {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; padding: 0 10px; margin-bottom: 10px;
}
.mock-nav { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; }
.mock-nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 550; color: var(--ink-2);
}
.mock-nav li svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.mock-nav li.is-active { background: linear-gradient(100deg, var(--brand-50), var(--violet-100)); color: var(--brand-700); font-weight: 650; }
.mock-nav li.is-active svg { color: var(--brand-600); }
.mock-nav li .tag {
  margin-left: auto; font-size: .68rem; font-weight: 700;
  background: var(--rose-100); color: #A32227; padding: 1px 7px; border-radius: var(--r-full);
}

.mock-main { padding: 22px; background: var(--canvas); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mock-head h4 { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.mock-head .muted { font-size: .8rem; }

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px)  { .tiles { grid-template-columns: 1fr; } }

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--sh-xs);
}
.tile-label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.tile-value { font-size: 1.6rem; font-weight: 750; color: var(--ink); letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-value small { font-size: .8rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.tile-delta { font-size: .78rem; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.tile-delta.up { color: #0A7150; }
.tile-delta.down { color: #A32227; }
.tile-delta svg { width: 13px; height: 13px; }

.mock-grid { display: grid; gap: 14px; grid-template-columns: 1.35fr 1fr; margin-top: 14px; }
@media (max-width: 900px) { .mock-grid { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-xs); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h5 { margin: 0; font-size: .88rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.panel-head .muted { font-size: .74rem; }

/* Score circulaire */
.score-ring { display: flex; align-items: center; gap: 18px; }
.score-ring svg { width: 104px; height: 104px; flex: none; }
.score-ring .ring-track { stroke: var(--line-2); }
.score-ring .ring-value { stroke: url(#srGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.22,.75,.3,1); }
.score-num { font-size: 1.9rem; font-weight: 750; letter-spacing: -.04em; fill: var(--ink); }
.score-den { font-size: .62rem; font-weight: 600; fill: var(--muted-2); letter-spacing: .04em; }

/* Liste d'opportunités */
.opp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.opp-list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--canvas-2); font-size: .855rem; line-height: 1.45;
}
.opp-list .rank {
  flex: none; width: 21px; height: 21px; border-radius: 6px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 750;
  background: linear-gradient(140deg, var(--brand-600), var(--violet-600)); color: #fff;
}
.opp-list strong { color: var(--ink); font-weight: 650; display: block; }
.opp-list .meta { color: var(--muted-2); font-size: .76rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }

/* Barres */
.bar-rows { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .8rem; }
.bar-row .name { color: var(--ink-2); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .val { color: var(--muted-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-600), var(--violet-500)); width: 0; transition: width 1s cubic-bezier(.22,.75,.3,1); }
.bar-fill--down { background: linear-gradient(90deg, #F0777B, var(--rose-500)); }
.bar-fill--up { background: linear-gradient(90deg, #34D399, var(--lime-500)); }

/* Tableau d'app */
.mock-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.mock-table th {
  text-align: left; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; padding: 0 10px 8px; border-bottom: 1px solid var(--line-2);
}
.mock-table td { padding: 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .url { font-family: var(--mono); font-size: .76rem; color: var(--ink); }
.mock-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- 11. Étapes ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -14px; left: 0;
  font-family: var(--mono); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.4px var(--brand-100);
  letter-spacing: -.06em; line-height: 1;
}
.step h3 { margin-top: 14px; }

/* ---------- 12. Comparatif ---------- */
.compare { display: grid; gap: 0; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-md); }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 32px; background: var(--surface); }
.compare-col--old { background: var(--canvas); border-right: 1px solid var(--line); }
@media (max-width: 780px) { .compare-col--old { border-right: 0; border-bottom: 1px solid var(--line); } }
.compare-col--new { position: relative; background: linear-gradient(180deg, #FFFFFF, #FAFBFF); }
.compare-col--new::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--violet-600), var(--cyan-500));
}
.compare-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.compare-title h3 { margin: 0; font-size: 1.12rem; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line-2); }
.compare-table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 13. Tarifs ---------- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card--featured {
  border-color: transparent;
  box-shadow: var(--sh-lg);
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, var(--brand-600), var(--violet-600) 55%, var(--cyan-500)) border-box;
  border: 1.5px solid transparent;
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--brand-600), var(--violet-600)); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-full); white-space: nowrap;
  box-shadow: var(--sh-brand);
}
.price-name { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.price-for { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.price-val { font-size: 1.5rem; font-weight: 750; color: var(--ink); letter-spacing: -.035em; margin-bottom: 4px; }
.price-note { font-size: .82rem; color: var(--muted-2); margin-bottom: 22px; }
.price-card .check-list { margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }

/* ---------- 14. Accordéon FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 20px; box-shadow: var(--sh-xs); transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #D3D9F0; box-shadow: var(--sh-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .faq-body { padding: 0 0 18px; color: var(--muted); font-size: .96rem; }

/* ---------- 15. CTA final ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(44px, 5.5vw, 76px) clamp(26px, 4vw, 64px); text-align: center; color: #fff;
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(106, 50, 232, .58), transparent 62%),
    radial-gradient(620px 320px at 88% 100%, rgba(18, 181, 201, .38), transparent 60%),
    linear-gradient(140deg, #171B4E, #10123A);
  box-shadow: var(--sh-lg);
}
.cta-final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(560px 300px at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(560px 300px at 50% 50%, #000, transparent 75%);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; max-width: 800px; margin-inline: auto; }
.cta-final p { color: #B9C1E6; max-width: 620px; margin-inline: auto; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { font-size: .92rem; color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand-700); }
.footer-about p { font-size: .9rem; color: var(--muted); max-width: 300px; margin-top: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted-2);
}

/* ---------- 17. Blog ---------- */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-thumb { height: 132px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.post-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 9px; }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-card p { font-size: .92rem; }
.post-meta { margin-top: auto; padding-top: 16px; font-size: .8rem; color: var(--muted-2); display: flex; gap: 14px; }

.post-featured { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; padding: 0; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured .post-thumb { height: 100%; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--line-2); }
.post-featured .post-body { padding: 34px; justify-content: center; }
.post-featured h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }

/* ---------- 18. Auth ---------- */
.auth {
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 940px) { .auth { grid-template-columns: 1fr; min-height: 0; } }
.auth-form-col { display: grid; place-items: center; padding: clamp(36px, 5vw, 72px) 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-aside {
  padding: clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(680px 360px at 20% 8%, rgba(106, 50, 232, .5), transparent 62%),
    radial-gradient(560px 320px at 92% 92%, rgba(18, 181, 201, .34), transparent 58%),
    linear-gradient(150deg, #171B4E, #10123A);
  color: #C3CAEC;
}
.auth-aside h2, .auth-aside h3 { color: #fff; }
@media (max-width: 940px) { .auth-aside { display: none; } }

.tabs { display: inline-flex; padding: 4px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-full); margin-bottom: 26px; }
.tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 22px; border-radius: var(--r-full);
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(70, 104, 245, .14);
}
.field .hint { font-size: .8rem; color: var(--muted-2); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--muted); margin-bottom: 20px; }
.checkbox input { margin-top: 3px; accent-color: var(--brand-600); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-row { display: grid; gap: 10px; }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sso-btn:hover { border-color: #CBD2EC; box-shadow: var(--sh-sm); }
.sso-btn svg { width: 18px; height: 18px; }

/* ---------- 19. Page dashboard (démo) ---------- */
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; background: var(--canvas); }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }
.app-side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; }
@media (max-width: 900px) { .app-side { display: none; } }
.app-main { padding: clamp(18px, 2.4vw, 30px); min-width: 0; }
.app-topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.app-topbar h1 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin: 0; }
.app-topbar .spacer { margin-left: auto; }
.seg {
  display: inline-flex; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 3px; box-shadow: var(--sh-xs);
}
.seg button {
  border: 0; background: transparent; cursor: pointer; border-radius: var(--r-full);
  padding: 6px 14px; font-size: .84rem; font-weight: 600; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.demo-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--brand-50), var(--violet-100));
  border: 1px solid var(--brand-100); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 20px; font-size: .9rem; color: var(--brand-800);
}
.demo-banner .btn { margin-left: auto; }

/* ---------- 20. Divers ---------- */
.quote {
  border-left: 3px solid; border-image: linear-gradient(180deg, var(--brand-600), var(--violet-600)) 1;
  padding-left: 22px; font-size: 1.08rem; color: var(--ink-2);
}
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat-big { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.section--dark .stat-big { color: #fff; }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.section--dark .stat-label { color: #A8B0D8; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--canvas); border: 1px solid var(--line); color: var(--ink-2);
}

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.75,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .btn { display: none !important; }
}
