/* Trakar — site de présentation. Couleurs : jeu sombre de web/src/theme/tokens.ts.
   Le teal et l'or ne vivent que dans le logo ; la primaire d'interface est le bleu. */

:root {
  color-scheme: dark;
  --bg: #0B0C10;
  --surface: #101218;
  --raised: #161922;
  --border: #262A34;
  --divider: #1E212A;
  --text: #F8FAFC;
  --muted: #98A2B3;
  --primary: #1769E0;
  --primary-hi: #2E7BEA;
  --on-primary: #FFFFFF;
  --focus: #6EA8FE;
  --accent: #F4B000;
  --wrap: 1120px;
  --r: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p  { margin: 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 14px; }

/* ----------------------------------------------------------- En-tête */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none;
}

.nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--text); }

.header-cta { padding: 8px 16px; font-size: 0.93rem; }

/* ----------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hi); }
.btn-ghost { border-color: var(--border); background: var(--raised); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ----------------------------------------------------------- Textes */

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.lead { margin-top: 22px; font-size: 1.16rem; color: var(--muted); max-width: 54ch; }
.section-lead { margin-top: 16px; font-size: 1.06rem; color: var(--muted); max-width: 62ch; }
.fineprint { margin-top: 22px; font-size: 0.9rem; color: var(--muted); max-width: 52ch; }

/* ----------------------------------------------------------- Héros */

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: -220px 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(760px 420px at 18% 32%, rgba(23, 105, 224, 0.30), transparent 70%),
    radial-gradient(520px 340px at 82% 10%, rgba(31, 122, 140, 0.20), transparent 72%);
}
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-shot { justify-self: center; }

.hero-shot img, .privacy-shot img, .mobile-shots img {
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 7px #05060a;
}
.hero-shot img { width: 290px; }

/* ----------------------------------------------------------- En bref */

.facts { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--surface); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.fact { display: flex; flex-direction: column; gap: 5px; }
.fact strong { font-size: 1.02rem; }
.fact strong::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; vertical-align: middle;
}
.fact span { color: var(--muted); font-size: 0.96rem; }

/* ----------------------------------------------------------- Étapes */

.steps { padding: clamp(64px, 8vw, 104px) 0; }
.step-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-list li { border-top: 2px solid var(--primary); padding-top: 22px; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--raised); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 700; color: var(--muted); margin-bottom: 14px;
}
.step-list h3 { margin-bottom: 8px; }
.step-list p { color: var(--muted); font-size: 0.99rem; }

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

.features { padding: clamp(56px, 7vw, 92px) 0; border-top: 1px solid var(--divider); }
.grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px 28px; transition: border-color .15s, background .15s;
}
.card:hover { border-color: #39404f; background: var(--raised); }
.card h3 { margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.ico {
  width: 26px; height: 26px; fill: none;
  stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ----------------------------------------------------------- Vie privée */

.privacy { padding: clamp(64px, 8vw, 104px) 0; background: var(--surface); border-top: 1px solid var(--divider); }
.privacy-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.privacy-shot { justify-self: center; }
.privacy-shot img { width: 268px; }

.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; max-width: 62ch; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 1rem; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li em { font-style: normal; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 15px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checks.compact li { font-size: 0.99rem; }

/* ----------------------------------------------------------- Mobile */

.mobile { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--divider); }
.mobile-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mobile-shots { display: flex; justify-content: center; }
.mobile-shots img { width: 228px; }
.mobile-shots img:first-child { transform: translateY(26px) rotate(-3deg); }
.mobile-shots img:last-child { margin-left: -58px; transform: rotate(3deg); }

/* ----------------------------------------------------------- Contact */

.contact { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--divider); position: relative; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(620px 320px at 50% 0%, rgba(23, 105, 224, 0.22), transparent 72%);
}
.contact-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-lead, .contact .fineprint { margin-left: auto; margin-right: auto; }
.contact .cta-row { justify-content: center; }
.contact .btn-primary { font-size: 1.05rem; padding: 15px 30px; }

/* ----------------------------------------------------------- Pied */

.site-footer { border-top: 1px solid var(--divider); background: var(--surface); padding: 56px 0 28px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 0.93rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--divider); }
.footer-legal p { color: var(--muted); font-size: 0.88rem; }

/* ----------------------------------------------------------- Écrans étroits */

@media (max-width: 960px) {
  .hero-in, .privacy-in, .mobile-in { grid-template-columns: 1fr; }
  .hero-copy, .privacy-copy, .mobile-copy { order: 1; }
  .hero-shot, .privacy-shot, .mobile-shots { order: 2; }
  .lead, .section-lead, .fineprint, .checks { max-width: none; }
  .grid, .step-list { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .facts-in, .grid, .step-list, .footer-in { grid-template-columns: 1fr; }
  .hero-shot img { width: min(260px, 72vw); }
  .privacy-shot img { width: min(248px, 68vw); }
  .mobile-shots img { width: min(190px, 44vw); }
  .mobile-shots img:last-child { margin-left: -42px; }
  .cta-row .btn { width: 100%; }
}
