/* ==========================================================================
   Lako — feuille de style
   Couleurs, typographie et composants du site vitrine.
   ========================================================================== */

/* Polices auto-hébergées (aucun appel à Google : rien n'est transmis à un tiers) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13262E;
  --ink-2: #36505A;
  --ink-3: #47616A;
  --accent: #2F6F78;
  --accent-dark: #1F4F56;
  --sage: #7FA39A;
  --bg: #F3F6F7;
  --lake: #D5E4E7;
  --mint: #E9F0EC;
  --mist: #EEF4F4;
  --sand: #F1D9B5;
  --sand-bg: #F6EFE2;
  --sand-ink: #5C4520;
  --white: #FFFFFF;
  --radius-l: 28px;
  --radius-m: 20px;
  --shadow-soft: 0 1px 2px rgba(19, 38, 46, 0.05);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.sr-only {
  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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Boutons et pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-soft { background: rgba(255, 255, 255, 0.82); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: var(--white); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #EACB9C; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(19,38,46,.08); }
.btn-small:hover { color: var(--ink); }

.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.78); color: var(--accent-dark);
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sage); }
a.pill { text-decoration: none; min-height: 44px; padding: 10px 16px; }
a.pill:hover { background: var(--white); color: var(--accent-dark); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.section-title { font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 44px; }
.accent { color: var(--accent); }

/* ---------- En-tête et héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--lake); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 70% 50%; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243,246,247,.94) 0%, rgba(243,246,247,.82) 38%, rgba(243,246,247,.15) 68%, rgba(243,246,247,0) 100%);
}
@media (max-width: 900px) {
  .hero-veil { background: linear-gradient(180deg, rgba(243,246,247,.93) 0%, rgba(243,246,247,.84) 55%, rgba(243,246,247,.4) 100%); }
}

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.legal-page .site-header { position: relative; background: var(--lake); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .nav-links { display: none; } }

.hero-body {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px;
  padding-top: calc(84px + clamp(32px, 6vw, 80px)); padding-bottom: clamp(64px, 8vw, 120px);
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 480px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Maquette de téléphone */
.phone-wrap { flex: 0 1 320px; display: flex; justify-content: center; margin: 0 auto; }
.phone { width: 296px; background: var(--white); border-radius: 42px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(31,79,86,.45), 0 0 0 1px rgba(19,38,46,.06); }
.phone-screen { background: #FBFCFC; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; min-height: 560px; }
.phone-top { position: relative; height: 120px; background: #CBDCE1; overflow: hidden; }
.phone-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.phone-bar { position: absolute; left: 18px; top: 16px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.phone-logo { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: -0.04em; color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.phone-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--white); color: var(--accent-dark); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.phone-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.phone-kicker { font-size: 12px; color: var(--ink-3); font-weight: 500; display: block; }
.phone-title { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; display: block; }
.progress-card { background: var(--mist); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.progress { height: 6px; background: #D6E3E4; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; width: 80%; height: 100%; background: var(--accent); border-radius: 999px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #EBF0F1; font-size: 13px; line-height: 1.3; }
.check { width: 22px; height: 22px; border-radius: 999px; background: #DCEAE5; display: flex; align-items: center; justify-content: center; flex: none; }
.check-todo { width: 22px; height: 22px; border-radius: 999px; border: 2px dashed #9DB3B9; flex: none; }
.phone-tip { background: var(--sand-bg); color: var(--sand-ink); border-radius: 12px; padding: 11px 12px; font-size: 12.5px; line-height: 1.4; }
.phone-cta { margin-top: auto; background: var(--accent); color: var(--white); border-radius: 999px; padding: 13px; text-align: center; font-weight: 600; font-size: 14px; }

/* ---------- Bande promesse ---------- */
.promise { background: var(--lake); }
.promise-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.promise-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.promise h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.promise-text p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.benefits { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.benefit { display: flex; flex-direction: column; gap: 8px; }
.benefit strong { font-size: 17px; }
.benefit span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.wave { display: block; width: 100%; height: 48px; }

/* ---------- Comment ça marche ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.steps-wrap { position: relative; }
.steps-river { position: absolute; left: 0; top: 18px; width: 100%; height: 40px; }
@media (max-width: 860px) { .steps-river { display: none; } }
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--accent-dark); background: var(--white); border: 2px solid #BCD3D7; width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.card { background: var(--white); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-soft); }
.card h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Statuts dans la maquette d'analyse */
.summary-chips { display: flex; gap: 8px; }
.chip { flex: 1; border-radius: 12px; padding: 10px; font-size: 12px; font-weight: 600; line-height: 1.25; }
.chip b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: -0.02em; }
.chip-warn { background: var(--sand-bg); color: var(--sand-ink); }
.chip-ok { background: #DCEAE5; color: var(--accent-dark); }
.policy-list { list-style: none; margin: 0; padding: 0; }
.policy-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid #EBF0F1; font-size: 13px; line-height: 1.3; }
.tag { flex: none; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.tag-warn { background: var(--sand-bg); color: var(--sand-ink); }
.tag-ok { background: #DCEAE5; color: var(--accent-dark); }

/* ---------- Contenu de l'analyse ---------- */
.report { background: var(--white); border-top: 1px solid #E1E8EA; border-bottom: 1px solid #E1E8EA; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.report-item { background: var(--bg); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.report-item h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.report-item p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.report-icon { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--white); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.report-foot { margin-top: 28px; font-size: 15px; color: var(--ink-2); max-width: 720px; line-height: 1.6; }

/* ---------- Modules ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.module { border-radius: var(--radius-l); overflow: hidden; background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.module-photo { position: relative; height: 200px; overflow: hidden; background: var(--lake); }
.module-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 16px; left: 16px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--accent-dark); }
.badge-soon { color: var(--sand-ink); }
.module-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.module-body h3 { font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.module-body p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.ticks svg { flex: none; margin-top: 2px; }

/* ---------- Protection des données ---------- */
.trust { background: var(--mint); }
.trust-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.trust-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.trust-text .pill { background: var(--white); }
.trust h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -0.03em; }
.trust-text p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-dark); min-height: 44px; align-self: flex-start; }
.trust-photo { flex: 1 1 340px; max-width: 480px; height: 340px; border-radius: var(--radius-l); overflow: hidden; position: relative; }
.trust-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.trust-item { background: var(--white); border-radius: 22px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.trust-icon { flex: none; width: 44px; height: 44px; border-radius: 999px; background: #E3EEF0; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.trust-item strong { display: block; font-size: 17px; margin-bottom: 6px; }
.trust-item span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq h2 { font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; min-height: 44px; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--mist);
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 680px; }

/* ---------- Liste d'attente ---------- */
.signup { padding: 0 24px clamp(56px, 7vw, 96px); }
.signup-box { position: relative; overflow: hidden; max-width: 1152px; margin: 0 auto; background: var(--accent-dark); color: var(--white); border-radius: 32px; }
.signup-box picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.signup-veil { position: absolute; inset: 0; background: rgba(16, 44, 50, .74); }
.signup-inner { position: relative; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.signup-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.signup h2 { color: var(--white); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.signup-text p { font-size: 17px; line-height: 1.6; color: #D3E6E8; }
.signup-form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.signup-form label { font-size: 14px; font-weight: 600; color: #D3E6E8; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input {
  flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; color: var(--ink);
}
.signup-note { font-size: 13px; color: #D3E6E8; }
.signup-note a { color: var(--white); }
.signup-msg { background: rgba(255,255,255,.12); border-radius: 20px; padding: 20px 24px; font-size: 17px; line-height: 1.5; }
.signup-msg[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; align-items: center; padding-top: 8px; padding-bottom: 40px; font-size: 14px; color: var(--ink-3); }
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand b { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-3); }
.credits { flex-basis: 100%; font-size: 12px; }

/* ---------- Pages légales ---------- */
.legal-header { background: var(--lake); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 7vw, 96px); }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal .todo { background: #FFF4D6; color: #5C4520; padding: 0 4px; border-radius: 4px; }
.legal .notice { background: var(--sand-bg); color: var(--sand-ink); border-radius: 16px; padding: 16px 20px; margin-bottom: 28px; font-size: 15px; line-height: 1.6; }
