/* Karneo — site vitrine. Identité reprise de l'app (lib/utils/theme.dart) :
   bleu marine du logo + ambre, police Inter, « minimal clair premium ». */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #23375f;
  --navy-deep: #081c45;
  --check: #8aa6ff;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --amber-ink: #7a4a00;
  --ink: #0e1726;
  --text: #1f2937;
  --muted: #4b5563;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --tint: #eaeef7;
  --line: #e3e6ec;
  --focus: #1d4ed8;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 30px 60px -24px rgba(8, 28, 69, 0.45), 0 12px 24px -12px rgba(8, 28, 69, 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy-deep); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ En-tête */
.site-header { background: rgba(245, 245, 247, 0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.lang-link { border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 940px) { .site-nav ul { display: flex; } }

/* --------------------------------------------------------------- Boutons */
.play-badge { display: inline-block; border-radius: 10px; line-height: 0; }
.play-badge img { width: auto; height: 56px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; transition: background-color 0.2s, color 0.2s;
}
.btn-ghost { color: var(--navy); background: transparent; border: 1.5px solid #c9d1e3; }
.btn-ghost:hover { background: var(--tint); }

/* --------------------------------------------------------------- Accroche */
.hero { padding: 40px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, #dfe6f5 0%, rgba(223, 230, 245, 0) 60%), linear-gradient(#fff, var(--bg)); overflow: hidden; }
.hero .container { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 650; color: var(--navy); background: var(--tint); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 .accent { color: var(--navy); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text); font-weight: 550; font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: #15803d; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .phone { width: min(78vw, 300px); }
.hero-visual .phone-back { display: none; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-visual { min-height: 560px; }
  .hero-visual .phone { width: 290px; position: relative; z-index: 2; transform: translateX(-30px); }
  .hero-visual .phone-back { display: block; position: absolute; width: 250px; right: 0; top: 70px; z-index: 1; opacity: 0.96; transform: rotate(4deg); }
}

/* --------------------------------------------------------------- Téléphone */
.phone { margin: 0; height: max-content; padding: 9px; background: #0b1220; border-radius: 40px; box-shadow: var(--shadow-lg); }
.phone img { width: 100%; height: auto; border-radius: 31px; background: var(--bg); }

/* --------------------------------------------------------------- Sections */
.section { padding: 64px 0; }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* --------------------------------------------------------------- Fonctions */
.features { display: grid; gap: 56px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-text h3 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; }
.feature-text p { color: var(--muted); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--navy); margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--navy); }
.feature .phone { width: min(72vw, 280px); margin-inline: auto; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-media { order: -1; }
  .feature .phone { width: 280px; }
}

.more-title { margin: 72px 0 20px; font-size: 1.35rem; font-weight: 800; }
.mini-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mini { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.mini svg { width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.mini h4 { font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.mini p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (min-width: 640px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- Confidentialité */
.privacy-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6ebf7; }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .kicker { color: var(--check); }
.privacy-band .section-head p { color: #c9d3ea; }
.privacy-band a { color: #fff; }
.privacy-band :focus-visible { outline-color: #fff; }
.privacy-grid { display: grid; gap: 16px; }
.privacy-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 22px; }
.privacy-card svg { width: 28px; height: 28px; color: var(--check); margin-bottom: 12px; }
.privacy-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.privacy-card p { margin: 0; color: #c9d3ea; font-size: 0.98rem; }
.privacy-more { margin: 28px 0 0; }
@media (min-width: 700px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .privacy-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------- Vendre */
.sell-grid { display: grid; gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.card h3 { font-size: 1.35rem; font-weight: 800; }
.card > p { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.pill svg { width: 14px; height: 14px; }
.pill-free { background: #dcfce7; color: #14532d; }
.pill-premium { background: var(--amber-soft); color: var(--amber-ink); }
.pill-soon { background: var(--tint); color: var(--navy); }
.list-check, .list-no { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.list-check li, .list-no li { display: flex; gap: 10px; align-items: flex-start; }
.list-check svg { width: 20px; height: 20px; margin-top: 3px; color: #15803d; }
.list-no { margin-top: 10px; color: var(--muted); }
.list-no svg { width: 20px; height: 20px; margin-top: 3px; color: #6b7280; }
.note { font-size: 0.95rem; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 16px 0 0; }

/* Mini-illustration du rapport PDF (décorative) */
.doc-illu { background: linear-gradient(180deg, #f8f9fc, #eef1f8); border-radius: 18px; padding: 22px; margin-bottom: 22px; display: flex; justify-content: center; align-items: center; min-height: 248px; }
.doc { width: 210px; background: #fff; border-radius: 8px; box-shadow: 0 12px 28px -12px rgba(8, 28, 69, 0.35); padding: 16px 16px 18px; font-size: 0.62rem; line-height: 1.35; color: var(--ink); }
.doc-top { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 8px; }
.doc-top img { width: 22px; height: 22px; border-radius: 5px; }
.doc-top strong { font-size: 0.72rem; display: block; }
.doc-top span { color: var(--muted); }
.doc-plate { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--bg); border-radius: 4px; padding: 1px 4px; }
.doc-curve { display: block; width: 100%; height: 34px; margin: 6px 0 8px; }
.doc-row { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; border-top: 1px solid var(--line); }
.doc-row span:last-child { color: var(--muted); }

/* Mini-illustration du fichier .karneo (décorative) */
.file-illu { display: flex; align-items: center; justify-content: center; gap: 14px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 28px -12px rgba(8, 28, 69, 0.35); font-weight: 650; color: var(--ink); font-size: 0.85rem; }
.file-chip img { width: 30px; height: 30px; border-radius: 8px; }
.file-illu .arrow { width: 28px; height: 28px; color: var(--navy); }

@media (max-width: 479px) {
  .card { padding: 20px; }
  .doc-illu { padding: 16px; min-height: 0; }
  .file-illu { flex-direction: column; gap: 8px; }
  .file-illu .arrow { transform: rotate(90deg); }
}
@media (min-width: 900px) { .sell-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* --------------------------------------------------------------- Premium */
.premium { background: #fff; }
.premium-grid { display: grid; gap: 16px; }
.premium-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; border: 1px solid #f3e3bf; }
.p-icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); margin-bottom: 16px; }
.p-icon-wrap svg { width: 24px; height: 24px; }
.premium-card .pill { display: flex; width: max-content; }
.premium-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.premium-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.premium-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) { .premium-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .premium-layout { grid-template-columns: 1.25fr 1fr; gap: 24px; } }

.pricing { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6ebf7; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.pricing h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.pricing :focus-visible { outline-color: #fff; }
.plans { display: grid; gap: 12px; margin-bottom: 18px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 18px; padding: 16px 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); }
.plan p { margin: 0; }
.plan-name { font-weight: 700; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.plan-sub { font-size: 0.9rem; color: #c9d3ea; }
.plan-price { text-align: right; white-space: nowrap; color: #fff; }
.plan-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: 0.95rem; font-weight: 600; }
.plan-best { background: #fff; border: 2px solid var(--amber); }
.plan-best .plan-name, .plan-best .plan-price { color: var(--ink); }
.plan-best .plan-sub { color: var(--muted); }
.plan-tag { white-space: nowrap; font-size: 0.75rem; font-weight: 750; color: var(--navy-deep); background: var(--amber); border-radius: 999px; padding: 3px 10px; }
.pricing-note { font-size: 0.95rem; color: #c9d3ea; margin-bottom: 18px; }

.soon-block { margin-top: 40px; }
.soon-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.soon-card { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1.5px dashed #c9d1e3; border-radius: var(--radius-lg); padding: 22px; max-width: 640px; }
.soon-card .soon-icon { background: var(--tint); color: var(--navy); margin-bottom: 0; flex-shrink: 0; }
.soon-card .pill { margin-bottom: 8px; }
.soon-card h4 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.01em; }
.soon-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 56px; font-weight: 650; color: var(--ink); border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: 1.02rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.01em; }
.faq summary svg { width: 20px; height: 20px; color: var(--navy); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Appel final */
.cta-band { padding: 0 0 72px; }
.cta-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6ebf7; border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.cta-card img.cta-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); margin-bottom: 10px; }
.cta-card h2 { color: #fff; margin-bottom: 4px; }
.cta-card p { color: #c9d3ea; max-width: 34rem; }
.cta-card :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------- Pied de page */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; }
.footer-grid .brand { font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 0 -8px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text); }
.legal { font-size: 0.85rem; color: #5b6472; margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* --------------------------------------------------------------- Pages de texte */
.doc-page { padding: 40px 0 72px; }
.doc-page h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.doc-page h2 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); margin-top: 2.2em; }
.doc-page h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc-page ul { padding-left: 1.2em; }
.doc-page li { margin-bottom: 0.5em; }
.doc-meta { color: var(--muted); }
.summary-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 28px 0; }
.summary-box h2 { margin-top: 0; font-size: 1.25rem; }
.summary-box ul { margin: 0; }
.toc { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; }
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { display: inline-block; padding: 3px 0; }
.perm-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.97rem; }
.perm-table th, .perm-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.perm-table th { background: var(--tint); color: var(--ink); font-weight: 700; }
.perm-table tr:last-child td { border-bottom: 0; }
.perm-table td:first-child { width: 42%; font-weight: 600; color: var(--ink); }
.perm-table code { font-size: 0.8em; font-weight: 400; overflow-wrap: anywhere; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.error-page .big { font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; color: var(--navy); letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }

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