/* =========================================================
   PrestAI — feuille de style
   ========================================================= */

/* ---------- Polices (auto-hébergées, licence OFL) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --graphite: #0F1115;
  --graphite-2: #171A22;
  --graphite-3: #13161D;
  --line-d1: #22262F;
  --line-d2: #2A2E39;
  --line-d3: #2E3340;
  --grid-line: #191C24;
  --slate: #5B616C;
  --mist: #E6E8EC;
  --line-l2: #EEF0F3;
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --ink: #0F1115;
  --on-dark: #E6E8EC;
  --on-dark-strong: #F7F8FA;
  --on-dark-dim: #9BA1AD;
  --on-dark-mid: #B8BDC7;
  --on-dark-faint: #6B7280;
  --indigo: #4F46E5;
  --indigo-light: #818CF8;
  --indigo-deep: #312E81;
  --indigo-pale: #EDECFC;
  --indigo-pale-2: #F4F3FD;
  --indigo-chip: #262A4D;
  --green: #16A34A;
  --green-text: #15803D;
  --green-live: #4ADE80;
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-deep); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--indigo-light); outline-offset: 3px; border-radius: 4px; }
section[id], #top { scroll-margin-top: calc(var(--header-h) + 8px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.container { max-width: 1340px; margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); }
.eyebrow--dark { color: var(--indigo-light); }
.h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.h2--light { color: var(--on-dark-strong); }
.h2--sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.h3--sm { font-size: 21px; }
.h3--xs { font-size: 19px; }
.muted { color: var(--slate); font-size: 16px; line-height: 1.6; }
.muted.small, .small { font-size: 15px; line-height: 1.55; }
.muted-inline { font-weight: 400; color: var(--slate); }
.lead-muted { font-size: 17px; line-height: 1.6; color: var(--slate); }
.mono-label { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.mono-muted { font-family: var(--mono); font-size: 11px; color: var(--on-dark-faint); }
.icon-indigo { color: var(--indigo); }
.icon-slate { color: var(--slate); }
.icon-green { color: var(--green) !important; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 0 22px; }
.btn--block { display: flex; width: 100%; min-height: 52px; font-size: 16px; }
.btn--primary { background: var(--indigo); color: var(--white); }
.btn--primary:hover { background: #4338CA; color: var(--white); }
.btn--ghost-dark { border-color: var(--line-d3); background: var(--graphite); color: var(--on-dark); }
.btn--ghost-dark:hover { border-color: #444A58; color: var(--white); }
.btn--outline { border-color: #D5D8DE; background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ---------- Pastilles, tags ---------- */
.dot-live, .dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--green-live); flex: 0 0 auto; }
.dot-ok { width: 6px; height: 6px; }
.status-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--green-live); }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-family: var(--mono); font-size: 12px; line-height: 1.4; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.tag--indigo { background: var(--indigo-pale); color: var(--indigo-deep); }
.tag--dark { background: var(--graphite); color: var(--on-dark); }
.tag--outline-indigo { border: 1px solid #3B3F9E; color: #C7CAFB; font-size: 11px; padding: 2px 8px; }
.tag--solid-indigo { background: var(--indigo); color: var(--white); font-family: var(--font); }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--mist); background: var(--white); color: var(--indigo); }
.tile-icon--soft { background: var(--paper); }
.tile-icon--dark { border-color: var(--line-d2); background: var(--graphite-2); color: var(--indigo-light); }

