/* Up — startwithup.com
   Tokens portés depuis src/constants/up-theme.ts (skin « warm black » de l'app). */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/sora-latin.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 {
  --bg: #110C09;
  --bg-top: #1F1611;
  --bg-sheet: #1B1512;
  --text: #F3F2EE;
  --text-strong: #DFDEDA;
  --muted: #B0AAA3;
  --faint: #857F79;
  --faint2: #7A736D;
  --accent: #FF9044;
  --accent2: #E56636;
  --accent-deep: #EC6E38;
  --accent-glow: #F97C3D;
  --accent-light: #FFB178;
  --accent-tint: rgba(249, 124, 61, 0.16);
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline2: rgba(255, 255, 255, 0.08);
  --success: #5FC08A;
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 42% at 50% -6%, rgba(81, 45, 28, 0.95), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(249, 124, 61, 0.35); }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(17, 12, 9, 0.72);
  border-bottom: 1px solid var(--hairline2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg, .brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
/* Mobile : marque + badge sur la première ligne, liens en dessous (défilables). */
@media (max-width: 760px) {
  .nav__inner { flex-wrap: wrap; height: auto; padding: 0.65rem 0; row-gap: 0.45rem; }
  .nav__inner > nav { order: 3; width: 100%; }
  .nav__links { gap: 1.2rem; overflow-x: auto; white-space: nowrap; padding-bottom: 0.15rem; -webkit-overflow-scrolling: touch; }
}

/* ─── Boutons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  color: #1A0E07;
  background: linear-gradient(168deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 28px rgba(249, 124, 61, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(249, 124, 61, 0.38); }
.btn--ghost { color: var(--text); background: var(--surface); border: 1px solid var(--hairline); }
.btn--ghost:hover { background: var(--surface2); }
.btn--sm { padding: 0.62rem 1rem; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 3.5rem; gap: 3.5rem; } }
/* Badge officiel Apple (SVG fr-fr d'Apple Marketing Tools) */
.appstore-badge { display: inline-flex; }
.appstore-badge img { display: block; height: 52px; width: auto; }
.appstore-badge--sm img { height: 40px; }
h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 1.2rem;
}
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-light), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero__note { margin-top: 1.1rem; font-size: 0.82rem; color: var(--faint); }

/* Maquette « écran » du hero */
.device {
  position: relative; width: min(330px, 88vw); margin-inline: auto;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(180deg, #2C2019, #150E0B);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.device__screen {
  border-radius: 36px; min-height: 580px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top), var(--bg));
  border: 1px solid var(--hairline2);
  padding: 2.2rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.device__screen::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -45%; height: 75%;
  background: radial-gradient(closest-side, rgba(249, 124, 61, 0.38), transparent);
  pointer-events: none;
}
.device__label { position: relative; color: var(--accent-light); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.device__time { position: relative; font-size: 4.3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-top: 0.4rem; }
.device__sub { position: relative; color: var(--muted); font-size: 0.88rem; margin-top: -0.4rem; }
.device__img { position: relative; width: 150px; align-self: center; margin: 0.6rem 0 0.4rem; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55)); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.42rem 0.72rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline2);
  font-size: 0.76rem; color: var(--text-strong); font-weight: 500;
}
.chip--on { background: var(--accent-tint); border-color: rgba(249, 124, 61, 0.35); color: var(--accent-light); }
.streak { display: flex; gap: 0.4rem; margin-top: auto; padding-top: 1rem; }
.streak span { flex: 1; height: 8px; border-radius: 4px; background: var(--surface); }
.streak span.done { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: 0 0 12px rgba(249, 124, 61, 0.35); }
.streak-label { font-size: 0.74rem; color: var(--faint); margin-top: 0.4rem; }

