/* DevisCash — système visuel premium (vitrine + application). */
:root {
  --marine: #101a30;
  --marine-700: #182644;
  --marine-600: #223257;
  --lime: #a8ee47;
  --lime-dark: #8fd42f;
  --emerald: #10b981;
  --emerald-dark: #0f9d6b;
  --cream: #f6f7f2;
  --white: #ffffff;
  --ink: #16203a;
  --muted: #5d6b85;
  --muted-light: #8a97b0;
  --line: #e7e9e2;
  --line-soft: #eef0ea;
  --danger: #d7263d;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 48, 0.06), 0 1px 3px rgba(16, 26, 48, 0.05);
  --shadow: 0 10px 30px -12px rgba(16, 26, 48, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 26, 48, 0.28);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --container: 1140px;
  --tr: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.15; color: var(--marine); font-weight: 750; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; }
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 0.98rem; cursor: pointer; transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  text-decoration: none; font-family: inherit; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--marine); box-shadow: 0 8px 20px -8px rgba(143, 212, 47, 0.7); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-outline { background: transparent; border-color: var(--marine); color: var(--marine); }
.btn-outline:hover { background: var(--marine); color: #fff; }
.btn-ghost { background: transparent; color: var(--marine); }
.btn-ghost:hover { background: rgba(16, 26, 48, 0.06); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #eaf0ff; border-color: rgba(255,255,255,0.14); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(215, 38, 61, 0.4); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- En-tête vitrine ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 242, 0.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--marine); letter-spacing: -0.03em; font-size: 1.22rem; }
.brand:hover { text-decoration: none; }
.logo {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--marine), var(--marine-600)); color: var(--lime);
  font-weight: 800; font-size: 1.25rem; box-shadow: var(--shadow-sm);
}
.brand-light, .brand-light .logo-word { color: #f3f6ff; }
.nav-links { display: flex; gap: 1.4rem; margin-left: 0.5rem; flex: 1; }
.nav-links a { color: var(--marine); font-weight: 550; font-size: 0.98rem; }
.nav-links a:hover { color: var(--emerald-dark); text-decoration: none; }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--marine); border-radius: 2px; transition: var(--tr); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 380px at 82% -8%, rgba(168, 238, 71, 0.22), transparent 60%),
    radial-gradient(700px 320px at 8% 10%, rgba(16, 185, 129, 0.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--emerald-dark); background: rgba(16, 185, 129, 0.1); padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 0.9rem; }
.hero-note { font-size: 0.9rem; color: var(--muted-light); margin: 0; }