/* ---------- En-tête sticky ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); border-bottom: 1px solid var(--line-d1); transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(15, 17, 21, .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-block: 10px; }
.brand { display: flex; align-items: center; min-height: 44px; color: var(--on-dark); flex: 0 0 auto; }
.brand:hover { color: var(--white); }
.nav-desktop { display: flex; align-items: center; gap: 2px 28px; font-size: 14px; }
.nav-desktop a { position: relative; padding: 12px 0; color: var(--on-dark-mid); text-decoration: none; transition: color .2s ease; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--indigo-light); opacity: 0; transition: opacity .2s ease; }
.nav-desktop a:hover, .nav-desktop a[aria-current="true"] { color: var(--white); }
.nav-desktop a[aria-current="true"]::after { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-d3); border-radius: 8px; background: var(--graphite-3); color: var(--on-dark); cursor: pointer; }
.burger .burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }
/* Menu mobile : plein écran, la page derrière est masquée et ne défile plus */
/* Seul <html> est bloqué : bloquer aussi <body> en ferait un conteneur de défilement et décrocherait l'en-tête sticky. */
html.is-menu-open { overflow: hidden; }
.site-header.is-menu-open { background: var(--graphite); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-mobile { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--graphite); animation: menuIn .25s ease-out; }
.nav-mobile-inner { min-height: 100%; display: flex; flex-direction: column; gap: 32px; padding-block: 8px 28px; }
.nav-mobile-list li { border-bottom: 1px solid var(--line-d1); animation: menuItem .35s ease-out both; }
.nav-mobile-list li:nth-child(2) { animation-delay: .09s; }
.nav-mobile-list li:nth-child(3) { animation-delay: .13s; }
.nav-mobile-list li:nth-child(4) { animation-delay: .17s; }
.nav-mobile-list li:nth-child(5) { animation-delay: .21s; }
.nav-mobile-list li:first-child { animation-delay: .05s; }
.nav-mobile-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; color: #C5CAD3; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.nav-mobile-list a[aria-current="true"], .nav-mobile-list a:hover { color: var(--white); }
.nav-mobile-label { display: flex; align-items: center; gap: 12px; }
.nav-mobile-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--indigo-light); opacity: 0; transition: opacity .2s ease; }
.nav-mobile-list a[aria-current="true"] .nav-mobile-dot { opacity: 1; }
.nav-mobile-chevron { color: var(--on-dark-faint); }
.nav-mobile-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; animation: menuItem .35s ease-out .3s both; }
.nav-mobile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 8px; font-size: 14px; }
.nav-mobile-meta a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--on-dark-mid); text-decoration: none; }
.nav-mobile-meta a:hover { color: var(--white); }
.btn--line-dark { border-color: var(--line-d3); background: transparent; color: var(--on-dark); border-radius: 10px; }
.btn--line-dark:hover { border-color: #444A58; color: var(--white); }
.nav-mobile .btn--primary { border-radius: 10px; }
.icon-indigo-light { color: var(--indigo-light); }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuItem { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Bouton de l'en-tête : masqué sur mobile tant que celui du hero est visible, et quand le menu est ouvert */
.header-cta { transition: opacity .3s ease, visibility .3s ease, transform .3s ease; }
.site-header.is-menu-open .header-cta { visibility: hidden; opacity: 0; transition: none; }
@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .burger { display: inline-flex; }
  .site-header.is-hero-cta .header-cta { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); }
}
@media (min-width: 961px) { .nav-mobile { display: none !important; } }
@media (max-width: 400px) {
  .brand svg { width: 88px; height: auto; }
  .header-cta { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 340px) { .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { background-color: var(--graphite); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; background-position: 0 -1px; color: var(--on-dark); animation: gridDrift 30s linear infinite; }
/* La 1re ligne horizontale se confond avec la bordure de l'en-tête ; seul le quadrillage vertical se déplace. */
@keyframes gridDrift { from { background-position: 0 -1px, 0 -1px; } to { background-position: 56px -1px, 56px -1px; } }
.hero-main { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 600px; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: 28px; }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-d3); border-radius: 999px; background: var(--graphite); font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--on-dark-mid); }
.hero-title { display: block; white-space: nowrap; font-size: clamp(30px, 12cqi, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--on-dark-strong); }
.hero-title-word { color: var(--indigo-light); }
.caret { display: inline-block; width: .07em; height: .78em; margin-left: .06em; background: var(--indigo-light); vertical-align: -.04em; }
.caret.is-blinking { animation: blink 1.1s steps(1) infinite; }
.char-in { animation: charIn .22s ease-out; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes charIn { from { opacity: 0; } to { opacity: 1; } }
.hero-lead { max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--on-dark-dim); }
.hero-lead strong { font-weight: 600; color: var(--on-dark-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .hero-main { gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .hero-demo { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--on-dark-mid); font-weight: 500; gap: 6px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #3A3F4C; }
  .hero-demo:hover { color: var(--white); }
}

/* Tableau de bord du hero */
.dash { flex: 1 1 400px; min-width: 0; border: 1px solid var(--line-d2); border-radius: var(--radius); background: var(--graphite-3); overflow: hidden; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-d2); background: var(--graphite-2); }
.dash-title { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.dash-list { padding: 6px 18px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-d1); }
.dash-row:last-child { border-bottom: 0; }
.dash-row dt { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--on-dark-mid); }
.dash-row dd { font-size: 15px; font-weight: 500; color: var(--on-dark-strong); }
.dash-campaigns { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; border-top: 1px solid var(--line-d2); background: var(--graphite); }
.dash-campaigns-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.scan { position: relative; height: 2px; border-radius: 2px; background: var(--line-d1); overflow: hidden; }
.scan span { position: absolute; left: 0; top: 0; width: 38%; height: 2px; border-radius: 2px; background: var(--indigo); animation: scan 4s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.campaigns { display: flex; flex-direction: column; gap: 4px; }
.campaigns li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -8px; padding: 5px 8px; border-radius: 6px; font-size: 14px; color: var(--on-dark); }
.campaigns li.is-changed { animation: rowFlash 1.4s ease-out; }
.campaigns li.is-changed .pill { animation: pillIn .45s ease-out; }
@keyframes rowFlash { from { background: rgba(79, 70, 229, .22); } to { background: rgba(79, 70, 229, 0); } }
@keyframes pillIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.pill { padding: 3px 9px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill--up { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.pill--pause { background: #262A35; border-color: #262A35; color: #C5CAD3; }
.pill--soon { background: transparent; border-color: #3A3F4C; color: #C5CAD3; }

/* Chiffres clés */
.hero-stats { border-top: 1px solid var(--line-d1); background: var(--graphite); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px 20px; border-right: 1px solid var(--line-d1); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 14px; color: var(--on-dark-dim); }
.stats dd { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark-strong); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 18px 16px 18px 0; border-right: 0; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--line-d1); }
  .stats > div:nth-child(even) { padding-left: 16px; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-d1); }
  .stats dd { font-size: 26px; }
  .stats dt { font-size: 13px; }
}

