/* ==========================================================================
   Pilotas — Feuille de styles principale
   Couleur de marque : indigo #4f46e5 · accents bleu nuit
   Mobile-first, aspect SaaS pro. Le CSS critique est inliné dans chaque <head>.
   ========================================================================== */

:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-darker: #3730a3;
  --night: #1e1b4b;
  --night-2: #312e81;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-indigo-soft: #eef2ff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 25px 50px -12px rgba(30, 27, 75, .25);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

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

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--night {
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  color: #c7d2fe;
}
.section--night h2, .section--night h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: .6rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--indigo-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.btn--light { background: #fff; color: var(--indigo-dark); }
.btn--light:hover { background: #eef2ff; color: var(--indigo-darker); }
.btn--lg { padding: 16px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--ink);
  letter-spacing: -.02em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--night-2) 100%);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__logo { width: 32px; height: 32px; flex: 0 0 32px; display: block; border-radius: 9px; }

/* Conteneur du menu : aligné à droite, sur une seule ligne en desktop */
.nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 28px;
  min-width: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--bg-indigo-soft); color: var(--indigo-dark); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav__login { color: var(--text); font-weight: 600; font-size: .98rem; padding: 8px 12px; white-space: nowrap; }
.nav__actions .btn { white-space: nowrap; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* Bascule en menu hamburger jusqu'à 1024px (tablette / mobile) */
@media (max-width: 1024px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    max-height: calc(100vh - 66px);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav { position: relative; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; flex-wrap: nowrap; }
  .nav__links a { padding: 12px; font-size: 1.05rem; }
  .nav__actions { flex-direction: column; align-items: stretch; margin-top: 12px; gap: 8px; }
  .nav__actions .btn, .nav__login { width: 100%; }
  .nav__login { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 70% -10%, #eef2ff 0%, #fff 60%); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 18px; }

.hero__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero__panel-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero__panel-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; display: block; }
.hero__panel-bar i:nth-child(1){ background:#f87171; }
.hero__panel-bar i:nth-child(2){ background:#fbbf24; }
.hero__panel-bar i:nth-child(3){ background:#34d399; }
.mini-stat { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat b { font-size: 1.45rem; color: var(--ink); }
.mini-stat .tag { font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag--green { background: #dcfce7; color: #15803d; }
.tag--indigo { background: var(--bg-indigo-soft); color: var(--indigo-dark); }
.bar { height: 9px; border-radius: 999px; background: #eef2ff; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), #818cf8); }

@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; color: var(--text); }
.card--link { transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease; display: block; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; text-decoration: none; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--indigo-dark); }
.card__more svg { width: 16px; height: 16px; }

.icon-badge {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--bg-indigo-soft);
  color: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Listes à puces check ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 32px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 20px; height: 20px;
  background: var(--green);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 13px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 13px no-repeat;
}

/* ---------- Bandeau de métiers ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: .95rem; color: var(--text);
}
a.pill:hover { border-color: var(--indigo); color: var(--indigo-dark); text-decoration: none; background: var(--bg-indigo-soft); }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--indigo); color: #fff;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}

/* ---------- CTA final ---------- */
.cta {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--night-2) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #e0e7ff; max-width: 55ch; margin-left: auto; margin-right: auto; }
.cta .hero__cta { justify-content: center; }
.cta .hero__trust { justify-content: center; color: #c7d2fe; }
.cta .hero__trust svg { color: #a7f3d0; }

/* ---------- Tableaux comparatifs & tarifs ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.compare th, table.compare td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--bg-soft); font-size: .95rem; color: var(--ink); }
table.compare thead th.is-us { background: var(--bg-indigo-soft); color: var(--indigo-darker); }
table.compare td.is-us { background: #f5f3ff; }
table.compare tbody th { font-weight: 700; color: var(--ink); }
table.compare .yes { color: var(--green); font-weight: 700; }
table.compare .no { color: var(--red); font-weight: 700; }
table.compare .meh { color: var(--amber); font-weight: 700; }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.plan {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--indigo); box-shadow: var(--shadow); position: relative; }
.plan__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .03em;
}
.plan h3 { margin-bottom: .2rem; }
.plan__price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 12px 0 2px; }
.plan__price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan__placeholder { font-size: .82rem; color: var(--amber); font-weight: 700; margin-bottom: 14px; }
.plan ul { margin: 10px 0 22px; }
.plan .btn { margin-top: auto; }

.note {
  background: var(--bg-indigo-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--indigo-darker);
  font-size: .95rem;
}
.note strong { color: var(--indigo-darker); }

/* ---------- FAQ (accordéons) ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: inherit;
}
.faq__q:hover { background: var(--bg-soft); }
.faq__q svg { width: 20px; height: 20px; flex: 0 0 20px; transition: transform .2s ease; color: var(--indigo); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__a p { margin: 0 0 16px; color: var(--text); }
.faq__item.is-open .faq__a { max-height: 520px; padding-top: 2px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo-dark); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Contenu riche (pages texte) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Article de blog : 2 colonnes (article + sidebar) ---------- */
.article-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
}
.article-layout .prose { max-width: 72ch; }
.article-main { min-width: 0; }

.article-aside { display: grid; gap: 22px; }
@media (min-width: 940px) {
  .article-aside {
    position: sticky;
    top: 86px;
    align-self: start;
  }
}
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.aside-card h2,
.aside-card h3 { font-size: 1.05rem; margin: 0 0 14px; }
.aside-card--cta {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--night-2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow);
}
.aside-card--cta h2,
.aside-card--cta h3 { color: #fff; }
.aside-card--cta p { color: #e0e7ff; font-size: .95rem; }
.aside-card--cta .btn { width: 100%; }
.aside-card--cta .aside-trust {
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: .85rem; color: #c7d2fe; display: grid; gap: 6px;
}
.aside-card--cta .aside-trust li { position: relative; padding-left: 22px; }
.aside-card--cta .aside-trust li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; background: #a7f3d0; border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 10px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 10px no-repeat;
}

.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
}
.aside-list a:hover { background: var(--bg-indigo-soft); color: var(--indigo-dark); text-decoration: none; }
.aside-list .aside-meta { display: block; font-size: .78rem; font-weight: 700; color: var(--indigo); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }

/* Sommaire (table des matières) */
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 10px;
  color: var(--text); font-size: .94rem; line-height: 1.4;
  border-left: 2px solid var(--line);
}
.toc a:hover { background: var(--bg-indigo-soft); color: var(--indigo-dark); border-left-color: var(--indigo); text-decoration: none; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand p { color: #94a3b8; max-width: 32ch; margin-top: 14px; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { font-size: .96rem; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid #1e293b;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: #94a3b8; font-size: .9rem;
}
.footer__bottom a { color: #94a3b8; }

/* ---------- Divers ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Badge héro (annonce Devis vocal IA) ---------- */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-indigo-soft); border: 1px solid #c7d2fe;
  color: var(--indigo-darker); font-weight: 700; font-size: .88rem;
  padding: 7px 14px 7px 7px; border-radius: 999px; margin-bottom: 16px;
  line-height: 1.2;
}
.hero-badge:hover { border-color: var(--indigo); text-decoration: none; }
.hero-badge__tag {
  background: var(--indigo); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.hero-badge svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* ---------- Devis vocal IA : panneau de démonstration ---------- */
.voice-demo {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: #e0e7ff;
  display: grid; gap: 13px;
}
.voice-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice-demo__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 1rem; }
.voice-demo__title svg { width: 18px; height: 18px; flex: 0 0 18px; color: #a5b4fc; }
.voice-demo__rec {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 800; color: #fca5a5;
  text-transform: uppercase; letter-spacing: .05em;
}
.voice-demo__rec i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; animation: voiceBlink 1.3s ease infinite; }
@keyframes voiceBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.voice-demo__bubble {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(199, 210, 254, .22);
  border-radius: var(--radius); padding: 14px 16px;
}
.voice-demo__mic {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  background: var(--indigo); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, .28);
}
.voice-demo__mic svg { width: 20px; height: 20px; }
.voice-demo__bubble p { margin: 0; font-size: .95rem; color: #e0e7ff; font-style: italic; line-height: 1.5; }
.voice-demo__step {
  text-align: center; font-size: .76rem; font-weight: 800; color: #a5b4fc;
  text-transform: uppercase; letter-spacing: .07em;
  display: flex; align-items: center; gap: 10px;
}
.voice-demo__step::before, .voice-demo__step::after {
  content: ""; flex: 1 1 auto; height: 1px; background: rgba(199, 210, 254, .25);
}
.voice-demo__result { background: #fff; border-radius: var(--radius); overflow: hidden; }
.voice-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; font-size: .85rem; border-bottom: 1px solid var(--line);
}
.voice-line .lbl { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.voice-line .val { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.voice-ia {
  display: inline-flex; align-items: center;
  font-size: .64rem; font-weight: 800; color: var(--indigo-dark);
  background: var(--bg-indigo-soft); border-radius: 999px; padding: 1px 7px;
  text-transform: uppercase; letter-spacing: .03em; flex: 0 0 auto;
}
.voice-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-soft);
  font-weight: 800; color: var(--ink); font-size: .9rem;
}
.voice-demo__edit {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255, 255, 255, .07); border: 1px dashed rgba(199, 210, 254, .35);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: .85rem; color: #c7d2fe; line-height: 1.45;
}
.voice-demo__edit svg { width: 16px; height: 16px; flex: 0 0 16px; color: #a7f3d0; margin-top: 2px; }

/* ---------- Tarifs : pastille IA ---------- */
.plan__ia {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-indigo-soft); color: var(--indigo-darker);
  font-weight: 800; font-size: .8rem;
  padding: 4px 11px; border-radius: 999px; margin: 8px 0 2px;
}
.plan__ia svg { width: 13px; height: 13px; flex: 0 0 13px; }

/* ==========================================================================
   Aperçus haute-fidélité de l'application (faux écrans en HTML/CSS/SVG)
   Sidebar bleu nuit #0f172a, fond clair, accent indigo #4f46e5.
   Aucune image lourde : tout est en CSS/SVG.
   NOTE: pour remplacer plus tard par de vraies captures, voir les
   commentaires "REMPLACER PAR CAPTURE" dans le HTML des pages.
   ========================================================================== */
.app-shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .app-shot { grid-template-columns: 188px 1fr; } }
.app-shot__chrome { display: none; }

/* Barre latérale bleu nuit (slate-900) */
.app-side {
  background: var(--ink);
  color: #cbd5e1;
  padding: 16px 14px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 560px) { .app-side { display: flex; } }
.app-side__brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; color: #fff; font-size: 1.02rem;
  padding: 2px 6px 14px;
}
.app-side__mark {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--indigo), var(--night-2));
  display: inline-flex; align-items: center; justify-content: center;
}
.app-side__mark svg { width: 15px; height: 15px; }
.app-nav { display: grid; gap: 2px; }
.app-nav a, .app-nav span {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  font-size: .86rem; font-weight: 600; color: #94a3b8;
  line-height: 1;
}
.app-nav a { color: #cbd5e1; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.app-nav .is-active { background: var(--indigo); color: #fff; }
.app-nav svg { width: 16px; height: 16px; flex: 0 0 16px; }
.app-side__foot {
  margin-top: auto; padding: 12px 6px 2px;
  display: flex; align-items: center; gap: 9px;
  border-top: 1px solid #1e293b; font-size: .8rem; color: #94a3b8;
}
.app-side__avatar {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: linear-gradient(135deg,#818cf8,#4f46e5);
  color: #fff; font-weight: 800; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Zone principale claire */
.app-main { background: var(--bg-soft); min-width: 0; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.app-topbar__title { font-weight: 800; color: var(--ink); font-size: 1rem; }
.app-topbar__search {
  flex: 1 1 auto; max-width: 240px;
  display: none; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
  color: var(--muted); font-size: .82rem;
}
@media (min-width: 720px) { .app-topbar__search { display: flex; } }
.app-topbar__search svg { width: 14px; height: 14px; flex: 0 0 14px; }
.app-topbar__btn {
  background: var(--indigo); color: #fff; border-radius: 9px;
  padding: 7px 13px; font-weight: 700; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.app-topbar__btn svg { width: 14px; height: 14px; }
.app-body { padding: 18px; display: grid; gap: 16px; }

/* KPIs */
.app-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .app-kpis { grid-template-columns: repeat(4, 1fr); } }
.app-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 14px;
}
.app-kpi__label { font-size: .73rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.app-kpi__value { font-size: 1.32rem; font-weight: 800; color: var(--ink); margin-top: 4px; line-height: 1.1; }
.app-kpi__trend { font-size: .76rem; font-weight: 700; margin-top: 3px; }
.app-kpi__trend.up { color: var(--green); }
.app-kpi__trend.warn { color: var(--amber); }

/* Cartes de contenu app */
.app-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .app-cards { grid-template-columns: 1fr 1fr; } }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 15px 16px;
}
.app-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-card__head h4 { font-size: .92rem; margin: 0; color: var(--ink); }
.app-card__link { font-size: .76rem; font-weight: 700; color: var(--indigo-dark); }

/* Liste de documents (devis/factures) */
.app-rows { display: grid; gap: 2px; }
.app-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 9px;
  font-size: .84rem; color: var(--text);
}
.app-row + .app-row { border-top: 1px dashed var(--line); border-radius: 0; }
.app-row__id { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.app-row__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.app-row__amount { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.app-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.app-badge--green { background: #dcfce7; color: #15803d; }
.app-badge--indigo { background: var(--bg-indigo-soft); color: var(--indigo-dark); }
.app-badge--amber { background: #fef3c7; color: #b45309; }
.app-badge--slate { background: #f1f5f9; color: #475569; }

/* Mini graphique en barres (CSS pur) */
.app-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding-top: 6px; }
.app-chart i {
  flex: 1 1 0; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #818cf8, var(--indigo));
  display: block; min-width: 0;
}
.app-chart i.muted { background: #e2e8f0; }

/* Éditeur de devis : tableau de lignes + assistant de chiffrage */
.app-editor { display: grid; gap: 14px; }
@media (min-width: 860px) { .app-editor { grid-template-columns: 1fr 230px; } }
.app-doc { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.app-doc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.app-doc__head h4 { margin: 0; font-size: .95rem; color: var(--ink); }
.app-doc__meta { font-size: .78rem; color: var(--muted); }
.app-lines { width: 100%; border-collapse: collapse; font-size: .82rem; }
.app-lines th, .app-lines td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.app-lines thead th { background: var(--bg-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.app-lines td.num, .app-lines th.num { text-align: right; font-variant-numeric: tabular-nums; }
.app-lines tbody tr.new { background: #f5f7ff; }
.app-lines .desc { color: var(--ink); font-weight: 600; }
.app-lines .ai-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .66rem; font-weight: 800; color: var(--indigo-dark);
  background: var(--bg-indigo-soft); border-radius: 999px; padding: 1px 7px; margin-left: 6px;
  vertical-align: middle; text-transform: uppercase; letter-spacing: .03em;
}
.app-lines .ai-flag svg { width: 11px; height: 11px; display: inline-block; }
.app-doc__total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-soft); font-weight: 800; color: var(--ink);
}
.app-doc__total .num { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Panneau « assistant de chiffrage » */
.app-assist {
  background: linear-gradient(160deg,#1e1b4b 0%, var(--night-2) 100%);
  color: #e0e7ff; border-radius: 13px; padding: 15px 15px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.app-assist__title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: .92rem; }
.app-assist__title svg { width: 17px; height: 17px; flex: 0 0 17px; color: #c7d2fe; }
.app-assist p { margin: 0; font-size: .8rem; color: #c7d2fe; }
.app-assist__field {
  background: rgba(255,255,255,.08); border: 1px solid rgba(199,210,254,.25);
  border-radius: 9px; padding: 8px 11px; font-size: .8rem; color: #e0e7ff;
}
.app-suggest { display: grid; gap: 7px; }
.app-suggest__item {
  background: rgba(255,255,255,.07); border: 1px solid rgba(199,210,254,.18);
  border-radius: 9px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .78rem;
}
.app-suggest__item .lbl { color: #e0e7ff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-suggest__item .val { font-weight: 800; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-suggest__add {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px;
  background: var(--indigo); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.app-suggest__add svg { width: 13px; height: 13px; }

/* Bibliothèque de prix */
.app-lib thead th { position: sticky; top: 0; }
.app-lib .cat { font-size: .7rem; font-weight: 800; color: var(--indigo); text-transform: uppercase; letter-spacing: .04em; }

/* Légende sous un aperçu */
.app-caption {
  text-align: center; font-size: .85rem; color: var(--muted);
  margin: 12px 0 0; font-weight: 600;
}

/* ==========================================================================
   Hero — maquette « fenêtre / app » dédiée (100 % HTML/CSS/SVG)
   Classes propres au hero (préfixe .hero-mock) : indépendantes du composant
   partagé .app-shot. La maquette est entièrement CONTENUE dans son cadre :
   - largeur fluide bornée (max-width + width:100%), jamais plus large que la colonne ;
   - tout le contenu interne est en grille/flex auto-ajustable, sans largeur fixe
     supérieure au conteneur, donc rien n'est tronqué ni ne déborde ;
   - overflow:hidden sur le cadre arrondi garantit des angles nets.
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.hero-mock {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
/* Reflet / dégradé discret en haut du cadre */
.hero-mock::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 120px;
  background: linear-gradient(180deg, rgba(79, 70, 229, .07), rgba(79, 70, 229, 0));
  pointer-events: none; z-index: 0;
}

/* Barre de fenêtre (faux navigateur) */
.hero-mock__bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.hero-mock__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.hero-mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; display: block; }
.hero-mock__dots i:nth-child(1) { background: #f87171; }
.hero-mock__dots i:nth-child(2) { background: #fbbf24; }
.hero-mock__dots i:nth-child(3) { background: #34d399; }
.hero-mock__url {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  font-size: .76rem; color: var(--muted); font-weight: 600;
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Corps de l'app : mini-sidebar + zone principale */
.hero-mock__app {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  background: var(--bg-soft);
}
.hero-mock__side {
  background: var(--ink);
  color: #cbd5e1;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.hero-mock__brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: #fff; font-size: .95rem;
  padding: 2px 4px;
  min-width: 0;
}
.hero-mock__brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-mock__mark {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--indigo), var(--night-2));
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-mock__mark svg { width: 14px; height: 14px; }
.hero-mock__nav { display: grid; gap: 3px; }
.hero-mock__nav span {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px;
  font-size: .8rem; font-weight: 600; color: #94a3b8;
  line-height: 1; min-width: 0;
}
.hero-mock__nav span b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-mock__nav .is-active { background: var(--indigo); color: #fff; }
.hero-mock__nav svg { width: 15px; height: 15px; flex: 0 0 15px; }

/* Zone principale */
.hero-mock__main {
  padding: 14px;
  display: grid; gap: 12px;
  min-width: 0;
}
.hero-mock__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 0;
}
.hero-mock__title {
  font-weight: 800; color: var(--ink); font-size: .98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hero-mock__cta {
  flex: 0 0 auto;
  background: var(--indigo); color: #fff; border-radius: 9px;
  padding: 7px 12px; font-weight: 700; font-size: .78rem;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.hero-mock__cta svg { width: 13px; height: 13px; flex: 0 0 13px; }

/* KPIs — 3 cartes auto-ajustables, jamais tronquées */
.hero-mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.hero-mock__kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 11px 10px;
  display: grid; gap: 3px; min-width: 0;
}
.hero-mock__kpi-label {
  font-size: .66rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-mock__kpi-value {
  font-size: 1.08rem; font-weight: 800; color: var(--ink); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-mock__kpi-trend { font-size: .7rem; font-weight: 700; white-space: nowrap; }
.hero-mock__kpi-trend.up { color: var(--green); }
.hero-mock__kpi-trend.warn { color: var(--amber); }

/* Liste « Derniers devis » avec badges de statut */
.hero-mock__list {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px; display: grid; gap: 2px;
}
.hero-mock__list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: .85rem; font-weight: 800; color: var(--ink);
}
.hero-mock__list-link { font-size: .72rem; font-weight: 700; color: var(--indigo-dark); }
.hero-mock__row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 2px; font-size: .8rem; min-width: 0;
}
.hero-mock__row + .hero-mock__row { border-top: 1px dashed var(--line); }
.hero-mock__row-id { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.hero-mock__row-name {
  flex: 1 1 auto; min-width: 0; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-mock__badge {
  flex: 0 0 auto;
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap;
}
.hero-mock__badge--green { background: #dcfce7; color: #15803d; }
.hero-mock__badge--indigo { background: var(--bg-indigo-soft); color: var(--indigo-dark); }
.hero-mock__badge--slate { background: #f1f5f9; color: #475569; }

/* Apparition douce (sobre) — désactivée si l'utilisateur préfère moins de mouvement */
@media (prefers-reduced-motion: no-preference) {
  .hero-mock { animation: heroMockIn .5s ease both; }
  @keyframes heroMockIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* L'id de devis disparaît sur les cadres très étroits pour éviter tout tassement */
@media (max-width: 360px) {
  .hero-mock__row-id { display: none; }
}

/* ==========================================================================
   Menu déroulant (mega-nav) — CSS-only sur desktop (hover + focus-within),
   sous-listes toujours déroulées en pile sur mobile (aucun JS requis).
   ========================================================================== */
.nav__item { position: relative; }
.nav__item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__caret { width: 14px; height: 14px; flex: 0 0 14px; transition: transform .18s ease; opacity: .7; }
.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
}
.nav__sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: .94rem;
  white-space: nowrap;
}
.nav__sub a:hover { background: var(--bg-indigo-soft); color: var(--indigo-dark); text-decoration: none; }
.nav__sub a b { display: block; font-weight: 700; color: var(--ink); }
.nav__sub a small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; white-space: normal; }

@media (min-width: 1025px) {
  .nav__item.has-sub:hover > .nav__sub,
  .nav__item.has-sub:focus-within > .nav__sub { display: block; }
  .nav__item.has-sub:hover > a .nav__caret { transform: rotate(180deg); }
}

/* Mobile : accordéon — sous-menus repliés, un seul ouvert à la fois (toggle JS). */
@media (max-width: 1024px) {
  .nav__caret { display: inline-block; margin-left: auto; transition: transform .2s ease; }
  .nav__item.has-sub > a { justify-content: space-between; }
  .nav__sub {
    display: none; position: static;
    min-width: 0; border: 0; box-shadow: none; padding: 2px 0 8px 12px;
    border-left: 2px solid var(--line); margin: 2px 0 6px 12px; border-radius: 0;
  }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item.is-open > a .nav__caret { transform: rotate(180deg); }
  .nav__sub a { padding: 9px 12px; font-size: 1rem; }
}

/* ==========================================================================
   Bandeau de confiance (logos / preuves)
   ========================================================================== */
.trustbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.trustbar span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar svg { width: 18px; height: 18px; color: var(--indigo); flex: 0 0 18px; }

/* ==========================================================================
   Formulaire de génération de leads (démo / rappel / téléchargement)
   ========================================================================== */
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}
.lead-form h2, .lead-form h3 { margin-top: 0; }
.lead-form .form { max-width: none; gap: 14px; }
.lead-form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.lead-form__consent { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.lead-form__consent a { color: var(--indigo-dark); text-decoration: underline; }
/* Honeypot anti-spam : masqué aux humains, visible aux robots */
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__msg { display: none; border-radius: var(--radius); padding: 14px 16px; font-weight: 600; margin-top: 4px; }
.lead-form__msg.is-ok { display: block; background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.lead-form__msg.is-err { display: block; background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.lead-form.is-sent .form > *:not(.lead-form__msg) { display: none; }

/* ==========================================================================
   Outils / calculateurs interactifs
   ========================================================================== */
.tool {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 26px; display: grid; gap: 20px;
}
@media (min-width: 860px) { .tool { grid-template-columns: 1fr 1fr; align-items: start; } }
.tool__inputs { display: grid; gap: 14px; }
.tool__result {
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  color: #e0e7ff; border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; align-self: stretch;
}
.tool__result h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.tool__out { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tool__out small { font-size: .95rem; font-weight: 600; color: #c7d2fe; }
.tool__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .92rem; color: #c7d2fe; padding: 6px 0; border-bottom: 1px dashed rgba(199,210,254,.25); }
.tool__line:last-child { border-bottom: 0; }
.tool__line b { color: #fff; font-variant-numeric: tabular-nums; }
.tool__seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tool__seg label {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--text); background: #fff;
}
.tool__seg input { position: absolute; opacity: 0; pointer-events: none; }
.tool__seg input:checked + span { }
.tool__seg label:has(input:checked) { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ==========================================================================
   Cartes ressources / téléchargement
   ========================================================================== */
.resource {
  display: grid; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px;
}
@media (min-width: 640px) { .resource { grid-template-columns: auto 1fr auto; } }
.resource__icon {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 13px;
  background: var(--bg-indigo-soft); color: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center;
}
.resource__icon svg { width: 28px; height: 28px; }
.resource__body h3 { margin: 0 0 4px; }
.resource__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.resource__format { font-size: .78rem; font-weight: 800; color: var(--indigo); text-transform: uppercase; letter-spacing: .04em; }

/* ==========================================================================
   Verdict comparatif (encadré de recommandation)
   ========================================================================== */
.verdict {
  border: 1px solid #c7d2fe; background: var(--bg-indigo-soft);
  border-radius: var(--radius); padding: 22px 24px;
}
.verdict h3 { margin-top: 0; color: var(--indigo-darker); }
.verdict p:last-child { margin-bottom: 0; }

/* Note : footer étendu à 5 colonnes sur grand écran */
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
@media (min-width: 560px) and (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ==========================================================================
   Zone de démonstration embarquée (iframe façon fenêtre d'application)
   Utilisée sur /demo.html et sur l'accueil.
   ========================================================================== */
.demoframe { max-width: 1240px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.demoframe__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.demoframe__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.demoframe__dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; display: block; }
.demoframe__dots i:nth-child(1) { background: #f87171; }
.demoframe__dots i:nth-child(2) { background: #fbbf24; }
.demoframe__dots i:nth-child(3) { background: #34d399; }
.demoframe__url { flex: 1 1 auto; min-width: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .78rem; color: var(--muted); font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demoframe__live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.demoframe__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: demoBlink 1.4s ease infinite; }
@keyframes demoBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.demoframe__viewport { position: relative; background: #f4f6fb; }
.demoframe__viewport iframe { display: block; width: 100%; height: 78vh; min-height: 600px; max-height: 900px; border: 0; }
.demoframe__loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; background: #f4f6fb; transition: opacity .3s ease; }
.demoframe__loader.is-hidden { opacity: 0; pointer-events: none; }
.demoframe__spin { width: 20px; height: 20px; border: 3px solid #c7d2fe; border-top-color: var(--indigo); border-radius: 50%; animation: demoSpin .8s linear infinite; }
@keyframes demoSpin { to { transform: rotate(360deg); } }
.demonote { max-width: 1240px; margin: 14px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.demonote span { display: inline-flex; align-items: center; gap: 7px; }
.demonote svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 16px; }
@media (max-width: 600px) { .demoframe__viewport iframe { height: 72vh; min-height: 520px; } }