/* ---------- Maquette dashboard ---------- */
.hero-visual { animation: rise 600ms ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--marine); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mock-url { margin-left: auto; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; }
.mock-k { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mock-v { display: block; font-size: 1.5rem; font-weight: 800; color: var(--marine); }
.mock-pipeline { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-rows { display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.mock-skel { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e9ebe4, #f3f4ee, #e9ebe4); }
.w30 { width: 30%; } .w40 { width: 42%; } .w60 { width: 60%; }

/* ---------- Pills de statut ---------- */
.pill { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 650; padding: 0.28rem 0.7rem; border-radius: 999px; }
.pill-new { background: rgba(16, 185, 129, 0.12); color: var(--emerald-dark); }
.pill-contact { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.pill-devis { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.pill-won { background: var(--lime); color: var(--marine); }
.pill-lost { background: rgba(93, 107, 133, 0.15); color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: linear-gradient(180deg, #fff, #fbfcf8); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0.6rem 0 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--marine); color: var(--lime); font-weight: 800; margin-bottom: 0.9rem; }
.step-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; transition: transform var(--tr), box-shadow var(--tr); }
.benefit-card::before { content: ''; position: absolute; left: 1.6rem; top: 1.6rem; width: 34px; height: 4px; border-radius: 4px; background: var(--lime); }
.benefit-card h3 { font-size: 1.12rem; margin: 1rem 0 0.5rem; }
.benefit-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pipeline-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 10px;
  border-left: 3px solid var(--emerald); border-bottom: 3px solid var(--emerald);
  transform: rotate(-45deg); border-radius: 1px;
}

.trades { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.trade { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem; font-weight: 600; color: var(--marine); box-shadow: var(--shadow-sm); }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.price-featured { border-color: var(--marine); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--marine); color: var(--lime); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap; }
.price-tagline { color: var(--muted); margin: 0; }
.price-amount { margin: 0.4rem 0 0.8rem; }
.price-amount strong { font-size: 2.6rem; color: var(--marine); letter-spacing: -0.03em; }
.price-amount span { color: var(--muted); font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.55rem; flex: 1; }
.price-card li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: 0.97rem; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border-left: 2.5px solid var(--emerald); border-bottom: 2.5px solid var(--emerald); transform: rotate(-45deg); }
.pricing-foot { text-align: center; margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 650; color: var(--marine); padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--emerald-dark); font-weight: 400; transition: var(--tr); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* ---------- CTA finale ---------- */
.cta-final { padding-bottom: clamp(3rem, 6vw, 5rem); }
.cta-box {
  background: linear-gradient(135deg, var(--marine), var(--marine-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 3.5rem); text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 220px at 85% 0%, rgba(168, 238, 71, 0.25), transparent 60%); }
.cta-box h2 { color: #fff; position: relative; }
.cta-box p { color: rgba(234, 240, 255, 0.85); max-width: 46ch; margin: 0.6rem auto 1.6rem; position: relative; }
.cta-box .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--marine); color: rgba(234, 240, 255, 0.72); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-note { font-size: 0.92rem; max-width: 34ch; margin-top: 0.8rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav a { color: rgba(234, 240, 255, 0.72); font-size: 0.93rem; }
.site-footer nav a:hover { color: var(--lime); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; }
.footer-bottom .muted { color: rgba(234, 240, 255, 0.5); }
.footer-bottom p { margin: 0; }

/* ---------- Pages légales ---------- */
.legal h2 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }
.legal p { color: var(--ink); }
.pilote-tag { display: inline-block; background: rgba(217, 119, 6, 0.14); color: #b45309; font-weight: 650; font-size: 0.82rem; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.link-back { font-weight: 600; }

/* ---------- Authentification ---------- */
body.auth { background: radial-gradient(1000px 500px at 50% -10%, rgba(168,238,71,0.12), transparent 60%), var(--cream); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.2rem; }
.auth-card .brand { margin-bottom: 1.4rem; }
.auth-card h1 { font-size: 1.7rem; }
.auth-sub { color: var(--muted); margin-top: 0.3rem; }
.auth-switch { text-align: center; margin: 1.3rem 0 0; color: var(--muted); font-size: 0.95rem; }
.auth-aside { text-align: center; margin-top: 1.2rem; }
.auth-aside a { color: var(--muted); font-size: 0.9rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--marine); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; width: 100%; transition: border var(--tr), box-shadow var(--tr);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form textarea { resize: vertical; }
.hint { font-weight: 500; color: var(--muted-light); font-size: 0.8rem; }
.checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: 0.2rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bannières ---------- */
.banner { border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-size: 0.94rem; margin-bottom: 1rem; font-weight: 500; }
.banner-error { background: rgba(215, 38, 61, 0.1); color: #a11227; border: 1px solid rgba(215, 38, 61, 0.25); }
.banner-ok { background: rgba(16, 185, 129, 0.12); color: var(--emerald-dark); border: 1px solid rgba(16, 185, 129, 0.3); }

/* ---------- Application : layout ---------- */
body.app { background: #f3f5ef; }
.app-layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--marine); color: #eaf0ff; padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; }
.app-nav { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.app-nav a { color: rgba(234, 240, 255, 0.78); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.96rem; transition: var(--tr); }
.app-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.app-nav a.active { background: var(--lime); color: var(--marine); }
.logout-form { margin-top: auto; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 3vw, 2rem); background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-topbar h1 { font-size: 1.4rem; flex: 1; }
.org-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 650; font-size: 0.86rem; color: var(--marine); }
.app-content { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.4rem; max-width: 1080px; width: 100%; }
.app-toggle { display: none; }

/* ---------- Application : cartes & panneaux ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.25rem; }
.stat-k { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.stat-v { font-size: 1.9rem; font-weight: 800; color: var(--marine); letter-spacing: -0.02em; }
.stat-sub { font-size: 0.78rem; color: var(--muted-light); }
.stat-wide { grid-column: span 2; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { font-size: 1.2rem; }
.panel-sub { color: var(--muted); margin-top: -0.4rem; margin-bottom: 1rem; font-size: 0.95rem; }

.copy-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.copy-input { flex: 1; min-width: 220px; font-family: inherit; font-size: 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem; background: var(--cream); color: var(--marine); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; padding: 0.6rem 0.8rem; border-bottom: 2px solid var(--line); }
.data-table td { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { font-weight: 650; color: var(--marine); }
.cell-sub { display: block; font-size: 0.82rem; color: var(--muted-light); margin-top: 0.15rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem !important; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.filter-chip:hover { text-decoration: none; color: var(--marine); }
.filter-chip.active { background: var(--marine); color: #fff; border-color: var(--marine); }

.grid-form { grid-template-columns: repeat(2, 1fr); }
.grid-form .full { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.detail-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.breadcrumb { margin: 0; }
.breadcrumb a { font-weight: 600; color: var(--muted); }
.sms-draft { width: 100%; font-family: inherit; font-size: 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; background: var(--cream); color: var(--ink); resize: vertical; margin-bottom: 0.9rem; }
.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 1.4rem 0; }
.mini-head { font-size: 1rem; margin-bottom: 0.6rem; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0 0 1.2rem; font-size: 0.92rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; color: var(--marine); font-weight: 600; text-align: right; }

.integration-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.6rem; }
.integration-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); }
.integration-list li:last-child { border-bottom: 0; }
.integration-list span:first-child { font-weight: 600; color: var(--marine); }
.tag { font-size: 0.78rem; font-weight: 650; padding: 0.3rem 0.7rem; border-radius: 999px; }
.tag-soon { background: rgba(217, 119, 6, 0.14); color: #b45309; }

.form-public { max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .pipeline-preview { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-featured { transform: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 1rem 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .nav-actions { display: flex; position: absolute; top: calc(74px + 180px); left: 0; right: 0; padding: 0 24px 1rem; background: #fff; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-wide { grid-column: span 1; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 256px; transform: translateX(-100%); transition: transform var(--tr); z-index: 60; }
  .app-sidebar.open { transform: translateX(0); }
  .app-toggle { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps-grid, .benefits-grid, .grid-form, .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.8rem; }
  .mock-stats { grid-template-columns: repeat(3, 1fr); }
  .meta-list dd { text-align: left; }
}

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

/* Messagerie IA et planning */
.assist-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.assist-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px;align-items:start}
.assist-grid .panel{height:100%}
.assist-grid .form input,.assist-grid .form select{width:100%}
.assist-grid form label:not(.checkbox){display:grid;gap:8px;font-size:14px;font-weight:700;color:#253752}
.assist-grid select,.assist-grid input[type="time"]{padding:11px 14px;border:1px solid #d5dfe6;border-radius:10px;background:white;color:#1b2844}
.assist-grid .checkbox{display:flex;align-items:center;gap:10px;font-size:14px}
.assist-thread{display:flex;flex-direction:column;gap:16px;max-height:640px;overflow-y:auto;padding:18px;background:#f4f8fa;border:1px solid #e8eef2;border-radius:17px;margin:18px 0 24px}
.assist-bubble{align-self:flex-start;width:fit-content;max-width:85%;padding:17px 20px;background:#fff;border:1px solid #e3eaf0;border-radius:16px 16px 16px 3px;box-shadow:0 3px 12px #15253b0a}
.assist-bubble strong{font-size:12px;color:#478161}
.assist-bubble p{margin:8px 0 0;white-space:pre-line;overflow-wrap:anywhere;color:#24354f}
.assist-bubble small{color:#8793a4}
.assist-bubble.is-client{align-self:flex-end;background:#ecffd7;border-color:#cfe9bd;border-radius:16px 16px 3px 16px}
.assist-chat-card{width:min(720px,calc(100% - 28px));margin:50px auto;padding:28px;background:white;box-shadow:0 20px 75px #121f381d;border-radius:24px}
.assist-chat-card h1{font-size:clamp(26px,4vw,38px);margin:14px 0}
.assist-chat-card .assist-thread{min-height:190px;max-height:440px}
.assist-choices{display:flex;flex-wrap:wrap;gap:7px}
.assist-chat-card .form{display:grid;gap:18px}
.assist-chat-card .form input[name="input"]{font-size:16px}
.assist-chat-card .checkbox{display:flex;gap:10px;align-items:start}
.assist-chat-card .checkbox input{flex:none;width:auto;margin-top:5px}
@media(max-width:950px){.assist-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.assist-grid{grid-template-columns:1fr}}
@media(max-width:580px){.assist-kpis{grid-template-columns:1fr 1fr;gap:10px}.assist-chat-card{margin:15px auto;padding:18px}.assist-bubble{max-width:95%;padding:13px}.assist-grid{gap:12px}}