/* Animations d'entrée du hero */
.fade-in { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-row-0 { animation-delay: .75s; }
.delay-row-1 { animation-delay: .95s; }
.delay-row-2 { animation-delay: 1.15s; }
.delay-row-3 { animation-delay: 1.35s; }
.dash-row .fade-in { animation-name: fadeOnly; animation-duration: .6s; }
.pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Partenaires ---------- */
.partners { background: var(--white); border-bottom: 1px solid var(--mist); }
.partners-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 26px; }
.partners-list { flex: 1 1 640px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; }
.partners-list img { width: auto; }
@media (max-width: 1100px) {
  .partners-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .partners-inner > .mono-label { text-align: center; }
  .partners-list { flex: 0 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: center; gap: 22px 16px; }
  .partners-list img { max-width: 100%; object-fit: contain; }
}
@media (max-width: 860px) { .partners-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section + .section--white, .section--white + .section { border-top-color: var(--mist); }
.section--paper + .section--paper { border-top: 1px solid var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-bottom: 48px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.section-head--row > div:first-child { max-width: 800px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
}

/* Constat : les problèmes, dans un registre « alerte » distinct des solutions */
.pain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px 64px; }
.pain-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 22px 0; border-top: 1px solid #E2E4E9; }
.pain-list > li:last-child { border-bottom: 1px solid #E2E4E9; }
.pain-ic { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #FED7AA; border-radius: 10px; background: #FFF7ED; color: #C2410C; }
.pain-title { grid-column: 2; align-self: center; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.pain-text { grid-column: 2; font-size: 16px; line-height: 1.55; color: var(--slate); }
.alerts { border: 1px solid var(--mist); border-radius: 14px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 24px 48px -28px rgba(15, 17, 21, .25); overflow: hidden; }
.alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-l2); }
.alerts-title { font-size: 14px; font-weight: 600; }
.alerts-count { font-family: var(--mono); font-weight: 400; color: #8A909B; }
.alerts-badge { display: flex; align-items: center; gap: 8px; padding: 3px 9px; border: 1px solid #FECACA; border-radius: 999px; background: #FEF2F2; font-family: var(--mono); font-size: 12px; color: #B91C1C; }
.alerts-dot { width: 7px; height: 7px; border-radius: 999px; background: #EF4444; animation: pulseRed 2s ease-out infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.alerts-list { padding: 4px 18px; }
.alerts-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-l2); }
.alerts-list li:first-child { border-top: 0; }
.alerts-mod { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.alerts-name { overflow: hidden; font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.alerts-editor { font-family: var(--mono); font-size: 11px; color: #8A909B; }
.alerts-pill { flex: 0 0 auto; padding: 3px 9px; border: 1px solid; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.alerts-pill--warn { border-color: #FED7AA; background: #FFF7ED; color: #B45309; }
.alerts-pill--error { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.alerts-pill--off { border-color: #E5E7EB; background: #F3F4F6; color: var(--slate); }
.alerts-pill--ok { border-color: var(--mist); background: var(--white); color: var(--slate); }
.alerts-foot { padding: 11px 18px; border-top: 1px solid var(--line-l2); background: #FAFAFB; font-family: var(--mono); font-size: 11px; color: #8A909B; }
@media (max-width: 960px) { .pain { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 560px) {
  .pain-list > li { padding: 18px 0; }
  .pain-title { font-size: 18px; }
  .pain-text { font-size: 15px; }
  .alerts-more { display: none !important; }
}

/* ---------- IA : usages + exemple concret ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: 24px 32px; }
.ai-list { display: flex; flex-direction: column; gap: 8px; }
.ai-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; border: 1px solid transparent; border-radius: 12px; overflow: hidden; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ai-item.is-on { border-color: var(--mist); background: var(--white); box-shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 12px 28px -18px rgba(15, 17, 21, .25); }
.ai-ic { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--mist); border-radius: 10px; background: var(--white); color: var(--indigo); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.ai-item.is-on .ai-ic { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
.ai-title { grid-column: 2; align-self: center; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.ai-desc { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--slate); }
.ai-btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.ai-btn:focus-visible { outline-offset: -2px; border-radius: 12px; }
.ai-prog { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--indigo); transform: scaleX(0); transform-origin: left center; opacity: 0; }
.ai-prog.is-run { opacity: 1; animation: aiProg 5s linear forwards; }
@keyframes aiProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ai-demo { display: flex; flex-direction: column; border: 1px solid var(--line-d2); border-radius: 16px; background: var(--graphite); overflow: hidden; }
.ai-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-d1); background: var(--graphite-2); }
.ai-demo-name { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.ai-demo-dots { display: flex; gap: 5px; }
.ai-demo-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line-d3); }
.ai-demo-tag { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--indigo-light); }
.ai-demo-cap { display: none; padding: 14px 18px 0; font-size: 14px; line-height: 1.5; color: var(--on-dark-dim); }
/* Les 4 versions sont empilées dans la même case : la hauteur ne bouge pas quand l'exemple change */
.ai-stack { display: grid; }
.ai-stack-item, .ai-demo-cap > span { grid-area: 1 / 1; }
.ai-stack-item.is-off { visibility: hidden; }
.ai-demo-body { flex: 1 1 auto; display: grid; padding: 22px 24px 24px; }
.ai-panel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; transition: opacity .35s ease, visibility .35s ease; }
.ai-panel.is-off { visibility: hidden; opacity: 0; }
.ai-panel--tight { gap: 12px; }
.ai-label { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--on-dark-faint); }
.ai-before { display: flex; flex-direction: column; gap: 4px; }
.ai-before-text { font-size: 15px; color: var(--on-dark-dim); }
.ai-spark { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--indigo-light); }
.ai-serp { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 10px; background: var(--white); }
.ai-serp-url { font-size: 12px; color: #4D5156; }
.ai-serp-title { font-size: 18px; line-height: 1.3; color: #1A0DAB; }
.ai-serp-text { font-size: 13px; line-height: 1.5; color: #4D5156; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #1B1D3A; color: #C7CAFB; font-size: 12px; }
.ai-source { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-d2); border-radius: 10px; background: var(--graphite-3); }
.ai-source-text { font-size: 15px; line-height: 1.5; color: var(--on-dark-strong); }
.ai-langs > div { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-d1); }
.ai-lang { flex: 0 0 auto; padding: 2px 6px; border: 1px solid var(--line-d3); border-radius: 4px; font-family: var(--mono); font-size: 11px; color: var(--indigo-light); }
.ai-lang-text { font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.ai-price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ai-price-name { font-size: 15px; font-weight: 600; color: var(--on-dark-strong); }
.ai-price-me { font-size: 14px; color: var(--on-dark-dim); }
.ai-price-me strong { font-size: 18px; font-weight: 600; color: var(--on-dark-strong); }
.ai-scale { position: relative; height: 84px; margin: 4px 24px 0; }
.ai-scale-track { position: absolute; left: 0; right: 0; top: 25px; height: 2px; border-radius: 2px; background: var(--line-d2); }
.ai-scale-range { position: absolute; left: 20%; width: 75%; top: 25px; height: 2px; background: #3B3F9E; }
.ai-dot { position: absolute; top: 21px; width: 10px; height: 10px; margin-left: -5px; border-radius: 999px; background: var(--on-dark-faint); }
.ai-dot--me { top: 19px; width: 14px; height: 14px; margin-left: -7px; background: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .25); }
.ai-tick { position: absolute; top: 42px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--on-dark-dim); text-align: center; white-space: nowrap; }
.ai-tick--me { font-family: var(--font); font-weight: 600; color: var(--on-dark-strong); }
.at-84 { left: 20%; }
.at-89 { left: 45%; }
.at-94 { left: 70%; }
.at-99 { left: 95%; }
.ai-comp li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-d1); font-size: 14px; color: var(--on-dark); }
.ai-comp-meta { display: flex; align-items: center; gap: 14px; }
.ai-comp-state { font-family: var(--mono); font-size: 12px; color: var(--on-dark-dim); }
.ai-comp-state--promo { color: #FBBF24; }
.ai-comp-state--out { color: #F87171; }
.ai-comp-price { min-width: 44px; text-align: right; color: var(--on-dark-strong); }
.ai-insight { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #3B3F9E; border-radius: 10px; background: #171A2E; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.ai-insight svg { flex: 0 0 auto; margin-top: 3px; color: #A5B4FC; }
.ai-q { align-self: flex-end; max-width: 85%; padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: #262A35; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.ai-a { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid #3B3F9E; border-radius: 14px 14px 14px 4px; background: #171A2E; }
.ai-a-label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: #A5B4FC; }
.ai-a-text { font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.ai-product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--white); }
.ai-product-img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--indigo-deep), var(--indigo)); }
.ai-product-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-product-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-product-shop { font-size: 12px; color: var(--slate); }
.ai-product-price { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--indigo); }
.ai-note { font-family: var(--mono); font-size: 11px; color: var(--on-dark-faint); }
@media (max-width: 960px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .ai-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ai-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-color: var(--mist); }
  .ai-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; }
  .ai-ic svg { width: 15px; height: 15px; }
  .ai-title { min-width: 0; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .ai-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ai-demo-cap { display: grid; }
}
@media (max-width: 560px) {
  .ai-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-item { padding: 10px; }
  .ai-title { letter-spacing: -0.02em; }
}
@media (max-width: 380px) {
  .ai-item { gap: 6px; }
  .ai-ic { width: 24px; height: 24px; }
  .ai-ic svg { width: 14px; height: 14px; }
  .ai-title { font-size: 13px; }
}

/* ---------- La suite : plateau avec le Core au centre ---------- */
.board-wrap { display: flex; flex-direction: column; gap: 16px; }
.board { position: relative; }
.board-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.board-lines line { stroke: #C9CDD4; stroke-width: 1.5px; transition: stroke .4s ease; }
.board-lines line.is-on { stroke: var(--indigo); stroke-width: 2px; stroke-dasharray: 4 4; animation: boardFlow .9s linear infinite; }
@keyframes boardFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 16; } }
.board-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 28px; }
.mod { position: relative; z-index: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--mist); border-radius: 12px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 17, 21, .04); transition: border-color .4s ease, box-shadow .4s ease; }
.mod--soon { border-style: dashed; border-color: #C4C8D0; }
.mod--core { z-index: 2; grid-column: 2; grid-row: 2; border-color: var(--line-d3); background: var(--graphite); box-shadow: 0 0 0 6px rgba(79, 70, 229, .10), 0 18px 40px -18px rgba(79, 70, 229, .55); }
.mod-ic { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--mist); background: var(--paper); color: var(--indigo); transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.mod--core .mod-ic { border-color: #3B3F9E; background: #1B1D3A; color: #A5B4FC; }
.mod-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mod-name { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mod--core .mod-name { color: var(--on-dark-strong); }
.mod-chip { padding: 2px 6px; border: 1px solid var(--line-d3); border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--indigo-light); }
.mod-chip--soon { border: 0; background: var(--indigo-pale); color: var(--indigo-deep); }
.mod-txt { font-size: 14px; line-height: 1.5; color: var(--slate); }
.mod--core .mod-txt { color: var(--on-dark-dim); }
.mod.is-on { border-style: solid; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.mod.is-on .mod-ic { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
.mod-btn { display: none; }
.board-detail { display: none; }
.board-rule { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--slate); text-align: center; }
.board-rule svg { flex: 0 0 auto; }
.board-rule strong { font-weight: 600; color: var(--ink); }
@keyframes swapIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .mod { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 760px) {
  .board-grid { gap: 12px; }
  .mod { align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; text-align: center; cursor: pointer; }
  .mod-ic { width: 36px; height: 36px; }
  .mod-name { justify-content: center; font-size: 13px; letter-spacing: -0.01em; }
  .mod-chip { display: none; }
  .mod-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mod-btn { display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .board-detail { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 16px; border-left: 2px solid var(--indigo); border-radius: 0 8px 8px 0; background: var(--paper); }
  .board-detail strong { font-size: 15px; font-weight: 600; color: var(--ink); }
  .board-detail span { font-size: 14px; line-height: 1.5; color: var(--slate); }
  .board-detail.is-swap > * { animation: swapIn .4s ease-out; }
}

/* ---------- Pilotage ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line-d2); border-radius: 10px; background: var(--graphite-3); transition: border-color .5s ease, background-color .5s ease; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-icon { background: var(--graphite); color: var(--on-dark-faint); transition: color .5s ease; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--on-dark-faint); transition: color .5s ease; }
.step-title { font-size: 18px; font-weight: 600; color: var(--on-dark-strong); }
.step-text { font-size: 14px; line-height: 1.55; color: var(--on-dark-dim); }
.step.is-active { border-color: var(--indigo); background: #171A2E; }
.step.is-active .step-icon, .step.is-active .step-num { color: var(--indigo-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 8px; border-radius: 5px; background: var(--indigo-chip); color: #C7CAFB; font-size: 12px; }
.dots { display: none; }
@media (max-width: 760px) {
  .swipe { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -24px; padding: 2px 24px 6px; scroll-padding-left: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 min(78%, 280px); max-width: min(78%, 280px); min-width: 0; scroll-snap-align: start; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .dots > span { width: 6px; height: 6px; border-radius: 999px; background: #C9CDD4; transition: width .25s ease, background-color .25s ease; }
  .dots > span.is-on { width: 18px; background: var(--indigo); }
  .dots--dark > span { background: #3A3F4C; }
  .dots--dark > span.is-on { background: var(--indigo-light); }
  .steps .step { padding: 24px 22px; gap: 14px; }
  .step-top { margin-bottom: 6px; }
  .step-title { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
  .step-text { font-size: 15px; }
  .measure { margin-top: 40px !important; }
}
.measure { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-d1); font-size: 15px; line-height: 1.6; color: var(--on-dark-dim); }

/* ---------- Sérénité : déroulé animé d'une mise à jour ---------- */
.pipe { position: relative; margin-bottom: 40px; border: 1px solid var(--line-d2); border-radius: 16px; background: var(--graphite); overflow: hidden; }
.pipe::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.pipe-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line-d1); background: rgba(23, 26, 34, .85); }
.pipe-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.pipe-title svg { flex: 0 0 auto; color: var(--indigo-light); }
.pipe-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--green-live); transition: color .4s ease; }
.pipe-chip-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.pipe[data-stage="-1"] .pipe-chip { color: var(--on-dark-faint); }
.pipe[data-stage="0"] .pipe-chip, .pipe[data-stage="1"] .pipe-chip, .pipe[data-stage="2"] .pipe-chip, .pipe[data-stage="3"] .pipe-chip { color: var(--indigo-light); }
.pipe-body { position: relative; padding: 40px 22px 36px; }
.pipe-track { position: absolute; top: 67px; left: calc(22px + (100% - 44px) / 8); right: calc(22px + (100% - 44px) / 8); height: 2px; border-radius: 2px; background: var(--line-d2); overflow: hidden; }
.pipe-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green-live), var(--indigo-light)); transform-origin: left center; transition: transform .9s ease; }
.pipe[data-stage="-1"] .pipe-fill, .pipe[data-stage="0"] .pipe-fill { transform: scaleX(0); }
.pipe[data-stage="1"] .pipe-fill { transform: scaleX(.3333); }
.pipe[data-stage="2"] .pipe-fill { transform: scaleX(.6667); }
.pipe-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; padding: 0 6px; text-align: center; }
.pipe-node { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--line-d2); border-radius: 999px; background: var(--graphite-3); color: var(--on-dark-faint); transition: background-color .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease; }
.pipe-check { display: none; }
.pipe-step.is-done .pipe-node { border-color: #2F6B47; background: #15261F; color: var(--green-live); }
.pipe-step.is-done .pipe-icon { display: none; }
.pipe-step.is-done .pipe-check { display: block; }
.pipe-step.is-current .pipe-node { border-color: var(--indigo); background: #171A2E; color: #A5B4FC; box-shadow: 0 0 0 6px rgba(79, 70, 229, .18); }
.pipe-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pipe-label { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--on-dark-dim); transition: color .5s ease; }
.pipe-step.is-done .pipe-label, .pipe-step.is-current .pipe-label { color: var(--on-dark-strong); }
.pipe-cap { font-size: 13px; line-height: 1.4; color: var(--on-dark-dim); }
.ser-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ser-tiles li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--mist); }
.ser-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ser-ic { width: 32px; height: 32px; border-radius: 8px; }
.ser-text { font-size: 15px; line-height: 1.5; color: var(--slate); }
@media (max-width: 860px) {
  .ser-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .ser-text { font-size: 14px; }
}
@media (max-width: 760px) { .pipe { margin-bottom: 32px; } }
@media (max-width: 560px) {
  .pipe-head { padding: 12px 16px; }
  .pipe-more { display: none; }
  .pipe-body { padding: 28px 8px 24px; }
  .pipe-track { top: 49px; left: calc(8px + (100% - 16px) / 8); right: calc(8px + (100% - 16px) / 8); }
  .pipe-node { width: 44px; height: 44px; }
  .pipe-node svg { width: 18px; height: 18px; }
  .pipe-label { font-size: 12px; letter-spacing: 0; }
  .pipe-cap { display: none; }
}