/* ─── Sections ───────────────────────────────────────────────────────── */
section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.028em; line-height: 1.15; margin: 0 0 0.8rem; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.thesis { padding: 2rem 0 1rem; text-align: center; }
.thesis blockquote {
  margin: 0 auto; max-width: 46rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
}
.thesis blockquote span { color: var(--accent-light); }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline2); border-radius: 24px;
  padding: 1.9rem; display: flex; flex-direction: column; gap: 1rem;
}
.card::after {
  content: ""; position: absolute; right: -25%; bottom: -55%; width: 65%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(249, 124, 61, 0.17), transparent); pointer-events: none;
}
.card img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.card h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); }
.card .chips { margin-top: 0.3rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 1.7rem; border-radius: 20px; border: 1px solid var(--hairline2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 0.82rem; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 0.8rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.12rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.privacy {
  border-radius: 28px; border: 1px solid rgba(249, 124, 61, 0.28);
  background: linear-gradient(135deg, rgba(249, 124, 61, 0.13), rgba(255, 255, 255, 0.03));
  padding: 2.6rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; padding: 1.8rem; } }
.privacy h2 { margin-bottom: 1.2rem; }
.privacy p { color: var(--muted); margin: 0 0 1.4rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-strong); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.cta { text-align: center; padding: 5.5rem 0; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 1rem; }
.cta p { color: var(--muted); margin: 0 auto 2rem; max-width: 32rem; }
.cta .hero__cta { justify-content: center; }

/* ─── Pied de page ───────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline2); padding: 2.5rem 0 3rem; color: var(--faint); font-size: 0.88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { width: 100%; margin-top: 0.6rem; font-size: 0.78rem; color: var(--faint2); }
/* Sélecteur de langue (liens statiques, pas de JS) */
.lang { width: 100%; padding-top: 1.2rem; border-top: 1px solid var(--hairline2); }
.lang ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.lang a { text-decoration: none; color: var(--faint); font-size: 0.82rem; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ─── Pages documentaires (confidentialité, CGU, support) ───────────── */
.legal { padding: 3.5rem 0 5rem; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; }
/* Page sans sommaire (mentions légales) : une seule colonne, centrée sur desktop. */
.legal--single { grid-template-columns: minmax(0, 1fr); }
.legal--single .doc { width: 100%; margin-inline: auto; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 2rem; } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.86rem; }
@media (max-width: 900px) { .toc { position: static; padding: 1rem 1.2rem; border: 1px solid var(--hairline2); border-radius: 16px; background: var(--surface); } }
.toc__title { font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; margin: 0 0 0.8rem; }
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 0.4rem; }
.toc a { text-decoration: none; color: inherit; }
.toc a:hover { color: var(--text); }
.doc { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.6rem 0 0.6rem; }
.doc .meta { color: var(--faint); font-size: 0.9rem; margin: 0 0 2rem; }
.doc h2 { font-size: 1.45rem; margin: 2.8rem 0 0.8rem; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.08rem; margin: 1.6rem 0 0.5rem; }
.doc p, .doc li { color: var(--text-strong); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 0.35rem 0; }
.doc a { color: var(--accent-light); }
.doc strong { color: var(--text); }
.summary {
  border-radius: 20px; border: 1px solid rgba(249, 124, 61, 0.3);
  background: rgba(249, 124, 61, 0.08); padding: 1.4rem 1.6rem; margin: 0 0 1rem;
}
.summary h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--hairline2); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 600px; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--hairline2); vertical-align: top; }
th { color: var(--faint); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.03); }
td { color: var(--text-strong); }
tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface); padding: 0.1em 0.4em; border-radius: 5px; }
.callout { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); margin: 1.2rem 0; }

.faq details { border: 1px solid var(--hairline2); border-radius: 14px; padding: 1rem 1.2rem; margin: 0.6rem 0; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8rem 0 0; color: var(--muted); }
.faq details p + p { margin-top: 0.5rem; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 20px; padding: 1.5rem 1.7rem; margin: 1rem 0 2rem;
  border: 1px solid rgba(249, 124, 61, 0.28);
  background: linear-gradient(135deg, rgba(249, 124, 61, 0.13), rgba(255, 255, 255, 0.03));
}
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 0.2rem; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); margin: 0 0 0.5rem; }
.notfound p { color: var(--muted); margin: 0 0 1.6rem; }

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