/* =====================================================================
   APPFLOW DIGITAL — LANDING « MOULE »
   Charte : navy #2A1A4A · cyan #26C0DD · bleu #4E6EF0 · blanc · corail #FF5A5A
   ===================================================================== */

:root {
  --navy:    #2A1A4A;
  --navy-2:  #1E1238;
  --cyan:    #26C0DD;
  --blue:    #4E6EF0;
  --coral:   #FF5A5A;
  --coral-d: #E84747;
  --white:   #FFFFFF;
  --ink:     #1A1330;
  --muted:   #5B5470;
  --muted-d: #C9D2F0;
  --bg:      #FFFFFF;
  --bg-alt:  #F5F6FC;
  --line:    #E7E8F3;

  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 10px 30px rgba(42, 26, 74, .10);
  --shadow-lg:0 24px 60px rgba(42, 26, 74, .18);
  --maxw:     1120px;
  --ease:     cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 1000;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  text-align: center; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-lg { padding: 18px 34px; font-size: 1.06rem; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

.btn-coral {
  background: var(--coral); color: #fff;
  box-shadow: 0 10px 24px rgba(255, 90, 90, .35);
}
.btn-coral:hover { background: var(--coral-d); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 90, 90, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px; display: block;
  box-shadow: 0 4px 12px rgba(42, 26, 74, .18);
}
.brand-accent { color: var(--blue); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #3A2566 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: #fff; padding: 84px 0 92px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 12% 20%, rgba(38, 192, 221, .22), transparent 70%),
    radial-gradient(36% 46% at 92% 80%, rgba(78, 110, 240, .26), transparent 70%);
}
.hero-inner { position: relative; max-width: 880px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700;
  color: var(--cyan); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; margin-bottom: .35em; }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted-d); max-width: 680px; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.micro { margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px;
  padding: 0; margin: 34px 0 0; font-size: .92rem; font-weight: 600; color: #fff;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }

/* ---------------------------- Sections ---------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--navy); text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.4em; font-size: 1.08rem; }

/* ---------------------------- Cards (3-up) ---------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1em; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.18rem; color: var(--navy); }
.card p { color: var(--muted); margin: 0; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; font-size: 1.6rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(38, 192, 221, .14), rgba(78, 110, 240, .14));
}
.card.pain .card-ico { background: linear-gradient(135deg, rgba(255, 90, 90, .14), rgba(255, 90, 90, .06)); }

/* ---------------------------- Steps ---------------------------- */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px 28px; box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-weight: 900; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(78, 110, 240, .35);
}
.step h3 { font-size: 1.14rem; color: var(--navy); }
.step p { color: var(--muted); margin: 0; }
.demandes-types { display: block; margin-top: 8px; font-size: .92rem; color: var(--blue); font-style: italic; }

/* ---------------------------- Comparison table ---------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare {
  width: 100%; border-collapse: collapse; background: #fff; min-width: 560px;
  border-radius: var(--radius); overflow: hidden;
}
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--navy); color: #fff; font-size: .98rem; font-weight: 700; }
.compare thead th.col-highlight { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.compare tbody th[scope="row"] { font-weight: 700; color: var(--navy); width: 23%; background: var(--bg-alt); }
.compare td { color: var(--muted); }
.compare td.cell-yes { color: var(--navy); font-weight: 600; background: rgba(38, 192, 221, .07); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------- Proof ---------------------------- */
.proof-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: stretch; }
.proof-lead { font-size: 1.16rem; color: var(--navy); font-weight: 600; }
.proof-text p { color: var(--muted); }
.proof-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.demo-block {
  margin-top: 26px; padding: 22px 24px; border: 1px dashed var(--blue);
  border-radius: var(--radius-s); background: rgba(78, 110, 240, .05);
}
.demo-title { font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.demo-desc { color: var(--muted); margin: 0 0 14px; }
.demo-mobile {
  margin: 12px 0 0; font-size: .9rem; color: var(--muted);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.demo-mobile::before { content: "📱"; }
.demo-mobile a { font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.demo-mobile a:hover { color: var(--cyan); }
.demo-disclaimer {
  margin: 8px 0 0; font-size: .86rem; color: var(--muted); font-style: italic;
  display: flex; align-items: baseline; gap: 6px;
}
.demo-disclaimer::before { content: "ⓘ"; font-style: normal; color: var(--blue); font-weight: 700; }
.proof-stat {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
  justify-content: center; box-shadow: var(--shadow-lg);
}
.proof-badge {
  align-self: flex-start; background: rgba(38, 192, 221, .2); color: var(--cyan);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.proof-quote { font-size: 1.3rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.proof-note { color: var(--muted-d); font-size: .94rem; margin: 0; }

/* ---------------------------- Pricing ---------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); position: relative;
}
.price-card--featured {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 44px rgba(78, 110, 240, .22);
}
.price-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.price-amount { font-size: 2.8rem; font-weight: 900; color: var(--navy); line-height: 1; margin: 0; }
.price-amount span { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.price-freq { color: var(--muted); margin: 4px 0 18px; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink); }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 900;
}
.price-foot { text-align: center; margin: 28px 0 22px; color: var(--muted); }

/* ---------------------------- FAQ ---------------------------- */
.faq { margin-top: 1em; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  margin-bottom: 12px; box-shadow: 0 4px 14px rgba(42, 26, 74, .05); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700; color: var(--blue); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--muted); margin: 0; }

/* ---------------------------- Final CTA ---------------------------- */
.final-cta {
  background: radial-gradient(120% 140% at 50% -20%, #3A2566 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
}
.final-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; margin-bottom: .8em; }
.final-reassure { margin-top: 18px; color: var(--muted-d); max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: var(--navy-2); color: #fff; padding: 50px 0 40px; }
.footer-inner { text-align: center; }
.footer-logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.footer-brand { font-weight: 900; font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
.footer-accent { color: var(--cyan); }
.footer-tag { color: var(--muted-d); margin: 0 0 20px; }
.footer-legal { color: rgba(255, 255, 255, .72); font-size: .9rem; line-height: 1.7; margin: 0 0 18px; }
.ai-tag {
  display: inline-block; background: rgba(38, 192, 221, .16); color: var(--cyan);
  font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .86rem; margin-bottom: 6px;
}
.footer-copy { color: rgba(255, 255, 255, .5); font-size: .84rem; margin: 0; }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 880px) {
  .cards-3, .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 68px; }
  /* --- Correctif mobile : CTA pleinement responsives (tiennent dans l'écran,
         texte entier autorisé à passer à la ligne, zéro débordement horizontal).
         box-sizing:border-box est déjà global (cf. * { box-sizing }).
         !important pour primer à coup sûr sur le .btn de base (white-space:nowrap). --- */
  .btn {
    white-space: normal !important;
    overflow-wrap: break-word;
    max-width: 100% !important;
  }
  .btn-lg { padding: 16px 20px; font-size: 1rem; }
  .hero-cta .btn,
  .aqa-cta .btn,
  .center > .btn { width: 100%; }

  /* --- Tableau comparatif -> cartes empilées (zéro débordement mobile) --- */
  .table-wrap { overflow: visible; box-shadow: none; }
  .compare { min-width: 0; box-shadow: none; }
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 18px; padding: 6px 0; overflow: hidden;
  }
  .compare tbody th[scope="row"] {
    width: 100%; background: var(--navy); color: #fff; font-size: 1rem;
    padding: 14px 18px; border: 0;
  }
  .compare tbody td {
    border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px 14px 44%;
    position: relative; min-height: 52px;
  }
  .compare tbody td::before {
    content: attr(data-label); position: absolute; left: 18px; top: 14px; width: 38%;
    font-weight: 700; color: var(--muted); font-size: .82rem; line-height: 1.3;
  }
  .compare tbody td.cell-yes { background: rgba(38, 192, 221, .08); }
  .compare tbody tr td:last-child { border-bottom: 0; }
}

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