/* DKLM — landing page
   Palette alignée sur l'app (voir lib/core/theme/bouclier_theme.dart) :
   sauge profond = identité DKLM, corail doux = Bouclier, bleu discret = données.
   Aucun rouge culpabilisant, aucune promesse de perte de poids. */

:root {
  --bg: #F5F7F3;
  --surface: #FFFFFF;
  --sage-900: #1F3A2E;
  --sage-700: #2E5844;
  --sage-600: #3E7358;
  --sage-300: #A9CBB7;
  --sage-100: #E4EFE7;
  --coral-600: #D4674A;
  --coral-500: #E8785A;
  --coral-100: #FBE4DC;
  --blue-600: #4A6E90;
  --blue-500: #5C82A8;
  --blue-100: #E2EAF1;
  --neutral: #6B7A70;
  --border: #E1E7E0;

  --font-display: -apple-system, "SF Pro Rounded", ui-rounded, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 32px -12px rgba(31, 58, 46, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--sage-900);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-700);
}
.eyebrow::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--sage-600);
  display: inline-block;
}
.eyebrow.coral { color: var(--coral-600); }
.eyebrow.coral::before { background: var(--coral-500); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 18px; }

p { margin: 0; }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--sage-700);
  max-width: 60ch;
}

.muted { color: var(--neutral); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--sage-600);
  color: white;
  box-shadow: 0 10px 24px -8px rgba(62, 115, 88, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(62, 115, 88, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--sage-900);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--sage-600); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 243, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  color: var(--sage-900);
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sage-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand .mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--sage-700); }
.nav-links a:hover { color: var(--sage-900); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

@media (max-width: 460px) {
  .nav .container { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding-top: 72px;
  padding-bottom: 40px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.signature {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-600);
  font-style: italic;
}

.hero h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 14px; }
.hero .lead { margin-top: 18px; }
.hero-crossplatform { margin-top: 14px; font-size: 15px; color: var(--sage-700); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--neutral); }

/* Phone mockup, pure CSS */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 280px;
  height: 572px;
  background: var(--sage-900);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(31, 58, 46, 0.45);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: var(--sage-900);
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  background: var(--bg);
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 12px;
  gap: 12px;
}
.phone-topline { display: flex; justify-content: space-between; align-items: center; }
.phone-greeting { font-size: 10px; color: var(--neutral); font-weight: 600; }
.phone-title { font-size: 16px; font-weight: 800; margin-top: 2px; }
.phone-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-100); display: flex; align-items: center; justify-content: center; }
.phone-avatar svg { width: 13px; height: 13px; }

.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.phone-card.coral { background: var(--coral-100); border-color: transparent; }
.phone-card .label { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral-600); }
.phone-card .headline { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--sage-900); }
.phone-card .sub { font-size: 9.5px; color: var(--neutral); margin-top: 3px; }

.phone-gauge {
  align-self: center;
  width: 108px;
  height: 62px;
  position: relative;
  margin: 4px 0;
}
.phone-gauge svg { width: 100%; height: 100%; }
.phone-gauge .score {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 800;
  color: var(--sage-900);
}

.phone-row { display: flex; gap: 8px; }
.phone-pill {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  text-align: center;
}
.phone-pill .n { font-size: 13px; font-weight: 800; }
.phone-pill .l { font-size: 8.5px; color: var(--neutral); margin-top: 1px; }

.phone-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.phone-nav .dot { width: 16px; height: 16px; border-radius: 5px; background: var(--sage-100); }
.phone-nav .dot.active { background: var(--sage-600); }

/* ---------------------------------------------------------------------- */
/* Bouclier presentation                                                  */
/* ---------------------------------------------------------------------- */

.bouclier-section {
  background: var(--sage-900);
  color: white;
  border-radius: 40px;
  /* .container (règle plus haut) impose déjà width:100% : sans ce reset,
     100% + les marges latérales ci-dessous déborderait du viewport plutôt
     que de s'y insérer. */
  width: auto;
  margin: 0 20px;
}
.bouclier-section .container { padding-top: 8px; padding-bottom: 8px; }
.bouclier-section .eyebrow { color: var(--coral-500); }
.bouclier-section .eyebrow::before { background: var(--coral-500); }
.bouclier-section h2 { color: white; margin-top: 14px; max-width: 18ch; }
.bouclier-section .lead { color: rgba(255,255,255,0.72); margin-top: 16px; max-width: 56ch; }

.bouclier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
@media (max-width: 780px) { .bouclier-grid { grid-template-columns: 1fr; } }

.bouclier-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 24px;
}
.bouclier-card .step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--coral-500);
  letter-spacing: 0.04em;
}
.bouclier-card h3 { color: white; margin-top: 10px; }
.bouclier-card p { color: rgba(255,255,255,0.68); margin-top: 8px; font-size: 14px; }

.bouclier-quote {
  margin-top: 40px;
  padding: 22px 26px;
  background: rgba(232, 120, 90, 0.12);
  border: 1px solid rgba(232, 120, 90, 0.3);
  border-radius: 18px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  font-style: italic;
}

/* ---------------------------------------------------------------------- */
/* Fonctionnalités                                                         */
/* ---------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card { padding: 24px; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon.blue { background: var(--blue-100); }
.feature-icon.coral { background: var(--coral-100); }
.feature-icon svg { width: 20px; height: 20px; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--neutral); }

/* ---------------------------------------------------------------------- */
/* Confidentialité                                                         */
/* ---------------------------------------------------------------------- */

.privacy-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .privacy-section .container { grid-template-columns: 1fr; } }

.privacy-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.privacy-list .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  margin-top: 1px;
}

.privacy-visual {
  background: var(--sage-900);
  border-radius: 28px;
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
}
.privacy-visual .lock {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.privacy-visual h3 { color: white; font-size: 20px; }
.privacy-visual p { color: rgba(255,255,255,0.7); margin-top: 10px; font-size: 14px; }

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */

.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--sage-600);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--neutral);
}

/* ---------------------------------------------------------------------- */
/* CTA final / waitlist                                                    */
/* ---------------------------------------------------------------------- */

.cta-section {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-900));
  border-radius: 32px;
  width: auto;
  margin: 0 20px;
  color: white;
  text-align: center;
}
.cta-section .container { max-width: 640px; }
.cta-section h2 { color: white; }
.cta-section .lead { color: rgba(255,255,255,0.75); margin: 16px auto 0; text-align: center; }

.waitlist-form {
  margin-top: 32px;
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 480px) { .waitlist-form { flex-direction: column; } }
.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 15px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 15px;
  font-family: var(--font-body);
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist-form input:focus { outline: 2px solid var(--coral-500); outline-offset: 2px; }
.waitlist-form .btn-primary { background: var(--coral-500); box-shadow: 0 10px 24px -8px rgba(232, 120, 90, 0.55); flex: none; }
.waitlist-note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.55); }
.waitlist-status { margin-top: 14px; font-size: 13.5px; font-weight: 700; min-height: 18px; }
.waitlist-status.ok { color: #B7E4C7; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

footer { padding: 56px 0 36px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .signature { display: block; margin-top: 8px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral); margin: 0 0 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--sage-700); text-decoration: none; }
.footer-links a:hover { color: var(--sage-900); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--neutral);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-item summary::after { transition: none; }
}