/* ---------- Comparatif ---------- */
.table-wrap { padding-block: 18px; }
.compare-frame { position: relative; }
.compare-bg { position: absolute; inset: 0; border: 1px solid var(--mist); border-radius: 14px; background: var(--white); }
.compare-us-bg { position: absolute; top: -18px; bottom: -18px; left: 74%; right: 0; border-radius: 16px; background: var(--graphite); box-shadow: 0 0 0 1px var(--line-d2), 0 28px 60px -24px rgba(79, 70, 229, .55); }
.compare { position: relative; width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line-l2); }
.compare thead th { width: 26%; padding: 20px 20px 18px; vertical-align: bottom; border-top: 0; }
.compare thead th:first-child { width: 22%; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--slate); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--slate); }
.compare td.is-ok { color: var(--ink); }
.compare .is-us { padding-inline: 22px; border-top-color: var(--line-d1); color: var(--on-dark-strong); font-weight: 500; }
.compare thead .is-us { border-top: 0; }
.compare .is-us .muted-inline { font-size: 13px; color: var(--on-dark-dim); }
.compare-tag { margin-bottom: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.th-title { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.th-sub { display: block; font-size: 13px; font-weight: 400; color: var(--slate); }
.compare thead .is-us .th-title { font-size: 17px; color: var(--on-dark-strong); }
.compare thead .is-us .th-sub { color: var(--on-dark-dim); }
.th-row { display: flex; align-items: center; gap: 12px; }
.compare-ic { width: 32px; height: 32px; border-radius: 8px; }
.cell-mark { display: flex; align-items: center; gap: 10px; }
.mark-dot { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; }
.mark-dot--no { background: #F3F4F6; color: #A0A5AE; }
.mark-dot--ok { background: var(--line-l2); color: var(--ink); }
.mark-dot--us { background: var(--indigo); color: var(--white); }
.compare-row > th, .compare-row > td:not(.is-us) { transition: background-color .2s ease; }
.compare-row:hover > th, .compare-row:hover > td:not(.is-us) { background: #FAFAFB; }
/* Tuiles du comparatif (tablette et mobile) */
.cmp-cards { display: none; }
@media (max-width: 860px) {
  .table-wrap { display: none; }
  .cmp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  .cmp-cards.swipe { display: flex; gap: 12px; }
}
.cmp-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--mist); border-radius: 14px; background: var(--white); }
.cmp-name { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.cmp-ic { width: 32px; height: 32px; border-radius: 8px; }
.cmp-us { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--graphite); box-shadow: 0 0 0 1px var(--line-d2), 0 16px 32px -18px rgba(79, 70, 229, .55); }
.cmp-us-label { font-family: var(--mono); font-size: 11px; color: var(--indigo-light); }
.cmp-us-text { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--on-dark-strong); }
.cmp-us-note { font-size: 13px; font-weight: 400; color: var(--on-dark-dim); white-space: nowrap; }
.cmp-others { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.cmp-others > div { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line-l2); }
.cmp-others dt { font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--slate); }
.cmp-others dd { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--slate); }
.cmp-others dd.is-ok { color: var(--ink); }
.cmp-card .mark-dot { margin-top: 1px; }
.cmp-others .mark-dot { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .cmp-cards.swipe .cmp-card { gap: 20px; padding: 22px 18px; }
  .cmp-cards.swipe .cmp-us { gap: 10px; padding: 18px 16px; }
  .cmp-cards.swipe .cmp-others { gap: 14px; }
  .cmp-cards.swipe .cmp-others > div { gap: 7px; padding-top: 14px; }
}

