/* DartMaster site — warm light (cf. theme.js export C). Pas de dark mode. */
:root {
  --bg: #F7F3ED;
  --surface: #FFFFFF;
  --input: #FBF8F3;
  --border: #E8DFD0;
  --text: #1C1208;
  --text-sub: #7A6A56;
  --text-muted: #8E7D6B; /* assombri vs #B0A090 pour contraste AA sur fond crème */
  --green: #2D7A40;
  --red: #C41E3A;
  --amber: #B45309; /* #D97706 assombri pour contraste texte */
  --gold: #C9940A;
  --shadow: 0 2px 6px rgba(138, 112, 96, 0.10);
  --radius: 20px;
  --gutter: 16px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 19px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-sub); text-decoration: none; border: 1.5px solid var(--border);
  background: var(--surface); padding: 8px 12px; border-radius: 12px; min-height: 40px;
  display: inline-flex; align-items: center;
}

/* Lang suggestion banner */
.lang-banner {
  display: none; background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-sub);
}
.lang-banner.show { display: block; }
.lang-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.lang-banner a { font-weight: 800; }
.lang-banner button {
  background: none; border: 0; font: inherit; color: var(--text-sub); cursor: pointer;
  min-width: 40px; min-height: 40px; font-size: 20px; line-height: 1;
}

/* Hero */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); margin-bottom: 10px; }
h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--text-sub); font-weight: 500; max-width: 34em; margin-bottom: 22px; }
.cta-primary {
  display: none; text-align: center; text-decoration: none; color: #fff; background: var(--green);
  border-radius: 18px; padding: 18px 20px; font-size: 16px; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; box-shadow: 0 4px 12px rgba(45, 122, 64, 0.25); margin-bottom: 14px; max-width: 380px;
}
.js-os-ios .cta-primary, .js-os-android .cta-primary { display: block; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: inline-block; line-height: 0; border-radius: 10px; }
.badges img { height: 52px; width: auto; }
.js-os-android .badge-play { order: -1; }
.hero-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

.phone {
  justify-self: center; width: min(270px, 72vw); border-radius: 36px; padding: 9px;
  background: #1A1510; box-shadow: 0 18px 40px rgba(28, 18, 8, 0.22);
}
.phone img { border-radius: 28px; width: 100%; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 900; letter-spacing: -0.4px; line-height: 1.2; margin-bottom: 10px; }
.section-lead { color: var(--text-sub); margin-bottom: 24px; max-width: 40em; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--text-sub); font-size: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); } .dot-red { background: var(--red); }
.dot-amber { background: var(--amber); } .dot-gold { background: var(--gold); }
.dot-blue { background: #2563EB; } .dot-brown { background: var(--text-sub); }

/* Screenshot strip */
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter));
  -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.shots figcaption { font-size: 13px; font-weight: 700; color: var(--text-sub); text-align: center; margin-top: 8px; }

/* Pricing */
.plans { display: grid; gap: 14px; }
.plan h3 { justify-content: space-between; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag-free { background: rgba(45, 122, 64, 0.08); color: var(--green); }
.tag-premium { background: rgba(201, 148, 10, 0.12); color: #8A6400; }
.plan ul { list-style: none; margin-top: 10px; }
.plan li { padding-left: 22px; position: relative; color: var(--text-sub); font-size: 15px; margin-bottom: 6px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 800; font-size: 16px; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--text-sub); border-bottom: 2.5px solid var(--text-sub); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 18px 16px; color: var(--text-sub); font-size: 15px; }
.faq details > div p + p { margin-top: 8px; }

/* Support */
.support { text-align: center; }
.support .card { max-width: 560px; margin: 0 auto; padding: 28px 20px; }
.btn-outline {
  display: inline-block; margin-top: 14px; text-decoration: none; font-weight: 900; letter-spacing: 0.5px;
  border: 1.5px solid var(--green); color: var(--green); border-radius: 14px; padding: 13px 20px; word-break: break-all;
}

/* Final CTA */
.final { text-align: center; }
.final .badges { justify-content: center; margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-muted); }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.site-footer a { color: var(--text-sub); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .shots figure { width: 220px; }
}
@media (min-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
.plan-note { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.support-lead { margin: 0 auto; }

/* Pages règles (ACQ-05) */
.article { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--text-muted); margin: 8px 0 18px; }
.crumbs a { color: var(--text-sub); }
.article h2 { font-size: clamp(22px, 4.5vw, 28px); margin-top: 36px; }
.article h3 { font-size: 18px; font-weight: 800; margin: 22px 0 6px; }
.article p, .article li { color: var(--text-sub); font-size: 16px; }
.article p + p { margin-top: 10px; }
.article ul, .article ol { padding-left: 22px; margin: 10px 0; }
.article li + li { margin-top: 6px; }
.article strong { color: var(--text); }
.note { background: var(--input); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; margin: 32px 0; }
.cta-box h2 { margin-top: 0; font-size: 22px; }
.cta-box p { margin-bottom: 16px; }
.article .related { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; font-weight: 800; text-decoration: none; color: var(--text); }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.checkout-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.checkout-table th, .checkout-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.checkout-table thead th { background: var(--input); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-sub); }
.checkout-table tbody th { font-weight: 900; color: var(--green); }
.checkout-table tbody tr:target { background: rgba(45, 122, 64, 0.08); }
.article .jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.jump a { display: inline-block; border: 1.5px solid var(--border); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--text-sub); background: var(--surface); }
