/* ==========================================================================
   Clientèle — feuille de style principale
   ========================================================================== */

:root {
  --ink: #26293B;
  --ink-soft: #565A73;
  --paper: #F7F3F5;
  --paper-raised: #FFFFFF;
  --line: #E5DEE3;
  --line-strong: #CFC3CC;
  --plum: #8B5FBF;
  --plum-dark: #6C459C;
  --peach: #E8A26C;
  --green: #4C8266;
  --muted: #726E82;
  --danger: #B04858;

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Karla", "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0; font-family: var(--font-body); background: var(--paper); color: var(--ink);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.18;
  margin: 0 0 0.5em; letter-spacing: -0.005em; color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.12rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; max-width: 62ch; }

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

.section-head { max-width: 620px; margin-bottom: 42px; }
.section-head p { margin-bottom: 0; color: var(--ink-soft); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--plum-dark); outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; text-decoration: none; color: var(--ink); }
.brand span { color: var(--plum); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 42px; height: 42px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 4px auto; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--paper-raised);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 18px; transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.13rem; color: var(--ink-soft); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Kanban mockup (grounded hero visual) ---------- */
.kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.kanban-col {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: 0 20px 42px -30px rgba(38,41,59,0.3);
}
.kanban-col h4 { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; padding: 0 4px; }
.kanban-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; font-size: 0.82rem; font-weight: 600;
}
.kanban-card span { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; margin-top: 3px; }
.kanban-card.tag-plum { border-left: 3px solid var(--plum); }
.kanban-card.tag-peach { border-left: 3px solid var(--peach); }
.kanban-card.tag-green { border-left: 3px solid var(--green); }
@media (max-width: 640px) { .kanban { grid-template-columns: 1fr; } }

/* ---------- Funnel steps (genuine sequence, connected pills) ---------- */
.funnel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.funnel-pill {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
}
.funnel-pill.is-active { background: var(--plum); color: #fff; border-color: var(--plum); }
.funnel-arrow { color: var(--line-strong); font-size: 1.2rem; }
@media (max-width: 640px) {
  .funnel { flex-direction: column; align-items: stretch; }
  .funnel-arrow { text-align: center; transform: rotate(90deg); }
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.pull-quote {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink);
  line-height: 1.4; border-left: 3px solid var(--plum); padding-left: 22px;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 12px 0 12px 28px; position: relative; border-top: 1px solid var(--line); color: var(--ink-soft); }
.check-list li:first-child { border-top: none; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--plum); box-shadow: 0 18px 40px -26px rgba(139,95,191,0.35); }
.plan-tag { display: inline-block; align-self: flex-start; background: var(--plum); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.plan-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.plan-audience { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.plan-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; margin-bottom: 4px; }
.plan-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; flex-grow: 1; }
.plan-list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 10px; }
.plan-list li:first-child { border-top: none; }
.plan-list li::before { content: "◆"; color: var(--plum-dark); flex-shrink: 0; font-size: 0.7rem; margin-top: 4px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-fineprint {
  margin-top: 34px; padding: 20px 24px; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: 0.92rem;
}
.pricing-fineprint p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-size: 1.3rem; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { margin-top: 12px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C6D8; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); }
.form-msg { padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; margin-bottom: 20px; }
.form-msg.error { background: #FBEDEF; color: var(--danger); border: 1px solid #EFC7CD; }
.form-msg.success { background: #F1EAF7; color: var(--plum-dark); border: 1px solid #DAC8ED; }
.required { color: var(--danger); }

.info-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.info-row { padding: 14px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.info-row .value { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-raised); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 42ch; }
.footer-col h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: var(--muted);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Legal ---------- */
.legal-body h2 { margin-top: 1.8em; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-updated { color: var(--muted); font-size: 0.88rem; }

/* ---------- 404 / merci ---------- */
.state-page { min-height: 60vh; display: flex; align-items: center; }
.state-page .container { text-align: left; max-width: 640px; }
.state-kicker { color: var(--plum-dark); font-weight: 700; margin-bottom: 12px; }

.mt-32 { margin-top: 32px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
