/* Inversion Junkie — site promotionnel. Aucune dépendance externe. */
:root {
  --bg: #0a0b0a;
  --surface: #141614;
  --surface-2: #1c1f1c;
  --line: #2a2e2a;
  --text: #f2f4f1;
  --muted: #a3aaa2;
  --green: #34d058;
  --green-dim: #1f7a36;
  --orange: #ff9f33;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Langue : on masque la langue inactive */
html[data-lang="fr"] [lang="en"],
html[data-lang="en"] [lang="fr"] { display: none !important; }

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

/* En-tête */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 11, 10, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.main { display: flex; gap: 22px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.main a:hover { color: var(--text); }
.lang {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang:hover { border-color: var(--green-dim); }

/* Héros */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #04130a; font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 14px;
}
.btn.soon { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--green-dim); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Cadre d'iPhone */
.phone {
  width: min(300px, 78vw); margin: 0 auto; padding: 10px;
  background: #050505; border: 1px solid #333; border-radius: 46px;
  box-shadow: 0 40px 90px rgba(52, 208, 88, 0.14), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.phone video, .phone img { border-radius: 37px; width: 100%; aspect-ratio: 886 / 1920; object-fit: cover; background: #000; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 19px; }

/* Fonctions */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
section.alt .feature { background: var(--surface-2); }
.feature img { width: 100%; aspect-ratio: 590 / 900; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.feature div { padding: 18px 18px 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--green); color: #04130a; font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Points forts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fact { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; }
.fact h3 { font-size: 18px; margin-bottom: 6px; }
.fact p { color: var(--muted); font-size: 15.5px; }

/* Soutien */
.support { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
details[open] { border-color: var(--green-dim); }
summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 18px 18px; color: var(--muted); font-size: 16px; }
.contact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 84px; }
.contact h3 { font-size: 22px; margin-bottom: 10px; }
.contact p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.contact .mail { font-size: 14px; margin: 14px 0 0; user-select: all; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer a { color: var(--muted); }
footer .grow { margin-right: auto; }

/* Page de texte (confidentialité) */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: #cfd4ce; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose .date { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .facts { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .contact { position: static; }
  nav.main { display: none; }
}
@media (max-width: 480px) {
  .features { gap: 12px; }
  .feature div { padding: 14px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
