/* =========================================================
   DashboardToday — feuille de style du site
   ========================================================= */

/* ===================== TOKENS ===================== */
:root {
  /* Chrome de la page — thème sombre (défaut, à l'image de l'app) */
  --bg: #0A1420;
  --bg-soft: #0E1B2A;
  --surface: #10202F;
  --surface-2: #16293B;
  --border: rgba(120,150,180,.16);
  --border-strong: rgba(120,150,180,.28);
  --text: #E7EEF6;
  --muted: #93A7BC;
  --gold: #FFC24B;
  --gold-soft: rgba(255,194,75,.14);
  --link: #62B2EC;
  --good: #57C98A;
  --warn: #F0A33B;
  --crit: #EE6D66;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);

  /* Palette de l'APP (figée) — utilisée dans les maquettes d'écran */
  --app-bg-a: #123152;
  --app-bg-b: #0A1A2C;
  --app-card: rgba(255,255,255,.055);
  --app-card-b: rgba(255,255,255,.09);
  --app-text: #EDF3FA;
  --app-muted: #93A7BC;
  --app-gold: #FFC24B;
  --app-accent: #56B6F0;

  --font-display: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --font-body: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 940px;
  --radius: 20px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #EDF1F6;
    --bg-soft: #E6ECF3;
    --surface: #FFFFFF;
    --surface-2: #F3F6FA;
    --border: rgba(30,60,90,.12);
    --border-strong: rgba(30,60,90,.20);
    --text: #14212E;
    --muted: #566A7D;
    --gold: #C98A12;
    --gold-soft: rgba(201,138,18,.12);
    --link: #1E6FB0;
    --shadow: 0 20px 50px -26px rgba(20,40,70,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1420; --bg-soft:#0E1B2A; --surface:#10202F; --surface-2:#16293B;
  --border: rgba(120,150,180,.16); --border-strong: rgba(120,150,180,.28);
  --text:#E7EEF6; --muted:#93A7BC; --gold:#FFC24B; --gold-soft:rgba(255,194,75,.14);
  --link:#62B2EC; --shadow:0 24px 60px -24px rgba(0,0,0,.7);
}
:root[data-theme="light"] {
  --bg:#EDF1F6; --bg-soft:#E6ECF3; --surface:#FFFFFF; --surface-2:#F3F6FA;
  --border: rgba(30,60,90,.12); --border-strong: rgba(30,60,90,.20);
  --text:#14212E; --muted:#566A7D; --gold:#C98A12; --gold-soft:rgba(201,138,18,.12);
  --link:#1E6FB0; --shadow:0 20px 50px -26px rgba(20,40,70,.35);
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
.page {
  background:
    radial-gradient(1100px 600px at 82% -8%, var(--gold-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.muted { color: var(--muted); }
svg { display: block; }
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ===================== TOP NAV ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { display: flex; align-items: center; gap: 14px; height: 58px; }
.brandmini { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--text); text-decoration: none; }
.brandmini .ic { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.tnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tnav a {
  color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.tnav a:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle {
  margin-left: 4px; width: 34px; height: 34px; border-radius: 999px; flex: none;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
}
@media (max-width: 760px) { .tnav a { display: none; } .tnav a.keep { display: inline-flex; } }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .16s ease, filter .16s ease, background .16s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--gold); color: #10202F; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }

/* Badge « Télécharger sur l'App Store » */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18);
  padding: 11px 20px 11px 18px; border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.btn-store svg { width: 26px; height: 26px; fill: #fff; }
.btn-store .lbl { display: flex; flex-direction: column; line-height: 1.1; }
.btn-store .lbl small { font-family: var(--font-body); font-size: .62rem; letter-spacing: .04em; opacity: .85; text-transform: uppercase; }
.btn-store .lbl b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* ===================== HERO ===================== */
.hero { padding: 70px 0 46px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.02; margin: 14px 0 16px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 30ch; }
.hero .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted);
}
.chip b { color: var(--text); font-weight: 700; }
.appicon { width: 168px; height: 168px; border-radius: 38px; box-shadow: var(--shadow); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .appicon .rays { transform-origin: 60px 56px; animation: spin 60s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 34px; text-align: left; }
  .appicon { width: 118px; height: 118px; border-radius: 27px; order: -1; }
}

/* ===================== SECTIONS ===================== */
section { padding: 40px 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.05rem); margin: 8px 0 6px; }
.sec-head p { color: var(--muted); max-width: 60ch; margin: 0; }

/* ===================== ANNOTATED OVERVIEW ===================== */
.overview { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .overview { grid-template-columns: 1fr; justify-items: center; } }
.legend { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.legend li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 13px; align-items: start; }
.num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
  background: var(--gold); color: #10202F;
}
.legend .t { font-weight: 700; font-family: var(--font-display); }
.legend .d { color: var(--muted); font-size: .95rem; }

/* ===================== PHONE MOCKUP ===================== */
.phone {
  width: min(300px, 80vw); aspect-ratio: 300 / 640; flex: none;
  background: #05060a; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,.05) inset; position: relative;
}
.phone::after {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #05060a; border-radius: 0 0 16px 16px; z-index: 3;
}
.screen {
  height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, var(--app-bg-a), var(--app-bg-b));
  color: var(--app-text); font-family: var(--font-body);
}
.scr-pad { padding: 30px 14px 16px; height: 100%; overflow: hidden; }
.app-card { background: var(--app-card); border: 1px solid rgba(255,255,255,.08); border-radius: 15px; padding: 11px 12px; }
.app-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--app-muted); }
.app-row { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.marker {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #10202F; font-family: var(--font-mono); font-weight: 700;
  font-size: .74rem; display: grid; place-items: center; z-index: 4;
  box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 3px color-mix(in srgb, var(--app-bg-b) 70%, transparent);
}

/* ===================== FEATURE GRID ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card .tile {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 14px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .tip { margin-top: 12px; font-size: .86rem; color: var(--text); background: var(--surface-2); border-radius: 11px; padding: 9px 11px; border: 1px solid var(--border); }
.card .tip b { color: var(--gold); }

/* split feature (texte + mini maquette) */
.split { display: grid; grid-template-columns: 1fr min(300px,80vw); gap: 38px; align-items: center; }
.split.rev { grid-template-columns: min(300px,80vw) 1fr; }
.split.rev .txt { order: 2; }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; justify-items: center; } .split .txt, .split.rev .txt { order: 0; } }
.split .txt h3 { font-size: 1.35rem; margin-bottom: 10px; }
.split .txt p { color: var(--muted); }
.featlist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.featlist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .97rem; }
.featlist .ck { color: var(--good); }

