/* MarginSentry — site public. Reprend les visuels validés de la fiche App Store :
   (avant 16/10 : dégradé indigo → violet) — désormais noir + citron, mot clé surligné en citron, puces cochées. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #16191c;
  --ink-2: #42474e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #eef0ec;
  /* Style « Frais » (16/10/2026) : noir, gris clair, vert citron — les anciens noms restent. */
  --indigo: #111111;
  --violet: #c8f169;
  --indigo-ink: #000000;
  --lime: #c8f169;
  --grad: radial-gradient(900px 420px at 85% -10%, rgba(200, 241, 105, .28), transparent 60%), linear-gradient(140deg, #111111 0%, #1d2019 100%);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

h1, h2, h3 { color: inherit; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
.lead, .article p { text-wrap: pretty; }

/* En-tête */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--indigo); color: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 18px rgba(17,17,17,.22); transition: transform .1s ease-out, background .15s; }
.btn:hover { background: var(--indigo-ink); color: #fff; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; border-radius: 10px; box-shadow: none; }
.btn-light { background: var(--lime); color: #111; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn-light:hover { background: #d9f79a; color: #111; }
.link-light { color: #fff; opacity: .9; text-decoration: none; font-weight: 600; }
.link-light:hover { color: #fff; opacity: 1; }

/* Bandeau d'ouverture */
.hero { background: var(--grad); color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero > * { position: relative; z-index: 1; }
.hero-sm { padding: 56px 0 60px; }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; opacity: .85; margin-bottom: 14px; }
mark { background: var(--lime); color: #111; padding: 0 .16em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 1.15rem; line-height: 1.6; opacity: .94; max-width: 36em; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 28px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-shot { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(17,12,80,.35); }

/* Sections */
section { padding: 80px 0; }
.band { background: var(--bg-2); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #111; color: var(--lime); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.rev > div { order: 2; }
.feature p { color: var(--ink-2); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(30,27,75,.12); margin: 8px 0 24px; }
.feature .shot { margin: 0; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 32px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan .price { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 12px; }
.plan .price span { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 18px; margin: 0; color: var(--ink-2); font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c7c9f7; box-shadow: 0 10px 28px rgba(30,27,75,.08); color: var(--ink); }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
#faq .faq { margin: 28px 0; }

/* Articles */
.article { padding-top: 48px; padding-bottom: 32px; }
.article h2 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; color: var(--ink-2); }
.article li { margin-bottom: .45em; }
.article p { color: var(--ink-2); }
.note { background: #eef6dc; border: 1px solid #d9ecb0; color: #2c4d06 !important; border-radius: 12px; padding: 14px 18px; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.table-scroll { overflow-x: auto; margin: 16px 0 8px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--bg-2); }
td.yes { color: #047857; font-weight: 650; white-space: nowrap; }
td.no { color: #b45309; font-weight: 650; }

/* Pied */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: .93rem; }
.foot-in { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; }
.foot a { display: block; color: var(--ink-2); text-decoration: none; margin: 0 0 8px; }
.foot a:hover { color: var(--ink); }
.foot .brand { margin-bottom: 10px; }
.foot-h { font-weight: 700; margin-bottom: 10px; }

@media (max-width: 900px) {
  .hero-in, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev > div { order: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .plans { grid-template-columns: 1fr; }
  /* Tableau Stocky : une carte par ligne au lieu d'un défilement horizontal. */
  table { min-width: 0; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0; }
  td:first-child { font-weight: 650; color: var(--ink); }
  td:last-child { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