/* ---------- Offres ---------- */
.tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--mist); border-radius: 10px; background: var(--white); }
.tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; color: var(--slate); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tab[aria-pressed="true"] { background: var(--graphite); color: var(--on-dark-strong); }
.tab { white-space: nowrap; }
.tab-sub { font-weight: 400; opacity: .75; }
@media (max-width: 760px) {
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tab { padding: 0 8px; }
}
@media (max-width: 560px) { .tab-sub { display: none; } }
/* Evolve : Pay as you go */
.evolve { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.evolve-how { display: flex; flex-direction: column; gap: 22px; padding: 28px; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--white); }
.evolve-head { display: flex; flex-direction: column; gap: 6px; }
.evolve-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--indigo); }
.evolve-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.evolve-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.evolve-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; column-gap: 12px; row-gap: 4px; }
.evolve-num { grid-row: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #C7CAFB; border-radius: 999px; background: var(--indigo-pale-2); font-family: var(--mono); font-size: 12px; color: var(--indigo); }
.evolve-step-title { align-self: center; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.evolve-step-text { grid-column: 2; font-size: 14px; line-height: 1.5; color: var(--slate); }
.evolve-examples { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-l2); }
.evolve-label { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.evolve-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.evolve-chips li { padding: 5px 10px; border: 1px solid var(--mist); border-radius: 6px; background: var(--paper); font-size: 13px; }
@media (max-width: 960px) { .evolve { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .evolve-steps { grid-template-columns: minmax(0, 1fr); }
  .evolve-how, .evolve .plan { padding: 22px 20px; }
}
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--white); }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-icon { color: var(--indigo); }
.plan-pitch { font-size: 15px; line-height: 1.5; color: var(--slate); }
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-prefix { font-size: 13px; color: var(--slate); }
.plan-amount { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.plan-unit { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--slate); }
.plan-lines { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-l2); font-size: 15px; line-height: 1.5; }
.plan-lines li { display: flex; gap: 10px; }
.plan-plus { font-family: var(--mono); color: var(--indigo); }
.plan-includes { color: var(--slate); }
.plan-note { font-size: 13px; color: var(--slate); }
.plan--featured { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.plan--featured .plan-name, .plan--featured .plan-amount { color: var(--on-dark-strong); }
.plan--featured .plan-icon, .plan--featured .plan-plus { color: var(--indigo-light); }
.plan--featured .plan-pitch, .plan--featured .plan-prefix, .plan--featured .plan-unit, .plan--featured .plan-includes, .plan--featured .plan-note { color: var(--on-dark-dim); }
.plan--featured .plan-lines { border-top-color: var(--line-d1); }

/* Méthode : bandeau distinct des offres */
.method { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); margin-top: 44px; border: 1px solid var(--mist); border-radius: 14px; background: var(--white); overflow: hidden; }
.method-head { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px; background: linear-gradient(135deg, var(--indigo), #4338CA); }
.method-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #C7CAFB; }
.method-lead { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--on-dark-strong); }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-step { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 28px; border-left: 1px solid var(--mist); }
.method-arrow { position: absolute; left: -13px; top: 50%; margin-top: -12px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); color: var(--indigo); }
.method-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.method-ic { width: 32px; height: 32px; border-radius: 8px; }
.method-num { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; color: #A0A5AE; }
.method-text { font-size: 15px; line-height: 1.55; color: var(--slate); }
@media (max-width: 1024px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 24px; }
  .method-step:first-child { border-left: 0; }
}
@media (max-width: 760px) {
  .method { margin-top: 32px; }
  .method-steps { grid-template-columns: minmax(0, 1fr); }
  .method-step { padding: 22px 20px; border-left: 0; border-top: 1px solid var(--mist); }
  .method-step:first-child { border-top: 0; }
  .method-arrow { left: 22px; top: -13px; margin-top: 0; transform: rotate(90deg); }
}