/* ===================== STEPS (téléchargement / permissions) ===================== */
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
        background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 16px 18px; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #10202F;
  font-family: var(--font-mono); font-weight: 700; display: grid; place-items: center;
}
.step h4 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.perm { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; }
.perm .p { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.perm .p .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 10px; }
.perm .p b { font-family: var(--font-display); }
.perm .p span { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }

/* callout */
.callout {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 15px; padding: 16px 18px; margin-top: 8px;
}
.callout svg { color: var(--gold); }
.callout p { margin: 0; font-size: .96rem; }

/* download hero band */
.dlband {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 28px 30px;
}
.dlband h3 { font-size: 1.4rem; margin-bottom: 6px; }
.dlband p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .dlband { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 18px 16px; color: var(--muted); font-size: .96rem; }

/* ===================== CONTACT FORM ===================== */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: .96rem; margin-bottom: 6px; }
.alert-ok { background: rgba(87,201,138,.14); border: 1px solid rgba(87,201,138,.4); color: var(--text); }
.alert-err { background: rgba(238,109,102,.14); border: 1px solid rgba(238,109,102,.45); color: var(--text); }

/* legal page */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.9rem; margin-bottom: 18px; }
.legal h3 { font-size: 1.12rem; margin: 22px 0 6px; }
.legal p { color: var(--muted); }

/* ===================== FOOTER ===================== */
footer { border-top: 1px solid var(--border); padding: 40px 0 60px; margin-top: 20px; color: var(--muted); font-size: .9rem; }
footer .fx { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.fnav { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 14px 0; }
.fnav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.fnav a:hover { color: var(--text); }
