/* ── Maxel Ledger — feuille de style du site vitrine ────────────────────────
   Palette : ardoise profonde + accent ambre. Volontairement distincte du rouge
   de La Flèche Rouge : Maxel Ledger est une marque à part.
   Aucune dépendance externe (police système, zéro requête tierce).        */

:root {
  --ink:        #10151c;
  --ink-2:      #1b2430;
  --slate:      #47566a;
  --slate-2:    #6b7c92;
  --line:       #e2e7ee;
  --line-soft:  #eef1f6;
  --paper:      #ffffff;
  --paper-2:    #f6f8fb;
  --amber:      #c8862a;
  --amber-soft: #fdf6e9;
  --green:      #1f7a52;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 21, 28, .05), 0 8px 28px rgba(16, 21, 28, .06);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 620; }
p  { margin: 0; }

a { color: inherit; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--slate); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 680; letter-spacing: -0.02em; font-size: 17px;
  text-decoration: none; margin-right: auto;
}
.mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; letter-spacing: -0.04em;
}
.nav a.link {
  text-decoration: none; color: var(--slate); font-size: 15px; font-weight: 520;
}
.nav a.link:hover { color: var(--ink); }
@media (max-width: 780px) { .nav a.link { display: none; } }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--slate-2); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
/* L'en-tête est collant : on décale les cibles d'ancre pour qu'il ne les masque pas. */
section[id] { scroll-margin-top: 78px; }
section.tight { padding: 64px 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: #9fb0c4; }

.head { max-width: 660px; margin-bottom: 48px; }
.head p { margin-top: 14px; }

/* ── Héros ───────────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero p.lede { margin-top: 20px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--slate-2); }

/* Maquette schématique de l'application (illustration, pas une capture) */
.mock {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  height: 34px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d6dde6; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 316px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; background: #fcfdfe; }
.mock-side span {
  display: block; font-size: 11.5px; color: var(--slate-2);
  padding: 6px 8px; border-radius: 6px;
}
.mock-side span.on { background: var(--ink); color: #fff; font-weight: 600; }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card {
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #fff;
}
.mock-card b { display: block; font-size: 10.5px; color: var(--slate-2); font-weight: 600; }
.mock-card i {
  display: block; height: 7px; border-radius: 4px; background: var(--line-soft); margin-top: 9px;
}
.mock-card i.a { width: 62%; background: #dde4ed; }
.mock-card i.b { width: 44%; background: var(--amber); opacity: .5; }
.mock-card i.c { width: 78%; background: #dde4ed; }
.mock-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.mock-line {
  display: grid; grid-template-columns: 1fr 54px 40px; gap: 10px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft);
}
.mock-line:last-child { border-bottom: 0; }
.mock-line u { display: block; height: 7px; border-radius: 4px; background: #e7ecf3; text-decoration: none; }
.mock-line u.short { width: 55%; }
.mock-line u.mid { width: 72%; }
.mock-pill { height: 16px; border-radius: 8px; background: var(--amber-soft); border: 1px solid #f0dfbe; }
.mock-pill.ok { background: #e8f4ee; border-color: #c9e5d7; }

/* ── Grilles ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff;
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--slate); font-size: 15.5px; }

.pain { border-left: 3px solid var(--amber); padding-left: 20px; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--slate); font-size: 15.5px; }

/* ── Modules ─────────────────────────────────────────────────────────────── */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .mods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .mods { grid-template-columns: 1fr; } }
.mod { background: #fff; padding: 24px; }
.mod h3 { font-size: 16.5px; margin-bottom: 7px; }
.mod p { font-size: 14.5px; color: var(--slate); }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 20px; margin-bottom: 11px;
  background: var(--paper-2); color: var(--slate-2); border: 1px solid var(--line);
}
.tag.pro { background: var(--amber-soft); color: #8a5c12; border-color: #f0dfbe; }
.tag.prem { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Tarifs ──────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 28px; display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.plan-flag {
  position: absolute; top: -11px; left: 28px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 20px;
}
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); }
.price { display: flex; align-items: baseline; gap: 5px; margin: 16px 0 4px; }
.price b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: 14px; color: var(--slate-2); }
.per { font-size: 13.5px; color: var(--slate-2); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.plan li { font-size: 15px; color: var(--ink-2); padding-left: 25px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 13px; height: 7px; border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.plan li.inherit { color: var(--slate); font-weight: 600; }
.plan li.inherit::before { border-color: var(--slate-2); }
.plan .btn { margin-top: auto; width: 100%; }

.price-note {
  margin-top: 28px; padding: 18px 20px; border-radius: 11px;
  background: var(--amber-soft); border: 1px solid #f0dfbe;
  font-size: 14.5px; color: #7a5410;
}

/* ── Sécurité ────────────────────────────────────────────────────────────── */
.sec { display: grid; gap: 22px; }
.sec-item { padding-left: 20px; border-left: 2px solid #2c3a4b; }
.sec-item h3 { font-size: 16.5px; color: #fff; margin-bottom: 6px; }
.sec-item p { font-size: 15px; color: #9fb0c4; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--slate-2); font-size: 22px; font-weight: 400; line-height: 1;
  flex: none;
}
details[open] summary::after { content: "\2013"; }
details p { margin-top: 12px; color: var(--slate); font-size: 15.5px; max-width: 62em; }

/* ── Appel à l'action final ──────────────────────────────────────────────── */
.final { text-align: center; }
.final .lede { margin: 16px auto 0; max-width: 34em; }
.final .hero-cta { justify-content: center; }

/* ── Pied de page ────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: 14.5px; color: var(--slate-2); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .sep { margin-left: auto; }
@media (max-width: 640px) { .foot .sep { margin-left: 0; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 52px 0 48px; }
  .wrap { padding: 0 20px; }
  .head { margin-bottom: 34px; }
  .card, .mod, .plan { padding: 22px; }
  .hero-cta .btn { width: 100%; }
  .price b { font-size: 34px; }
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