/* ---------- FAQ ---------- */
.faq-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.section-head--side { flex: 1 1 300px; margin-bottom: 0; }
.faq-list { flex: 2 1 560px; min-width: 0; border-bottom: 1px solid var(--mist); }
.faq-item { border-top: 1px solid var(--mist); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; height: 2px; border-radius: 2px; background: var(--indigo); transition: transform .25s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 22px 0; font-size: 16px; line-height: 1.65; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list { border-top: 1px solid var(--mist); }
.contact-list > div { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--mist); }
.contact-list dt { flex: 0 0 92px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--indigo); }
.form-card { flex: 1 1 480px; min-width: 0; padding: 28px; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--white); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #D5D8DE; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: 8px; background: #FEF2F2; color: #991B1B; font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-legal { flex: 1 1 220px; font-size: 13px; line-height: 1.5; color: var(--slate); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0; outline: none; }
.form-success-kicker { font-family: var(--mono); font-size: 13px; color: var(--green-text); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-dim); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark); }
.footer-brand p { font-size: 14px; color: var(--on-dark-dim); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.footer-nav a { padding: 10px 0; color: var(--on-dark-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line-d1); font-size: 13px; color: var(--on-dark-faint); }
.footer-bottom .dot-live { width: 6px; height: 6px; margin-right: 4px; vertical-align: 1px; }

/* ---------- Pages légales ---------- */
.legal { background: var(--white); }
.legal-inner { max-width: 760px; padding-block: 88px 104px; display: flex; flex-direction: column; gap: 16px; }
.legal-inner .h2 { margin-bottom: 24px; }
.legal-inner h2:not(.h2) { margin-top: 20px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.legal-inner p:not(.eyebrow) { font-size: 16px; line-height: 1.7; color: #3D4350; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Apparition au défilement (activée par JS) ---------- */
.reveal-hide { opacity: 0; transform: translateY(32px); }
.reveal-show { animation: revealUp .9s cubic-bezier(.16, .8, .24, 1) both; }
@keyframes revealUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { animation: none; }
  .caret.is-blinking { animation: none; }
}
